Card Authorisations
Last updated
Last updated
This step assumes you have successfully issued a card using Card Issuancestep of this guide
Now that you have created a customer account and issued a first card, you are able to simulate card authorisations and process simulated transactions. To do so, you need to use /simulator/cards/{cardId}/authorisation
POST
request.
Let's say we want to create an authorisation for β¬20 and automatically capture the funds:
If everything was successful, you will receive a response with status 201 (Created)
which looks similar to the following:
As automatic capture happens asynchronously, you can verify it has been successfully captured and a new transaction created and processed by first making a GET
request to /authorisations/{authorisationId}
.
And then making a GET
request to /transactions/{transactionId}
with the same ID.
Simulates card authorisation
/simulator/cards/{cardId}/authorisation
Unique card ID
HTTP message signature
HTTP message signature input
Idempotency key (UUID)
Content digest
Amount to be authorised
Whether to capture the authorisation immediately
Authorisation currency (ISO-4217)
Retrieves authorisation's details
/authorisations/{authorisationId}
Unique authorisation ID
HTTP message signature
HTTP message signature input
Retrieves transaction's details
/transactions/{transactionId}
Unique transaction ID
HTTP message signature
HTTP message signature input