API documentation
Method list
Test your request
Changelog


setOrderReturnRefund
The method allows you to mark an order return as refunded. Note this method doesn't issue an actual money refund.


Input parameters
return_idintOrder return ID.
order_refund_donefloatThe 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_dateintRefund date (unixtime format).
refund_commentvarchar(50)Refund commentary.
external_refund_idvarchar(50)(optional) External refund identifier



Output data
The method returns the data in JSON format.
statusvarchar(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: