Account

Buy credits

Starts a card checkout for a credit pack (100 or 1000 credits) on this account and returns its link and price. Send the account holder's country for what they will pay: subtotal, the sales tax or VAT as tax, and total, in that country's currency, or in currency when sent. The checkout opens with the same country and currency, and does not let them change the country. Without a country only the subtotal comes back, before tax: the checkout adds the tax, and may switch to the local currency, of the country they pick there. They open the link and pay, and the credits are added the moment the payment goes through. Credits never expire. Each call is a new single-use checkout. Prices before tax: 3.99 USD for 100 credits, 29.99 USD for 1000 credits.

post/api/v2/checkout

Request

  • Base URL: https://azurade.com
  • URL: https://azurade.com/api/v2/checkout
  • Auth: one of:
    • HTTP bearer
    • API key in header Authorization

Request body

countrystring

The account holder's country as an ISO 3166-1 alpha-2 code, such as DE. A code the checkout does not take, or a country payments are not available in, answers 400 invalid_billing

currencystring

ISO 4217 code, such as EUR, to price in instead of the country's own currency. A code the checkout does not take answers 400 invalid_billing

pack'100' | '1000' required

Credits in the pack

Response

Created

checkout_urlstring uri

Single-use card checkout for the account holder to open

countrystring

ISO 3166-1 alpha-2 code of the country priced for, which the checkout opens with and does not let the account holder change. Absent when none was sent

creditsnumber

Credits added when the payment goes through

currencystring

ISO 4217 code of the amounts

packstring
subtotalnumber

The price before tax, in currency

taxnumber

Sales tax or VAT in country, in currency. Absent when no country was sent: the checkout then adds the tax of the country the account holder picks

totalnumber

What the account holder pays, tax included, in currency. Absent when no country was sent

Changes

No recorded changes to this operation across all 1 revision of this API.