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

Currency code is required for a custom discount

The transaction uses a fixed-amount custom discount, so it needs a currency code.

Example response
{
"error": {
"type": "request_error",
"code": "transaction_requires_currency_code_for_custom_discount",
"detail": "Cannot create transaction without currency code",
"documentation_url": "https://developer.paddle.com/errors/transactions/transaction_requires_currency_code_for_custom_discount"
},
"meta": {
"request_id": "00000000-0000-0000-0000-000000000000"
}
}

Details

Status code
400
Error code
transaction_requires_currency_code_for_custom_discount
Error message
Cannot create transaction without currency code

Common causes

  • The transaction has a custom discount of type flat or per_seat, which needs a currency_code to know the discount's currency.

Troubleshooting

  • Include a currency_code in the transaction payload.
  • Change the discount type to percentage, which doesn't need a currency code.

Was this page helpful?