StorefrontDownloadInvoice
/rpc#StorefrontDownloadInvoiceSigned invoice downloads for an order's viewer. Routed to the storefront RPC server by the x-storefront-request: true header. The store is resolved from the merchant domain's Host, so call it through the storefront route POST https://<store-domain>/api/orders/invoice, which forwards the shopper's cookies. The viewer is the signed-in shopper or a guest holding an order access grant cookie.
Authorization
customerSession Shopper session cookie (name prefix storefront), set by CustomerOtpVerify and managed by the browser.
In: cookie
Header Parameters
Value in
- "true"
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Value in
- "Request"
Correlates the response line with this request.
Value in
- "StorefrontDownloadInvoice"
Leave empty; the server prepends the HTTP request headers.
items <= 0Response Body
application/json
curl -X POST "https://$STORE_DOMAIN/api/orders/invoice" \ -H "Content-Type: application/json" \ -b "$CUSTOMER_SESSION_COOKIE" \ -d '{"orderId":"<uuid>"}'{ "_tag": "Exit", "requestId": "string", "exit": { "_tag": "Success", "value": { "downloadUrl": "string", "expiresAt": "string" } }}StoreUserList POST
The store's customers and what they ordered. A store API key can call it, a read-only one included.
StorefrontGetOrder POST
Order pages for guests (signed access links) and signed-in shoppers. Routed to the storefront RPC server by the `x-storefront-request: true` header. The store is resolved from the merchant domain's `Host`, so call it through the storefront route `POST https://<store-domain>/api/orders/get`, which forwards the shopper's cookies. The viewer is the signed-in shopper or a guest holding an order access grant cookie.
