8️⃣Card Authorisations
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.
Simulates card authorisation
Unique card ID
HTTP message signature
HTTP message signature input
Idempotency key (UUID)
Content digest
Amount to be authorised
10.0Authorisation currency (ISO-4217)
EURWhether to capture the authorisation immediately
trueSuccessful operation
Invalid request
Not authorised
Card not found
Internal error
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}.
Retrieves authorisation's details
Unique authorisation ID
HTTP message signature
HTTP message signature input
Successful operation
Invalid request
Not authorised
Authorisation not found
Internal error
And then making a GET request to /transactions/{transactionId} with the same ID.
Retrieves transaction's details
Unique transaction ID
HTTP message signature
HTTP message signature input
Successful operation
Invalid request
Not authorised
Transaction not found
Internal error
Last updated