Set a lot's discount

PUT/v1/lots/{id}/max-discount

Sets how far below its price, in percent from 0 to 50, your lot takes bargains. 0 takes none. Prices already waiting stay: decline them if you like.

Request

Path parameters

  • idstringrequired

    The lot's id.

Request body

  • max_discountintegerrequired

    Percent below the price, from 0 to 50. 0 takes no bargains.

curl -X PUT 'https://api.rockvel.store/v1/lots/019a4b9d-2e17-7a58-b1c6-0d3f6a9e4b12/max-discount' \
  -H "Authorization: Bearer $ROCKVEL_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"max_discount":15}'

Answer 200

An empty object.

{}

Refusals

StatusCodeWhen
409lot_goneThe lot sold or was taken down.
422bad_discountThe discount is outside 0 to 50 percent.

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