Tableau Connector for Amazon Marketplace

Build 26.0.9770

DirectFulfillmentOrderItems

Returns a list of order items from purchase orders created during the time frame that you specify.

View-Specific Information

Select

To retrieve detailed line items for a specific purchase order:

SELECT 
  PurchaseOrderNumber,
  ItemSequenceNumber,
  ItemTitle,
  VendorProductId,
  BuyerProductId,
  OrderedAmount,
  UnitOfMeasure,
  NetPrice,
  TotalPrice,
  CurrencyCode
FROM VendorCentral.DirectFulfillmentOrderItems
WHERE PurchaseOrderNumber = 'PO-12345-67890';

You can retrieve all order items requiring shipment from recent orders. The following query joins order items with order headers to show all items requiring shipment, sorted by deadline:

SELECT 
  PurchaseOrderNumber,
  ItemSequenceNumber,
  ItemTitle,
  VendorProductId,
  OrderedAmount,
  UnitOfMeasure,
  NetPrice,
  OrderDate,
  RequiredDate,
  ShipFromId
FROM VendorCentral.DirectFulfillmentOrderItems
INNER JOIN VendorCentral.DirectFulfillmentOrders 
  ON PurchaseOrderNumber = PurchaseOrderNumber
WHERE OrderStatus = 'NEW'
  AND OrderDate >= DATEADD(day, -7, GETDATE())
ORDER BY RequiredDate ASC, ItemSequenceNumber ASC;

To retrieve gift items requiring additional handling, such as requiring special packaging and gift messages:

SELECT 
  PurchaseOrderNumber,
  ItemSequenceNumber,
  ItemTitle,
  GiftMessage,
  GiftWrapId,
  OrderedAmount
FROM VendorCentral.DirectFulfillmentOrderItems
WHERE GiftMessage IS NOT NULL
  AND OrderStatus = 'NEW';

To retrieve scheduled delivery items with delivery windows:

SELECT 
  PurchaseOrderNumber,
  ItemSequenceNumber,
  ItemTitle,
  DeliveryServiceType,
  EarliestDeliveryDate,
  LatestDeliveryDate,
  OrderedAmount
FROM VendorCentral.DirectFulfillmentOrderItems
WHERE DeliveryServiceType IS NOT NULL
  AND EarliestDeliveryDate >= GETDATE()
ORDER BY EarliestDeliveryDate ASC;

To identify high-velocity items ordered frequently, helping with inventory planning and warehouse slotting decisions:

SELECT 
  VendorProductId,
  BuyerProductId,
  ItemTitle,
  COUNT(DISTINCT PurchaseOrderNumber) AS OrderFrequency,
  SUM(CAST(OrderedAmount AS INT)) AS TotalUnitsOrdered,
  AVG(CAST(NetPrice AS DECIMAL(18,2))) AS AvgUnitPrice,
  MIN(OrderDate) AS FirstOrderDate,
  MAX(OrderDate) AS LastOrderDate
FROM VendorCentral.DirectFulfillmentOrderItems 
INNER JOIN VendorCentral.DirectFulfillmentOrders 
  ON PurchaseOrderNumber = PurchaseOrderNumber
WHERE OrderDate >= DATEADD(day, -30, GETDATE())
GROUP BY 
  VendorProductId,
  BuyerProductId,
  ItemTitle
HAVING COUNT(DISTINCT PurchaseOrderNumber) >= 5
ORDER BY TotalUnitsOrdered DESC;

The HAVING clause filters the results to products ordered at least five times.

Columns

Name Type References Description
ItemSequenceNumber [KEY] String Numbering of the item on the purchase order. The first item will be 1, the second 2, and so on.
PurchaseOrderNumber [KEY] String The purchase order number for this order. Formatting Notes: alpha-numeric code.
BuyerProductId String Buyer's standard identification number (ASIN) of an item.
CurrencyCode String Three digit currency code in ISO 4217 format. String of length 3.
CustomUrl String A Base 64 encoded URL using the UTF-8 character set. The URL provides the location of the zip file that specifies the types of customizations or configurations allowed by the vendor, along with types and ranges for the attributes of their products.
DeliveryServiceType String Scheduled delivery service type.
EarliestDeliveryDate Datetime Earliest nominated delivery date for the scheduled delivery.
GiftMessage String Gift message to be printed in shipment.
GiftWrapId String Gift wrap identifier for the gift wrapping, if any.
ItemTitle String Title for the item.
LatestDeliveryDate Datetime Latest nominated delivery date for the scheduled delivery.
NetPrice String A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
OrderDate Datetime The date the order was placed.
OrderedAmount Int Acknowledged quantity. This value should not be zero.
OrderStatus String Current status of the order.
ShipFromId String The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses.
TaxLineItem String The tax details for the order.
TotalPrice String A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
UnitOfMeasure String Unit of measure for the acknowledged quantity.
VendorProductId String The vendor selected product identification of the item.

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 26.0.9770