post https://sandbox-api.laybuy.com/order/refund
Overview
This method allows merchants to wholly or partially refund a Laybuy order.
! Important : If specified, the refund reference must be unique across all of a merchant`s refunds. This method is idempotent when a refund reference is provided, meaning any duplicate requests (by refund reference) will return the same response.
Example request
{
"orderId": "e930a4ad-5465-4468-9f9e-7120f8173f88",
"amount":35.95,
"refundReference":"REF-REFUND0001",
"note":"Faulty item returned to store"
}
Response data
See the response fields and data returned by the interface and their descriptions on the right - >
Example response - Error
{
"result":"ERROR",
"error":"Failed to find order e930a4ad-5465-4468-9f9e-7120f8173f88"
}
Example response - Success
{
"result": "SUCCESS",
"merchantReference": "REF-REFUND0001"
}