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_idstringrequired

    Steam's tradeofferid, digits only.

  • order_idsstring[]required

    The 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

StatusCodeWhen
403not_your_orderThis deal isn't yours, or this step belongs to the other side.
404no_such_orderThere is no such deal.
409order_moved_onThe deal moved on and this step no longer applies. Read it again.
422one_buyer_per_offerThe deals of one offer must all go to one buyer.

Any route can also answer with the statuses on the Errors page.