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

# Update SKU

Update an existing SKU.

# 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/skus/{id}": {
      "put": {
        "summary": "Update SKU",
        "description": "Update an existing SKU.",
        "operationId": "core-api-update-sku",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "Bearer eyJ***"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "The unique identifier of the sku.",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          },
          {
            "name": "site_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "description": "The unique identifier of the site associated with your account."
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "The name of the SKU"
                  },
                  "inventory_type": {
                    "type": "boolean",
                    "description": "The inventory type should be 0 if it's unlimited quantity or 1 if it's limited"
                  },
                  "inventory_quantity": {
                    "type": "integer",
                    "description": "The quantity of the SKU if the inventory_type is set to 1",
                    "format": "int32"
                  },
                  "active": {
                    "type": "boolean",
                    "description": "A boolean value to state whether or not that SKU is active"
                  },
                  "price": {
                    "type": "integer",
                    "description": "The price of the SKU in cents",
                    "format": "int32"
                  },
                  "image": {
                    "type": "string",
                    "description": "The of the image of the SKU"
                  },
                  "expires_at": {
                    "type": "string",
                    "description": "The expiration date of the SKU if any",
                    "format": "date"
                  },
                  "entitlements": {
                    "type": "array",
                    "description": "The entitlements of offerings which are available on the selected SKU",
                    "items": {
                      "type": "string"
                    }
                  },
                  "metadata": {
                    "type": "array",
                    "description": "Set of key-value pairs that can be saved on customer level. This can be useful for storing additional information about the object in a structured format."
                  },
                  "countries": {
                    "type": "array",
                    "description": "The regions where the SKU should be available e.g., [\"US\", \"CA\", \"GB\"].",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n\t\"data\": {\n\t\t\"id\": 7,\n\t\t\"product_id\": 15,\n\t\t\"name\": \"core skuuuu\",\n\t\t\"active\": false,\n\t\t\"currency\": \"cad\",\n\t\t\"image\": null,\n\t\t\"inventory_type\": 0,\n\t\t\"inventory_quantity\": 100,\n\t\t\"price\": 2000,\n\t\t\"expires_at\": 1662508800,\n\t\t\"created_at\": 1661411822,\n\t\t\"updated_at\": 1662472568\n\t},\n\t\"status\": \"success\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "example": 7,
                          "default": 0
                        },
                        "product_id": {
                          "type": "integer",
                          "example": 15,
                          "default": 0
                        },
                        "name": {
                          "type": "string",
                          "example": "core skuuuu"
                        },
                        "active": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "currency": {
                          "type": "string",
                          "example": "cad"
                        },
                        "image": {},
                        "inventory_type": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        },
                        "inventory_quantity": {
                          "type": "integer",
                          "example": 100,
                          "default": 0
                        },
                        "price": {
                          "type": "integer",
                          "example": 2000,
                          "default": 0
                        },
                        "expires_at": {
                          "type": "integer",
                          "example": 1662508800,
                          "default": 0
                        },
                        "created_at": {
                          "type": "integer",
                          "example": 1661411822,
                          "default": 0
                        },
                        "updated_at": {
                          "type": "integer",
                          "example": 1662472568,
                          "default": 0
                        }
                      }
                    },
                    "status": {
                      "type": "string",
                      "example": "success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "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 SKUs](https://docs.pelcro.com/reference/api-core-list-ecommerce-skus.md)
* [Get SKU](https://docs.pelcro.com/reference/api-core-get-ecommerce-sku.md)
* [Create SKU](https://docs.pelcro.com/reference/api-core-create-ecommerce-sku.md)
* [Delete SKU](https://docs.pelcro.com/reference/api-core-delete-ecommerce-sku.md)