---
updatedAt: 2026-06-30T16:05:21.000Z
agentTools:
  projectIndex: https://docs.pelcro.com/llms.txt
---

# Update e-commerce product

Update an existing e-commerce product.

## Overview

Update an existing subscription product. You can modify the name, description, entitlements, and other product attributes.

**Example:** Update a product's description or add new entitlements when expanding the product offering.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "core-api",
    "version": "1.88"
  },
  "servers": [
    {
      "url": "https://www.pelcro.com/api/v1/core"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      },
      "sec1": {
        "type": "apiKey",
        "in": "query",
        "name": "site_id"
      }
    }
  },
  "security": [
    {
      "sec0": [],
      "sec1": []
    }
  ],
  "paths": {
    "/ecommerce/products/{id}": {
      "put": {
        "summary": "Update e-commerce product",
        "description": "Update an existing e-commerce product.",
        "operationId": "update-ecommerce-product",
        "parameters": [
          {
            "name": "site_id",
            "in": "query",
            "description": "The unique identifier of the site associated with your account.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "Bearer eyJ***"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Name of the product which will appear on your site."
                  },
                  "description": {
                    "type": "string",
                    "description": "The product's description, meant to be displayable to the customer. Use this field to optionally store a long-form explanation of the product being sold for your own rendering purposes."
                  },
                  "countries": {
                    "type": "array",
                    "description": "Define the product targeted country Codes",
                    "items": {
                      "type": "string"
                    }
                  },
                  "image": {
                    "type": "string",
                    "description": "Product Image",
                    "format": "binary"
                  },
                  "shippable": {
                    "type": "boolean",
                    "description": "Define if product is shippable or not"
                  },
                  "sites": {
                    "type": "array",
                    "description": "Define the sites on which the product is offered on",
                    "items": {
                      "type": "string"
                    }
                  },
                  "caption": {
                    "type": "string",
                    "description": "The product's caption for the product image"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n\t\"data\": {\n\t\t\"id\": 125,\n\t\t\"name\": \"API Prod 2\",\n\t\t\"caption\": \"caption 1\",\n\t\t\"description\": \"description 1\",\n\t\t\"shippable\": true,\n\t\t\"countries\": [\n\t\t\t\"CA\",\n\t\t\t\"EG\"\n\t\t],\n\t\t\"image\": null,\n\t\t\"sites\": [\n\t\t\t14,\n\t\t\t60\n\t\t]\n\t},\n\t\"status\": \"success\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "example": 125,
                          "default": 0
                        },
                        "name": {
                          "type": "string",
                          "example": "API Prod 2"
                        },
                        "caption": {
                          "type": "string",
                          "example": "caption 1"
                        },
                        "description": {
                          "type": "string",
                          "example": "description 1"
                        },
                        "shippable": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "countries": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "example": "CA"
                          }
                        },
                        "image": {},
                        "sites": {
                          "type": "array",
                          "items": {
                            "type": "integer",
                            "example": 14,
                            "default": 0
                          }
                        }
                      }
                    },
                    "status": {
                      "type": "string",
                      "example": "success"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated.",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": {
                      "error": "Unauthenticated."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": {
                      "error": {
                        "status": 404,
                        "message": "Not found."
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```

# Sibling pages

* [List e-commerce products](https://docs.pelcro.com/reference/api-core-list-ecommerce-products.md)
* [/ecommerce/products/{id}](https://docs.pelcro.com/reference/api-core-get-ecommerce-product.md)
* [Create e-commerce product](https://docs.pelcro.com/reference/api-core-create-ecommerce-product.md)
* [Delete e-commerce product](https://docs.pelcro.com/reference/api-core-delete-ecommerce-product.md)