Count orders (currently returns an empty object)
Reachable under orders:read. As captured against prod biz 398,
the endpoint returns data: {} — an empty object — regardless
of filters. Treat the count as not currently available via
the partner API until klikit ships an implementation; walk
listOrders with size=1 and use
data.total if you need a count today.
Authorizations
Authorization: Basic base64(partner_key:secret_key).
Credentials are issued by a klikit operator. The plaintext
secret_key is shown once at issuance and cannot be retrieved
later — store it securely. If lost, ask your operator to rotate
the secret to receive a new one. The old secret stops working
immediately on rotation; there is no overlap window.
Query Parameters
Lower bound of created_at (inclusive).
Upper bound of created_at (exclusive). Max window is 90 days.
Response
Empty data object — see description.
Response shape captured from prod biz 398:
{request_id, data: {}} — the data payload is an empty
object. The endpoint is reachable under orders:read but does
not currently return a count value. Treat the count as
unavailable until klikit confirms an implementation; partners
needing a count today should fall back to walking
listOrders.
"req_4d1b7e3f-..."
Endpoint-specific payload on success.
Machine-readable error code + human message. The code is stable
across releases — switch on code in your client code rather
than parsing the message text.
Common codes you will encounter as a partner:
| Code | HTTP | Meaning |
|---|---|---|
auth_missing | 401 | Authorization header absent / malformed |
auth_invalid_credential | 401 | partner_key or secret_key did not verify |
auth_revoked | 403 | Credential is revoked |
auth_forbidden | 403 | Credential not authorized for the requested scope |
request_invalid | 400 | Body / query parameters failed validation |
request_missing_idempotency_key | 400 | Write endpoint called without Idempotency-Key |
request_invalid_range | 400 | Date range > 90 days |
resource_not_found | 404 | Order / store / mapping does not exist |
resource_unmapped | 404 | Stock / availability call referenced an unknown SKU |
state_invalid_transition | 409 | Order PATCH not allowed by current state |
state_idempotency_conflict | 409 | Same Idempotency-Key reused with a different body |
rate_limit_exceeded | 429 | Per-credential rate cap hit |
downstream_unavailable | 502 | An internal klikit dependency is unreachable |