Skip to main content
POST
/
api
/
v1
/
sub-entitlement
/
initialize
Initialize subscription entitlements from plan
curl --request POST \
  --url https://dev-entitlements-api.iqraa.ai/api/v1/api/v1/sub-entitlement/initialize \
  --header 'Content-Type: application/json' \
  --header 'x-admin-api-key: <x-admin-api-key>' \
  --data '
{
  "subscriptionId": "123e4567-e89b-12d3-a456-426614174000",
  "planId": "123e4567-e89b-12d3-a456-426614174001"
}
'

Headers

x-admin-api-key
string
required

The API key to access the admin API

Body

application/json
subscriptionId
string
required

The ID of the subscription to initialize

Example:

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

planId
string
required

The ID of the plan to initialize from

Example:

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

Response

Entitlements initialized successfully