Docs

Transaction requires a currency_code for custom discounts.

You are trying to create a transaction with a custom discount that requires a currency_code to be included.

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

  • Transaction requires a currency_code when a custom discount of type flat or per_seat is set.

Troubleshooting

  • Include a currency_code in the transaction payload.
  • Update the type for the discount to percentage.

Was this page helpful?