Record a payment
record_paymentRecord a payment the calling agent already made against a receipt. BotSupply does not hold or move the money. Requires the edit_token from record_approval. Appends a signed hash-chain event payment_recorded. paid_at defaults to now. Sets paid_before_confirmation when the payment time is before the confirm event, or when a contact was set and the receipt was never confirmed. Sets over_cap when amount exceeds the price cap. Those cases are stored and flagged. They are not rejected. Poll get_receipt and pay only when pay_allowed is true; recording an early or over-cap payment does not make pay_allowed true. Same as POST /v1/receipts/:id/payment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount paid, in the receipt price-cap currency. over_cap is true when this exceeds the price cap. The payment is still recorded. | |
| paid_at | No | When the payment happened, ISO-8601. Omit to use the server time. paid_before_confirmation is true when this is earlier than the confirm event, or when a contact was set and the receipt was never confirmed. The payment is still recorded. | |
| edit_token | Yes | Secret returned once by record_approval. Required to record a payment. | |
| receipt_id | Yes | Receipt id from record_approval (rcpt_…). | |
| external_payment_ref | Yes | Id from the payment rail. BotSupply does not look it up and does not move the money. |