Add a catalog product
const url = 'https://app.prokure.ca/api/v1/products';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"oem_partner_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","name":"example","model":"example","description":"example","commodity_codes":["example"],"specs":{"additionalProperty":"example"},"rep_status":"carried","source_url":"https://example.com"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.prokure.ca/api/v1/products \ --header 'Content-Type: application/json' \ --data '{ "oem_partner_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "model": "example", "description": "example", "commodity_codes": [ "example" ], "specs": { "additionalProperty": "example" }, "rep_status": "carried", "source_url": "https://example.com" }'Saves the product and durably requests background indexing and staged matching. Success does not mean indexing has finished.
Request Bodyrequired
Section titled “Request Bodyrequired”Adds one product to the catalog. The combination of partner, name and model must be unique; a repeat is refused rather than silently overwriting the existing row.
Adds one product to the catalog. The combination of partner, name and model must be unique; a repeat is refused rather than silently overwriting the existing row.
object
Must be one of this account’s manufacturer partners.
Free-form technical attributes stored verbatim. A bounded, deterministically ordered subset informs background indexing and matching as untrusted catalog data.
object
Responses
Section titled “Responses”Default Response
object
The manufacturer partner’s name, joined on for display.
object
Carried = stocked and represented; catalog = available to quote.
Products are never deleted. A discontinued product stops influencing matching and can be reactivated.
Example
{ "rep_status": "carried", "status": "active"}Default Response
object
Example
{ "error": "unauthorized"}Default Response
object
Example
{ "error": "unauthorized"}Default Response
object
Example
{ "error": "unauthorized"}Default Response
object
Example
{ "error": "unauthorized"}Default Response
object
Example
{ "error": "unauthorized"}Default Response
object
Example
{ "error": "unauthorized"}Default Response
object
Example
{ "error": "unauthorized"}