api.
one vouchmorph interface. the standards sit behind it as formats.
the description, openapi 3.1: openapi.yaml · openapi.json
/v1/offices
livewe call your test system. your path: offices path on the connection page
your offices, for the seller's and the buyer's pickers. answer a json list of offices, each with an id. check connection needs at least one office with an id.
- signed
- your key in your header
- clock
- 30 s to answer
- repeats
- a read: safe to repeat
request
GET /v1/offices host: test.sprint.example Accept: application/json Authorization: Bearer $COURIER_KEY
curl
# set COURIER_KEY first: export COURIER_KEY=... curl -sS 'https://test.sprint.example/v1/offices' \ -H 'Accept: application/json' \ -H "Authorization: Bearer $COURIER_KEY"
answer
200 OK
[
{
"id": "GAB-01",
"name": "Gaborone main mall",
"town": "Gaborone"
},
{
"id": "FRA-02",
"name": "Francistown station",
"town": "Francistown"
}
]other answers
4xx your refusal: we keep your own error code when the body has a lowercase `code` (for example not_found), else http_<status>, and do not retry it as it is
{ "code": "already_dropped_off", "message": "The parcel is already at the counter." }5xx a 5xx, no answer in 30 s or an answer that is not json: courier_unavailable, tried again later
{ "code": "temporarily_unavailable" }
formats behind this interface
- jsonlive, every call
- iso 20022live, banks
- swift mtlive, banks
- iso 8583live, cards, atm
- fspiopoff, off until a partner needs it
you choose your format and how we sign in on your connection page. next: not in this build yet.
built to
- openapi 3.1, this file
- problem details · rfc 9457, settlement messages answer application/problem+json
- idempotency-key, a courier booking carries our reference as its Idempotency-Key
- mutual tls, offered for our calls to your test system
- oauth 2.0 client credentials · rfc 6749, offered for our calls to your test system