Inventory & Pricing API Integration
Short answer
Inventory and pricing API integration connects the systems that own stock and price (ERP, PIM, OMS, or the store platform) to AI shopping surfaces through queued, idempotent updates, scheduled reconciliation, and a live check at checkout. Agent Commerce Optimization builds and tests that pipeline. A product feed snapshot shows what was true at export time; it never replaces revalidation when a buyer acts.
Key takeaways
- Decide which system owns stock, list price, sale price, and customer price before writing any sync code.
- Product feeds are snapshots. OpenAI's feed guide says the feed does not confirm a purchase; the live site or checkout checks the current offer.
- Every update path needs a queue, retries with backoff, idempotency keys, and a dead-letter path someone actually reviews.
- Reconciliation jobs catch the drift that webhooks miss; freshness tests prove the pipeline works end to end.
- Native platform feeds may already be enough for single-system stores. Custom work fits when data lives in several systems.
Can an AI assistant check live inventory?
Yes, but only through an integration that reads current data at the moment it matters. Most AI shopping surfaces read a periodic catalog snapshot for discovery and then rely on the merchant's own systems for the live offer at checkout. The gap between those two moments is where stale prices and overselling happen.
OpenAI's product feed guide describes feeds as full snapshots delivered by upload, hosted URL, or SFTP, and states that the feed does not update a cart or confirm a purchase; the merchant's live site or plugin checks the current offer when a customer acts. Google's Universal Commerce Protocol (UCP), an open standard for agent-driven checkout, works the same way: Merchant Center data supports discovery, and the merchant's checkout endpoint returns the authoritative price and availability. See the UCP guide for the protocol itself.
The outcome of this service is a documented pipeline in which every price and stock value shown to a buyer or agent can be traced to a source system, an update event, and a timestamp, and in which checkout always revalidates before money moves.
When do you need custom inventory and pricing integration?
You need it when stock or price lives outside the store platform, changes faster than your feed exports, or depends on the buyer. If your store platform is the single source of truth and its native channel already publishes your catalog, you may not need us for this layer.
| Situation | What the platform may already handle | Where custom work fits |
|---|---|---|
| Shopify store, inventory managed in Shopify | Shopify Catalog shares products with agentic channels, and Shopify's ChatGPT channel routes checkout through Shopify for eligible US-selling stores (as documented on 2026-11-29). | Usually none for sync. Possibly an ERP push into Shopify if stock actually originates elsewhere. |
| ERP or WMS owns stock, store holds a copy | The store's own feed exports whatever the store holds, including stale copies. | Event-driven sync from ERP to store and feed, reconciliation, and oversell protection. |
| Multiple warehouses or marketplaces share stock | Platform multi-location inventory, if configured. | Allocation rules, safety buffers per channel, and conflict handling. |
| B2B contract or customer-specific prices | Public list prices only, in most consumer feeds. | Authenticated price lookup at the tool or checkout layer; see B2B customer-specific pricing. |
| Stripe Agentic Commerce Suite seller | Stripe-managed checkout from a catalog feed; Stripe's docs list hooks for real-time prices and inventory. | Implementing those hooks against your ERP or OMS. |
Which systems and access does an inventory integration need?
It needs read access to whichever system owns each field, a way to receive or poll changes, and write access to every destination. The first deliverable is a field ownership map, because most sync bugs are really ownership disputes.
| Field | Typical owner | Change signal | Destinations |
|---|---|---|---|
| On-hand quantity | ERP or WMS | Webhook, message queue, or polled delta | Store, feeds, checkout availability check |
| Available-to-sell | OMS or computed (on-hand minus reserved minus buffer) | Derived on each stock or order event | Feed availability, agent tools |
| List price | ERP or PIM | Price-list publish event | Store, feeds, structured data |
| Sale price and window | Store promotions engine or pricing service | Promotion start and end | Feed sale_price, checkout |
| Customer or contract price | ERP customer price list | Request-time lookup | Authenticated tools and checkout only |
| Identifiers (SKU, variant ID) | PIM or store | Rarely changes; must be stable | All destinations; see stable IDs |
- Read access: API credentials or a read replica for the owning system, scoped to inventory and price objects.
- Change events: webhooks, change-data-capture, or a polling endpoint with a reliable
updated_sincefilter. - Destination access: store admin API, feed delivery (OpenAI accepts upload, hosted URL, or SFTP), and any checkout endpoint you operate.
- Infrastructure: a queue and worker environment you own, or one we deploy into your cloud account.
What does the inventory and pricing integration include?
It includes the ownership map, the sync workers, reconciliation, freshness tests, and the checkout revalidation hook. It does not include replacing your ERP or redesigning your pricing strategy.
| Deliverable | Included | Out of scope |
|---|---|---|
| Field ownership and freshness requirements | Written map, per-field freshness target agreed with you | Choosing your pricing strategy |
| Event-driven sync workers | Queue consumers, retries with backoff, idempotency, dead-letter queue | Changes inside the ERP itself |
| Reconciliation job | Scheduled full compare between source and destinations, drift report | Manual data cleanup beyond agreed samples |
| Checkout revalidation | Live price and stock check before order creation, mismatch handling | Building the checkout protocol itself; see agentic checkout integration |
| Feed updates | Price and availability fields kept current in your feed outputs | Full feed build; see product feed integration |
| Tests and runbook | Freshness tests, failure-injection tests, operating runbook | 24/7 on-call (available separately as monitoring) |
What does an idempotent inventory update look like?
Each change becomes a message with a stable idempotency key, a source timestamp, and the absolute new value, never a relative delta. The worker ignores any message older than the value it already applied, so retries and out-of-order delivery cannot corrupt stock.
{
"idempotency_key": "erp-stock-SKU-DEMO-104-BLK-M-2026-11-29T14:02:11Z",
"source": "erp",
"source_updated_at": "2026-11-29T14:02:11Z",
"item_id": "SKU-DEMO-104-BLK-M",
"on_hand": 7,
"reserved": 2,
"safety_buffer": 2,
"available_to_sell": 3,
"feed_availability": "in_stock"
}async function applyStockUpdate(msg: StockMessage) {
if (await processedKeys.has(msg.idempotency_key)) return; // duplicate delivery
const current = await store.getStockState(msg.item_id);
if (current && current.sourceUpdatedAt >= msg.source_updated_at) {
await processedKeys.add(msg.idempotency_key); // older event, skip
return;
}
await store.setAvailable(msg.item_id, msg.available_to_sell, msg.source_updated_at);
await feedQueue.enqueue({ item_id: msg.item_id, availability: msg.feed_availability });
await processedKeys.add(msg.idempotency_key);
}A working, synthetic version of this flow is documented in the inventory feed integration demo, and the reasoning behind webhooks, retries, and dead-letter handling is in inventory sync: webhooks and retries.
How do we prevent stale prices and overselling?
Use three layers: fast event-driven updates, scheduled reconciliation to catch what events missed, and a live revalidation at checkout that wins over everything else. Any one layer alone eventually fails.
- 1
Push changes as events
Stock and price changes enter a queue within the source system's event latency. Workers apply absolute values with idempotency keys.
- 2
Buffer low stock
Apply a per-channel safety buffer so the last few units are not promised to agent channels that refresh slowly. You set the buffer; we make it configurable.
- 3
Reconcile on a schedule
A full compare between the owning system and each destination flags and corrects drift, and reports it so recurring causes get fixed.
- 4
Revalidate at checkout
Before creating an order, the checkout path reads live price and stock. On mismatch it returns an updated total or an out-of-stock message instead of failing silently.
- 5
Alert on dead letters
Messages that exhaust retries land in a dead-letter queue with an alert to a named owner.
How does an inventory integration project run?
- 1
Discovery and access
We review your systems, read sample exports, and agree on the ownership map. Decision point: which system wins for each field.
- 2
Freshness baseline
We measure current drift between the source and your published feeds on a sample of SKUs. Decision point: whether drift justifies the build.
- 3
Build in staging
Workers, queue, reconciliation, and revalidation run against staging or sandbox credentials first.
- 4
Failure testing
We inject duplicates, out-of-order events, timeouts, and source outages and confirm the documented behavior.
- 5
Controlled rollout
A subset of SKUs or one channel goes live first. Decision point: expand after reconciliation reports stay clean for an agreed period.
How do you test an inventory and pricing integration?
Acceptance is based on observable tests you can rerun, not on a demo. Targets are agreed during discovery because they depend on your systems' own latency.
| Test | Pass condition |
|---|---|
| End-to-end freshness | A change made in the source system appears in each destination within the agreed target, measured on sample SKUs. |
| Duplicate delivery | Replaying the same message any number of times leaves state unchanged. |
| Out-of-order delivery | An older event arriving after a newer one is ignored. |
| Source outage | Workers back off, messages are retained, and processing resumes without loss after recovery. |
| Reconciliation | Deliberately introduced drift is detected and reported on the next run. |
| Checkout revalidation | A price or stock change between feed export and checkout produces an updated total or a clear unavailable message, never an order at the stale price. |
Who owns and maintains the integration after launch?
You do. Code runs in your accounts, under your repository, with a runbook covering deploys, credential rotation, dead-letter review, and reconciliation reports. Source-system changes such as a new ERP version or a new warehouse are handled as scoped change requests. If you want ongoing watching, agentic commerce monitoring covers it.
How is inventory and pricing integration priced?
A fixed quote follows scoping. The main drivers are the number of source systems, whether they emit events or must be polled, the number of destinations, customer-specific pricing, multi-location allocation, and the quality of existing identifiers. See our pricing approach for how scoping works.
Frequently asked questions
Can ChatGPT or Google AI Mode read our live stock directly?
For discovery, both rely on catalog data you submit, which is a snapshot. Live values come from your own checkout or tool endpoints when a buyer acts, so the accuracy of what agents show depends on how fresh your feed is and how well your checkout revalidates.
How often should our feed update price and availability?
There is no universal number. OpenAI's feed guide does not prescribe a frequency. Measure how fast your prices and stock actually change, then set a refresh cadence and a checkout revalidation that keep the window of error acceptable to you.
What happens if the ERP is down?
Updates queue and retry with backoff, the last known good values remain published, and reconciliation catches up after recovery. Checkout revalidation should fail closed for stock it cannot confirm rather than accept orders blindly.
Do we need webhooks, or is polling acceptable?
Polling works if the source supports a reliable changed-since query and your freshness target tolerates the interval. Webhooks or change-data-capture reduce latency but still need reconciliation, because events can be lost.
Can you handle customer-specific B2B prices?
Yes, but not through public feeds. Customer prices belong behind authenticated tools or checkout calls that look up the buyer's price list at request time.
Is this the same as product feed integration?
No. Feed integration builds the catalog file and mapping. This service keeps the volatile fields in that file and in checkout correct over time. Many projects need both.
Map where your stock and prices really live
Tell us your store platform, ERP or PIM, warehouses, and the channels you publish to. We will start with the ownership map.
Related
- Inventory sync: webhooks and retriesEvent delivery, retries, and dead-letter design.
- Inventory feed integration demoA synthetic, end-to-end demonstration.
- Feed refresh and freshnessHow to measure drift before you build.
- Product feed integrationBuild and map the catalog feed itself.
- Agentic checkout integrationWhere revalidation meets the checkout protocol.
Sources
- OpenAI: Submit product feeds
- OpenAI: Product feed schema
- Google: UCP FAQ
- UCP: Checkout capability specification
- Stripe: Sell products through agents
- Shopify Help: Selling on ChatGPT
Platform capabilities, eligibility, and specifications change. Sources were checked on 2026-11-29; confirm the current primary documentation before scoping an implementation. See our editorial policy and methodology.