Skip to navigation

Update a product

Draft scaffold — not implemented or available in the API.

Changes only the fields sent. active: false hides the product from new orders and checkout and can be undone; setting active to true on an archived product fails. Changing externalId fails while a meter is scoped to the product, and events sent with the old ID fail afterwards. A new taxCode applies to invoices finalized afterwards. {product} takes the product’s prod_ ID or your externalId. A value starting prod_ is tried as a Paid ID first.

Authentication

AuthorizationBearer
API Key authentication using Bearer token

Path parameters

productstringRequired1-255 characters
A Paid ID, external ID or resource key, as supported by the referenced resource.

Headers

Paid-BetaenumRequired

This endpoint is in the products=v1 beta. Send this header to use it.

Allowed values:

Request

Body
activebooleanOptionalDefaults to true

Available for new orders; defaults to true.

descriptionstring or nullOptional
What the resource represents.
displayNamestring or nullOptional<=250 characters

What your customers see on invoices, credit notes, checkout and the portal; null uses the resource name.

externalIdstringOptional1-255 characters
Your stable identifier, 1 to 255 characters.
metadatamap from strings to stringsOptional

String key-value pairs of your own, up to 500 characters per value. Always updatable.

namestringOptional1-255 characters
The resource name.
productCodestring or nullOptional<=255 characters
Your accounting or SKU code.
taxCodestring or nullOptional1-255 characters

Tax classification; null uses the account default.

Response

200
idstring
The Product ID.
objectenum

The type of object. Always product.

Allowed values:
createdAtdatetime
When the object was created.
activeboolean
Available for new orders and checkout.
archivedAtdatetime or null
When this resource was archived, or null.
descriptionstring or null
What the resource represents.
displayNamestring or null

What your customers see on invoices, credit notes, checkout and the portal; null uses the resource name.

externalIdstring or null
Your stable identifier, 1 to 255 characters.
livemodeboolean

true for an object on a live account, false on a test account.

metadatamap from strings to strings

String key-value pairs of your own, up to 500 characters per value. Always updatable.

namestring
The resource name.
productCodestring or null
Your accounting or SKU code.
taxCodestring or null1-255 characters

Tax classification; null uses the account default.

updatedAtdatetime
When the object was last changed.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error
501
Not Implemented Error