Skip to content

Look up an order (guest)

POST
/api/website/orders/lookup
curl --request POST \
--url https://api.petanqueai.com/api/website/orders/lookup \
--header 'Content-Type: application/json' \
--header 'x-storefront-token: <x-storefront-token>' \
--data '{ "code": "example", "phone": "example" }'

Lets a guest find their order with the order code (SA-…) and the phone number on the order. Returns a summary without personal details: status, items, totals, city and district, a masked recipient name, and shipment tracking. Any miss answers the same 404.

object
code
required
string
>= 1 characters <= 64 characters
phone
required
string
>= 7 characters <= 30 characters

Example generated

{
"code": "example",
"phone": "example"
}