/order/{orderId}

Overview

This method allows merchants to retrieve the details of a Laybuy order.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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"
		}
	]
}
Path Params
integer
required

The Laybuy order id.

Response

Language
Credentials
Basic
base64
:
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json