List trades
GET /p2p/trades lists your purchases and your sales.
Read one trade
GET /p2p/trade/{id}. {id} is the numeric id or the display value (p2p…). Only the buyer and the seller of that trade can read it.
Trade statuses
While the status is
pending, offer_sent, or accepted, keep reading the trade. All other statuses are final.
Protection window
The window starts when the buyer accepts the Steam offer and ends atrelease_at.
With no dispute, the seller is credited automatically at
release_at. That money cannot be withdrawn before the status is released.
Cancel
POST /p2p/trade/{id}/cancel.
Only the buyer can cancel, only while the Steam offer has not been sent (pending), and only 30 minutes after the purchase. The buyer is refunded and the listing goes back for sale.
cancel not yet allowed and cancel_after, the unix time from which you can cancel.
Declining or cancelling the offer in Steam sets the trade to
buyer_declined or seller_canceled, with the same refund.