Get a checkout, for its thank-you page
GET
/storefront/sites/{host}/checkouts/{id}
const url = 'https://example.com/storefront/sites/northgate.shop.getbottle.app/checkouts/019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f?t=example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/storefront/sites/northgate.shop.getbottle.app/checkouts/019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f?t=example'Deliberately unauthenticated, but only with the token from the address Stripe sent the shopper back to. Whether it is paid yet (poll until it is), the tracking reference once the order exists, the days, the lines and the total, and the shopper’s first name. Anything else, a wrong token included, is an empty 404. Never cached.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”host
required
string
Example
northgate.shop.getbottle.appid
required
UUID v7
string format: uuid
Example
019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8fUUID v7
Query Parameters
Section titled “Query Parameters”t
required
string
Responses
Section titled “Responses”The checkout
Media typeapplication/json
object
status
required
string
trackingRef
required
string | null
fulfilment
required
string
earliest
required
string | null format: date
latest
required
string | null format: date
lines
required
Array<object>
object
kind
required
string
productId
required
UUID v7
string | null format: uuid
name
required
string
quantity
required
integer
unitPence
required
integer
totalPence
required
integer
unitPenceExVat
integer
unitPenceIncVat
integer
forProductIds
Array<string>
parts
Array<object>
object
quantity
required
integer
unitPence
required
integer
unitPenceExVat
required
integer
totalPence
required
integer
grossPence
required
integer
firstName
required
string
payment
string
Example
{ "status": "open", "fulfilment": "delivery", "lines": [ { "kind": "product", "productId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "forProductIds": [ "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f" ] } ], "payment": "card"}Not a shop, or not open. No body.
Validation failed
Media typeapplication/json
object
error
required
string
message
required
string
issues
required
Array<object>
object
path
required
string
message
required
string
Example
{ "error": "validation", "issues": [ { "path": "email", "message": "Invalid email" } ]}Too many requests from one address
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}