Refunds
Read a refund token back (browser)
The terms behind a prepare token, for the browser holding it. Reading is all it does - the token is already signed, so nothing here can change where a refund goes.
Consumed by the hosted checkout, not usually by a server integration: the merchant page must not be able to tell the checkout who the recipient is, or a shop that could name it could redirect a refund.
post/v1/refunds/resolve
Request
- Base URL: https://api.p2flux.com
- URL: https://api.p2flux.com/v1/refunds/resolve
- Auth: none required
Request body
Response
Exactly what P2Flux signed.
Example response
{
"token": "0xb4e43f3fBa5Add75395adAD366627E7d74141Fa9",
"merchant": "0xb4e43f3fBa5Add75395adAD366627E7d74141Fa9",
"payer": "0xb4e43f3fBa5Add75395adAD366627E7d74141Fa9",
"amount": "10.00",
"amount_units": "2500000",
"original": {
"tx_hash": "0x2d6bbc112885a6976289e599f71003f7d310e7152ebd662c6221dffd3e0da708",
"contract": "0xb4e43f3fBa5Add75395adAD366627E7d74141Fa9",
"reference": "0x2d6bbc112885a6976289e599f71003f7d310e7152ebd662c6221dffd3e0da708",
"amount_units": "2500000",
"subscription_id": "0x2d6bbc112885a6976289e599f71003f7d310e7152ebd662c6221dffd3e0da708"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.