Refund an order (Deprecated)
Issue a refund for a completed order. This operation allows for either a full or partial refund, which will be processed back to the customer's original payment method.
Operation details
- The refund operation generates a new order with
type: REFUND. This new order represents a full or partial refund of the original amount paid. - Refunds can only be initiated for orders that are in the
COMPLETEDstate. Orders in any other state are not eligible for refunds to ensure transaction integrity and to prevent errors.
Note
- Ensure that the order to be refunded is confirmed as
COMPLETEDbefore attempting a refund operation. - Consider using the
Idempotency-Keyheader to make the refund operation idempotent, preventing duplicate refund processing in cases of multiple submissions.