For AI agents and LLMs: a structured documentation index is available at /llms.txt. Every page has a Markdown sibling — append .md to any URL.

Skip to content
Paddle Docs home

Can't provide both a discount code and ID

You sent both a discount code and a discount ID, but only one is allowed.

Example response
{
"error": {
"type": "request_error",
"code": "transaction_cannot_provide_both_discount_code_and_id",
"detail": "Must provide either Discount ID OR Discount Code, not both",
"documentation_url": "https://developer.paddle.com/errors/transactions/transaction_cannot_provide_both_discount_code_and_id",
"errors": [
{
"field": "discount_id|discount_code",
"message": "Must provide either Discount ID OR Discount Code, not both"
}
]
},
"meta": {
"request_id": "00000000-0000-0000-0000-000000000000"
}
}

Details

Status code
400
Error code
transaction_cannot_provide_both_discount_code_and_id
Error message
Must provide either Discount ID OR Discount Code, not both

Common causes

  • Your request includes both a discount_id and a discount_code.

Troubleshooting

  • Send either discount_id or discount_code, not both.

Was this page helpful?