Download OpenAPI specification:Download
API for managing client channels - distribution channels for organizing and categorizing clients
Retrieve a list of all client channels with optional filtering and pagination
| page | integer >= 1 Default: 1 Page number for pagination |
| per_page | integer [ 1 .. 100 ] Default: 25 Number of items per page |
| sort | string Sort field |
string or Array of strings Filter by channel ID(s) | |
| search | string Search text for channel name |
string or Array of strings Filter by channel name(s) | |
string or Array of strings Filter by local name(s) | |
| disabled | boolean Filter by disabled status |
| from_updatedAt | integer <int64> Filter channels updated after this timestamp |
| from__id | string Filter channels with ID greater than this value |
| to__id | string Filter channels with ID less than this value |
Array of objects Advanced sorting options |
{- "success": true,
- "data": [
- {
- "_id": "60f1b2b3c9e9a12345678901",
- "name": "Retail Channel",
- "local_name": "قناة التجزئة",
- "disabled": false,
- "integration_meta": {
- "external_id": "ch_123",
- "sync_status": "active"
}, - "company_namespace": [
- "company1"
], - "createdAt": "2023-01-15T10:30:00.000Z",
- "updatedAt": "2023-01-15T10:30:00.000Z",
- "__v": 0
}
], - "pagination": {
- "page": 1,
- "per_page": 25,
- "pre_page": 0,
- "next_page": 2,
- "total": 100,
- "total_page": 4
}
}Create a new client channel
| name required | string Channel name (required) |
| local_name | string Local/translated name |
| disabled | boolean Whether the channel is disabled |
object Metadata for third-party integrations | |
| company_namespace | Array of strings Company namespaces this channel belongs to |
{- "name": "Retail Channel",
- "local_name": "قناة التجزئة",
- "disabled": false,
- "integration_meta": {
- "external_id": "ch_123"
}, - "company_namespace": [
- "company1"
]
}{- "success": true,
- "data": {
- "_id": "60f1b2b3c9e9a12345678901",
- "name": "Retail Channel",
- "local_name": "قناة التجزئة",
- "disabled": false,
- "integration_meta": {
- "external_id": "ch_123",
- "sync_status": "active"
}, - "company_namespace": [
- "company1"
], - "createdAt": "2023-01-15T10:30:00.000Z",
- "updatedAt": "2023-01-15T10:30:00.000Z",
- "__v": 0
}
}Retrieve a specific client channel by ID
| id required | string Channel ID |
{- "success": true,
- "data": {
- "_id": "60f1b2b3c9e9a12345678901",
- "name": "Retail Channel",
- "local_name": "قناة التجزئة",
- "disabled": false,
- "integration_meta": {
- "external_id": "ch_123",
- "sync_status": "active"
}, - "company_namespace": [
- "company1"
], - "createdAt": "2023-01-15T10:30:00.000Z",
- "updatedAt": "2023-01-15T10:30:00.000Z",
- "__v": 0
}
}Update an existing client channel
| id required | string Channel ID |
| name | string Channel name |
| local_name | string Local/translated name |
| disabled | boolean Whether the channel is disabled |
object Metadata for third-party integrations | |
| company_namespace | Array of strings Company namespaces this channel belongs to |
| _id | string Channel ID (for internal use) |
| createdAt | string <date-time> Creation timestamp (for internal use) |
| updatedAt | string <date-time> Last update timestamp (for internal use) |
| __v | integer Version key (for internal use) |
{- "name": "Updated Retail Channel",
- "local_name": "قناة التجزئة المحدثة",
- "disabled": false,
- "integration_meta": {
- "external_id": "ch_123",
- "sync_status": "updated"
}, - "company_namespace": [
- "company1"
], - "_id": "60f1b2b3c9e9a12345678901",
- "createdAt": "2023-01-15T10:30:00.000Z",
- "updatedAt": "2023-01-15T10:30:00.000Z",
- "__v": 0
}{- "success": true,
- "data": {
- "_id": "60f1b2b3c9e9a12345678901",
- "name": "Retail Channel",
- "local_name": "قناة التجزئة",
- "disabled": false,
- "integration_meta": {
- "external_id": "ch_123",
- "sync_status": "active"
}, - "company_namespace": [
- "company1"
], - "createdAt": "2023-01-15T10:30:00.000Z",
- "updatedAt": "2023-01-15T10:30:00.000Z",
- "__v": 0
}
}Delete an existing client channel
| id required | string Channel ID |
{- "success": true,
- "data": {
- "_id": "60f1b2b3c9e9a12345678901",
- "name": "Retail Channel",
- "local_name": "قناة التجزئة",
- "disabled": false,
- "integration_meta": {
- "external_id": "ch_123",
- "sync_status": "active"
}, - "company_namespace": [
- "company1"
], - "createdAt": "2023-01-15T10:30:00.000Z",
- "updatedAt": "2023-01-15T10:30:00.000Z",
- "__v": 0
}
}