Creates or updates (upserts) a product with a specified ID.
Product resource.
Unit label, such as per seat or per unit.
Specifies if the product requires shipping. If this value is true, shipping calculations are applied.
Product options such as color, size, and so forth. Product option values are defined in plans. For more information, see Plans.
Tax category of the product. For a complete list of supported tax categories, see TaxJar sales tax API reference. If none of the tax categories from the list are applicable for your product, use the general tax category 00000.
Use custom fields to extend a resource scheme to include custom data that is not provided as a common field. For more information, see Custom fields.
{ "foo": "bar" }
- Mock serverhttps://www.rebilly.com/_mock/catalog/all/products/{id}
- Sandbox serverhttps://api-sandbox.rebilly.com/organizations/{organizationId}/products/{id}
- Live serverhttps://api.rebilly.com/organizations/{organizationId}/products/{id}
- SecretApiKey
- JWT
curl -i -X PUT \
'https://www.rebilly.com/_mock/catalog/all/products/{id}' \
-H 'Content-Type: application/json' \
-H 'REB-APIKEY: YOUR_API_KEY_HERE' \
-d '{
"name": "Premium membership",
"unitLabel": "seat",
"description": "string",
"requiresShipping": false,
"options": [
"string"
],
"taxCategoryId": "00000",
"accountingCode": "4010",
"recognition": {
"debitAccountId": "string",
"creditAccountId": "string"
},
"customFields": {
"foo": "bar"
}
}'Product updated.
Total number of rate limit tokens for this request within a rate limit period. For more information, see Rate limits.
Unit label, such as per seat or per unit.
Specifies if the product requires shipping. If this value is true, shipping calculations are applied.
Product options such as color, size, and so forth. Product option values are defined in plans. For more information, see Plans.
Tax category of the product. For a complete list of supported tax categories, see TaxJar sales tax API reference. If none of the tax categories from the list are applicable for your product, use the general tax category 00000.
Use custom fields to extend a resource scheme to include custom data that is not provided as a common field. For more information, see Custom fields.
{ "foo": "bar" }
Date and time when the resource is created. This value is set automatically when the resource is created.
Date and time when the resource is updated. This value is set automatically when the resource is updated.
{ "id": "prod_0YV7DES3WPC5J8JD8QTVNZBZNZ", "name": "Premium membership", "unitLabel": "seat", "description": "string", "requiresShipping": false, "options": [ "string" ], "taxCategoryId": "00000", "accountingCode": "4010", "recognition": { "debitAccountId": "string", "creditAccountId": "string" }, "customFields": { "foo": "bar" }, "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z", "_links": [ { … } ] }