Refunds
Verify a refund transfer against the chain
Did the refund actually happen, and has it settled? Takes the ORIGINAL settlement rather than the prepare token, deliberately: a refund may need reconciling days later - after a crash, or a support ticket - and a fifteen-minute bearer token cannot answer that.
A transaction hash is not a refund. This checks the receipt carries exactly one USDC transfer from the original merchant to the original payer for exactly this amount, matched by event rather than by transaction sender - so a Safe or smart account executing on the merchant's behalf verifies correctly.
post/v1/refunds/verify
Request
- Base URL: https://api.p2flux.com
- URL: https://api.p2flux.com/v1/refunds/verify
- Auth: none required
Request body
Example request
{
"tx_hash": "0x2d6bbc112885a6976289e599f71003f7d310e7152ebd662c6221dffd3e0da708",
"refund_amount": "2500000",
"refund_tx_hash": "0x2d6bbc112885a6976289e599f71003f7d310e7152ebd662c6221dffd3e0da708"
}Response
Settled.
Example response
{
"refund_tx_hash": "0x2d6bbc112885a6976289e599f71003f7d310e7152ebd662c6221dffd3e0da708",
"refund_amount": "2500000",
"original_amount": "2500000",
"payer": "0xb4e43f3fBa5Add75395adAD366627E7d74141Fa9",
"merchant": "0xb4e43f3fBa5Add75395adAD366627E7d74141Fa9"
}Changes
No recorded changes to this operation across all 1 revision of this API.