Creating order level refunds in Big Commerce using REST API

API : https://api.bigcommerce.com/stores/{{STORE_HASH}}/v3/orders/{order_id}/payment_actions/refunds

STORE_HASH – Obtained on Creating Client API
Order_id – Order id of the sales order

Request sample:

POST https://api.bigcommerce.com/stores/{{STORE_HASH}}/v3/orders/{order_id}/payment_actions/refunds
X-Auth-Token: {{ACCESS_TOKEN}}
Content-Type: application/json
Accept: application/json

{
“order_id”: 1234,
“items”: [
{
“item_type”: “ORDER”, // Refund a tax-exempt custom amount
“item_id”: 1234, // Order ID
“amount”: 1, // Amount to refund
}
],
“payments”: […]
}

Leave a comment

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