How do you use Amazon inventory reports for alerts?

Amazon inventory reports provide stock data that you can check through the Commerce Spine inventory query. Ask dataFreshness for the latest inventory run before using that snapshot for an alert. [cs]

Amazon says the Reports API can be used to monitor inventory and track orders for fulfillment. Its documentation also describes report requests, scheduling and retrieval, processing checks, and report retrieval. [amazon]

How do you query inventory in Commerce Spine?

Commerce Spine documentation describes a read-only API for agents, scripts, and automations. Its inventory entity has the key inventory, and its examples show fields and nested inventory data available to a query. [cs]

How do you check inventory freshness?

The Commerce Spine documentation shows a dataFreshness query for the inventory asset. It defines inventory freshness as the maximum last_successful_run_date across the three amazon_sellercentral inventory report modules. [cs]

Handling report changes

Amazon warns that it periodically adds new fields and field values to reports and that document identifier formats can change. Applications that parse reports need to handle those updates. [amazon]

What does the Free plan allow?

The Free plan connects 1 Amazon account. It allows 20 requests per hour and 40 requests per day. These limits apply per organization. [product]

Every plan backfills 30 days at first sync. The Free plan has a 30-day query window; paid plans allow 90 days per query. See the published plan limits. Inventory and listing queries still use their latest snapshots. [product] [cs]

Read the Amazon data API guide for the next query. Use account performance when checking the result. The Amazon reporting data guide covers that data in more detail. [cs]

Free plan limitCommerce Spine
Connected Amazon accounts1
Requests per hour20
Requests per day40
First sync backfill30 days

Frequently asked questions

How do I find the accounts my token can read?

Call amazonAccounts first. Use an account ID returned by that request.

How do I check the latest available data?

Use dataFreshness for the asset you want to query. Check its returned date before using the data.

Can the API change my Amazon account?

The API is read-only. Reading data does not change bids or stock.

What should I do when a response has more pages?

Follow the returned cursor. Keep reading until no further page remains.

Sources

  1. Commerce Spine official reference
  2. Amazon Reports API documentation
  3. Commerce Spine product and plan limits

Want more of this in your Google results? Add Commerce Spine as a preferred source.