Upgrade existing subscription
Upgrade Subscription#
This endpoint allows you to upgrade an existing subscription by providing a new plan key and the subscription ID.Request Body#
Name | Type | Description |
---|
uniquePlanKey | string | The plan key to which you want to upgrade. |
subscriptionId | string | The subscription ID that you want to upgrade. |
Example Request#
{
"uniquePlanKey": "premium-plan-2024",
"subscriptionId": "sub_123456789"
}
Request
Body Params application/json
{
"lookupKey": "",
"subscriptionId": "sub_1P8ihuFgljsDeiyre9KRflk1q"
}
Request Code Samples
curl --location --request POST 'https://api.zapmail.ai/api/v2/subscriptions/upgrade' \
--header 'x-auth-zapmail: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"lookupKey": "",
"subscriptionId": "sub_1P8ihuFgljsDeiyre9KRflk1q"
}'
Responses
application/json Modified at 2025-06-27 10:25:02