Recurring payments
Create subscription terms and a setup token
Terms for a recurring authorization the customer signs once. P2Flux has no scheduler and no database: your application owns the subscription lifecycle and decides when a renewal is due; the contract enforces one charge per period against the terms that were signed.
post/v1/subscriptions
Request
- Base URL: https://api.p2flux.com
- URL: https://api.p2flux.com/v1/subscriptions
- Auth: none required
Request body
Example request
{
"recipient": "0xb4e43f3fBa5Add75395adAD366627E7d74141Fa9",
"amount": "10.00"
}Response
A setup token to hand to the checkout.
Example response
{
"contract": "0xb4e43f3fBa5Add75395adAD366627E7d74141Fa9",
"amount": "10.00"
}Changes
No recorded changes to this operation across all 1 revision of this API.