Cancel Subscription (Turn off Auto Renewal)
This API allows the user to cancel an active subscription (turn off auto renewal for the subscription). This is a soft cancellation wherein the benefits remain valid until the end time of the subscription.
- Type: string
User - Agent requiredUsed to identify the software, device, and application initiating the request, providing information about the client to the server. For details, see User Agent.
- Type: string
Accept requiredAdvertises which content types the client can understand
- Type: string
Accept - Language Preferred language
- Type: string
Content - Type requiredSet this header to application/json
- Type: string
Authorization requiredUsed to authorize the request with access_token. It should be supplied as
Bearer ACCESS_TOKEN_GOES_HERE. Note: When authentication is performed using Advanced Authentication, you must include theid_tokenin theid-tokenheader and theaccess_tokenin theAuthorizationheader. See Access Punchh APIs Using Access and ID tokens - Type: string
x -pch -digest requiredSignature generated using the request path, body, and OAuth secret provided by the business. For details, see signature.
- Type: string
id -token A token that contains identity information about the authenticated user. It is used to verify the user’s identity and is required only when authentication is performed using Advanced Authentication. This token alone does not grant access to Punchh APIs. To access the APIs, you must include the
id_tokenin theid-tokenheader and theaccess_tokenin theAuthorizationheader. See Access Punchh APIs Using Access and ID tokens
- Type: string
cancellation _feedback requiredSubjective feedback that can be captured from guests when they cancel a subscription from the mobile application. The maximum length supported is 225 characters.
- Type: integer
cancellation _reason _id requiredUnique ID of the business-configured cancellation reason that a guest selects when cancelling a subscription. You can find cancellation reason IDs under the subscriptions object in the Program Meta API response.
- Type: string
client min length:1requiredOAuth client ID provided by the business
- Type: string
subscription _id requiredSystem-generated unique ID of the subscription of the guest that needs to be cancelled
- Type: array string[]
200 Successful Response | 200 OK
- Type: object
400 - Type: object
errors
- Type: object
401 - Type: object
errors
- Type: object
412 - Type: object
errors
- Type: object
422 - Type: object
errors
[
"Subscription auto renewal canceled."
]