Record one offer for many deals
POST/v1/offers
Says which Steam offer carries up to 100 sales to one buyer, right after making it and before confirming it. Steam keeps only 5 open offers to one person, so send their items together. It is written on all the deals or, if one has closed meanwhile, on none: then cancel that offer on Steam.
Request
Request body
offer_idstringrequiredSteam's tradeofferid, digits only.
order_idsstring[]requiredThe deals the offer carries, all to one buyer, 100 at most.
curl -X POST 'https://api.rockvel.store/v1/offers' \
-H "Authorization: Bearer $ROCKVEL_KEY" \
-H 'Content-Type: application/json' \
-d '{
"offer_id": "8412653097",
"order_ids": ["019a4c1e-6f3a-7c21-9d40-5b2e8f1a7c03"]
}'Answer 200
idsstring[]The deals: those asked about, or in an answer those it changed.
{ "ids": ["019a4c1e-6f3a-7c21-9d40-5b2e8f1a7c03"] }Refusals
| Status | Code | When |
|---|---|---|
| 403 | not_your_order | This deal isn't yours, or this step belongs to the other side. |
| 404 | no_such_order | There is no such deal. |
| 409 | order_moved_on | The deal moved on and this step no longer applies. Read it again. |
| 422 | one_buyer_per_offer | The deals of one offer must all go to one buyer. |
Any route can also answer with the statuses on the Errors page.