api.
one vouchmorph interface. the standards sit behind it as formats.
the description, openapi 3.1: openapi.yaml · openapi.json
/api/v1/deposit/direct.php
livewe call your test system. your path: process_deposit (endpoints.destination_deposit.process_deposit)
pay an amount into an account, wallet or card at your bank, with the source bank's signed proof: source_verification and source_hold are the source's own signed answers. check the source's signature, and that its hold names this person, before you credit. the destination is account_number (an account), phone and wallet_phone (a wallet) or card_token (a card), and always destination_identifier. answer success (or credited, or processed) and your transaction_reference.
- signed
- vouchmorph's certificate + the source's proof
- clock
- at least 60 s to answer
- repeats
- same reference: credited once
request
POST /api/v1/deposit/direct.php
host: test.yourbank.example
Content-Type: application/json
Accept: application/json
X-Correlation-ID: SWAP_1795935600_3f9a2c7e51b04d18
X-API-KEY: $BANK_KEY
{
"action": "PROCESS_DEPOSIT_WITH_PROOF",
"reference": "SWAP_1795935600_3f9a2c7e51b04d18",
"amount": 250,
"currency": "BWP",
"source_verification": {
"verified": true,
"signature": "<the source's signature>"
},
"source_hold": {
"hold_reference": "HLD-20261129-000231",
"signature": "<the source's signature>"
},
"source_details": [],
"from_institution": "ORANGE",
"source_institution": "ORANGE",
"to_institution": "ZURUBANK",
"destination_institution": "ZURUBANK",
"bank": "ORANGE",
"destination_asset_type": "WALLET",
"asset_type": "WALLET",
"user_id": 7,
"source_identifier": "77100001",
"source_identifier_type": "account",
"source_account": "77100001",
"destination_identifier": "26771000002",
"destination_identifier_type": "phone",
"phone": "26771000002",
"wallet_phone": "26771000002",
"beneficiary_phone": "26771000002",
"hold_reference": "HLD-20261129-000231",
"_skip_hold": true,
"timestamp": 1795935640,
"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/deposit/direct.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":"PROCESS_DEPOSIT_WITH_PROOF","reference":"SWAP_1795935600_3f9a2c7e51b04d18","amount":250,"currency":"BWP","source_verification":{"verified":true,"signature":"<the source'\''s signature>"},"source_hold":{"hold_reference":"HLD-20261129-000231","signature":"<the source'\''s signature>"},"source_details":[],"from_institution":"ORANGE","source_institution":"ORANGE","to_institution":"ZURUBANK","destination_institution":"ZURUBANK","bank":"ORANGE","destination_asset_type":"WALLET","asset_type":"WALLET","user_id":7,"source_identifier":"77100001","source_identifier_type":"account","source_account":"77100001","destination_identifier":"26771000002","destination_identifier_type":"phone","phone":"26771000002","wallet_phone":"26771000002","beneficiary_phone":"26771000002","hold_reference":"HLD-20261129-000231","_skip_hold":true,"timestamp":1795935640,"signature":"<base64 rsa-sha256>","requester":"VOUCHMORPH","certificate":"-----BEGIN CERTIFICATE-----\n…\n-----END CERTIFICATE-----"}'answer
200 OK
{
"success": true,
"credited": true,
"transaction_reference": "DEP-20261129-000877",
"status": "COMPLETED",
"new_balance": 1450.0
}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