Payment links
What a link has collected
Send exactly one of link or manage. With the link: the terms, state (open/expired) and, for an invoice, whether it is paid. With the manage token: the same plus who paid - for a reusable link the payments found on chain (read in steps; complete: false means ask again for more), for a subscription link its subscribers with their last charge and next attempt. Answers already read from the chain are remembered, never read twice.
post/v1/links/status
Request
- Base URL: https://api.p2flux.com
- URL: https://api.p2flux.com/v1/links/status
- Auth: none required
Request body
Response
The link's terms and what it has collected.
Example response
{
"recipient": "0xb4e43f3fBa5Add75395adAD366627E7d74141Fa9",
"amount": "10.00",
"amount_units": "2500000",
"payment": {
"tx_hash": "0x2d6bbc112885a6976289e599f71003f7d310e7152ebd662c6221dffd3e0da708",
"reference": "0x2d6bbc112885a6976289e599f71003f7d310e7152ebd662c6221dffd3e0da708",
"amount_units": "2500000",
"payer": "0xb4e43f3fBa5Add75395adAD366627E7d74141Fa9"
},
"payments": [
{
"tx_hash": "0x2d6bbc112885a6976289e599f71003f7d310e7152ebd662c6221dffd3e0da708",
"reference": "0x2d6bbc112885a6976289e599f71003f7d310e7152ebd662c6221dffd3e0da708",
"amount_units": "2500000",
"payer": "0xb4e43f3fBa5Add75395adAD366627E7d74141Fa9"
}
],
"subscribers": [
{
"subscription_id": "0x2d6bbc112885a6976289e599f71003f7d310e7152ebd662c6221dffd3e0da708",
"payer": "0xb4e43f3fBa5Add75395adAD366627E7d74141Fa9",
"last_tx": "0x2d6bbc112885a6976289e599f71003f7d310e7152ebd662c6221dffd3e0da708"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.