/v1/payments/widget

Create a payment and return a widget url. To redirect the user to the payment page. Idempotent on external_id: repeating a create with the same external_id, amount and currency returns the payment created first instead of a second one.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
number
required
≤ 1000000

The amount of the payment

string
required
length ≥ 1

The currency code of the payment

string
required
length between 1 and 255

The id of the payment in your system

string
enum

The payer of the fee. If payer is payer, the fee will added to the amount.

Allowed:
metadata
object
uri

The url to call when the payment is completed

boolean
Defaults to false

Create a sandbox payment: the payer is only offered testnet currencies, and the payment is excluded from stats and fees. Cannot be changed after creation.

uri

The url to redirect the user to when the payment is completed

uri

The url to redirect the user to when the payment is failed

Responses

400

Invalid request

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json