Inventory Stock Levels

Determine available stock levels for one or more SKUs.


POST/xml/inventory/

Specific SKU(s)

This endpoint allows you to retrieve stock levels for one or more specific SKUs. See the code examples for how to send the request to the FCP API.

Request Elements

  • Name
    InventoryRequest
    Type
    XML
    Required
    required
    Description

    The root XML element contains your API credentials and a list of inventory items to be submitted.

  • Name
    MerchantId
    Type
    integer
    Required
    required
    Description

    The unique ID number for your Fulfillment Control Panel account.

  • Name
    MerchantToken
    Type
    string
    Required
    required
    Description

    Security token to protect against unauthorized orders.

  • Name
    Items
    Type
    XML
    Required
    required
    Description

    Contains all Inventory elements to be submitted.

  • Name
    Item
    Type
    XML
    Required
    required
    Description

    This element contains all the detail elements for each inventory item.

  • Name
    Sku
    Type
    string
    Required
    required
    Description

    Your identifying reference number for the inventory item.

Example Request / Payload

Request

<?xml version="1.0" encoding="UTF-8"?>
<InventoryRequest>
    <MerchantId>{{CLIENT_ID}}</MerchantId>
    <MerchantToken>{{CLIENT_TOKEN}}</MerchantToken>
    <Items>
        <Item>
            <Sku>00-1111</Sku>
        </Item>
        <Item>
            <Sku>00-1112</Sku>
        </Item>
        <Item>
            <Sku>00-1113</Sku>
        </Item>
    </Items>
</InventoryRequest>

Example Response

Response

<?xml version="1.0" encoding="UTF-8"?>
<InventoryResponse xmlns="https://fcp.efulfillmentservice.com/xml/inventory"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="https://fcp.efulfillmentservice.com/xml/inventory InventoryResponse.xsd">
    <MerchantId>816</MerchantId>
    <Items>
        <Item>
            <Sku>00-1111</Sku>
            <ResponseType>Success</ResponseType>
            <ResponseMessage></ResponseMessage>
            <Quantity>849</Quantity>
        </Item>
        <Item>
            <Sku>00-1112</Sku>
            <ResponseType>Success</ResponseType>
            <ResponseMessage></ResponseMessage>
            <Quantity>873</Quantity>
        </Item>
        <Item>
            <Sku>00-1113</Sku>
            <ResponseType>Failure</ResponseType>
            <ResponseMessage>SKU Not Found</ResponseMessage>
            <Quantity>0</Quantity>
        </Item>
    </Items>
</InventoryResponse>

POST/xml/inventory/list/

Complete List

This endpoint allows you to retrieve the complete list of inventory items. See the code examples for how to send the request to the FCP API.

Request Elements

  • Name
    InventoryRequest
    Type
    XML
    Required
    required
    Description

    The root XML element contains your API credentials and a list of inventory items to be submitted.

  • Name
    MerchantId
    Type
    integer
    Required
    required
    Description

    The unique ID number for your Fulfillment Control Panel account.

  • Name
    MerchantToken
    Type
    string
    Required
    required
    Description

    Security token to protect against unauthorized orders.

Example Request / Payload

Request

<?xml version="1.0" encoding="UTF-8"?>
<InventoryRequest>
  <MerchantId>{{CLIENT_ID}}</MerchantId>
    <MerchantToken>{{CLIENT_TOKEN}}</MerchantToken>
</InventoryRequest>

Example Response

Request

<?xml version="1.0" encoding="UTF-8"?>
<InventoryListResponse>
    <MerchantId>816</MerchantId>
    <Items>
        <Item>
            <Sku>00-1111</Sku>
            <Quantity>849</Quantity>
        </Item>
        <Item>
            <Sku>00-1112</Sku>
            <Quantity>873</Quantity>
        </Item>
        <Item>
            <Sku>00-1113-LARGE-BLUE</Sku>
            <Quantity>716</Quantity>
        </Item>
        <Item>
            <Sku>00-1114</Sku>
            <Quantity>1002</Quantity>
        </Item>
    </Items>
</InventoryListResponse>