Recurring payments
Read an allowance-restore session back
For the browser holding the session: the terms of the approval to ask for. Terms only - the transaction is the customer's own standard ERC-20 approve(), which their wallet builds and sends.
The spender is P2Flux's recurring contract, taken from the signed session. A screen that accepted a spender from its own input would be a phishing page.
post/v1/allowances/restore/resolve
Request
- Base URL: https://api.p2flux.com
- URL: https://api.p2flux.com/v1/allowances/restore/resolve
- Auth: none required
Request body
Response
What to approve, and who must approve it.
Example response
{
"token": "0xb4e43f3fBa5Add75395adAD366627E7d74141Fa9",
"spender": "0xb4e43f3fBa5Add75395adAD366627E7d74141Fa9",
"payer": "0xb4e43f3fBa5Add75395adAD366627E7d74141Fa9",
"subscription_id": "0x2d6bbc112885a6976289e599f71003f7d310e7152ebd662c6221dffd3e0da708",
"required_units": "2500000",
"recipient": "0xb4e43f3fBa5Add75395adAD366627E7d74141Fa9"
}Changes
No recorded changes to this operation across all 1 revision of this API.