FBA Inventory API Use Case Guide

AmazonSPAPI

# What is the FBA Inventory API?

The FBA Inventory API lets you track the real-time availability of your inventory in Amazon's fulfillment network at the marketplace level. You can get details such as listing condition and inventory quantities such as fulfillable, inbound, reserved, unfulfillable, and researching. This API is available globally.

# How to use the FBA Inventory API

The FBA Inventory API requires the Product Listing role (opens new window).

The getInventorySummaries (opens new window) operation returns a list of inventory summaries. The summaries returned depend on the presence or absence of the startDateTime and sellerSkus query parameters:

  1. All inventory summaries with all available detail are returned when the startDateTime and sellerSkus parameters are omitted.

  2. When startDateTime is provided, the operation returns inventory summaries that have changed after the date and time specified. The sellerSkus parameter is ignored.

  3. When the sellerSkus parameter is provided, the operation returns inventory summaries for only the specified sellerSkus.

# Tutorial: Get all available inventory summaries with all available detail

This tutorial shows you how to use the FBA Inventory API to return all the available inventory summaries with full details. This corresponds to number 1 in How to use the FBA Inventory API.

Prerequisites

To complete this tutorial you will need:

  • The marketplace ID for the marketplace for which to return inventory summaries.

# Get all available inventory summaries with full details.

To return all available inventory summaries with full details, call the getInventorySummaries (opens new window) operation of the FBA Inventory API, passing the following query parameters:

Parameter Description Required
details Set to true to return inventory summaries with additional summarized inventory details and quantities. Otherwise, returns inventory summaries only (default value). Yes. Must be set to true.
granularityType The granularity type for the inventory aggregation level.
Possible values: Marketplace.
Yes.
granularityId The granularity ID for the specified granularity type. When granularityType is Marketplace, you must specify the marketplaceId. Yes.
marketplaceIds The marketplace ID for the marketplace for which to return inventory summaries. Only one marketplace ID is allowed. Yes.

Request example:

GET https://sellingpartnerapi-na.amazon.com/fba/inventory/v1/summaries?details=true&granularityType=Marketplace&granularityId=ATVPDKIKX0DER&marketplaceIds=ATVPDKIKX0DER
1

A successful response includes the following in the payload for each sellerSku:

Name Description
sellerSku The seller stock keeping unit (SKU) of the item.
fnSku Amazon's fulfillment network SKU identifier. Fulfillment network stock keeping units (FNSKUs) are unique identifiers assigned by Amazon to products stored in and fulfilled from Amazon fulfillment centers.
asin The Amazon Standard Identification Number (ASIN) of an item. You can find the ASIN on the product detail page.
productName The localized language product title of the item within the specified marketplace.
lastUpdatedTime The date and time that any quantity was last updated.
totalQuantity The total number of units in an inbound shipment or in Amazon fulfillment centers.
fulfillableQuantity The item quantity that can be picked, packed, and shipped.
inboundWorkingQuantity The number of units in an inbound shipment for which you have notified Amazon.
inboundShippedQuantity The number of units in an inbound shipment that you have notified Amazon about and have provided a tracking number.
inboundReceivingQuantity The number of units that have not yet been received at an Amazon fulfillment center for processing, but are part of an inbound shipment with some units that have already been received and processed.
totalReservedQuantity The total number of units in Amazon's fulfillment network that are currently being picked, packed, and shipped; or are sidelined for measurement, sampling, or other internal processes.
pendingCustomerOrderQuantity The number of units reserved for customer orders.
pendingTransshipmentQuantity The number of units being transferred from one fulfillment center to another.
fcProcessingQuantity The number of units that have been sidelined at the fulfillment center for additional processing.
totalUnfulfillableQuantity The total number of units in Amazon's fulfillment network in unsellable condition.
customerDamagedQuantity The number of units in customer damaged disposition.
warehouseDamagedQuantity The number of units in warehouse damaged disposition.
distributorDamagedQuantity The number of units in distributor damaged disposition.
carrierDamagedQuantity The number of units in carrier damaged disposition.
defectiveQuantity The number of units in defective disposition.
expiredQuantity The number of units in expired disposition.
totalResearchingQuantity The total number of units currently being researched in Amazon's fulfillment network.
researchingQuantityBreakdown A list of quantity details for items currently being researched that includes
  • researchingQuantityInShortTerm (1-10 days)
  • researchingQuantityInMidTerm (11-20 days)
  • researchingQuantityInLongTerm (21 days or longer).

