check_payment
Checks a proposed payment against an open intent and the book's mandate limits before paying, returning approve or decline with reasons so agents can stop declined payments.
Instructions
Call this after record_intent and just before you pay: is the payment inside an open intent, and inside the book's own limits (mandate.json, if the company set one)? Returns approve or decline with the reasons. If it says decline, do not pay. The book's limits are set by whoever keeps the book (authority: self-declared), so an approval is not authority granted by anyone else.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nonce | No | ||
| currency | Yes | ||
| intent_id | No | ||
| amount_minor | Yes | ||
| counterparty | No |