Cancel a subscription now or at a future date
Use this endpoint to cancel a subscription now or at a future date, given the unique identifier allocated by Bango for the subscription. This endpoint returns the updated subscription record.
If set to a future date, API consumers might want to show users
that date. In the updated record, use the cancelledDate field.
If you set a future date, either using requestedDate or by
setting entitlementPolicy to END_OF_TERM, the subscription
remains in state ACTIVE and the cancelledDate field is set.
For these subscriptions, you can undo the cancellation
(“uncancel”) using POST /subscription/{subscriptionId}/uncancel. Subscriptions in state
CANCELLED may not be uncancelled.
Note that there is no automatic refund of advance payments if a subscription is cancelled before the next billing date.
Authorizations
Base64 encoding of username:password as supplied by Bango Support
Headers
An arbitrary, optional, globally unique identifier for the request. If present, this ID is used for idempotency.
Path Parameters
The unique identifier generated by Bango for a subscription. The unique identifier generated by Bango for a subscription. This is a globally unique, opaque string
"123e4567-e89b-12d3-a456-426614174000"
Query Parameters
The YYYY-MM-DD UTC date on which the subscription should end.
Ignored if entitlementPolicy is set.
If this date is in the past, equivalent to entitlementPolicy IMMEDIATE.
IMMEDIATE - is hard cancel, also revoke (user does not have more access to the service) . END_OF_TERM - is soft cancel (user still has access for the entire paid period)
IMMEDIATE, END_OF_TERM 
