Conversions
A conversion is the ledger record that connects an agent recommendation to a merchant outcome. Conversions are not created by the agent. They are created when Rako can reconcile the recommendation with payment, merchant, or milestone evidence.Conversion sources
Verified checkout conversions
For instant checkout, Rako expects platform-side payment evidence from a payment processor or payment orchestration layer. In the production design, Rako authenticates the event, reads AAP metadata, verifies the signed AAP Code, checks the payload and amount against the recommendation, and records a verified conversion only when those checks pass. Handled successful payment event names include:payment_intent.payment_succeededpayment_intent.succeededpayment_succeeded
conversionPath: "verified_payment". The full production gate also requires webhook authentication plus AAP Code, payload, amount, and payment-status verification before that label should be treated as production-grade.
pending while validation, refund, dispute, and settlement windows remain open.
Merchant-reported conversions
Merchants can report a completed sale or payable action with:
Response:
Conversion flows and milestones
Some products require multiple events before a commission should settle. Rako supports merchant-configured conversion flows such as:
Merchants record milestones against a conversion:
Refunds, disputes, and clawbacks
Payment webhook handling also reconciles negative lifecycle events:refund.succeededorcharge.refundedmarks the conversionclawed_backdispute.openedorcharge.dispute.createdmarks the conversiondisputeddispute.closedresolves the dispute according to the configured policy
Settlement fields
Each conversion stores the values Rako needs for invoicing and payouts:transactionValuecommissionAmountnetworkFeebuilderPayoutconversionPathstatusorderReferencerecommendationId,sessionId,merchantId, andagentId