Documentation Index
Fetch the complete documentation index at: https://docs.rako.sh/llms.txt
Use this file to discover all available pages before exploring further.
Checkout
Rako’s production payment architecture routes checkout through Rako’s payment orchestration layer, while Rako keeps the AAP conversion ledger authoritative. The high-level path is:Endpoint
| Field | Required | Description |
|---|---|---|
sessionId | Yes | Session from the offer search that produced the recommendation. |
recommendationId | Yes | Recommendation recorded with POST /v1/recommend. |
userDetails | No | Reserved for vertical-specific details collected before checkout. |
Expected behaviour
Rako validates that:- the session exists and has not expired
- the recommendation exists
- the recommendation’s offer still exists
- the merchant exists
- the merchant has a connected payment connector when the orchestrated checkout backend is enabled
checkout.
AAP metadata
Rako sets attribution metadata when it creates the payment link. Agents and clients should not try to construct or mutate these fields.Failure responses
Common failure cases:| Status | Error | Meaning |
|---|---|---|
400 | sessionId and recommendationId are required | Required identifiers were not provided. |
404 | Session not found | The checkout does not refer to a known session. |
404 | Recommendation not found | The checkout does not refer to a recorded recommendation. |
410 | Session expired | The recommendation window has expired. |
503 | Merchant has no connected payment processor | The merchant has not connected a PSP for Rako-orchestrated checkout. |
502 | Could not create checkout | The payment orchestration layer or downstream connector rejected the payment link request. |
Relationship to /v1/purchase
Some SDK and MCP integrations may use /v1/purchase for the same infrastructure path. It accepts a recommendationId and can create either:
- a user checkout link; or
- an autonomous payment attempt when a legitimate stored payment method is supplied.
/v1/checkout: record the recommendation, request a checkout URL, and let the user complete payment on the hosted checkout page.