Docs

Unable to reduce usage limit as times used is greater than provided value

Unable to reduce usage limit as times used is greater than provided value.

Example response
{
"error": {
"type": "request_error",
"code": "discount_usage_limit_less_than_times_used",
"detail": "Usage limit is less than times already used (Times Used: 10, Usage Limit: 5)",
"documentation_url": "https://developer.paddle.com/errors/discounts/discount_usage_limit_less_than_times_used"
},
"meta": {
"request_id": "00000000-0000-0000-0000-000000000000"
}
}

Details

Status code
400
Error code
discount_usage_limit_less_than_times_used
Error message
Usage limit is less than times already used (Times Used: %d, Usage Limit: %d)

Common causes

  • You're trying to change the usage_limit against a discount to a value that's less than the times_used. This is not permitted.

Troubleshooting

  • Increase the usage_limit so it's greater than times_used.
  • Set usage_limit to null if you'd like a discount to be used an unlimited amount of times.
  • Archive the discount, then create another. times_used against the new discount starts at 0.

Was this page helpful?