πŸ”’Request crypto payment

This is an authenticated endpoint

Request crypto payment

post

An endpoint for initiating a crypto payment request. Upon success, a unique paymentUrl is provided in the response which can be served within an iframe.

Alternatively, you can redirect to the payment URL and if you have supplied a redirectUrl in the request, we will navigate the end-user back to your website upon payment completion (when we have received a deposit against this payment request). There is also a button which the end-user can use if they wish to get redirected back sooner.

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

^FRX-API api-key=[^,]+,signature=[^,]+,timestamp=[\d]+$

Body
clientPaymentIdstringRequired

Payment identifier provided in the request.

businessIdstring Β· uuidRequired
typestring Β· enumOptionalPossible values:
displayCurrencystring Β· enumOptional

Fiat currency. You should provide this or depositCurrency.

Possible values:
displayAmountstringOptional

Amount in displayCurrency that the user wants to deposit. Required if displayCurrency is provided.

depositCurrencystring Β· enumOptional

Cryptocurrency. You should provide this or displayCurrency.

Possible values:
depositAmountstringOptional

Amount in depositCurrency that the user wants to deposit. Required if depositCurrency is provided.

networkstring Β· enumOptional

Cryptocurrency network. Required if depositCurrency is provided.

Possible values:
rateTypestring Β· enumOptional
  • ONE_TIME payments: FIXED or FLOATING.
  • REUSABLE payments: You can omit this parameter. Reusable payments are set to FLOATING.
Possible values:
expirationMinutesinteger Β· int64Optional
  • ONE_TIME payments: Indicates the timeframe in which the deposit should happen. A value of 0 will set the payment expiry to 7 days. Defaults to 30 min.
  • REUSABLE payments: You can omit this parameter. Reusable payments are set to non-expiry.
localestringRequired

IETF BCP 47 language tag, e.g. 'en-US', 'fr-FR'. Alternatively, the locale string can be submitted with an '_' instead of '-', e.g. 'en_US' or 'fr_FR' or as an ISO 639-1 language code, e.g. 'en' or 'fr'. Supported languages:

  • Arabic (ar)
  • Bulgarian (bg)
  • Chinese (zh)
  • English (en)
  • French (fr)
  • German (de)
  • Japanese (ja)
  • Lithuanian (lt)
  • Portuguese (pt)
  • Russian (ru)
  • Spanish (es)
  • Turkish (tr)
redirectUrlstringOptional

Custom URL where the user will be redirected after payment completion.

redirectModestring Β· enumOptional

Specifies how to open the redirect URL

  • PARENT (default): Opens the redirect URL in the parent browsing context. Refers to HTML anchor target attribute value _top.
  • SELF: Opens the redirect URL in the current browsing context. Refers to HTML anchor target attribute value _self.
Possible values:
Responses
200

Returns the created payment.

application/json
post
/api/v1/payments
200

Returns the created payment.

Last updated