Skip to content
ConceptsRequests and responses

Concepts

Requests and responses

The envelope, request ids, money, phones and consent.

Pilotv1

JSON in, JSON out, except for the few uploads and downloads listed under Files. Field names are camelCase.

The envelope

Every answer
{
  "data": {},
  "requestId": "3f1c8a2e-...",
  "success": true
}

Every response has a server-made requestId, also sent as the x-request-id header. Quote it to support. The owner sees recent requests in Settings, Developers, without paths, bodies or customer data.

Conventions

TopicRule
MoneyInteger minor units with an explicit currency per program or card (1250 is 12.50 BDT). Another currency is 422 CURRENCY_MISMATCH, never converted. Revisit's own billing is in poisha.
PhonesNever returned. You see maskedPhone (•••• 4821) and memberCode. You may send a phone to enroll or look up a customer, by the whole number only.
ConsentEnrolling or syncing a customer never turns on marketing and never undoes an opt-out.
Your idsexternalCustomerId, sourceEventId and reversalId (up to 128 characters) and a hold's reference are yours, and outlive retries.
TimeISO 8601 date-times.
CachingEvery answer carries Cache-Control: no-store.