Delete specific subscription for an app

Use this API to delete specific subscription for an app

Request Parameters

KeyValueDescriptionData TypesRequire/OptionalConstraints
Authorization{{PARTNER_APP_TOKEN}}Partner app access token issued post partner loginStringRequiredShould be a valid Partner app access token belonging to the passed appId
appId{{App_ID}}App ID for the app to be deletedStringRequiredValid app ID
SUBSCRIPTION_ID2xxxxSubscription IDStringRequiredId of the subscription to be deleted

Sample Request

curl --location --request DELETE 'https://partner.gupshup.io/partner/app/{{APP_ID}}/subscription/{{SUBSCRIPTION_ID}}' \
--header 'Authorization: {{PARTNER_APP_TOKEN}}'

Sample Response

Status Codes

Status CodeResponseComments
Success
204Success when subscriptions are deleted. No content.
Error
400{
"status": "error",
"message": "API key is not associated with partner"
}
Error with respect to API Key
429{
"status": "error",
"message": "Too Many Requests"
}
Rate limit exceeded
Language
Click Try It! to start a request and see the response here!