Products By Id
/api/storefront/products/by-idHydrate products by id. Scoped to the store the invocation token forwarded in x-novinzo-plugin-invocation was minted for; another store's product is omitted.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/storefront/products/by-id" \ -H "Content-Type: application/json" \ -d '[ "string" ]'[ { "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 }, "createdAt": "string", "updatedAt": "string" } ], "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" } }]Stop Delivering Variant DELETE
Removes the calling plugin's delivery records for this variant of the store; other deliveries stay.
Record Orders POST
Records orders the calling plugin took for the store outside its checkout as they stand now, at most 100 a call, which the dashboard counts among the store's orders on the day each was placed: open and completed ones as orders, their units as products sold, their amounts in the average order value. Their money reaches revenue through RecordSales, not here. An order's optional `title` names what it sold, which the dashboard lists it by, and its optional `products` (at most 100, each `ref` once) the units of each product of the plugin's own catalogue it sold, which the dashboard compares with the store's products; the latest report naming a product renames it. A product's optional `amountMinor` is the part of the order's amount its units were charged, which the dashboard counts as the product's revenue wherever it shows revenue by product; without one the product counts its units and no revenue. Report an order again whenever it changes; core keeps the latest report of each `ref` by `asOf`, ignoring an older one, so a report can be retried whole. An order placed more than a day ahead, or read (`asOf`) more than five minutes ahead, is refused with SaleDatedAhead, recording nothing of the report. Requires the store to have granted the plugin sales:write.
