Skip to main content
POST
/
api
/
v1
/
addon
Create a new addon
curl --request POST \
  --url https://dev-billing-api.iqraa.ai/api/v1/api/v1/addon \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-admin-api-key: <x-admin-api-key>' \
  --data '
{
  "chargeId": "123e4567-e89b-12d3-a456-426614174000",
  "subscriptionId": "123e4567-e89b-12d3-a456-426614174000",
  "quota": 100,
  "isRenewable": true
}
'

Authorizations

Authorization
string
header
required

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

Headers

x-admin-api-key
string
required

The API key to access the admin API

Body

application/json
chargeId
string
required

The ID of the charge

Example:

"123e4567-e89b-12d3-a456-426614174000"

subscriptionId
string
required

The subscription ID this addon is associated with

Example:

"123e4567-e89b-12d3-a456-426614174000"

quota
number
required

The quota amount for this addon

Required range: x >= 1
Example:

100

isRenewable
boolean
default:false
required

Whether the addon can be automatically renewed

Example:

true

Response

The addon has been successfully created.