v1

latestOpenAPI 3.0.0Apache 2.02026-07-142008071.1 MB
Subscriptions

CancelSubscription

Sets the canceled_date field to the end of the active billing period. After this date, the status changes from ACTIVE to CANCELED.

post/v2/subscriptions/{subscription_id}/cancel

Path parameters

subscription_idstring required

The ID of the subscription to cancel.

Response

Success

Example response

{
  "subscription": {
    "canceled_date": "2020-05-01",
    "card_id": "ccof:qy5x8hHGYsgLrp4Q4GB",
    "created_at": "2020-08-03T21:53:10Z",
    "customer_id": "CHFGVKYY8RSV93M5KCYTG4PN0G",
    "id": "910afd30-464a-4e00-a8d8-2296eEXAMPLE",
    "location_id": "S8GWD5R9QB376",
    "paid_until_date": "2020-05-01",
    "plan_id": "6JHXF3B2CW3YKHDV4XEM674H",
    "start_date": "2020-04-24",
    "status": "ACTIVE",
    "timezone": "America/Los_Angeles",
    "version": 1594311617331
  }
}