Skip to main content

InventoryService

A list of all methods in the InventoryService service. Click on the method name to view detailed information about that method.

MethodsDescription
Inventory_UpdateStockLevelUpdate stock level for a specific SKU. Request model: - Sku*: Unique SKU of the product. E.g: "123XYZ" - Quantity*: The latest stock quantity of the product. E.g: 10 - Locale: Culture code. A corresponding product feed should be configured. E.g: "sv-se" - ExternalId: External identifier. E.g: "SE-123XYZ" * required
Inventory_UpdateStockLevelsBatch update of stock levels for multiple SKU's. Request model: - Sku*: Unique SKU of the product. E.g: "123XYZ" - Quantity*: The latest stock quantity of the product. E.g: 10 - Locale: Culture code. A corresponding product feed should be configured. E.g: "sv-se" - ExternalId: External identifier. E.g: "SE-123XYZ" * required
BackInStockSubscription_SubscribeCreate a back in stock subscription for a specific SKU. Request model: - ContactId*: Contact id of the subscriber. E.g: "FF9FD9AF-6778-4714-B0FE-F6E6612840C8" - Sku*: Unique SKU of the product. E.g: "123XYZ" - Locale*: Culture code. A corresponding product feed should be configured. E.g: "sv-se" - ExternalId: External identifier. E.g: "SE-123XYZ" * required
BackInStockSubscription_UnsubscribeDelete a specific back in stock subscription.

Inventory_UpdateStockLevel

Update stock level for a specific SKU. Request model: - Sku*: Unique SKU of the product. E.g: "123XYZ" - Quantity*: The latest stock quantity of the product. E.g: 10 - Locale: Culture code. A corresponding product feed should be configured. E.g: "sv-se" - ExternalId: External identifier. E.g: "SE-123XYZ" * required

  • HTTP Method: PUT
  • Endpoint: /api/v2/inventory/stock-levels

Parameters

NameTypeRequiredDescription
bodyStockLevelRequestThe request body.

Return Type

any

Example Usage Code Snippet

import { StockLevelRequest, VoyadoEngage } from 'voyado_engage';

(async () => {
const voyadoEngage = new VoyadoEngage({
token: 'YOUR_TOKEN',
});

const input: StockLevelRequest = {
sku: 'sku',
locale: 'locale',
quantity: 9,
externalId: 'externalId',
};

const { data } = await voyadoEngage.inventory.inventoryUpdateStockLevel(input);

console.log(data);
})();

Inventory_UpdateStockLevels

Batch update of stock levels for multiple SKU's. Request model: - Sku*: Unique SKU of the product. E.g: "123XYZ" - Quantity*: The latest stock quantity of the product. E.g: 10 - Locale: Culture code. A corresponding product feed should be configured. E.g: "sv-se" - ExternalId: External identifier. E.g: "SE-123XYZ" * required

  • HTTP Method: PUT
  • Endpoint: /api/v2/inventory/stock-levels/batch

Parameters

NameTypeRequiredDescription
bodyStockLevelRequest[]The request body.

Return Type

any

Example Usage Code Snippet

import { VoyadoEngage } from 'voyado_engage';

(async () => {
const voyadoEngage = new VoyadoEngage({
token: 'YOUR_TOKEN',
});

const { data } = await voyadoEngage.inventory.inventoryUpdateStockLevels(input);

console.log(data);
})();

BackInStockSubscription_Subscribe

Create a back in stock subscription for a specific SKU. Request model: - ContactId*: Contact id of the subscriber. E.g: "FF9FD9AF-6778-4714-B0FE-F6E6612840C8" - Sku*: Unique SKU of the product. E.g: "123XYZ" - Locale*: Culture code. A corresponding product feed should be configured. E.g: "sv-se" - ExternalId: External identifier. E.g: "SE-123XYZ" * required

  • HTTP Method: POST
  • Endpoint: /api/v2/inventory/backinstock/subscriptions

Parameters

NameTypeRequiredDescription
bodySubscriptionRequestThe request body.

Return Type

any

Example Usage Code Snippet

import { SubscriptionRequest, VoyadoEngage } from 'voyado_engage';

(async () => {
const voyadoEngage = new VoyadoEngage({
token: 'YOUR_TOKEN',
});

const input: SubscriptionRequest = {
contactId: '00000000-0000-0000-0000-000000000000',
sku: 'sku',
locale: 'locale',
externalId: 'externalId',
};

const { data } = await voyadoEngage.inventory.backInStockSubscriptionSubscribe(input);

console.log(data);
})();

BackInStockSubscription_Unsubscribe

Delete a specific back in stock subscription.

  • HTTP Method: DELETE
  • Endpoint: /api/v2/inventory/backinstock/subscriptions/{subscriptionId}

Parameters

NameTypeRequiredDescription
subscriptionIdstring

Return Type

any

Example Usage Code Snippet

import { VoyadoEngage } from 'voyado_engage';

(async () => {
const voyadoEngage = new VoyadoEngage({
token: 'YOUR_TOKEN',
});

const { data } = await voyadoEngage.inventory.backInStockSubscriptionUnsubscribe('subscriptionId');

console.log(data);
})();

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →