RPCReferenceProducts
ProductGetById
POST
/rpc#ProductGetByIdThe store's products and their variants. A store API key can call it, a read-only one included.
__Host-sh*<token>
Dashboard session cookie (name prefix __Host-sh), set by sign in and managed by the browser.
In: cookie
x-store-id<token>
The store the seller acts on.
In: header
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*"ProductGetById"
Value in
- "ProductGetById"
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":"ProductGetById","payload":{"id":"<uuid>"},"headers":[]}' | curl -X POST "$NOVINZO_API/rpc" \ -H "Content-Type: application/ndjson" \ -H "Authorization: Bearer $NOVINZO_API_KEY" \ --data-binary @-{ "_tag": "Exit", "requestId": "string", "exit": { "_tag": "Success", "value": { "id": "string", "name": "string", "seoMetadataId": "string", "storeId": "string", "urlSlug": "string", "description": "string", "archivedAt": "string", "unlistedAt": "string", "createdAt": "string", "updatedAt": "string", "variants": [ { "id": "string", "name": "string", "unitPrice": { "amountMinorUnits": "string", "currency": "AED" }, "productId": "string", "description": "string", "options": [ { "name": "string", "value": "string" } ], "sortIndex": 0, "availability": "in_stock", "recurrence": { "intervalUnit": "day", "intervalCount": 1, "graceAccess": "keep" }, "createdAt": "string", "updatedAt": "string", "stockOnHand": -9007199254740991, "stockReserved": -9007199254740991, "stockOwner": "string", "instructions": "string", "minQuantity": -9007199254740991, "maxQuantity": -9007199254740991 } ], "images": [ { "id": "string", "storeId": "string", "entityType": "string", "entityId": "string", "url": "string", "fileName": "string", "mimeType": "string", "sizeInBytes": 0, "position": 0, "altText": "string", "createdAt": "string" } ], "seo": { "title": "string", "description": "string" } } }}