1. Create the agent
- On the Agents page, select Create agent. The first time, claim your
account’s agent handle prefix, such as
juniper. Every agent handle starts with it. The prefix is permanent. - Enter a name, such as
Checkout assistant, a handle, such asjuniper-checkout, and a description. - Choose Create checkout sessions and View checkout sessions.
- Choose when the key expires, then select Create agent.
- Copy the key. It starts with
ak_v1_test_and is shown once. Set it asAGENT_KEYwhere the agent runs.
2. Let the agent create a checkout session
The agent sends its key as a Bearer token. Writes need anIdempotency-Key:
use a unique value per checkout and reuse it if the request is retried.
amount is in cents: 15000 is $150.00. The response is an open session with
a hosted checkout url for the buyer:
url to the buyer, for example in a chat reply or an
email.
3. Pay as the buyer
Open theurl and pay with the test card 4111 1111 1111 1111, any future
expiration date, and any 3-digit CVC. See test cards for
other outcomes.
4. Let the agent confirm the payment
status is complete and payment_status is
paid. To fulfill an order, rely on a verified checkout.session.completed
webhook on your server.
5. Review the agent’s activity
Open the agent on the Agents page. Activity lists the session it created and the session it retrieved. A call Ionic refuses appears there too, with the reason.What’s next
Give your agent more to do
Add invoices, payment links, customers, or products and prices.
Connect an MCP client
Use Claude, ChatGPT, Codex, or another compatible client instead of a
key.
Build for the businesses you serve
Run your platform’s agent for each business that approves it.

