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.
Mock Conversion Artifact
The MCP checkout-link flow ends when the agent receives a hosted checkout URL:get_checkout_link is a handoff step. It does not process payment, confirm an order, prove eligibility, or record a real conversion.
A conversion event is a later merchant or platform-side confirmation that something eligible happened after checkout. In the runnable examples, conversion-event.json is a fake local payload used only to teach the shape of that concept.
Mock payload fields
| Field | Meaning in this tutorial |
|---|---|
event_id | Fake event identifier for idempotency examples. |
event_type | Mock event type, not a production event contract. |
environment | Always mock for this artifact. |
merchant_id / offer_id | Fake merchant and offer identifiers. |
session_id | Fake search/session context from the MCP flow. |
recommendation_id | Fake recommendation context from the SDK examples. |
checkout_id | Fake checkout-link creation ID. |
conversion_id | Fake conversion identifier. |
amount / status | Mock eligible-conversion amount and status. |
attribution.aap_code | Fake AAP offer URI used to preserve attribution context. |
attribution.recorded | Educational flag showing that the mock event links back to attribution context. |
Inspect the local artifact
After cloning the docs repository, inspect the mock payload withjq:
What this teaches
- Checkout-link creation and conversion recording are separate steps.
- The agent should not collect payment credentials or claim a payment occurred.
- The checkout link can preserve attribution context for the hosted checkout handoff.
- Conversion confirmation happens later through merchant or platform-side systems, not through the chat transcript alone.
- Production webhook, ledger, security, and settlement behavior are outside this local mock example.
JS and Python mock paths
The JavaScript and Python examples show the local hello-world path that reaches the same mock checkout URL. Use them before connecting a non-mock API key.JavaScript mock example
Run the TypeScript SDK example against the local mock AAP server.
Python mock example
Run the Python SDK example against the local mock AAP server.
examples/mock-conversion/conversion-event.json.
What this does not prove
This artifact does not prove or imply:- A real payment happened.
- A real order was placed.
- A real merchant accepted the conversion.
- A payout, commission, settlement, or transfer occurred.
- Production webhook or ledger behavior is implemented or approved.
- A user is eligible for a real-world offer.