Cancels a subscription order.
Cancellation resource.
Cancellation created.
Location | string <uri> Location of the related resource. Example: "https://api.rebilly.com/example" |
subscriptionId required | string <= 50 characters ID of the canceled subscription order. | ||||||||||||||||||
churnTime required | string <date-time> Date and time when the subscription is deactivated. | ||||||||||||||||||
id | string <= 50 characters ID of the cancellation. | ||||||||||||||||||
proratedInvoiceId | string <= 50 characters ID of the invoice on which the cancellation proration is calculated. | ||||||||||||||||||
appliedInvoiceId | string <= 50 characters ID of the invoice on which the cancellation fees or credits are applied. | ||||||||||||||||||
canceledBy | string Default: "customer" Specifies who initiated the cancellation. | ||||||||||||||||||
reason | string Default: "other" Reason for the cancellation. | ||||||||||||||||||
description | string <= 255 characters Description of the cancellation reason in free form. | ||||||||||||||||||
prorated | boolean Default: false Specifies if the customer gets a pro-rata credit for the time remaining between | ||||||||||||||||||
status | string Default: "confirmed" Status of the subscription order.
| ||||||||||||||||||
canceledTime | string <date-time> Date and time when a subscription is cancelled.
By default, this occurs when | ||||||||||||||||||
createdTime | string <date-time> (CreatedTime) Date and time which is set automatically when the resource is created. | ||||||||||||||||||
updatedTime | string <date-time> (UpdatedTime) Date and time which updates automatically when the resource is updated. | ||||||||||||||||||
Array of objects (UpcomingInvoiceItem) Items to be added to the new invoice. Proration item is generated and added automatically. | |||||||||||||||||||
Array
| |||||||||||||||||||
lineItemSubtotal | number Subtotal of the line items added after the subscription cancellation. | ||||||||||||||||||
Array of objects (SelfLink) Related links. | |||||||||||||||||||
Unauthorized access. Invalid credentials used.
Access forbidden.
Invalid data sent.
{- "subscriptionId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "canceledBy": "merchant",
- "reason": "did-not-use",
- "description": "string",
- "prorated": false,
- "status": "draft",
- "churnTime": "2019-08-24T14:15:22Z",
- "lineItems": [
- {
- "type": "debit",
- "description": "string",
- "unitPriceAmount": 49.95,
- "unitPriceCurrency": "USD",
- "quantity": 1,
- "periodStartTime": "2019-08-24T14:15:22Z",
- "periodEndTime": "2019-08-24T14:15:22Z"
}
]
}
{- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "subscriptionId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "proratedInvoiceId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "appliedInvoiceId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "canceledBy": "merchant",
- "reason": "did-not-use",
- "description": "string",
- "prorated": false,
- "status": "draft",
- "canceledTime": "2019-08-24T14:15:22Z",
- "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "churnTime": "2019-08-24T14:15:22Z",
- "lineItems": [
- {
- "type": "debit",
- "description": "string",
- "unitPriceAmount": 49.95,
- "unitPriceCurrency": "USD",
- "quantity": 1,
- "periodStartTime": "2019-08-24T14:15:22Z",
- "periodEndTime": "2019-08-24T14:15:22Z",
- "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z"
}
], - "lineItemSubtotal": 49.95,
- "_links": [
- {
- "href": "string",
- "rel": "self"
}
]
}