Add a catalog item
POST
/products/{productId}/catalog
const url = 'https://api.motenya.app/v1/products/example/catalog';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","sku":"example","kind":"product","price":"149.90","currency":"RON","interval":"day","intervalCount":1,"storeId":"example","custom":"example","archived":true}'};
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://api.motenya.app/v1/products/example/catalog \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "sku": "example", "kind": "product", "price": "149.90", "currency": "RON", "interval": "day", "intervalCount": 1, "storeId": "example", "custom": "example", "archived": true }'Requires crm:write.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”productId
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
required
string
sku
string | null
kind
string | null
price
A decimal amount as a string, e.g. “149.90”.
string | null
Example
149.90currency
ISO 4217 code, e.g. RON or EUR.
string | null
Example
RONinterval
Set for something billed on a schedule (a plan).
string | null
intervalCount
integer | null
storeId
Sold only in this store; null for every store.
string | null
custom
Custom field values keyed by field key; null clears one. See GET /products/{productId}/custom-fields.
object | null
archived
boolean | null
Responses
Section titled “Responses”Success
Media typeapplication/json
object
id
required
string
name
required
string
sku
required
string | null
kind
required
string
price
required
string | null
currency
required
string | null
interval
required
string | null
intervalCount
required
integer
storeId
required
string | null
custom
required
object
key
additional properties
source
required
string
externalId
required
string | null
archived
required
boolean
createdAt
required
string
updatedAt
required
string
key
additional properties
Example
{ "kind": "product", "interval": "day"}Invalid request
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
field
string
details
Array<object>
object
code
required
string
message
required
string
field
string
Example
{ "error": { "code": "SLUG_TAKEN" }}Missing, invalid, revoked or expired API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
field
string
details
Array<object>
object
code
required
string
message
required
string
field
string
Example
{ "error": { "code": "SLUG_TAKEN" }}Missing scope, API turned off, published article without publish scope, or account suspended
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
field
string
details
Array<object>
object
code
required
string
message
required
string
field
string
Example
{ "error": { "code": "SLUG_TAKEN" }}Not found, or outside the knowledge bases this key may use
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
field
string
details
Array<object>
object
code
required
string
message
required
string
field
string
Example
{ "error": { "code": "SLUG_TAKEN" }}Slug or translation already exists
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
field
string
details
Array<object>
object
code
required
string
message
required
string
field
string
Example
{ "error": { "code": "SLUG_TAKEN" }}Rejected by validation (e.g. unknown language or category)
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
field
string
details
Array<object>
object
code
required
string
message
required
string
field
string
Example
{ "error": { "code": "SLUG_TAKEN" }}Rate limited; see Retry-After
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
field
string
details
Array<object>
object
code
required
string
message
required
string
field
string
Example
{ "error": { "code": "SLUG_TAKEN" }}Internal error