Developers / Docs / Requests & responses
Requests & responses
The shape of every call.
Illustrative. The Partner API is a proposal. Names, fields and numbers on this page show the intended shape; the final contract will be published as an OpenAPI file with the sandbox.
Base addresses
| Address | |
|---|---|
| Sandbox | sandbox-api.[domain]/v1 |
| Live | api.[domain]/v1 |
The [domain] is a placeholder until the developer site address is chosen.
Headers
| Header | Meaning |
|---|---|
| Authorization | Bearer ck_live_… your API key |
| X-Caship-Partner | Your Partner ID |
| X-Caship-Timestamp | Seconds since 1970, must be within five minutes |
| X-Caship-Nonce | A one-time number for this request |
| X-Caship-Signature | The signature, see Security & signing |
| Idempotency-Key | Required on every write |
A successful answer
200 OK
{
"status": "redeemed",
"discount": 10000,
"campaign": "WINTER-100"
}
Lists
List calls return a page of results and a cursor to ask for the next page. Dates use ISO 8601 with the Indian Standard Time offset, for example 2026-12-04T10:30:00+05:30.
