Docs

Product not active

Each product ID given in the restricts_to field must be active.

Example response
{
"error": {
"type": "request_error",
"code": "discount_restricted_product_not_active",
"detail": "Product given not active pro_01ghbk4xjn4qdsmstcwzgcgg35",
"documentation_url": "https://developer.paddle.com/errors/discounts/discount_restricted_product_not_active"
},
"meta": {
"request_id": "00000000-0000-0000-0000-000000000000"
}
}

Details

Status code
400
Error code
discount_restricted_product_not_active
Error message
Product given not active %s

Common causes

  • You have attempted to restrict a Discount to a Product which does not exist.
  • You have attempted to restrict a Discount to a Product which is not active.

Troubleshooting

  • Set the status of the provided Product ID to 'active'.
  • Ensure the Product ID provided already exists.

Was this page helpful?