SANDBOXTest systems and made-up people only. No real money.
SANDBOXapi

api.

one vouchmorph interface. the standards sit behind it as formats.

the description, openapi 3.1: openapi.yaml · openapi.json

POST

/api/v1/couriers/{courierId}/events

live

you call us at https://vouchmorphdeveloper.com

send each status change as it happens. an update only prompts us to read your track endpoint: that read decides whether money locks, is paid to the seller or is released to the buyer. the update's own word never moves money.

sign it: x-courier-signature is sha256= plus the hex hmac-sha256 of <x-courier-timestamp>.<raw body>, keyed with your signing secret (made on the connection page). the timestamp is unix seconds and must be within 5 minutes of our clock. docs/sandbox/tools/sign-update.sh (and .ps1) sign a body file and print the curl command.

the same eventId again answers 200 with repeated: true; an event id is remembered only once the update was handled, so a failed try can be sent again. a status word missing from your status words moves no money and raises an alarm at vouchmorph. the body is at most 65536 bytes.

signed
hmac-sha256: x-courier-signature
clock
timestamp within 5 minutes
repeats
same eventId stored once

request

POST /api/v1/couriers/SPRINT_BW/events
x-courier-timestamp: 1795935600
x-courier-signature: sha256=5d1c…e7a0
content-type: application/json

{
  "eventId": "evt-000418",
  "courierReference": "SPX-77120",
  "clientReference": "VM-SP-20261129-0042",
  "occurredAt": "2026-11-29T09:12:44+02:00",
  "status": "received",
  "place": "Gaborone counter"
}
curl
# signed on your machine: set COURIER_SIGNING_SECRET first (export COURIER_SIGNING_SECRET=...)
# sign-update.sh is in docs/sandbox/tools/ (sign-update.ps1 for powershell)
cat > body.json <<'EOF'
{"eventId":"evt-000418","courierReference":"SPX-77120","clientReference":"VM-SP-20261129-0042","occurredAt":"2026-11-29T09:12:44+02:00","status":"received","place":"Gaborone counter"}
EOF
sh sign-update.sh body.json 'https://vouchmorphdeveloper.com/api/v1/couriers/SPRINT_BW/events' | sh

answer

200 OK

{
  "success": true,
  "error": null,
  "data": {
    "eventId": "evt-000418",
    "status": "received",
    "signal": "received",
    "gated": true,
    "outcome": "locked",
    "repeated": false
  }
}

other answers

  • 400 malformed_update: not json, a field missing, occurredAt not a time or status not a status word
    {
      "success": false,
      "error": {
        "code": "malformed_update",
        "message": "The update's eventId is missing",
        "request_id": "5f0c1e9a7b3d2468"
      },
      "data": null
    }
  • 401 bad_signature: no signature or a wrong one; stale_update: signed more than 5 minutes from now
    # bad_signature
    {
      "success": false,
      "error": {
        "code": "bad_signature",
        "message": "The update's signature is wrong",
        "request_id": "5f0c1e9a7b3d2468"
      },
      "data": null
    }
    
    # stale_update
    {
      "success": false,
      "error": {
        "code": "stale_update",
        "message": "The update was signed more than 5 minutes from now",
        "request_id": "5f0c1e9a7b3d2468"
      },
      "data": null
    }
  • 404 unknown_courier: no courier has this id; not_found: no such route
    {
      "success": false,
      "error": {
        "code": "unknown_courier",
        "message": "No courier has this id.",
        "request_id": "5f0c1e9a7b3d2468"
      },
      "data": null
    }
  • 405 method_not_allowed: the Allow header names the method
    {
      "success": false,
      "error": {
        "code": "method_not_allowed",
        "message": "Send the update with POST."
      },
      "data": null
    }
  • 413 payload_too_large: the body is over 65536 bytes
    {
      "success": false,
      "error": {
        "code": "payload_too_large",
        "message": "The body is larger than 65536 bytes.",
        "request_id": "5f0c1e9a7b3d2468"
      },
      "data": null
    }
  • 500 internal_error: something went wrong at vouchmorph; send it again
    {
      "success": false,
      "error": {
        "code": "internal_error",
        "message": "Something went wrong at VouchMorph. Send the update again.",
        "request_id": "5f0c1e9a7b3d2468"
      },
      "data": null
    }
  • 503 courier_not_configured: this courier is not set up at vouchmorph yet; courier_unavailable: your track endpoint could not be read, so send the update again
    # courier_unavailable
    {
      "success": false,
      "error": {
        "code": "courier_unavailable",
        "message": "The courier's tracking could not be read. Send the update again.",
        "request_id": "5f0c1e9a7b3d2468"
      },
      "data": null
    }
    
    # courier_not_configured
    {
      "success": false,
      "error": {
        "code": "courier_not_configured",
        "message": "This courier is not set up at VouchMorph yet.",
        "request_id": "5f0c1e9a7b3d2468"
      },
      "data": null
    }

parameters

nameinneededwhat it is
courierIdpathyesyour courier id, as on your connection page
x-courier-timestampheaderyeswhen you signed the update, in unix seconds
x-courier-signatureheaderyessha256= plus the hex hmac-sha256 of "<timestamp>.<raw body>" with your signing secret

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