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_discountintegerrequiredPercent 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_discountintegerPercent below the price, from 0 to 50. 0 takes no bargains.
{ "max_discount": 10 }Refusals
| Status | Code | When |
|---|---|---|
| 422 | bad_discount | The discount is outside 0 to 50 percent. |
Any route can also answer with the statuses on the Errors page.