novinzodevelopers
API referenceCore for pluginsProducts

Products By Id

POST/api/storefront/products/by-id

Hydrate 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.

[index: integer]?string
Match^([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"    }  }]