Payments
Send a payment receipt
Mails one receipt for one payment of the pay page to the address that the payer
typed. The route trusts no field before it checks it on chain: the transaction must
be mined and successful and must hold Transfer(payer, payee, amountRaw) of
token.
- Who may call: anyone. The request carries no proof that the caller is the payer, so a receipt holds only checked facts.
- Before: the payment transaction is mined, less than 1 hour ago. For
monthly, the payer also has anerc20_allowpermission for the token that is not blocked, a cap of the token at or above the amount, and a committed rule document. - Guarantee: at most one confirmed mail for each transaction hash. A second request
for the same hash answers
already_requested. The route stores no mail and no email address.
The answer is 200 for every outcome of the checks: read outcome.kind. The SDK
function is sendPayReceiptEmail. See Payments and subscriptions.
POST
Send a payment receipt
Body
application/json