Set your default discount

PUT/v1/me/max-discount

Sets how far below the price, in percent from 0 to 50, the lots you list from now on take bargains. 0 takes none. Lots already on sale keep theirs: change each on its own.

Request

Request body

  • max_discountintegerrequired

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

curl -X PUT 'https://api.rockvel.store/v1/me/max-discount' \
  -H "Authorization: Bearer $ROCKVEL_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"max_discount":10}'

Answer 200

  • max_discountinteger

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

{ "max_discount": 10 }

Refusals

StatusCodeWhen
422bad_discountThe discount is outside 0 to 50 percent.

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