Stripe ACP Webhooks, From Checkout to Order Confirmation
Follow a $100 order from shopper approval to shipment. See who sends each webhook, which message releases the order, and how to recover from a lost reply.
Consider a shopper who approves a $100 purchase in an assistant. Stripe processes the card, the warehouse prints one label, and the assistant tells the shopper the order has shipped. Three systems had to agree about that order. Each had a different piece of evidence. A checkout integration works when those pieces can arrive twice, late, or in an unexpected order and the shopper still gets exactly one parcel.
This walkthrough follows a fictional US merchant selling a $90 canvas bag with $10 delivery and no additional tax in the example. It uses a one-time Shared Payment Token, automatic capture, and a merchant-operated checkout. The messages are worked examples derived from the April 17, 2026 ACP specification and Stripe’s seller documentation, reviewed November 24, 2026. They are suitable for designing a sandbox test. No live charge was made.
Who sends which webhook?
In this architecture, the agent calls the merchant to create, update, and complete checkout. Stripe sends payment or token events to the merchant. The merchant sends order updates to the agent. An engineer searching for “Stripe ACP webhooks” needs to decide which of those last two directions they are implementing.

| Sender → receiver | Example message | What the receiver learns |
|---|---|---|
| Agent → merchant | Complete checkout request | The shopper has approved the quoted terms and supplied a payment credential. |
| Stripe → merchant | payment_intent.succeeded | The corresponding payment has succeeded. The merchant can apply its order-release policy. |
| Stripe → merchant | shared_payment.granted_token.deactivated | The grant can no longer be used. Stripe lists consumption, resolution, expiry, and revocation as reasons. |
| Merchant → agent | order_create or order_update | The merchant’s current order record, including available fulfillment and adjustment details. |
Check the architecture before building. For Stripe-managed agentic checkout, Stripe documents a checkout.session.completed notification to the seller and provides its own fulfillment guidance. A retailer on that path should start with its existing Checkout integration. The remaining example assumes the merchant exposes the ACP endpoints and processes a PaymentIntent itself. Stripe’s managed order flow.
1. Give the shopper a total the warehouse can honor
The agent asks the merchant to create a checkout session for one bag. The merchant assigns a checkout identifier, checks the selected variant against its sellable inventory, and quotes delivery for the destination. The agent can update the session when the shopper changes the address or shipping speed. At completion, the merchant calculates the amount against the current cart again. A quote for yesterday’s stock or a different shipping address is a poor basis for a charge.
For this order, the shopper sees $90 in goods and $10 for shipping. Once the shopper approves that $100 total, the agent obtains a scoped SPT for the merchant. Stripe’s documented grant carries an amount limit, currency, and expiration. Preserve the checkout identifier alongside the local cart revision and approval total. A support agent later needs to know which version of the cart the customer actually approved.
If upgrading delivery now raises the total to $108, the existing $100 approval no longer covers the purchase. Return the revised terms through the checkout flow and obtain fresh authorization as needed. Recording the old quote, new quote, and resulting checkout state makes this ordinary commercial event intelligible to both customer service and finance.
2. Complete checkout and record the payment attempt
When the agent calls the complete endpoint, associate the session with a durable payment attempt. In the seller documentation’s preview example, the Stripe API takes the granted token under payment_method_data[shared_payment_granted_token]. Here are the four relevant form fields for our example. The preview version in the source is 2026-09-30.preview. Confirm that the integration is enabled for your account and that the version you use has the same contract. Stripe’s seller SPT reference.
amount=10000
currency=usd
payment_method_data[shared_payment_granted_token]=spt_example
confirm=trueThe amount is 10,000 US cents. The token identifier above is a placeholder. Store the resulting PaymentIntent ID against the checkout and use a stable Stripe idempotency key for retries of this same payment attempt. At the merchant boundary, persist the outcome for the agent’s checkout idempotency key as well. These keys serve different callers. Together they cover the case where a processor accepts the payment but the merchant’s reply never reaches the agent. Stripe’s idempotency contract.
After a timeout, look up the original attempt before starting another one. A returned success, a later webhook, and a reconciliation job can all confirm the same payment. Give those paths one common, repeatable transition into the paid state. For a small team, a useful operational test is whether someone on the next shift could recover the missing reply from the stored records alone. A unique checkout-to-order mapping and a durable fulfillment request keep the warehouse from interpreting three observations as three purchases.
3. Decide when the order can leave the building
For our automatically captured card payment, the merchant checks that the successful PaymentIntent belongs to this checkout and that its amount and currency match the approved transaction. The order system can then release one paid order under the merchant’s inventory and fraud policies. A manual-capture business needs an explicit authorization and capture policy of its own. Its warehouse timeline will be different.
A token deactivation can arrive while someone is already packing the bag. Look up the stored payment first. If the token was consumed and the associated payment succeeded, the warehouse can continue. If the grant expired before a successful charge, the merchant can ask the shopper to reauthorize. Modeling token status and payment status separately prevents a perfectly ordinary token transition from canceling a paid order.
For incoming Stripe messages, verify the signature on the original request bytes, record receipt durably, and hand longer processing to a worker. Stripe documents duplicate delivery and the possibility that events arrive out of order. Keep the received event ID and make the underlying business transition idempotent too. That allows a late event, a replay, and a support-initiated reconciliation to converge on the same order. Stripe webhook delivery guidance.
4. Tell the assistant what actually shipped
Once the merchant creates the order, its outgoing ACP event uses order_create in the April 17 contract. When the warehouse dispatches the bag, the outgoing type is order_update. The status comes from the order management system. A label purchase alone may be too early for the merchant’s definition of shipped. Choose the warehouse milestone that also drives customer-facing tracking on your site.
The excerpt below identifies the order after dispatch. On the wire, this version calls for the full current order object, including available line items, fulfillments, adjustments, and totals. The article abbreviates those fields so the identifying information is easy to see. Use the schema release agreed with your receiving partner. April 17 ACP order webhook schema and full examples.
{
"type": "order_update",
"data": {
"type": "order",
"id": "order_bag_17",
"checkout_session_id": "session_bag_17",
"permalink_url": "https://merchant.example/orders/bag-17",
"status": "shipped"
}
}The April specification names the outgoing signature header Merchant-Signature. Sign the exact serialized body with the destination’s agreed secret and timestamp convention. Keep the outbound event pending until the receiver acknowledges delivery. If delivery times out, retry the order notification. The charge and warehouse release have already happened.
For a refund, finance first issues it through the payment system and records its status. The merchant then communicates the revised order to the agent. In this version of ACP, financial changes appear in adjustments. A refund message should carry the scope of the adjustment, particularly on a multi-item order where one line is returned and the others still belong to the shopper.
A sandbox acceptance test for the handoff
- Successful checkout. Use Stripe’s documented sandbox helper to create an eligible test grant. Submit the $100 order. Expected evidence includes one paid order linked to one PaymentIntent and one warehouse request.
- Lost completion reply. Repeat the same completion request after simulating a lost response. Compare the order identifier and count the successful payments. The warehouse should still have one job.
- Expired approval. Supply a test grant that cannot cover the purchase. The checkout should surface a recoverable failure and the warehouse should have no release for this attempt.
- Duplicate successful payment event. Redeliver the same verified event. The order history should show the repeated delivery while the shipment count stays at one.
- Unavailable order receiver. Make the agent’s test receiver unavailable as the bag ships. Restore it and inspect the eventual order snapshot. The shopper’s order page and the assistant should converge on the same status.
Frequently asked questions
Which identifier should customer support ask for?
Give the shopper a merchant order number and a persistent order link. Internally map the order to the ACP checkout session, Stripe PaymentIntent, and shipment. Support can then locate the delayed step without asking the customer for a payment credential.
How do we know this integration is healthy after launch?
Count paid checkouts lacking a merchant order, paid orders with multiple fulfillment requests, and shipped orders whose agent notification remains unacknowledged. Track the age of the oldest unresolved item in each group. A reassuring webhook delivery percentage can conceal a single paid shopper who has waited three days for a bag.
References & Further Reading
Continue Exploring
When a Stripe Shared Payment Token Expires, Is Revoked, or Hits Its Limit
Follow one order through expiry, revocation, a spending limit and a lost response. Use the recovery table to decide when to reconcile, requote or ask for approval.
What Does a Stripe Shared Payment Token Transaction Cost?
Model the processing, token, and channel costs of the same order.
Agentic Commerce Protocol for Merchants
See how the checkout protocol fits into a merchant’s commerce stack.
