Shipping and tax in agent checkout: an offer checklist
Design agent checkout around buyer context, delivery choices and accurate offer estimates. Test shipping, tax calculation and changes before purchase approval.
Tru Commerce Team · November 26, 2026 · Checkout & Protocols
An agent checkout needs an offer calculated for the selected items, buyer context and delivery choice. A product price alone does not establish the amount the buyer will pay. The integration must distinguish estimates from final checkout state and handle changes before treating a purchase as approved.
Reviewed 26 November 2026. This is a technical integration guide based on current platform documentation and proposed acceptance tests. It does not determine a merchant's tax obligations or report customer outcomes. Tru Commerce builds commerce integrations.
Define the offer inputs before choosing a calculation API
List the inputs used by your current merchant checkout: selected variants, quantities, buyer or account context, destination, delivery option, promotions and any relevant product classifications. Identify the system that owns each field and how corrections reach the calculation path.
Some inputs may be unavailable at the start of a conversation. The useful response is to state what remains estimated and request the information needed for the next step. Avoid converting an incomplete calculation into an unconditional promise.
Consider an illustrative basket that contains a fragile product and an ordinary accessory. A generic shipping price may not describe the options for the actual basket and destination. The integration should preserve the item selection and request the merchant's available options rather than constructing a delivery promise from general product text.
The product-data API guide covers identity and offer context. Here the focus is on the calculation, selection and approval boundary.
Preserve buyer context when prices depend on it
Shopify's cartBuyerIdentityUpdate updates contact, location and checkout preferences. Its documentation says buyer country determines international pricing and should match the shipping address. It can also associate customer access or a B2B company location. Preferences prefill checkout fields but do not synchronize back to the cart if changed at checkout.
That last distinction matters when an agent resumes a conversation after handoff. The earlier cart context may no longer describe what the buyer selected in checkout. Decide which authoritative state the application reads before quoting a new total or explaining the order.
Test a change in destination and a change in authenticated account separately. They are different inputs with different permission requirements. A location field should not grant access to another customer's price list or saved address.
Our recommendation is to retain a safe correlation record of the context used for each offer. Avoid copying sensitive account or address data into broad analytics events merely to make the record easy to inspect.
Keep estimates visible as estimates
Shopify's CartCost reference describes estimated costs that can change at checkout. It includes estimation flags for subtotal and total, and reflects buyer-context pricing. A displayed amount should therefore preserve the meaning of the returned field rather than being relabeled as a final payable amount by the assistant.
Write a rendering rule for every price field you expose. Include currency, estimate status and the conditions under which it is refreshed. If a field is not available, do not replace it with zero. Unknown shipping and free shipping are different states.
A practical offer record can include the following application-level fields. This is a proposed design, not a universal protocol schema.
| Record element | Why it matters | Check before approval |
|---|---|---|
| Item and variant identifiers | Preserve the intended selection | Same merchandise appears in the current checkout |
| Quantity and promotion outcome | Explain basket-dependent changes | Current basket qualifies for displayed adjustments |
| Buyer and destination context reference | Connect the calculation to its inputs | Authorized, current context was used |
| Delivery selection | Identify the selected service | Option remains available for the relevant delivery group |
| Amount, currency and estimate status | Avoid overstating price certainty | Buyer sees the meaning of the returned amount |
| Checkout or offer identity | Support retrieval and reconciliation | Approval refers to the intended commercial state |
| Expiry or freshness condition | Prevent stale reuse | Changed or expired offers follow the defined review path |
Select delivery options at the level the platform exposes
Shopify's cartSelectedDeliveryOptionsUpdate selects an option for one or more delivery groups. The option handle identifies the selected choice for the group. This is more precise than storing a single free-text label such as express in a conversation.
Keep each selected handle associated with its group. After a basket or address change, inspect the current options before reusing an earlier selection. A label that looks similar does not establish that the cost, destination or set of items is unchanged.
The acceptance test should include more than one available option and a case where the earlier option is no longer offered. The agent should explain the new choice rather than silently replacing it. If your implementation only supports a single delivery group, state that as a pilot limitation.
The promotion and variant guide provides the preceding basket tests. Run them together so a discount change and a delivery change cannot produce contradictory totals.
Treat tax calculation and transaction recording as different operations
Stripe's standalone Tax APIs distinguish calculations, transactions and reversals, including use with payments processed outside Stripe. The documentation states that its calculations depend on active registrations and can return zero where no registration is active in the customer's location.
The engineering implication is that zero tax is a result to interpret with the responsible merchant team, not proof that no obligation exists. Validate configuration and inputs with the people who own tax operations. Do not ask the assistant to infer legal treatment from product text or an incomplete address.
Keep the calculation record separate from evidence that a transaction was recorded. A preview can be useful before purchase without establishing the post-purchase accounting state. Define what happens after cancellation, refund or a failed order so the relevant systems remain consistent.
This article does not prescribe jurisdictional rates, registration decisions or a universal tax-inclusive pricing model. Those choices must come from the merchant's configured and reviewed operating process.
Test changes before and after buyer approval
A useful test pack covers the transition from estimated basket to approved offer. Define expected behavior before running the test, and inspect merchant records as well as the conversation.
| Scenario | Evidence to inspect | Required application decision |
|---|---|---|
| Destination is incomplete | Calculation status and missing inputs | Request the next required information; keep estimates qualified |
| Buyer changes destination | Current options and recalculated amount | Explain changed terms before a new purchase approval |
| Preferred delivery option disappears | Available options for the current group | Ask the buyer to choose a supported alternative |
| Basket loses a promotion | Current discount outcome and total | Present the revised offer rather than an old savings claim |
| Checkout changes a prefilled preference | Authoritative checkout state | Do not assume the old cart preference remains current |
| Tax calculation returns zero unexpectedly | Inputs and service configuration | Route the discrepancy to the responsible team |
| Completion response is lost | Authoritative checkout and order state | Follow recovery logic without creating a new purchase blindly |
Do not invent a universal tolerance for increasing the buyer's approved amount. Any permitted variation needs an explicit, enforceable authorization model and a compatible payment route. For a normal review-and-confirm flow, changed material terms should return to the buyer for review under your defined policy.
For protocol-specific completion behavior, use the UCP implementation guide and checkout recovery guide. A calculation retry and a purchase retry are different actions.
Release a supported offer path before expanding scope
Choose the initial markets, product types and delivery options. Record what is outside the pilot, including unusual fulfillment, subscriptions or multi-address scenarios if they are not supported. A successful simple basket should not be reported as universal checkout coverage.
Make the offer owner and incident owner explicit. If the assistant displays a different total from the merchant checkout, the team needs enough correlation evidence to identify which state changed. Record the issue as a mismatch to investigate rather than assuming the model or tax provider is at fault.
Tru Commerce's agentic checkout addresses the connection between agent interactions and merchant commerce systems. Book an offer-flow review with a representative basket, destination-dependent rules and your current checkout route to define a concrete acceptance scope.
FAQ
Only when the authoritative calculation establishes that meaning for the actual basket and context. Otherwise preserve estimate status and distinguish unresolved delivery, tax or other components.
No. It can reflect configuration or inputs. Have the merchant's responsible tax team validate the operating setup; the assistant should not infer obligations from the number alone.
Recheck current availability and the applicable delivery group. An earlier label or handle should not be assumed valid for a changed basket or destination.
Follow an explicit approval policy and the supported payment contract. Do not silently exceed the buyer's authorization or treat a lost completion response as permission to start a new purchase.
Sources
- 1.Shopify's cartBuyerIdentityUpdate - shopify.dev
- 2.Shopify's CartCost reference - shopify.dev
- 3.Shopify's cartSelectedDeliveryOptionsUpdate - shopify.dev
- 4.Stripe's standalone Tax APIs - docs.stripe.com
Put this into practice
Walk through your shopper journey, integration requirements and the results you want to measure with Tru Commerce.
Choose a time after the form · 30 minutes · no card
Continue reading
November 26, 2026
Agent identity: what merchants should verify and buy
Compare agent verification approaches and merchant evidence requirements. Separate request identity, customer authorization and payment controls before buying.
November 26, 2026
Agent orders: promotion, variant and webhook tests
Test agent orders for correct variants, applicable discounts and reliable webhook processing. Use current Shopify contracts and practical merchant checks.
November 26, 2026
ACP implementation: merchant checkout readiness
Implement ACP around authoritative checkout, payment compatibility and order recovery. Review channel access, capability negotiation and merchant pilot tests.