Skip to Content
Docs
Products

Create a product

POST/products

Creates a product, or updates the one with the same reference (the latest request wins). The Commerce tab shows products your system sends as read-only (managed_by: api).

Headers

AuthorizationstringRequired
HTTP Basic auth: your API key as the password, with an empty username. See Authentication.
idempotency-keystring

A unique key, such as a UUID, that makes a POST safe to retry. Pay.com keeps each key for 24 hours, separately for each workspace. A retry with the same key, endpoint and body gets the first response. Another endpoint or body gets 400 idempotency_error, and a retry while the first is running gets 409.

Parameters

referencestringRequired
namestringRequired
descriptionstring
imagesarray of strings
tax_codestring

A tax code (txcd_).

shippableboolean

Default: false

metadataobject

Your key-value pairs. Up to 50 keys of 40 characters, with string values of up to 500 characters.

activeboolean

Default: true

Returns

The product with that reference, updated.

idstring
resourcestring
referencestring or null
namestring
descriptionstring or null
imagesarray of strings
tax_codestring or null
shippableboolean
Show 7 more attributesShow fewer attributes
managed_bystring

One of api or dashboard.

review_statusstring or null

When Pay.com sells the product: screened automatically, then reviewed by a person. null for a product only you sell.

One of screened, approved or refused.

activeboolean
metadataobject

Your key-value pairs. Up to 50 keys of 40 characters, with string values of up to 500 characters.

createdstring
updatedstring
test_modeboolean

Errors

201
The product, created.
400
The request is invalid.
401
The API key is missing or wrong.
403
The key's permissions don't allow this route.
409
A request with this idempotency key is still running.
Was this page helpful?