POST
/
payments
/
create-intent

Authorizations

Authorization
string
headerrequired

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
amount
integer
required

The amount in lowest count unit. e.g.: For USD 1, amount is 100 representing 100 cents (The minimum amount should be greater than 1 USD)

currency
string
required

Three letter abbreviation of the currency. Refer supported currencies

receiptId
string

Your identifier of the order

customerDetails
object
required

Details about the customer

description
string

The description of the order, if any

callbackUrl
string
required

The URL we will callback to with the order status once it finishes.

Response

200 - application/json
amount
integer

The amount in lowest count unit (e.g., cents for USD)

currency
string

Three-letter currency code

presentmentCurrency
string

The currency that the customer paid in

receiptId
string

Your identifier for the order

mode
string

The mode in which the transaction was made (e.g., TEST or LIVE)

customerDetails
object
description
string

Description of the order, if any

callbackUrl
string

Callback URL to notify order status

createdAt
string

Timestamp of when the intent was created

status
enum<string>

Current status of the intent

Available options:
CREATED,
INCOMPLETE,
SUCCESS,
FAILED,
REFUNDED,
DISPUTED,
DISPUTE_WON
xIntentId
string

Unique identifier of the intent