api.
one vouchmorph interface. the standards sit behind it as formats.
the description, openapi 3.1: openapi.yaml · openapi.json
/api/v1/hold.php
livewe call your test system. your path: place_hold (endpoints.source.place_hold)
hold an amount in the customer's account or wallet, under our reference, until expiry. the hold names the destination institution and person, so the signature binds who is paid. answer success (or hold_placed), your hold_reference (or authorization_reference) and if you have one hold_id; these may also sit one level down under data. the same reference twice is one hold.
signed like verify. a hold that times out after it left is an unknown outcome: we do not send it again.
- signed
- vouchmorph's certificate: signature
- clock
- at least 60 s to answer
- repeats
- same reference: one hold
request
POST /api/v1/hold.php
host: test.yourbank.example
Content-Type: application/json
Accept: application/json
X-Correlation-ID: SWAP_1795935600_3f9a2c7e51b04d18
X-API-KEY: $BANK_KEY
{
"action": "PLACE_HOLD",
"reference": "SWAP_1795935600_3f9a2c7e51b04d18",
"asset_type": "ACCOUNT",
"amount": 250,
"currency": "BWP",
"hold_reason": "PENDING_SWAP",
"destination_institution": "ZURUBANK",
"destination_identifier": "26771000002",
"destination_identifier_type": "phone",
"expiry": "2026-11-30 09:00:00",
"from_institution": "ORANGE",
"source_institution": "ORANGE",
"user_id": 7,
"source_identifier": "77100001",
"account_number": "77100001",
"phone": "77100001",
"wallet_phone": "77100001",
"national_id": "77100001",
"email": "77100001",
"timestamp": 1795935600,
"signature": "<base64 rsa-sha256>",
"requester": "VOUCHMORPH",
"certificate": "-----BEGIN CERTIFICATE-----\n…\n-----END CERTIFICATE-----"
}curl
# set BANK_KEY first: export BANK_KEY=...
curl -sS -X POST 'https://test.yourbank.example/api/v1/hold.php' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'X-Correlation-ID: SWAP_1795935600_3f9a2c7e51b04d18' \
-H "X-API-KEY: $BANK_KEY" \
--data-binary '{"action":"PLACE_HOLD","reference":"SWAP_1795935600_3f9a2c7e51b04d18","asset_type":"ACCOUNT","amount":250,"currency":"BWP","hold_reason":"PENDING_SWAP","destination_institution":"ZURUBANK","destination_identifier":"26771000002","destination_identifier_type":"phone","expiry":"2026-11-30 09:00:00","from_institution":"ORANGE","source_institution":"ORANGE","user_id":7,"source_identifier":"77100001","account_number":"77100001","phone":"77100001","wallet_phone":"77100001","national_id":"77100001","email":"77100001","timestamp":1795935600,"signature":"<base64 rsa-sha256>","requester":"VOUCHMORPH","certificate":"-----BEGIN CERTIFICATE-----\n…\n-----END CERTIFICATE-----"}'answer
200 OK
{
"success": true,
"hold_placed": true,
"hold_reference": "HLD-20261129-000231",
"hold_id": "231",
"status": "ACTIVE",
"message": "Hold placed"
}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
| name | in | needed | what it is |
|---|---|---|---|
| X-Correlation-ID | header | no | the 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