Overview

This method allows merchants to explicitly cancel the payment process for an unconfirmed Laybuy order.

Response data

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

Example response - Error (General)

{
	"result":"ERROR",
	"error":"Invalid payment token specified."
}

Example response - Error (Order completed)

This response will be returned if the order has already been successfully completed by the customer, in which case the order can not be cancelled.

{
	"result":"ERROR",
	"error":"The order has already been completed."
}

Example response - Successfully cancelled

This response will be returned if the order was successfully cancelled. The customer will not be able to continue with the payment process.

{
	"result":"SUCCESS"
}
Language
Credentials
Basic
base64
:
URL
Click Try It! to start a request and see the response here!