v3

Payment methods for a direction

How the customer can pay for a buy. The sell direction is not served yet — no upstream service lists payout methods — and answers 501 rather than an empty list, which would wrongly read as 'none available'.

GET/api/v3/payment-methods

Send your own credential. No customer is involved.

How authentication works
Yours
x-api-keyorAuthorization: Bearer

Which methods a customer can pay with, narrowed by country when you pass one. Availability depends on your account and on where the customer is, so ask per checkout rather than caching one answer for everyone.

A 501 is not an empty list

The sell direction is not served yet, and it answers 501 deliberately rather than 200 with nothing in it. An empty list would read as "this customer has no payout options", which is a different and wrong thing to tell them. Treat the 501 as "not built yet" and do not show a chooser at all.

The codes here are the ones every other endpoint takes. The full set, with which ones can pay out, is on payment methods.

Language

Environment

Credentials

Your credential

Choose an environment first.

cURL request
curl -X GET https://api.btcdirect.eu/api/v3/payment-methods?direction=&countryCode=&countryCodes= \  -H "x-api-key: $BTCD_API_KEY"
Choose an environment to run this.

Response

The available methods.
{  "message": "The available methods."}

Parameters

directionstring (query)

Can be one ofbuysell

countryCodestring (query)

One country. Defaults to the home market. Mutually exclusive with countryCodes.

countryCodesstring (query)

Several countries, comma-separated, answered as a `countries` array of `{countryCode, paymentMethods}` in the order requested — a different response shape from countryCode's. Buy only. Every code must be one the payment-method catalogue is published for, and no code may repeat; one bad code refuses the whole request rather than returning a matrix that is quietly short a country.

Responses

200The available methods.
400Unknown direction, or an unusable countryCodes list.
501The sell direction is not implemented yet.
503`maintenance` — full maintenance is on, and every endpoint refuses every request until it ends (`endsAt`, when it has an end). Nothing is wrong with the request and nothing was done; the same request is accepted afterwards. Told apart from any other 503 by `code`.

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