Retrieve the list of contracts you have in your Sendcloud account. It will also return the id of each contract, which you can use to retrieve information about a specific contract.
Basic Authentication using API key and secrets is currently the main authentication mechanism.
The carrier you want to filter for, for instance: postnl. You can find available carriers in your Sendcloud account settings.
Filter contracts based on the status.
Filter direct contracts based on the client id.
Filter direct contracts based on the contract's name. Will search for a case-sensitive exact match.
Filter contracts based on the country of the contract, it should be in the ISO 3166-1 alpha-2 format.
The cursor query string is used as the pivot value to filter results. If no value is provided, the first page of results will be returned. To get this value, you must encode the offset, reverse and position into a base64 string.
There are 3 possible parameters to encode:
o: Offsetr: Reversep: PositionFor example, r=1&p=300 encoded as a base64 string would be cj0xJnA9MzAw. The query string would then be cursor=cj0xJnA9MzAw.
"cj0xJnA9MzAw"
The size of the page to fetch
OK
Retrieve contracts