RPCReferenceStorefront
StorefrontGetThemeAssignment
POST
/rpc#StorefrontGetThemeAssignmentStore, theme and catalogue read models a storefront renders from. Routed to the storefront RPC server by the x-storefront-request: true header.
Header Parameters
x-storefront-request*"true"
Value in
- "true"
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
_tag*"Request"
Value in
- "Request"
id*string
Correlates the response line with this request.
tag*"StorefrontGetThemeAssignment"
Value in
- "StorefrontGetThemeAssignment"
payload*
headers*array<any>
Leave empty; the server prepends the HTTP request headers.
Items
items <= 0Response Body
application/json
printf '%s\n' '{"_tag":"Request","id":"0","tag":"StorefrontGetThemeAssignment","payload":{"storeId":"<uuid>"},"headers":[]}' | curl -X POST "$NOVINZO_API/rpc" \ -H "Content-Type: application/ndjson" \ -H "x-storefront-request: true" \ --data-binary @-{ "_tag": "Exit", "requestId": "string", "exit": { "_tag": "Success", "value": { "themeId": "string", "version": "string", "isPinned": true, "routes": [ { "path": "string", "template": "string", "title": "string", "description": "string" } ], "base": { "themeId": "string", "version": "string" }, "settings": { "property1": "string", "property2": "string" } } }}StorefrontGetStore POST
Store, theme and catalogue read models a storefront renders from. Routed to the storefront RPC server by the `x-storefront-request: true` header.
StorefrontListPaymentMethods POST
Store, theme and catalogue read models a storefront renders from. Routed to the storefront RPC server by the `x-storefront-request: true` header.
