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":100036,
	"amount":35.95,
	"refundReference":"1728950142",
	"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 100036"
}

Example response - Success

{
	"result":"SUCCESS",
	"refundId":101318,
	"merchantReference":1728950142
}
Language
Authorization
Basic
base64
:
Click Try It! to start a request and see the response here!