Create a product
/productsCreates 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
AuthorizationstringRequiredidempotency-keystringA 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
referencestringRequirednamestringRequireddescriptionstringimagesarray of stringstax_codestringA tax code (txcd_).
shippablebooleanmetadataobjectYour key-value pairs. Up to 50 keys of 40 characters, with string values of up to 500 characters.
activebooleanReturns
The product with that reference, updated.
idstringresourcestringreferencestring or nullnamestringdescriptionstring or nullimagesarray of stringstax_codestring or nullshippablebooleanShow 7 more attributesShow fewer attributes
managed_bystringreview_statusstring or nullWhen Pay.com sells the product: screened automatically, then reviewed by a person. null for a product only you sell.
activebooleanmetadataobjectYour key-value pairs. Up to 50 keys of 40 characters, with string values of up to 500 characters.
createdstringupdatedstringtest_modebooleanErrors
201400401403409