Skip to main content
This quickstart creates a sandbox checkout session, redirects the buyer to hosted checkout, and shows the webhook payload your app should handle.

1. Create a checkout session

Use the gateway sessions endpoint directly:
The response includes a checkoutUrl hosted on pay.getopenrails.com.
Agents can also create checkout sessions using the agent action endpoint:

2. Redirect the buyer

Send the customer to checkoutUrl. Open Rails hosts the checkout, selects the route, and sends the buyer through the payment flow.

3. Read records after creation

After the session is created, you can look up the customer and track the payment:

4. Handle the webhook

Your fulfillment app should listen for payment.paid before shipping, unlocking credits, or marking an invoice as paid.

5. Inspect schemas when automating

Agents and CI jobs should fetch the runtime schema before creating payloads.
Use the returned JSON Schema as the source of truth for required fields, enums, and limits.