Upgrade existing subscription
Upgrade an existing subscription by providing a new plan key and the subscription ID.Name | Type | Description |
---|
uniquePlanKey | string | The plan key to which the subscription should be upgraded. |
subscriptionId | string | ID of the subscription to be upgraded. |
Example Request#
{
"uniquePlanKey": "zap_mail_growth",
"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 'x-workspace-key;' \
--header 'x-service-provider;' \
--header 'Content-Type: application/json' \
--data-raw '{
"lookupKey": "",
"subscriptionId": "sub_1P8ihuFgljsDeiyre9KRflk1q"
}'
Responses
application/json Modified at 2025-10-14 09:23:32