ShopEazydevelopers
API referenceMerchant API BetaEvents

One ticket as a printable PDF

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

application/pdf: the store, the event's title, date, time and venue, the order number, the customer and the ticket with its QR. The body is the file, not the usual { data } envelope; errors are the usual JSON.

The PDF carries the event's date and venue as they are now, so it is cacheable for only five minutes. A code this store did not issue is 404 not_found. It admits nobody on its own: the door still checks the code against the order.

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.

Response Body

OK

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