Response example:

{
  "pagination": {
    "nextToken": "seed"
  },
  "payload": {
    "granularity": {
      "granularityType": "Marketplace",
      "granularityId": "ATVPDKIKX0DER"
    },
    "inventorySummaries": [
      {
        "asin": "B00T9QONN1",
        "fnSku": "B00T9QONN1",
        "sellerSku": "msku314best",
        "condition": "NewItem",
        "inventoryDetails": {
          "fulfillableQuantity": 66,
          "inboundWorkingQuantity": 21,
          "inboundShippedQuantity": 0,
          "inboundReceivingQuantity": 0,
          "reservedQuantity": {
            "totalReservedQuantity": 0,
            "pendingCustomerOrderQuantity": 0,
            "pendingTransshipmentQuantity": 0,
            "fcProcessingQuantity": 0
          },
          "researchingQuantity": {
            "totalResearchingQuantity": 0,
            "researchingQuantityBreakdown": [
              {
                "name": "researchingQuantityInShortTerm",
                "quantity": 0
              },
              {
                "name": "researchingQuantityInMidTerm",
                "quantity": 0
              },
              {
                "name": "researchingQuantityInLongTerm",
                "quantity": 0
              }
            ]
          },
          "unfulfillableQuantity": {
            "totalUnfulfillableQuantity": 0,
            "customerDamagedQuantity": 0,
            "warehouseDamagedQuantity": 0,
            "distributorDamagedQuantity": 0,
            "carrierDamagedQuantity": 0,
            "defectiveQuantity": 0,
            "expiredQuantity": 0
          }
        },
        "lastUpdatedTime": "2018-03-31T23: 40: 39Z",
        "productName": "CalciumPowder",
        "totalQuantity": 87
      }
    ]
  }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60

# Tutorial: Get all available inventory summaries that have changed

This tutorial shows you how to use the FBA Inventory API to return all the available inventory summaries that have changed since the specified start date and time. This corresponds to number 2 in How to use the FBA Inventory API.

Prerequisites

To complete this tutorial you will need:

  1. The marketplace ID for the marketplace for which to return inventory summaries.

  2. The start date and time to use as the basis for returning inventory summaries that have changed.

# Get all available inventory summaries that have changed

To return all available inventory summaries that have changed, call the getInventorySummaries (opens new window) operation of the FBA Inventory API, passing the following query parameters:

Parameter Description Required
details Set to true to return inventory summaries with additional summarized inventory details and quantities. Otherwise, returns inventory summaries only (default value). No.
granularityType The granularity type for the inventory aggregation level.
Possible values: Marketplace.
Yes.
granularityId The granularity ID for the specified granularity type. When granularityType is Marketplace, you must specify the marketplaceId. Yes.
startDateTime

A start date and time in ISO 8601 format. If specified, all inventory summaries that have changed since then are returned. You must specify a date and time that is no earlier than 18 months prior to the date and time of the request.

Note: Changes in the following are not detected:

  • inboundWorkingQuantity
  • inboundShippedQuantity
  • inboundReceivingQuantity

Yes.
marketplaceIds The marketplace ID for the marketplace for which to return inventory summaries. Only one marketplace ID is allowed. Yes.

Request example:

GET https://sellingpartnerapi-na.amazon.com/fba/inventory/v1/summaries?granularityType=Marketplace&granularityId=ATVPDKIKX0DER&startDateTime=2018-03-27T23:40:39Z&marketplaceIds=ATVPDKIKX0DER
1

A successful response includes the following in the payload for each sellerSku. Note that because the detail parameter was not specified in the request example and defaults to false, additional summarized inventory details and quantities are not returned.

Name Description
sellerSku The seller stock keeping unit (SKU) of the item.
fnSku Amazon's fulfillment network SKU identifier. Fulfillment network stock keeping units (FNSKUs) are unique identifiers assigned by Amazon to products stored in and fulfilled from Amazon fulfillment centers.
asin The Amazon Standard Identification Number (ASIN) of an item. You can find the ASIN on the product detail page.
productName The localized language product title of the item within the specified marketplace.
lastUpdatedTime The date and time that any quantity was last updated.
totalQuantity The total number of units in an inbound shipment or in Amazon fulfillment centers.

Response example:

{
  "pagination": {
    "nextToken": "seed"
  },
  "payload": {
    "granularity": {
      "granularityType": "Marketplace",
      "granularityId": "ATVPDKIKX0DER"
    },
    "inventorySummaries": [
      {
        "asin": "B00T9QONN1",
        "fnSku": "B00T9QONN1",
        "sellerSku": "msku314best",
        "condition": "NewItem",
        "lastUpdatedTime": "2018-03-31T23: 40: 39Z",
        "productName": "CalciumPowder",
        "totalQuantity": 87
      }
    ]
  }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

# Tutorial: Get inventory summaries for the specified seller SKUs

This tutorial shows you how to use the FBA Inventory API to return inventory summaries for one or more (up to 50) specified sellerSkus. This corresponds to number 3 in How to use the FBA Inventory API.

Prerequisites

To complete this tutorial you will need:

  1. The marketplace ID for the marketplace for which to return inventory summaries.

  2. A list of up to fifty sellerSkus for which to return inventory summaries.

# Get inventory summaries with additional details for the specified Seller SKUs.

To return inventory summaries with full details for the specified SKUs, call the getInventorySummaries (opens new window) operation of the FBA Inventory API, passing the following query parameters:

Parameter Description Required
details Set to true to return inventory summaries with additional summarized inventory details and quantities. Otherwise, returns inventory summaries only (default value). Yes. Must be set to true.
granularityType The granularity type for the inventory aggregation level.
Possible values: Marketplace.
Yes.
granularityId The granularity ID for the specified granularity type. When granularityType is Marketplace, you must specify the marketplaceId. Yes.
sellerSkus A list of seller SKUs for which to return inventory summaries. You may specify up to 50 SKUs. Yes.
marketplaceIds The marketplace ID for the marketplace for which to return inventory summaries. Only one marketplace ID is allowed. Yes.

Request example:

GET https://sellingpartnerapi-na.amazon.com/fba/inventory/v1/summaries?details=true&granularityType=Marketplace&granularityId=ATVPDKIKX0DER&sellerSkus=msku314best%2Cmsku271good&marketplaceIds=ATVPDKIKX0DER
1

A successful response includes the following in the payload for each of the specified sellerSkus:

Name Description
sellerSku The seller stock keeping unit (SKU) of the item.
fnSku Amazon's fulfillment network SKU identifier. Fulfillment network stock keeping units (FNSKUs) are unique identifiers assigned by Amazon to products stored in and fulfilled from Amazon fulfillment centers.
asin The Amazon Standard Identification Number (ASIN) of an item. You can find the ASIN on the product detail page.
productName The localized language product title of the item within the specified marketplace.
lastUpdatedTime The date and time that any quantity was last updated.
totalQuantity The total number of units in an inbound shipment or in Amazon fulfillment centers.
fulfillableQuantity The item quantity that can be picked, packed, and shipped.
inboundWorkingQuantity The number of units in an inbound shipment for which you have notified Amazon.
inboundShippedQuantity The number of units in an inbound shipment that you have notified Amazon about and have provided a tracking number.
inboundReceivingQuantity The number of units that have not yet been received at an Amazon fulfillment center for processing, but are part of an inbound shipment with some units that have already been received and processed.
totalReservedQuantity The total number of units in Amazon's fulfillment network that are currently being picked, packed, and shipped; or are sidelined for measurement, sampling, or other internal processes.
pendingCustomerOrderQuantity The number of units reserved for customer orders.
pendingTransshipmentQuantity The number of units being transferred from one fulfillment center to another.
fcProcessingQuantity The number of units that have been sidelined at the fulfillment center for additional processing.
totalUnfulfillableQuantity The total number of units in Amazon's fulfillment network in unsellable condition.
customerDamagedQuantity The number of units in customer damaged disposition.
warehouseDamagedQuantity The number of units in warehouse damaged disposition.
distributorDamagedQuantity The number of units in distributor damaged disposition.
carrierDamagedQuantity The number of units in carrier damaged disposition.
defectiveQuantity The number of units in defective disposition.
expiredQuantity The number of units in expired disposition.
totalResearchingQuantity The total number of units currently being researched in Amazon's fulfillment network.
researchingQuantityBreakdown A list of quantity details for items currently being researched that includes
  • researchingQuantityInShortTerm (1-10 days)
  • researchingQuantityInMidTerm (11-20 days)
  • researchingQuantityInLongTerm (21 days or longer).

Response example:

{
  "pagination": {
    "nextToken": "seed"
  },
  "payload": {
    "granularity": {
      "granularityType": "Marketplace",
      "granularityId": "ATVPDKIKX0DER"
    },
    "inventorySummaries": [
      {
        "asin": "B00T9QONN1",
        "fnSku": "B00T9QONN1",
        "sellerSku": " msku314best",
        "condition": "NewItem",
        "inventoryDetails": {
          "fulfillableQuantity": 66,
          "inboundWorkingQuantity": 21,
          "inboundShippedQuantity": 0,
          "inboundReceivingQuantity": 0,
          "reservedQuantity": {
            "totalReservedQuantity": 0,
            "pendingCustomerOrderQuantity": 0,
            "pendingTransshipmentQuantity": 0,
            "fcProcessingQuantity": 0
          },
          "researchingQuantity": {
            "totalResearchingQuantity": 0,
            "researchingQuantityBreakdown": [
              {
                "name": "researchingQuantityInShortTerm",
                "quantity": 0
              },
              {
                "name": "researchingQuantityInMidTerm",
                "quantity": 0
              },
              {
                "name": "researchingQuantityInLongTerm",
                "quantity": 0
              }
            ]
          },
          "unfulfillableQuantity": {
            "totalUnfulfillableQuantity": 0,
            "customerDamagedQuantity": 0,
            "warehouseDamagedQuantity": 0,
            "distributorDamagedQuantity": 0,
            "carrierDamagedQuantity": 0,
            "defectiveQuantity": 0,
            "expiredQuantity": 0
          }
        },
        "lastUpdatedTime": "2018-03-31T23: 40: 39Z",
        "productName": "CalciumPowder",
        "totalQuantity": 87
      },
      {
        "asin": "B00T9QONN2",
        "fnSku": "B00T9QONN2",
        "sellerSku": " msku271good",
        "condition": "NewItem",
        "inventoryDetails": {
          "fulfillableQuantity": 6,
          "inboundWorkingQuantity": 2,
          "inboundShippedQuantity": 0,
          "inboundReceivingQuantity": 0,
          "reservedQuantity": {
            "totalReservedQuantity": 0,
            "pendingCustomerOrderQuantity": 0,
            "pendingTransshipmentQuantity": 0,
            "fcProcessingQuantity": 0
          },
          "researchingQuantity": {
            "totalResearchingQuantity": 0,
            "researchingQuantityBreakdown": [
              {
                "name": "researchingQuantityInShortTerm",
                "quantity": 0
              },
              {
                "name": "researchingQuantityInMidTerm",
                "quantity": 0
              },
              {
                "name": "researchingQuantityInLongTerm",
                "quantity": 0
              }
            ]
          },
          "unfulfillableQuantity": {
            "totalUnfulfillableQuantity": 0,
            "customerDamagedQuantity": 0,
            "warehouseDamagedQuantity": 0,
            "distributorDamagedQuantity": 0,
            "carrierDamagedQuantity": 0,
            "defectiveQuantity": 0,
            "expiredQuantity": 0
          }
        },
        "lastUpdatedTime": "2018-04-01T23: 40: 39Z",
        "productName": "CalciumPowder",
        "totalQuantity": 8
      }
    ]
  }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107

# General Recommendation

# Pagination in GetInventorySummariesResponse

When a call to the getInventorySummaries (opens new window) operation produces a nextToken, then there are inventories that have not been encountered yet and you can get them on the subsequent calls. You iterate through the Inventories using the nextToken token provided in successive responses. All inventory has been traversed, only after the pagination is returned in response. This means the inventorySummaries list may be empty but still producing a nextToken.

Examples:

Even if there are no inventories in the inventorySummaries list, there is a nextToken:

{
  "response": {
    "pagination": {
      "nextToken": "XXXXXXXXX"
    },
    "payload": {
      "granularity": {
        ...
      },
      "inventorySummaries": []
    }
  }
}
1
2
3
4
5
6
7
8
9
10
11
12
13

The getInventorySummaries operation is considered done only when the pagination is not returned in the response:

{
  "response": {
    "payload": {
      "granularity": {
        ...
      },
      "inventorySummaries": []
    }
  }
}
1
2
3
4
5
6
7
8
9
10