Add a catalog service
const url = 'https://app.prokure.ca/api/v1/services';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","description":"example","commodity_codes":["example"],"delivery_mode":"remote","regions_served":["example"],"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/services \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "description": "example", "commodity_codes": [ "example" ], "delivery_mode": "remote", "regions_served": [ "example" ], "source_url": "https://example.com" }'Request Bodyrequired
Section titled “Request Bodyrequired”Adds one service the company delivers itself to the catalog. Active services are matched against notices next to products. A name already in the catalog, in any letter case, is refused rather than overwriting the existing service.
Adds one service the company delivers itself to the catalog. Active services are matched against notices next to products. A name already in the catalog, in any letter case, is refused rather than overwriting the existing service.
object
Unique within the account, ignoring case.
Where the service is offered. Empty means the company profile’s geography applies.
Responses
Section titled “Responses”A service the company delivers itself, as opposed to a manufacturer partner’s product. Active services are matched against notices next to products.
A service the company delivers itself, as opposed to a manufacturer partner’s product. Active services are matched against notices next to products.
object
Unique within the account, ignoring case.
Where the service is offered. Empty means the company profile’s geography applies.
Services are never deleted. A discontinued service stops influencing matching and can be reactivated.
Example
{ "delivery_mode": "remote", "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"}