Admin API/Sales ChannelsSales Channels
Retrieve a list of sales channels. The sales channels can be filtered by fields such as q
or name
. The sales channels can also be sorted or paginated.
Request
Filter by a sales channel ID.
term used to search sales channels' names and descriptions.
A sales-channel field to sort-order the retrieved sales channels by.
filter by dates less than this date
filter by dates greater than this date
filter by dates less than or equal to this date
filter by dates greater than or equal to this date
The number of sales channels to skip when retrieving the sales channels.
Limit the number of sales channels returned.
Comma-separated relations that should be expanded in the returned sales channels.
Comma-separated fields that should be included in the returned sales channels.
Request samples
curl --location --request GET '/admin/sales-channels'
Responses
application/json The total number of items available
The number of items skipped before the returned results
The number of items per page
sales_channels
array[object (Sales Channel) {9}]
requiredAn array of sales channels details.
Example:sc_01G8X9A7ESKAJXG2H0E6F1MW7A
The name of the sales channel.
The description of the sales channel.
Example:Multi-vendor market
Specify if the sales channel is enabled or disabled.
created_at
string <date-time>
requiredThe date with timezone at which the resource was created.
updated_at
string <date-time>
requiredThe date with timezone at which the resource was updated.
deleted_at
string <date-time> | null
requiredThe date with timezone at which the resource was deleted.
An optional key-value map with additional details
locations
array[object (Sales Channel Stock Location) {7}]
optionalThe details of the stock locations related to the sales channel.
{
"count": 0,
"offset": 0,
"limit": 0,
"sales_channels": [
{
"id": "sc_01G8X9A7ESKAJXG2H0E6F1MW7A",
"name": "Market",
"description": "Multi-vendor market",
"is_disabled": false,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"metadata": {
"car": "white"
},
"locations": [
{
"id": "scloc_01G8X9A7ESKAJXG2H0E6F1MW7A",
"sales_channel_id": "sc_01G8X9A7ESKAJXG2H0E6F1MW7A",
"location_id": "string",
"sales_channel": {},
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z"
}
]
}
]
}
Modified at 2024-05-23 07:10:14