Order Refunds in BigCommerce

Order V3 exposes endpoints for creating refunds against orders with settled payments. These endpoints are useful when building order management or payment integrations as they make embedding refund functionality directly into the application possible without requiring merchants to return to their BigCommerce control panel.

Refunding an order consists of two API requests.

Operation – post

/v3/orders/{id}/payment_actions/refund_quotes – Calculate amounts and get payment methods.

/v3/orders/{id}/payment_actions/refund – Create the refund.

The example requests in this article use an order with the following properties – 

Products: Single product priced at $10.00

Tax: $0.83

Shipping: $10.00

The refunded amount will include the shipping, tax, and product cost (a total of $20.83). We will create a refund quote. Then, we will create a refund using the information contained in the create refund quote response.

Leave a comment

Your email address will not be published. Required fields are marked *