← Back
AWS ML Blog

Enable AI agents to pay for AWS Marketplace x402 products with Amazon Bedrock AgentCore payments

•9 min read•
#agents#deployment#amazon
Level:Advanced
For:AI Engineers
✦TL;DR

Amazon Bedrock AgentCore payments now support AWS Marketplace purchases, letting agents autonomously pay x402‑enabled software, APIs, data, and content in USD via the developer’s AWS bill. The flow adds an AWS Billing connector that validates session budgets, returns a payment token, and records each transaction as an AWS Marketplace line item observable in CloudTrail and Cost Explorer. This extension removes the need for stablecoin wallets or API keys and enables enterprise‑grade guardrails such as spending limits and approved‑seller policies.

⚡ Key Takeaways

  • Agents can now pay x402‑enabled AWS Marketplace sellers per request in USD, with charges settled on the developer’s AWS bill.
  • Integration uses an AWS Billing connector in AgentCore payments that requires a service‑linked role to access AWS Marketplace.
  • Guardrails from AgentCore policy (spending limits, approved sellers) are enforced, and payment session caps prevent overspending.
  • Transactions are auditable via AWS CloudTrail and appear in AWS Cost Explorer as Marketplace line items.
  • Private Marketplace restrictions apply automatically, limiting agents to products the organization has approved.
💡 Why It Matters

Engineers can embed fully auditable, budget‑controlled commerce directly into autonomous agents without managing external wallets or keys, accelerating production‑scale agentic commerce while meeting enterprise security and cost‑management requirements.

✅ Practical Steps

  1. Create a Payment Manager with an AWS Billing connector and configure the required service‑linked role for AWS Marketplace access.
  2. For each task, generate a payment session with a defined spending limit and provide the session ID to the agent.
  3. When a seller returns a 402 Payment Required response with a signed quote, forward it to AgentCore payments, obtain the payment token, and retry the request with the token to complete the purchase.

Want the full story? Read the original article.

Read on AWS ML Blog ↗

More like this

New in AWS Quick: More capable flows, an updated web experience, and agents that work together

AWS ML Blog•#agents

Three insights you may have missed from theCUBE’s coverage of the Dell Technologies New York Symposium

SiliconANGLE AI•#deployment

How Google Duplex evolved to also call businesses for you in Gemini

Google Research•#agents

Welcome Inkling 2 Mini, Cutting-edge Performance for your Local Setup

Hugging Face Blog•#llm

EXPLORE AI NEWS

Daily hand-picked stories on LLMs, RAG, agents and production AI — curated for engineers who ship.

BROWSE NEWS

GET THE WEEKLY DIGEST

Join engineers getting the Monday signal-over-noise AI breakdown. No spam, unsubscribe anytime.

LEARN AI ENGINEERING

Curated courses, research papers, repos and tutorials built for engineers leveling up in AI.

START LEARNING