Updates a subscription cancellation with a specified ID. Use this operation to update a cancellation reason and description.
Patch cancellation resource.
Cancellation updated.
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": "ord_cnl_0YVJ5XVQM9CDP8248ZQX0RDMKV",
- "subscriptionId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "proratedInvoiceId": "in_0YVF9605RKC62BP14NE2R7V2XT",
- "appliedInvoiceId": "in_0YVF9605RKC62BP14NE2R7V2XT",
- "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"
}
]
}