Discounts and gift cards when using Paytrail in your online store or app

Learn how to handle discounts and gift cards when using Paytrail in your online store or app. You can include them as separate line items in each payment, ensuring your order totals stay accurate and transparent. This approach makes reconciliation easier and helps you maintain clear records between product prices, discounts, and gift card balances.

The Paytrail API supports negative unitPrice values, allowing you to enter discounts and gift cards as negative amounts instead of merging them with product prices. 

Step by step: Add discounts or gift cards

  1. Add each discount or gift card as its own line item with a negative unitPrice.
  2. Make sure the total of all unitPrice values matches the total amount in the amount field.
  3. If the totals do not match, the payment will be rejected.
Was this article helpful?
1 out of 3 found this helpful