Skip to content

Currency discount#1274

Open
MaciekVoucherify wants to merge 3 commits into
masterfrom
MK-currency-discount
Open

Currency discount#1274
MaciekVoucherify wants to merge 3 commits into
masterfrom
MK-currency-discount

Conversation

@MaciekVoucherify

Copy link
Copy Markdown
Collaborator

No description provided.

@MaciekVoucherify MaciekVoucherify self-assigned this Jun 1, 2026
@MaciekVoucherify MaciekVoucherify added Documentation Improvements or additions to the documentation DO NOT MERGE Documentation-team Managed by the Documentation team Articles Changes to articles or new article labels Jun 1, 2026
@mintlify

mintlify Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
voucherify 🟢 Ready View Preview Jun 1, 2026, 11:38 AM

keywords: ['dynamic discounts', 'currency', 'metadata', 'discounts', 'campaigns']
---

When you sell in multiple currencies, a fixed amount discount may not have the same value for every customer. For example, a \$20 discount in one currency may need an equivalent value in EUR, PLN, or another currency.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change PLN in example to USD (we have such a tiny Poland representation among customers that it makes more sense)


Voucherify needs to receive the customer currency value before it can use it in a dynamic discount formula. The metadata definition and data flow should be handled by your integration team. Learn more about [metadata](/prepare/metadata).

In this example, create customer metadata with the following settings:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add where it should be created

Comment on lines +27 to +63
Create an amount discount and use a dynamic formula to calculate the discount value based on customer currency metadata.

<Steps>
<Step title="Select amount discount">
In the discount builder, select an amount discount.

In **Apply discount to**, select **Apply discount to whole cart**.
</Step>

<Step title="Set the default discount value">
Set the default discount value for the campaign.

In this example, the default discount is `$20` off the entire order.
</Step>

<Step title="Build the formula with customer metadata">
Use the `switch` logical operator in the dynamic discount formula.

Set the switch expression to the customer metadata `Currency`.
</Step>

<Step title="Add currency cases">
Add one case for each currency you support.

In this example:

- `usd` returns `20`
- `eur` returns `15`
- `pln` returns `100`
</Step>

<Step title="Set the formula default value">
Set the default value to `20`.

The default value is used when none of the currency cases match.
</Step>
</Steps>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That part must be rearranged if we don't use screenshots - it could be clear when images were attached, now it is not


After you save the formula, Voucherify applies the discount value that matches the customer's currency metadata. Each currency can have a different discount value that is equivalent to the default currency discount.

You can use discounts dependable on currency with every discount type, including product-specific promotions.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that should be moved up (and adjusted) to the sentence saying to "define amount discount"

@joannaglow joannaglow left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please adjust

</Step>

<Step title="Set the formula default value">
Set the default value to `20`.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't that already mentioned in line 41?

and it is not a default value but a fallback value, line 41 can be removed, I guess

<Step title="Set the formula default value">
Set the default value to `20`.

The default value is used when none of the currency cases match.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again: it is not default but fallback

@joannaglow joannaglow left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not much to change, but please proceed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Articles Changes to articles or new article DO NOT MERGE Documentation Improvements or additions to the documentation Documentation-team Managed by the Documentation team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants