api.
one vouchmorph interface. the standards sit behind it as formats.
the description, openapi 3.1: openapi.yaml · openapi.json
/v1/bookings
livewe call your test system. your path: book path on the connection page
a booking. our reference is the clientReference and also the Idempotency-Key, so a retry never books twice: answer the first booking again. answer your courierReference. the body holds made-up id numbers and phone numbers in the sandbox; we never log it.
- signed
- your key in your header
- clock
- 30 s to answer
- repeats
- idempotency-key: books once
request
POST /v1/bookings
host: test.sprint.example
Accept: application/json
Content-Type: application/json
Authorization: Bearer $COURIER_KEY
Idempotency-Key: VM-SP-20261129-0042
{
"clientReference": "VM-SP-20261129-0042",
"sender": {
"name": "Thato Test",
"idNumber": "000000001",
"phone": "+26770000001"
},
"receiver": {
"name": "Kagiso Test",
"idNumber": "000000002",
"phone": "+26770000002",
"mode": "collect",
"officeId": "FRA-02"
},
"item": {
"description": "A made-up parcel"
},
"deliveryChargePaidBy": "buyer"
}curl
# set COURIER_KEY first: export COURIER_KEY=...
curl -sS -X POST 'https://test.sprint.example/v1/bookings' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $COURIER_KEY" \
-H 'Idempotency-Key: VM-SP-20261129-0042' \
--data-binary '{"clientReference":"VM-SP-20261129-0042","sender":{"name":"Thato Test","idNumber":"000000001","phone":"+26770000001"},"receiver":{"name":"Kagiso Test","idNumber":"000000002","phone":"+26770000002","mode":"collect","officeId":"FRA-02"},"item":{"description":"A made-up parcel"},"deliveryChargePaidBy":"buyer"}'answer
200 OK
{
"courierReference": "SPX-77120",
"clientReference": "VM-SP-20261129-0042",
"status": "booked"
}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" }
parameters
| name | in | needed | what it is |
|---|---|---|---|
| Idempotency-Key | header | yes | our reference, the same as clientReference |
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