Change a lot's price
PATCH/v1/lots/{id}
Gives your lot a new price. A buyer who saw the old one gets price_changed rather than a surprise.
Request
Path parameters
idstringrequiredThe lot's id.
Request body
price_centsintegerrequiredThe price in US cents: the new one for a lot, the one you saw for a purchase, the one you offer in a bargain.
curl -X PATCH 'https://api.rockvel.store/v1/lots/019a4b9d-2e17-7a58-b1c6-0d3f6a9e4b12' \
-H "Authorization: Bearer $ROCKVEL_KEY" \
-H 'Content-Type: application/json' \
-d '{"price_cents":3190}'Answer 200
An empty object.
{}Refusals
| Status | Code | When |
|---|---|---|
| 409 | lot_gone | The lot sold or was taken down. |
| 422 | bad_lot | The list is empty, a price is outside 3 to 100000000 cents, or a filter is outside its range. |
Any route can also answer with the statuses on the Errors page.