common/payments

Generic endpoints related to payments and finance: currencies, payment types, etc.

List payment cards

This endpoint returns a list of supported payment cards and their names in English. Examples of payment types are the different credit and debit cards. To get the full list call the endpoint passing an empty body. The codes returned are what is used as input and output for other endpoints.

SecurityHTTP: BearerAuth
Request
header Parameters
X-Affiliate-Id
required
integer

Affiliate identifier

post
/common/payments/cards
Responses

200

Successful response.

Response Schema: application/json
request_id
string

Uniquely identifies the request. Please provide this identifier when contacting support.

Array of objects
Response samples
application/json
{ "request_id": "01fr9ez700exycb98w90w5r9sh", "data": [ "..." ] }

List currencies

This endpoint returns a list of currency codes and their names in the selected languages. To get the full list call the endpoint passing an empty body. The currency codes returned are what is used as input and output for other endpoints.

SecurityHTTP: BearerAuth
Request
header Parameters
X-Affiliate-Id
required
integer

Affiliate identifier

Request Body schema: application/json
languages
Array of strings
Default: ["en-gb"]
post
/common/payments/currencies
Request samples
application/json
{ "languages": [ "en-gb", "zh-cn" ] }
Responses

200

Successful response.

Response Schema: application/json
request_id
string

Uniquely identifies the request. Please provide this identifier when contacting support.

Array of objects
Response samples
application/json
{ "request_id": "01fr9ez700exycb98w90w5r9sh", "data": [ "..." ] }