Gift cards and credit
Gift cards with a code and credit in a customer's wallet, spent at checkout, and refunding a return as credit.
Credit is a balance a customer spends at your store's checkout. There are two kinds: the gift card, which has a code and works for whoever types it, and the wallet, one customer's credit. After this page you can issue a card, give a customer credit, understand how checkout charges the difference and refund a return as credit.
Before you start
- Whoever manages it needs the permissions View credit and gift cards and Manage credit and gift cards. The screen is Grow → Credit and loyalty, in its Credit part, and it only shows with the Sales feature on (see Features).
- Credit works only in the store that issued it, in reais.
- A balance is the sum of a history that is never erased: issues, spending, balances given back and adjustments. You can always see where every cent came from.
The two kinds
| Gift card | Wallet | |
|---|---|---|
| Whose | Whoever has the code | One customer's |
| How it is used | Typing the code in the cart | The customer turns on "use my credit" when signed in |
| How it starts | You issue it, with an amount and a recipient | You give the customer credit, or a return becomes credit |
| Validity | Optional | None |
The credit screen
In Grow → Credit and loyalty, choose Credit at the top of the screen. When the store has balances, the top shows how much sits In gift cards and In customer wallets, with how many have a balance. The Gift cards, Wallets and All tabs filter the list, and the search finds by Code, customer or recipient.
Each row shows the card (only the last four characters of the code) and its recipient, or the wallet's customer, the expiry, the balance and, when it changed, the starting amount. A tag shows when a card has No balance, is Disabled or Expired or, for a sold card, Not sent.
Click a row to open the card or wallet beside the list: the balance, For whom (recipient, e-mail, sender and message), the E-mail delivery of a sold card, a shortcut to the order it was sold in, the History of movements, the creation date, expiry and reason. The foot holds Adjust balance, Disable (or Enable) and, for a sold card, Send the e-mail again.
Issue a gift card
Click Issue gift card (or press N). Enter the Amount and, if you like, the Recipient, E-mail, a Message, Valid until and the Reason (internal). Click Issue a card (with the amount). The card is born with a new code, shaped like ABCD-EFGH-JKMN-PQRS. The code is a secret: lists show only its last four characters, and whoever can manage credit sees it whole by clicking Show code. Use Copy and hand it over.
Codes are 16 characters and never use 0, O, 1, I or L, so they are not mixed up when typed. Looking codes up at checkout has an attempt limit per address.
If you set an expiry, ask your accountant or lawyer about minimum validity periods for gift cards. Leaving it empty means the card does not expire.
A lost or misused card can be turned off with Disable: nobody can spend it until you click Enable, and its balance is kept.
Give a customer credit
Open the customer in Sell → Customers. On the record, under More actions, Give credit adds an amount with a reason, which stays in the history. On the record's Value tab, the Store credit part shows the balance and history, and Adjust changes the balance up or down, but never below zero. Any card or wallet works the same way, with Adjust balance in Grow → Credit and loyalty.
A customer with a balance cannot be deleted until the credit is spent or taken away. Merging two customers makes their wallets one, with the whole history moving over.
How the customer pays
In the cart, the customer types the card's code and, if signed in with a balance, turns on using their credit. The cart shows how much of the total credit pays and how much is left for Pix or card.
- Credit pays first; Pix or card charges only the difference. Cards are spent in the order they were added.
- If credit covers the whole order, no provider is charged: the order is paid at once.
- Nothing leaves the balance while the customer is only building the cart. The amount is held when the order is charged. If the order is cancelled unpaid, the held credit returns by itself.
- A payment method discount (such as the Pix one) is worked out first, and credit covers the result.
Returns and refunds
When you refund a return (see Returns) you choose how the money goes back:
- Original payment: as usual. If the order was partly paid with credit, the provider is refunded first and what credit paid goes back to the same card or wallet.
- Store credit: the amount goes into the customer's wallet and you keep the money. You can add a bonus under Credit bonus (%) (0 to 100%), an incentive to choose credit. The order needs a registered customer, and whoever refunds also needs the permission to manage credit.
- Already given back: only records it.
An order paid only with credit is refunded by giving the balance back, with no provider involved.
Sell gift cards in the online store
To sell gift cards on your site, open the product in Products → Products, click Edit everything and, in the Channels and feeds section, under Other ways to sell, turn on Gift card. Each variant of the product is a value (for example R$ 100, R$ 200 and R$ 500), between R$ 10.00 and R$ 50,000.00. That product needs no stock and no freight.
On the product page the buyer says who it is for: the recipient's name and e-mail, a message, their own name and, optionally, the day to send it. Each card is a cart line, so cards of different values and recipients can go in the same order.
- Custom amount. With Let the buyer type the amount on just below, the buyer may enter any amount between R$ 10.00 and R$ 50,000.00 instead of choosing a variant (which stays as a suggested value). The rest works the same. The default theme's product page shows the Valor do vale (R$) field (also through the API and the SDK:
amount_cents). - When the code arrives. As soon as payment is approved, each card is created, once, and the e-mail with the code goes to the recipient. With a day chosen, it goes out at 8 am (São Paulo time) that day. With no recipient e-mail, the code goes to the buyer's e-mail, and they hand the card over.
- If the e-mail fails. The list marks the card Not sent, and the open card shows the reason under E-mail delivery. Use Send the e-mail again, fix the address in Send to if needed and click Resend.
- Cart rules. Gift cards are bought in an order of gift cards only: they do not mix with products. No discount applies to them (coupon, Pix discount), and a gift card cannot be paid for with another gift card or with credit.
- Refunds. An order of gift cards is refunded whole only (a partial refund is refused, since it would leave the card at full value). Refunding it all disables the cards nobody spent from. A card that was already partly spent stays active and you decide what to do with it.
- Accounting. What is sold is a debt of the store, not revenue. An order of gift cards is left out of the sales reports, the dashboard, campaign attribution and the income statement and issues no invoice; revenue appears when the card is spent on an order, like any payment. The money received shows in receivables, because it really came in.
Invoice and finance
On the NF-e, what credit paid appears as its own payment form, Crédito Loja (code 05), beside the form that charged the rest. The lines add up to the invoice total.
In Finance, credit does not show in receivables: the money of a card comes in when it is sold, not when it is spent. The top of Grow → Credit and loyalty shows how much the store owes in card and wallet balances, so you can follow that obligation.
API
The admin API is under /stores/{store_id}/credit (summary, accounts, issue a card, adjust, disable and enable), /customers/{customer_id}/credit and /orders/{order_id}/credit and, to sell cards, /products/{product_id}/gift-card and /credit/accounts/{account_id}/resend. The customer side is under /v1/storefront/carts/{cart_id}/credit and /v1/storefront/customers/me/credit (see the Storefront API guide); in the SDK, client.cart.credit and client.customer.credit(). See the API changelog.
Returns
Returns and exchanges from the customer's ask to the refund or the exchange order, with restocking and the 7 day right of withdrawal.
Loyalty, cashback and referrals
Points and cashback on purchases that become store credit, tiers with perks, a referral code that gives credit to the customer who refers and to the friend, and balances brought from another programme.