Unit Transfers
How to add or deduct points and loyalty units in bulk using XML or JSON imports in Open Loyalty.
Open Loyalty provides two separate import types for unit transfers:
Adding — grants units to members (e.g., migration balances, promotional bonuses, corrections)
Spending — deducts units from members (e.g., manual redemptions, balance corrections)
Each type is imported separately from the admin panel. Both use the same file structure — the system determines whether points are added or deducted based on which import type you select, not the values in the file.
File format: XML or JSON
Adding unit transfers
Use this import to grant units to members. Each record in the file will create an "Adding" transfer visible in the member's unit history.
<?xml version="1.0" encoding="UTF-8"?>
<transfers>
<transfer>
<customerId>e82c96cf-32a3-43bd-9034-4df343e5fd93</customerId>
<points>500</points>
<comment>Migration - initial balance</comment>
</transfer>
<transfer>
<customerId>a1b2c3d4-e5f6-7890-abcd-ef1234567890</customerId>
<points>1000</points>
<comment>Promo: Summer 2025 bonus</comment>
</transfer>
</transfers>[
{
"customerId": "e82c96cf-32a3-43bd-9034-4df343e5fd93",
"points": 500,
"comment": "Migration - initial balance"
},
{
"customerId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"points": 1000,
"comment": "Promo: Summer 2025 bonus"
}
]Spending unit transfers
Use this import to deduct units from members. Each record will create a "Spending" transfer visible in the member's unit history.
Field reference
customerId
Yes
Member UUID — the internal Open Loyalty identifier
points
Yes
Number of points to add or spend (always a positive number)
comment
No
A note explaining the transfer (visible in the member's point history)
Important notes
Unit transfers require Open Loyalty UUIDs. Unlike transactions (which accept email or phone), unit transfers only work with the internal member ID. Use the Members export to get the correct UUIDs.
Common use cases
Data migration — set initial point balances when migrating to Open Loyalty (adding)
Bulk promotional grants — award bonus points to a group of members (adding)
Balance corrections — fix incorrect balances after a system error (adding or spending)
Manual bulk redemptions — deduct points for offline rewards or store credit (spending)
Common mistakes
Using email instead of UUID
The customerId field requires the Open Loyalty member UUID
Uploading a spending file as an adding import (or vice versa)
Double-check which import type you select in the admin panel — the file format is the same for both
Importing very large files at once
Split into batches of 5,000–10,000 records
To find out more, please refer to the article below:
Importing Unit TransfersLast updated
Was this helpful?

