Cancellation API Usage
The full OpenAPI schema for this is available here.
Request
This request accepts the planId
in the url of the GET request. eg:
GET /plans/{planId}/cancellation-summary
Response
The response contains the details of how much of the plan has been paid, each item with its refund policies and calculations. You can use this to provide the customer with an explanation for how much they would be refunded and why.
Cancel Plan
The full OpenAPI schema for this is available here.
Request
This request accepts the planId
in the url of the POST request. eg:
POST /plans/{planId}/cancel
The body accepts the refundableAmount
, a reason
which in this use-case will usualy be CustomerRequest
and any optional details
you wish to provide.
Response
The response is either an error or a simple 200 OK with the following body:
{
"result": "ok"
}