setOrderReturnRefund
The method allows you to mark an order return as refunded. Note this method doesn't issue an actual money refund.
Input parameters
Output data:
A sample request in PHP:
return_id | int | Order return ID. |
order_refund_done | float | The amount of the refund. The value changes the current refund in the order return (not added to the previous value). If the amount matches the order value, the order will be marked as refund. |
refund_date | int | Refund date (unixtime format). |
refund_comment | varchar(50) | Refund commentary. |
external_refund_id | varchar(50) | (optional) External refund identifier |
Output data
The method returns the data in JSON format.
status | varchar(30) |
SUCCESS - request executed correctly ERROR - an error occurred during an API request. Error details will be described in 2 additional returned fields: error_message and error_code |
Sample
Input data:Output data:
A sample request in PHP: