Defines if the customer gets a pro-rata credit for the time remaining between churnTime and
subscription's next renewal time.
status
string
Default: "confirmed"
"draft" defines that the cancellation isn't applied on an invoice and subscription but
can be inspected to see the charge.
"confirmed" will set a subscription to be canceled when the churnTime is reached.
"completed" is a read-only status which is set by the system when the churnTime is reached.
The cancellation may not be changed or deleted when the status is "completed".
Enum:"draft""confirmed""completed""revoked"
canceledTime
string <date-time>
The cancellation time (when the status is confirmed which is by default unless specified "draft").
createdTime
string <date-time>
The time of resource creation (when it is posted).
Array of objects
Items to be added to the new invoice. Proration item is generated and added automatically.
Array
type
required
string
Type of line item.
Enum:"debit""credit"
unitPriceAmount
required
number <double>
Unit price of the line item.
unitPriceCurrency
required
string = 3 characters
ISO 4217 alphabetic currency code.
quantity
required
integer
Quantity of line item.
description
string
Description of line item.
periodStartTime
string <date-time>
Date-time when the period begins for this item.
periodEndTime
string <date-time>
Date-time when the period ends for this item.
createdTime
string <date-time>
Date-time when the item was added to the subscription.
lineItemSubtotal
number
Subtotal of the line items which will be added after the subscription's cancellation.
Array of objects (Self) non-empty
The links related to resource.
Array (non-empty)
href
required
string
The link URL.
rel
required
string
The link type.
Value:"self"
401
Unauthorized access, invalid credentials were used.