Create Checkout
checkout_createInitiate a checkout session for a medication order. Returns checkout details including line items, total, and payment options.
TWO PAYMENT PATHS are supported:
Stripe ACP (preferred): If your platform supports Stripe Agentic Commerce Protocol, provision a Shared Payment Token (SPT) and call checkout_complete to pay instantly.
Payment link (fallback): If ACP/SPT is not available, present the returned
payment_urlto the patient. This is a Stripe-hosted checkout page where the patient can enter their card and pay directly. After sending the link, call checkout_status to poll for payment completion.
Requires authentication.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | Order ID to create checkout for | |
| bearer_token | No | Authentication token for the patient session |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |