Create catalog
POST
/v4/commerce/catalogs
const url = 'https://console.orangepill.cloud/v4/commerce/catalogs';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"description":"example","name":"example","status":"draft","tags":["example"]}'};
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://console.orangepill.cloud/v4/commerce/catalogs \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "description": "example", "name": "example", "status": "draft", "tags": [ "example" ] }'Create a new local product catalog.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
description
string
name
required
string
status
string
tags
Array<string>
Responses
Section titled “Responses”Catalog created
Media typeapplication/json
object
data
required
object
created_at
required
string format: date-time
description
string
id
required
string format: uuid
name
required
string
source
required
Always ‘local’ in V1
string
status
required
string
tags
required
Array<string>
tenant_id
required
string format: uuid
updated_at
required
string format: date-time
success
required
boolean
Example
{ "data": { "source": "local", "status": "draft" }, "success": true}Validation error
Media typeapplication/json
object
details
error
required
string
success
required
boolean
Example
{ "success": false}