Update a product and options
PUT
/accounts/{accountID}/products/{productID}
curl -X PUT "https://api.moov.io/accounts/{accountID}/products/{productID}" \
-H "Authorization: Bearer {token}" \
-H "X-Moov-Version: v2027.01.00" \
-d '{
"title": "string",
"basePrice": {
"currency": "USD",
"valueDecimal": "12.987654321"
}
}'mc, _ := moov.NewClient()
var accountID string
var productID string
mc.UpdateProduct(ctx, accountID, productID, moov.ProductRequest{
Title: "Weekend special",
BasePrice: moov.AmountDecimal{
Currency: "USD",
ValueDecimal: "21.99",
},
})
The request completed successfully.
A good or service offered by a merchant.
{
"productID": "string",
"title": "string",
"description": "string",
"basePrice": {
"currency": "USD",
"valueDecimal": "12.987654321"
},
"isTaxable": true,
"optionGroups": [
{
"name": "string",
"description": "string",
"minSelect": 0,
"maxSelect": 1,
"options": [
{
"name": "string",
"description": "string",
"priceModifier": {
"currency": "USD",
"valueDecimal": "12.987654321"
},
"images": [
{
"imageID": "string",
"altText": "string",
"link": "https://api.moov.io/images/q7lKWleAy9fUNhEGezQ1g",
"publicID": "q7lKWleAy9fUNhEGezQ1g"
}
]
}
]
}
],
"images": [
{
"imageID": "string",
"altText": "string",
"link": "https://api.moov.io/images/q7lKWleAy9fUNhEGezQ1g",
"publicID": "q7lKWleAy9fUNhEGezQ1g"
}
],
"category": {
"categoryID": "string",
"name": "Beverages",
"fullName": "Food, Beverages & Tobacco > Beverages",
"level": 2,
"parentID": "string"
},
"createdOn": "2019-08-24T14:15:22Z",
"updatedOn": "2019-08-24T14:15:22Z",
"disabledOn": "2019-08-24T14:15:22Z"
}Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The server could not understand the request due to invalid syntax.
{
"error": "string"
}Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The request contained missing or expired authentication.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The user is not authorized to make the request.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The requested resource was not found.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The request conflicted with the current state of the target resource.
{
"error": "string"
}Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields.
{
"title": "string",
"description": "string",
"basePrice": {
"currency": "string",
"valueDecimal": "string"
},
"images": {
"property1": {
"imageID": "string"
},
"property2": {
"imageID": "string"
}
},
"optionGroups": {
"property1": {
"name": "string",
"description": "string",
"minSelect": "string",
"maxSelect": "string",
"options": {
"property1": {
"name": "string",
"description": "string",
"priceModifier": {
"currency": "string",
"valueDecimal": "string"
},
"images": {
"property1": {
"imageID": "string"
},
"property2": {
"imageID": "string"
}
}
},
"property2": {
"name": "string",
"description": "string",
"priceModifier": {
"currency": "string",
"valueDecimal": "string"
},
"images": {
"property1": {
"imageID": "string"
},
"property2": {
"imageID": "string"
}
}
}
}
},
"property2": {
"name": "string",
"description": "string",
"minSelect": "string",
"maxSelect": "string",
"options": {
"property1": {
"name": "string",
"description": "string",
"priceModifier": {
"currency": "string",
"valueDecimal": "string"
},
"images": {
"property1": {
"imageID": "string"
},
"property2": {
"imageID": "string"
}
}
},
"property2": {
"name": "string",
"description": "string",
"priceModifier": {
"currency": "string",
"valueDecimal": "string"
},
"images": {
"property1": {
"imageID": "string"
},
"property2": {
"imageID": "string"
}
}
}
}
}
},
"categoryID": "string"
}Response headers
x-request-id
string
required
A unique identifier used to trace requests.
Request was refused due to rate limiting.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The request failed due to an unexpected error.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The request failed because a downstream service failed to respond.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
Headers
X-Moov-Version
string
Set this header to v2027.01.00 to use the API described in this specification.
When omitted, the server defaults to v2024.01.00, the earliest supported version, which may not match the behavior documented here.
An unrecognized well-formed version uses the latest supported version that is not newer than the requested version, when one exists.
For example,
v2026.08.00 uses v2026.07.00.
A malformed value, such as 2022, returns a 404 response.
Possible values:
v2027.01.00
Path parameters
Body
application/json
categoryID
string
The ID of a product taxonomy category to associate with the product.
Unique identifier for a product category in the product taxonomy.
description
string
<=5000 characters
A detailed description of the product.
- Must be valid UTF-8 text
- Supports Markdown for formatting
- HTML is not permitted and will be rejected
isTaxable
boolean
Whether applicable tax rules may be applied to this product. The value can be used to determine how to populate the tax amount on a transfer (Moov does not compute or assess tax). true means a tax amount can be included; false means it should not. Omitted values default to true on creation and preserve the existing setting on update. This setting does not determine jurisdiction-specific taxability.
optionGroups
array<object>
Optional configuration options for a product, such as size or color.
Show child attributes
optionGroups[]
description
string
<=500 characters
A detailed description of the option group.
- Must be valid UTF-8 text
- Supports Markdown for formatting
- HTML is not permitted and will be rejected
minSelect
integer<int32>
The minimum number of options that must be selected from this group.
A value of 0 indicates that no selection from this group is required.
options
array<object>
The options available within this group.
Show child attributes
optionGroups[].options[]
description
string
<=500 characters
A detailed description of the option.
- Must be valid UTF-8 text
- Supports Markdown for formatting
- HTML is not permitted and will be rejected
Response
isTaxable
boolean
required
Whether applicable tax rules may be applied to this product. The value can be used to determine how to populate the tax amount on a transfer (Moov does not compute or assess tax). true means a tax amount can be included; false means it should not. Omitted values default to true on creation and preserve the existing setting on update. This setting does not determine jurisdiction-specific taxability.
category
object
The product taxonomy category associated with the product, if any.
A product category from the product taxonomy.
description
string
<=5000 characters
A detailed description of the product.
- Must be valid UTF-8 text
- Supports Markdown for formatting
- HTML is not permitted and will be rejected
optionGroups
array<object>
Optional configuration options for a product, such as size or color.
Show child attributes
optionGroups[]
description
string
<=500 characters
A detailed description of the option group.
- Must be valid UTF-8 text
- Supports Markdown for formatting
- HTML is not permitted and will be rejected
minSelect
integer<int32>
The minimum number of options that must be selected from this group.
A value of 0 indicates that no selection from this group is required.
options
array<object>
The options available within this group.
Show child attributes
optionGroups[].options[]
description
string
<=500 characters
A detailed description of the option.
- Must be valid UTF-8 text
- Supports Markdown for formatting
- HTML is not permitted and will be rejected