Order Controller

Refund order

Process refund for an order with refund reason

post/orders/refund/{id}

Path parameters

idnumber required
Example:1

The ID of the entity

Request body

refundAmountnumber

Amount to refund (if not provided or 0, full refund will be processed)

isManualRefundboolean

Set true to process manual refund (skip gateway API and send customer refund email immediately)

refundReasonstring required

Reason for refund

Example request

{
  "refundAmount": 50,
  "refundReason": "Customer requested refund due to product issue"
}

Response

Order refunded successfully

Changes

No recorded changes to this endpoint across all 1 revision of this API.