Skip to main content
POST
/
api
/
v1
/
payments
Create a payment intent
curl --request POST \
  --url https://dev-billing-api.iqraa.ai/api/v1/api/v1/payments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": 1000,
  "currency": "AED",
  "planCode": "PREMIUM_MONTHLY",
  "seats": 1,
  "userEmail": "[email protected]",
  "userName": "John Doe",
  "chargeCode": "EXTRA_STORAGE",
  "quota": 100,
  "isRenewable": true
}
'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
amount
number
required

The amount for the payment intent

Example:

1000

currency
string
required

The currency for the payment intent

Example:

"AED"

planCode
string

The plan code associated with the payment intent (for subscriptions)

Example:

"PREMIUM_MONTHLY"

seats
number

Number of seats (for subscriptions)

Example:

1

userEmail
string

The user email for the payment intent

userName
string

The user name for the payment intent

Example:

"John Doe"

chargeCode
string

The entitlement code for the addon

Example:

"EXTRA_STORAGE"

quota
number

The quota amount for the addon

Required range: x >= 1
Example:

100

isRenewable
boolean
default:false

Whether the addon can be automatically renewed

Example:

true

Response

Payment intent created successfully