Record payout
record_payoutMarks a verified sponsorship deal as paid in the payout ledger after you approve a preview and pass a confirm_token; the manual provider logs your reference only and moves no money.
Instructions
Records that a verified deal was paid, via a payout provider. Default provider manual is a ledger entry with your transaction reference; it does NOT move money. Provider x_money is a stub pending a public X Money payouts API and always refuses. Marks the deal paid. TWO-STEP: the first call (no confirm_token) only returns a preview and a confirm_token; nothing is written. Show the preview to the user, and only after they approve call again with the same arguments plus confirm_token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| amount | No | Defaults to the deal amount | |
| deal_id | Yes | ||
| provider | No | manual | |
| reference | No | Transaction id of the payment you made elsewhere (required for manual) | |
| confirm_token | No | Omit on the first call to get a preview. Pass the token from the preview (with identical arguments) to apply the change. |