ShopEazydevelopers
API referenceMerchant API BetaEvents

The QR code for one ticket

Beta
Credentials
  • OAuth access token
Scopes
orders:read
GET
/v1/merchant/stores/{storeId}/tickets/{code}/qr

A picture of the ticket code, for a ticket screen, a print or an email. image/png, 480 px with a quiet zone, or image/svg+xml with format=svg (what the console's order page draws). The body is the image, not the usual { data } envelope; errors are the usual JSON.

The code is the one on the issued ticket (C1234567 style, case and spacing ignored); anything that is not code-shaped, or a code this store did not issue, is 404 not_found, so this can never draw an arbitrary string. It admits nobody on its own: the door still checks the code against the order with scanTicket.

Access: OAuth scope orders:read; not write-gated.

Authorization

merchantOAuth orders:read
headerAuthorizationBearer <token>

OAuth 2.1 (authorization code + PKCE S256, public clients, dynamic registration) for connected AI apps. Effective power is scopes granted AND the person's role today AND the plan. orders:refund, billing:write and team:write are opt-in on the consent screen. Write implies read for marketing:read and messages:read, so a grant holding marketing:write passes a marketing:read check, and messages:send passes messages:read.

Scope: orders:read

Path Parameters

storeId*string

A store the person can reach. Any other id answers 404, never 403.

code*string

The code printed on an issued ticket. Case and spacing are ignored.

Query Parameters

format?string

Image format. Default png.

Default"png"
Value in"png""svg"

Response Body

OK

response?file
Formatbinary
Example Request
curl -X GET 'https://api.shopeazy.co/v1/merchant/stores/<storeId>/tickets/<code>/qr' \  -H 'Authorization: Bearer <access_token>'
Example Response
"string"