get https://sandbox-api.laybuy.com/order/merchant/
Overview
This method allows merchants to retrieve the details of a Laybuy order.
Response data
See the response fields and data returned by the interface and their descriptions on the right - >
Example response - Error
{
"result":"ERROR",
"error":"Order not found"
}
Example response - Success
{
"result":"SUCCESS",
"orderId":100049,
"token":"frOilqUU0DboUCiyRtnzH1VdBXnrj7kD39NWhgsD",
"amount":164.59,
"currency":"NZD",
"merchantReference":"1728950142",
"processed":"2017-02-01 14:35:30",
"customer":{
"customerid":143022,
"firstname":"Jenny",
"lastname":"Smith",
"email":"[email protected]",
"address1":"Level 4, Goodsmiths Building",
"address2":"123 Crown Street",
"suburb":"Redvale",
"city":"Auckland",
"postcode":"1010",
"country":"New Zealand"
},
"refunds":[
{
"refundId":366,
"dateTime":"2017-02-05 10:53:44",
"amount":55.00,
"refundReference":"ABC1234",
"user":"Tom Jones",
"userNote":"Item returned"
}
]
}