cURL
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": "john.doe@example.com", "userName": "John Doe" } '
Updates an existing subscription. Requires authentication and admin privileges if organization ID is present.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The code of the subscription plan
"PREMIUM_MONTHLY"
The email of the user
"john.doe@example.com"
The name of the user
"John Doe"
Subscription updated successfully