API reference · Contracts

List Branch Contracts

GEThttps://api.sandbox.cws.digital/pricing/contract/list/store/{partnerId}

Description

Allows a parent account to list the price contracts of one of its branches, from the most recent to the oldest, with pagination.

The response is identical to that of the listing of your own store — the difference is the branch queried, which comes in the route and is validated against the links of your parent account.

Parameters

Path parameters

FieldTypeRequiredDescriptionValue
partnerIdintegerYes

Id of the branch that owns the contract. It must be linked to the token's parent account.

Query parameters

FieldTypeRequiredDescriptionValue
limitintegerNo

Contracts per page. Default 20, maximum 50. Above the maximum, the maximum applies.

offsetintegerNo

How many contracts to skip. Default 0.

Responses

  • 403

    Branch not linked to your parent account.

Try it

Sandbox

Language

Credentials

Access token: saved in this tab and used on every endpoint.

Each token only reaches the partner's own data and that of the branches with an authorized link.

Don't have sandbox credentials yet? See how to request them

Request

cURL
curl --request GET \
  --url 'https://api.sandbox.cws.digital/pricing/contract/list/store/{partnerId}' \
  --globoff \
  --header 'Authorization: Bearer <access_token>'

Response

Click Try it to see the real response here, or pick a documented example: