/order/cancel/{token}

Cancel the payment process for an unconfirmed 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 (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"
}
Path Params
string
required

The Laybuy payment token for the order.

Response

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