This method allows merchants to define a Laybuy order and create a new payment process.

If successful, the merchant should store the token within their system and redirect the customer to the payment URL provided in the response in order to initiate the payment interface.

When a new order is created, any active orders for the same customer (based on the email address) for the merchant will be cancelled. Any further interactions with any cancelled order will result in an error.

If the customer`s order changes on the merchant site after the Laybuy order is created, the merchant should restart the process by creating a new order.

Example Request

	"amount": 156.90,
	"currency": "NZD",
	"returnUrl": "https://www.merchantsite.com/confirm-payment?i=7437377",
	"merchantReference": "17125026",
	"customer": {
		"firstName": "Jenny",
		"lastName": "Smith",
		"email": "[email protected]",
		"phone": "0219876543"
	"billingAddress": {
		"address1": "123 Crown Street",
		"city": "Auckland",
		"postcode": "1010",
		"country": "New Zealand"
	"shippingAddress": {
		"name": "Timmy Smith",
		"address1": "Level 4, Goodsmiths Building",
		"address2": "123 Crown Street",
		"suburb": "Redvale",
		"city": "Auckland",
		"postcode": "1010",
		"country": "New Zealand",
		"phone": "097654321"
	"items": [
			"id": "4470356028717",
			"description": "Blue Widget",
			"quantity": 2,
			"price": 76.95
			"id": "SHIPPING",
			"description": "Shipping",
			"quantity": 1,
			"price": 3.00

Response Data

See the response fields and data returned by the interface and their descriptions on the right - >

Example response - Error

	"result": "ERROR",
	"error": "Amount is below the minimum"

Example response - Success

	"result": "SUCCESS",
	"token": "frOilqUU0DboUCiyRtnzH1VdBXnrj7kD39NWhgsD",
	"paymentUrl": "https://payment.laybuy.com/pay/frOilqUU0DboUCiyRtnzH1VdBXnrj7kD39NWhgsD"
Click Try It! to start a request and see the response here!