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/buy/payment-methods/{type}
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/buy/payment-methods/{type} \ -H "Authorization: Bearer $BTCD_PARTNER_TOKEN"Choose an environment to run this.
Response
Returns a list of available payment methods.
{ "paymentMethods": [ { "code": "creditCard", "label": "Credit card", "psp": "cm", "limit": "1000.01", "fees": { "fixed": "0.35", "percentage": "1.9" }, "expirationPeriod": "420", "openInNewTab": true, "context": [ { "type": "acceptedCards", "value": [ "visa", "mastercard" ] }, { "type": "identifier", "value": "checkout-identifier-123" } ] } ], "countries": { "nl": [ "iDeal", "creditCard" ], "be": [ "bancontact", "creditCard" ], "fr": [ "creditCard", "bankTransfer" ] }}Parameters
typestring (path)required
You can choose to receive all payment methods per country, or only the preferred ones for each country.
Can be one ofallpreferred
Responses
200Returns a list of available payment methods.400A list of possible errors for this endpoint.Body of the success response
paymentMethodsobject[]
countriesarray[]
The payment methods per country.
Every failure answers with a message and a code. Switch on the code — messages are written for people and can change.