Skip to main content
Updated Oct 21, 2026
Zu Wei
5 min read
11 views

How Credits Are Spent: Which Ones Are Used First

What Is This?

When a customer pays with their credit wallet, Pixalink does not take the credits from one single pile. A customer's balance can be made up of different kinds of credit. They might have bonus credit from a promo, a refund, referral credit, and the credits they bought themselves. This article explains which credits get used first, so you always know what is happening behind a payment.

How It Works

When a customer spends, Pixalink uses their credits in a fixed order. Promotional credits are used first, and the credits the customer bought are used last.

The order credits are spent The order credits are spent. Customer pays with credit wallet to 1 - Use Bonus credits first. 1 - Use Bonus credits first to 2 - Then Refund credits. 2 - Then Refund credits to 3 - Then Referral credits. 3 - Then Referral credits to 4 - Finally the Top Up credits the customer bought. 4 - Finally the Top Up credits the customer bought to Payment recorded as a Deduct entry. The order credits are spent Customer pays with credit wallet Use Bonus credits first 1 Then Refund credits 2 Then Referral credits 3 Finally the Top Up credits the customer bought 4 Payment recorded as a Deduct entry

The order is always the same:

  1. Bonus — extra credit from a top-up promo
  2. Refund — credit you returned to the customer
  3. Referral — credit earned through your referral programme
  4. Top Up: the credits the customer paid for

Pixalink works down this list. It empties the Bonus credits first. If the payment is larger than the bonus balance, it moves to Refund, then Referral. It only touches the customer's Top Up credits once everything else is gone.

Two more things happen automatically inside each type:

  • Oldest credits go first. Within one type, the credit added earliest is spent before newer credit. This helps credits get used before they expire.
  • Expired credits are skipped. If a credit has passed its expiry date, it is left out. Only valid credit is used to cover a payment.

If a customer tries to spend more than their valid balance, the payment is blocked. They are told how much they actually have.

Every payment is saved as a Deduct entry in Credit History, so you can always see what was used.

Credit History table with Type column and the current demo account empty state.

Real-Life Example

Wei Lin runs Glow Salon in Mont Kiara and lets customers preload a wallet for treatments. Her regular, Nurul, pays RM100 for 100 credits and gets 10 bonus credits from Wei Lin's promo, giving her 110 credits in total. A week later, staff deduct 30 credits for a manicure. Pixalink takes the 10 bonus credits first, then the other 20 come from the credits she bought. Nurul's balance is now 80 credits, all of them credits she paid for. When Wei Lin opens Credit History, she sees a single Deduct entry for 30 credits and can tell the bonus credits were used up first.

Good to Know

  • Promotional credits (Bonus, Refund, Referral) are always spent before the credits the customer paid for.
  • Within each type, the oldest credits are used first.
  • Expired credits are never used to cover a payment.
  • A customer can never spend more than their valid balance.
  • Every payment shows up as a Deduct entry in Credit History.

Need Help?

If credit payments are not being deducted the way you expect, talk to the Pixalink team and we will take a look.

What's Next?

Was this article helpful?

Thank you for your feedback!

0 found this helpful 0 did not

Search