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/verify_account.php

live

we call your test system. your path: verify_account (endpoints.destination_deposit.verify_account)

before we pay into an account or wallet at your bank: does it exist and can it take money? the identifier comes as account_identifier with identifier_type, and also as account_number, phone, wallet_phone and msisdn for systems that look up by those. answer success, verified and if you can account_name (or holder_name), account_type, currency and status.

signed
your key in your header
clock
30 s to answer
repeats
moves nothing: safe to repeat

request

POST /api/v1/verify_account.php
host: test.yourbank.example
Content-Type: application/json
Accept: application/json
X-Correlation-ID: VERIFY_8c1f04a2e9b3
X-API-KEY: $BANK_KEY

{
  "action": "VERIFY_ACCOUNT",
  "account_identifier": "26771000002",
  "identifier_type": "phone",
  "destination_asset_type": "WALLET",
  "asset_type": "WALLET",
  "timestamp": 1795935600,
  "reference": "VERIFY_8c1f04a2e9b3",
  "requester": "VOUCHMORPH",
  "phone": "26771000002",
  "wallet_phone": "26771000002",
  "msisdn": "26771000002",
  "account_number": "26771000002"
}
curl
# set BANK_KEY first: export BANK_KEY=...
curl -sS -X POST 'https://test.yourbank.example/api/v1/verify_account.php' \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'X-Correlation-ID: VERIFY_8c1f04a2e9b3' \
  -H "X-API-KEY: $BANK_KEY" \
  --data-binary '{"action":"VERIFY_ACCOUNT","account_identifier":"26771000002","identifier_type":"phone","destination_asset_type":"WALLET","asset_type":"WALLET","timestamp":1795935600,"reference":"VERIFY_8c1f04a2e9b3","requester":"VOUCHMORPH","phone":"26771000002","wallet_phone":"26771000002","msisdn":"26771000002","account_number":"26771000002"}'

answer

200 OK

{
  "success": true,
  "verified": true,
  "account_name": "Kagiso Test",
  "account_type": "WALLET",
  "currency": "BWP",
  "status": "active"
}

other answers

  • 4xx a refusal: the call failed, with your `message` shown to staff. say why in `message`
    {
      "success": false,
      "message": "Insufficient funds"
    }
  • 5xx a 5xx: failed. a 502 or 504, a timeout after the request left or a cut-short answer is an unknown outcome: never sent again, confirmed with you later
    {
      "success": false,
      "message": "Service unavailable"
    }

parameters

nameinneededwhat it is
X-Correlation-IDheadernothe body's reference, when it has one

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