Skip to main content
PATCH
/
api
/
v1
/
subscriptions
Update subscription
curl --request PATCH \
  --url https://dev-billing-api.iqraa.ai/api/v1/api/v1/subscriptions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "planCode": "PREMIUM_MONTHLY",
  "userEmail": "[email protected]",
  "userName": "John Doe"
}
'

Authorizations

Authorization
string
header
required

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

Body

application/json
planCode
string
required

The code of the subscription plan

Example:

"PREMIUM_MONTHLY"

userEmail
string

The email of the user

userName
string

The name of the user

Example:

"John Doe"

Response

Subscription updated successfully