Search Sale Channels

Returns the sale channels configured in your Sodtrack account, as a paginated list ordered from newest to oldest.

GET/api/integration/sale-channel

Request

cURL
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

Search Sale Channels
{
  "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)

FieldTypeRequiredDescription
querystring❌Returns only the sale channels whose name contains this text (case-insensitive). Leading and trailing spaces are ignored. An empty value applies no filter.
activeboolean❌true returns only active sale channels, false only inactive ones. When omitted, both are returned. Accepted values: true, false.

πŸ“„ Pagination (query parameters)

FieldTypeRequiredDescription
pageSizeinteger❌Number of sale channels per page. Minimum 1, maximum 50. Default: 10.
pageNumberinteger❌Page to return, starting at 1. Minimum 1. Default: 1.

Example Request

Query string examples:

code
?query=store&active=true&pageSize=20&pageNumber=1
code
?active=false
code
?pageNumber=2

Response Example

json
{
  "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

FieldTypeDescription
dataarraySale channels on the requested page. Empty when no sale channel matches the filters.
data[].idnumberUnique Sodtrack identifier of the sale channel.
data[].namestringSale channel name.
data[].reference`stringnull`
data[].numericReference`numbernull`
data[].address`objectnull`
data[].address.idnumberUnique Sodtrack identifier of the address.
data[].address.address`stringnull`
data[].address.formattedAddressstringFull, normalized address.
data[].address.extraInfo`stringnull`
data[].address.activebooleanWhether the address is active. Inactive addresses are kept for history.
data[].address.coordinates`objectnull`
data[].address.coordinates.latnumberLatitude.
data[].address.coordinates.lngnumberLongitude.
data[].activebooleanWhether the sale channel is active.
metadata.countnumberTotal number of sale channels matching the filters, across all pages.
metadata.pageSizenumberPage size applied to this response.
metadata.pageNumbernumberPage number returned.
metadata.totalPagesnumberTotal number of pages for the applied filters and page size.

Error Responses

HTTP StatusErrorDescription
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.

ScenarioBehavior
No filtersAll sale channels, active and inactive.
query onlySale channels whose name contains the text, active and inactive.
active=trueOnly active sale channels.
query and activeSale 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.