This endpoint retrieves an incomplete individual checkout by token.
Checkout details are only retained in this temporary format for up to 60 minutes. If a checkout token expires or has an order created against it, it can no longer be retrieved from this endpoint.
To retrieve a Payment record (Afterpay Order) along with its associated checkout details, see Get Payment By Token.
Successful Response (200)
If a checkout belonging to the authenticated merchant account is found, returns the checkout details in response. Fields that were not included in the original Create Checkout request may not be included in any corresponding Get Checkout response.
|string||Checkout token to be used to complete payment.|
|string||The UTC timestamp of when the checkout token will expire, in ISO 8601 format.|
|Money||Total amount to be charged to consumer.|
|Consumer||The consumer requesting the order.|
|Shipping Courier||Shipping courier details.|
|string||A description of the order.|
|string||The consumer is redirected to this URL on confirmation.|
|string||The consumer to redirected to this URL if the payment process is cancelled.|
|string||The merchant's id/reference that this order corresponds to.|
|Item||An array of order items.|
|Discount||An array of discounts.|
|Money||The shipping amount.|
|Money||The included tax amount after applying all discounts.|
In addition to the GET Errors applicable to all GET endpoints, the following errors are specific to Get Checkout:
|HTTP Status Code||errorCode||Description|
|No checkout token was provided.|
|The checkout token is invalid, expired, completed, or does not exist.|