Skip to main content
PATCH
/
api
/
v1
/
addon
/
{id}
Update an addon
curl --request PATCH \
  --url https://dev-billing-api.iqraa.ai/api/v1/api/v1/addon/{id} \
  --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

Path Parameters

id
string
required

Body

application/json
chargeId
string

The ID of the charge

Example:

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

subscriptionId
string

The subscription ID this addon is associated with

Example:

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

quota
number

The quota amount for this addon

Required range: x >= 1
Example:

100

isRenewable
boolean
default:false

Whether the addon can be automatically renewed

Example:

true

Response

Addon updated successfully