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

Get the available payment methods

If you provide the User-Identifier or User-Authorization header, the limits returned will take into account the user limits (max amount per transaction, not the remaining daily limit).

GET/api/v1/sell/payment-methods

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/sell/payment-methods \  -H "Authorization: Bearer $BTCD_PARTNER_TOKEN"
Choose an environment to run this.

Response

Returns a list of available payment methods.
{  "paymentMethods": [    {      "paymentMethod": "bankTransfer",      "label": "Bank Transfer",      "isEnabled": true,      "accountTypes": [        "iban",        "sofort",        "paypal"      ],      "context": [        {          "type": "acceptedCards",          "value": [            "visa",            "mastercard"          ]        },        {          "type": "identifier",          "value": "checkout-identifier-123"        }      ]    }  ]}

Responses

200Returns a list of available payment methods.
400A list of possible errors for this endpoint.

Body of the success response

paymentMethodsobject[]

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