Search Sale Channels
Returns the sale channels configured in your Sodtrack account, as a paginated list ordered from newest to oldest.
/api/integration/sale-channelRequest
curl -X GET "https://uat.integration.cl.sodtrack-shared.sodtrack.com/api/integration/sale-channel" \
-H "Authorization: Bearer $SODTRACK_TOKEN"Base URL: https://uat.integration.cl.sodtrack-shared.sodtrack.com Β· other environments
Responses
{
"data": [
{
"id": 42,
"name": "Downtown Store",
"reference": "STORE-DT-01",
"numericReference": 1001,
"address": {
"id": 315,
"address": "123 Main Street",
"formattedAddress": "123 Main Street, Springfield, USA",
"extraInfo": "Loading dock at the back",
"active": true,
"coordinates": {
"lat": -34.6037,
"lng": -58.3816
}
},
"active": true
},
{
"id": 37,
"name": "Online Store",
"reference": null,
"numericReference": null,
"address": null,
"active": true
}
],
"metadata": {
"count": 2,
"pageSize": 20,
"pageNumber": 1,
"totalPages": 1
}
}Error responses for this endpoint follow the shared error reference.
Purpose
Returns the sale channels configured in your Sodtrack account, as a paginated list ordered from newest to oldest.
The list can be narrowed by name (partial, case-insensitive match) and by active status. Each sale channel includes its identifiers, its references and, when it has one, its location.
Field Definitions
π Filters (query parameters)
| Field | Type | Required | Description |
|---|---|---|---|
query | string | β | Returns only the sale channels whose name contains this text (case-insensitive). Leading and trailing spaces are ignored. An empty value applies no filter. |
active | boolean | β | true returns only active sale channels, false only inactive ones. When omitted, both are returned. Accepted values: true, false. |
π Pagination (query parameters)
| Field | Type | Required | Description |
|---|---|---|---|
pageSize | integer | β | Number of sale channels per page. Minimum 1, maximum 50. Default: 10. |
pageNumber | integer | β | Page to return, starting at 1. Minimum 1. Default: 1. |
Example Request
Query string examples:
?query=store&active=true&pageSize=20&pageNumber=1?active=false?pageNumber=2Response Example
{
"data": [
{
"id": 42,
"name": "Downtown Store",
"reference": "STORE-DT-01",
"numericReference": 1001,
"address": {
"id": 315,
"address": "123 Main Street",
"formattedAddress": "123 Main Street, Springfield, USA",
"extraInfo": "Loading dock at the back",
"active": true,
"coordinates": {
"lat": -34.6037,
"lng": -58.3816
}
},
"active": true
},
{
"id": 37,
"name": "Online Store",
"reference": null,
"numericReference": null,
"address": null,
"active": true
}
],
"metadata": {
"count": 2,
"pageSize": 20,
"pageNumber": 1,
"totalPages": 1
}
}Response Fields
| Field | Type | Description |
|---|---|---|
data | array | Sale channels on the requested page. Empty when no sale channel matches the filters. |
data[].id | number | Unique Sodtrack identifier of the sale channel. |
data[].name | string | Sale channel name. |
data[].reference | `string | null` |
data[].numericReference | `number | null` |
data[].address | `object | null` |
data[].address.id | number | Unique Sodtrack identifier of the address. |
data[].address.address | `string | null` |
data[].address.formattedAddress | string | Full, normalized address. |
data[].address.extraInfo | `string | null` |
data[].address.active | boolean | Whether the address is active. Inactive addresses are kept for history. |
data[].address.coordinates | `object | null` |
data[].address.coordinates.lat | number | Latitude. |
data[].address.coordinates.lng | number | Longitude. |
data[].active | boolean | Whether the sale channel is active. |
metadata.count | number | Total number of sale channels matching the filters, across all pages. |
metadata.pageSize | number | Page size applied to this response. |
metadata.pageNumber | number | Page number returned. |
metadata.totalPages | number | Total number of pages for the applied filters and page size. |
Error Responses
| HTTP Status | Error | Description |
|---|---|---|
400 Bad Request | β | A query parameter is invalid: pageSize outside 1β50, pageNumber lower than 1, a non-integer page value, or active different from true / false. |
401 Unauthorized | β | Authentication missing or invalid. |
500 Internal Server Error | β | Unexpected server error. Contact Sodtrack support. |
Business Rules & Constraints
Ordering
Sale channels are always returned from newest to oldest. The order cannot be changed.
Combining filters
All provided filters are combined: a sale channel is returned only when it matches every one of them. With no filters, every sale channel in the account is returned, active and inactive.
| Scenario | Behavior |
|---|---|
| No filters | All sale channels, active and inactive. |
query only | Sale channels whose name contains the text, active and inactive. |
active=true | Only active sale channels. |
query and active | Sale channels whose name contains the text and that have the requested status. |
Pagination limits
Out-of-range pagination values are rejected with 400 Bad Request; they are not adjusted automatically. Requesting a page beyond the last one returns an empty data array with the usual metadata.
Unsupported parameters
Query parameters other than the ones documented here are ignored and do not affect the result.