api.
one vouchmorph interface. the standards sit behind it as formats.
the description, openapi 3.1: openapi.yaml · openapi.json
/api/Authorize.php
livewe call your test system. your path: place_hold of a card acquirer (endpoints.source.place_hold)
a hold on a card through your acquirer, as json over https. the card comes as a test card token (card_token, also source_identifier). answer success, authorization_reference and authorization_code, at the top or under data; no authorization reference counts as a decline. iso 8583 is the other way to carry it: see the iso 8583 link.
- signed
- vouchmorph's certificate: signature
- clock
- at least 60 s to answer
- repeats
- same reference: one authorization
request
POST /api/Authorize.php
host: test.youracquirer.example
Content-Type: application/json
Accept: application/json
X-Correlation-ID: AUTH_6748a1f2c3d4e
X-API-Key: $ACQUIRER_KEY
{
"action": "AUTHORIZE",
"reference": "AUTH_6748a1f2c3d4e",
"amount": 250,
"currency": "BWP",
"card_token": "tok_test_4111",
"source_identifier": "tok_test_4111",
"expiry": "2026-12-06 09:12:44",
"timestamp": 1795935600,
"signature": "<base64 rsa-sha256>",
"requester": "VOUCHMORPH",
"certificate": "-----BEGIN CERTIFICATE-----\n…\n-----END CERTIFICATE-----"
}curl
# set ACQUIRER_KEY first: export ACQUIRER_KEY=...
curl -sS -X POST 'https://test.youracquirer.example/api/Authorize.php' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'X-Correlation-ID: AUTH_6748a1f2c3d4e' \
-H "X-API-Key: $ACQUIRER_KEY" \
--data-binary '{"action":"AUTHORIZE","reference":"AUTH_6748a1f2c3d4e","amount":250,"currency":"BWP","card_token":"tok_test_4111","source_identifier":"tok_test_4111","expiry":"2026-12-06 09:12:44","timestamp":1795935600,"signature":"<base64 rsa-sha256>","requester":"VOUCHMORPH","certificate":"-----BEGIN CERTIFICATE-----\n…\n-----END CERTIFICATE-----"}'answer
200 OK
{
"success": true,
"message": "Authorized",
"data": {
"authorization_reference": "AUTH-REF-55120",
"authorization_code": "A1B2C3",
"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
| 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