ACP — Agentic Commerce Protocol
OpenAI & Stripe's commerce checkout protocol with Ed25519 / ES256 signed requests.
OpenAI & Stripe's commerce checkout protocol. A merchant exposes a product feed, a checkout endpoint, and a webhook URL; agents discover the products and trigger Stripe-backed checkout sessions on the merchant's behalf.
Ed25519 / ES256 signed checkout requests (detached JSON signature): AstraSync verifies the signature, resolves the agent identity, and applies endpoint policy.
ACP is separate from ChatGPT Wallet, where ChatGPT's agents pay in your existing web checkout with a network token instead of calling an ACP checkout endpoint.
You declare: merchant ID, checkout endpoint, product feed URL, webhook URL, supported payment methods (card / Apple Pay / Google Pay / Stripe Link / bank transfer), fulfillment options.
Serving ACP checkout. The SDK's ACP checkout kit (createAcpCheckoutKit()) serves the
checkout-session routes and runs the AstraSync purchase check. See
Merchant commerce kit. You choose how agents pay
(How agents pay):
- The agent's own token. Pass
agentTokens: { handlers, charge }with the delegated-payment handlers your processor accepts (for examplestripeSharedPaymentTokenHandler()for Stripe shared payment tokens). They are advertised incapabilities.payment.handlersbeside AstraSync's (acpAgentTokenHandlers(),requires_delegate_payment: true); for your discovery document usebuildAcpWellKnown({ endpoint, paymentHandlers, agentTokenHandlers }). Yourchargereceives the agent'spayment_data; AstraSync receives only the credential's presence and type, never the token. Stripe's shared payment tokens need an agreement between you and the agent's platform and aren't available to every seller or region. - A payment method saved in AstraSync (
ai.astrasync.card_token, stores on AstraSync's own Stripe account) or a stablecoin voucher (ai.astrasync.voucher), viasettle. - Your hosted checkout. Pass
hostedCheckout: { create, buyer }. Complete keeps the sessioncomplete_in_progresswithcontinue_urlset to your processor's page and apayment_requiredmessage, orbuyer_payment_requiredwhenbuyer: 'human'(the shopper must pay themselves). Finish it withkit.resolvePayment()from your payment webhook.
No payment method on file is not a decline: the kit answers the recoverable
instrument_required (or falls back to your hosted checkout) without calling settle, where it
used to answer payment_declined. An AstraSync platform failure is the recoverable
settlement_unavailable. Only your processor declines.
PDLSS pre-fill: purpose financial_transaction, checkout domain + merchant:<id> added to
counterparties.
{
"protocols": ["a2a", "acp"],
"acp": {
"merchantId": "merchant_abc123",
"checkoutEndpoint": "https://api.shop.com/checkout",
"productFeedUrl": "https://api.shop.com/feed",
"webhookUrl": "https://api.shop.com/webhooks/orders",
"supportedPaymentMethods": ["card", "apple_pay"],
"fulfillmentOptions": ["shipping", "digital_delivery"]
}
}
