v2
You are reading v1 & v2. v1 and v2 are deprecated. They keep working and are still supported, but new integrations should use v3.

Requests the payment status of a transaction from the PSP

Payment

GET/api/v1/payment/{entranceCode}/status

Send two credentials: your own, and the customer's.

How authentication works
Either
Authorization: BearerorUser-Authorization: Bearer

Language

Environment

Credentials

Your credential, or the customer's

Choose an environment first.

cURL request
curl -X GET https://api.btcdirect.eu/api/v1/payment/{entranceCode}/status?redirectResult= \  -H "Authorization: Bearer $BTCD_PARTNER_TOKEN"
Choose an environment to run this.

Response

The last recorded status for this payment.
{  "status": "Open",  "intermediateStatus": "three_ds_frictionless",  "context": {}}

Parameters

entranceCodestring (path)required

The entrance code of the transaction.

redirectResultstring (query)

URL encoded Base64 redirect result from Adyen.

Responses

200The last recorded status for this payment.
400A list of possible errors for this endpoint.

Body of the success response

statusstringrequired

Can be one ofOpenRefusedProcessingSuccessFailedCancelledExpiredRefunded

intermediateStatusone of

The intermediate status of the payment.

Defaultnull

Examplethree_ds_frictionless

contextobject

The context that defines the payment status or the intermediate payment status

Defaultnull

Every failure answers with a message and a code. Switch on the code — messages are written for people and can change.