Skip to main content
GET
/
v1
/
partner
/
orders
/
count
Count orders (currently returns an empty object)
curl --request GET \
  --url https://api.dev.shadowchef.co/v1/partner/orders/count \
  --header 'Authorization: Basic <encoded-value>'
{
  "request_id": "2685b88d2eba45a4ee8e187a096dae77",
  "data": {}
}

Authorizations

Authorization
string
header
required

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

from
string<date-time>

Lower bound of created_at (inclusive).

to
string<date-time>

Upper bound of created_at (exclusive). Max window is 90 days.

status
string
provider_id
integer
branch_id
integer

Response

200 - application/json

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.

request_id
string
required
Example:

"req_4d1b7e3f-..."

data
object

Endpoint-specific payload on success.

error
object

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:

CodeHTTPMeaning
auth_missing401Authorization header absent / malformed
auth_invalid_credential401partner_key or secret_key did not verify
auth_revoked403Credential is revoked
auth_forbidden403Credential not authorized for the requested scope
request_invalid400Body / query parameters failed validation
request_missing_idempotency_key400Write endpoint called without Idempotency-Key
request_invalid_range400Date range > 90 days
resource_not_found404Order / store / mapping does not exist
resource_unmapped404Stock / availability call referenced an unknown SKU
state_invalid_transition409Order PATCH not allowed by current state
state_idempotency_conflict409Same Idempotency-Key reused with a different body
rate_limit_exceeded429Per-credential rate cap hit
downstream_unavailable502An internal klikit dependency is unreachable