Catalogs on a channel
GET
/api/v1/commerce/channels/{channel}/catalogs
const url = 'https://digize.com/api/v1/commerce/channels/meta/catalogs';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/commerce/channels/meta/catalogs \ --header 'x-api-key: <x-api-key>'The catalogs the connected Meta or TikTok sign-in can reach, by business or Business Center, asked of the channel now.
Needs the settings:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”channel
required
meta for Facebook and Instagram, tiktok for TikTok.
string
Responses
Section titled “Responses”Done
Media typeapplication/json
object
data
required
Array<object>
object
businessId
required
string
businessName
required
string
catalogs
required
Array<object>
object
id
required
string
name
required
string
currency
required
string | null
products
required
number | null
Example generated
{ "data": [ { "businessId": "example", "businessName": "example", "catalogs": [ { "id": "example", "name": "example", "currency": "example", "products": 1 } ] } ]}What was sent isn’t valid (invalid).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}