Endpoint: /api/calculate-refund
If a customer requests a refund after thirty days from the purchase date, we can deliver a prorated refund on the warranty. You are able to use this GET endpoint in order to inform the customer exactly how much will be refunded by passing in your order_id and the product id. The product_id is an optional parameter, if it is not included in the request we return the prorated refund for all the warranties that were a part of the specified order.
/api/calculate-refund?order_id=xyz123&product_id=123456
Parameter | Definition | Required | Type |
---|---|---|---|
order_id | The order ID used when making the call to our /api/checkout endpoint | yes | string |
product_id | The product ID passed in during checkout for which the warranty was issued | no | string |