Sales channels
GET
/api/v1/commerce/channels
const url = 'https://digize.com/api/v1/commerce/channels';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 \ --header 'x-api-key: <x-api-key>'Where the store’s products stand on Meta (Facebook and Instagram shops) and TikTok: the catalog chosen, how many products were taken or refused, and the last sync.
Needs the commerce:read permission.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Done
Media typeapplication/json
object
data
required
Array<object>
object
channel
required
string
available
required
Whether this server has the channel’s app, so it can connect.
boolean
connected
required
boolean
allowed
required
Connected with the permissions catalogs need.
boolean
catalog
required
storefront
required
The storefront address products link to; empty until set.
string
products
required
object
listed
required
number
sent
required
Sent, waiting for the channel’s word.
number
accepted
required
number
refused
required
number
sync
required
refusals
required
Array<object>
object
variantId
required
string
productId
required
string
name
required
string
error
required
string
Example
{ "data": [ { "channel": "meta" } ]}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" }}