POST api/customer/{guid}/loyaltyPoints
Add or Remove a customer's loyalty points or available spend balance
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| guid |
Identifier of customer to have points adjusted |
globally unique identifier |
Required |
Body Parameters
Record of changes to occur
CustomerLoyaltyLedgerEntry| Name | Description | Type | Additional information |
|---|---|---|---|
| ID |
Auto Increment ID |
integer |
None. |
| CustomerIdentifier |
The byte[16] representation of the customer's identifier |
Collection of byte |
None. |
| CustomerIdentifierGuid |
Guid of Customer this change happened/will happen to |
globally unique identifier |
None. |
| SaleHeaderID |
StoreSaleHeader SaleHeaderID where points or available spend is adjusteed |
integer |
None. |
| SaleIdentifier |
Sale Identifier of the referenced sale, where there is one |
string |
None. |
| TransactionDate |
Time of points adjustment, or sale time |
date |
None. |
| Points |
New Total Loyalty Points |
integer |
None. |
| AvailableSpend |
New Total Available Spend Balance |
integer |
None. |
| PointsChange |
Amount Loyalty Points will change by |
integer |
None. |
| AvailableSpendChange |
Amount Available Spend Balance will change by |
integer |
None. |
| User |
Name or email of user making adjustment, will be current logged in user if left blank |
string |
String length: inclusive between 0 and 255 |
| Reason |
Manual or Automatic adjustment, 0 for automatic (eg. pos-system), 1 for manual (eg. staff adjust) 2 for expired |
LoyaltyPointsReason |
None. |
| AccruementMode |
Mode that points are accrued in. Filled in by system using current settings |
LoyaltyPointsAccruementMode |
None. |
| StoreSalePaymentID |
Store Sale payment identifier |
integer |
None. |
| IdempotentID |
The byte[16] representation of the idempotent id |
Collection of byte |
None. |
| IdempotentGuid |
Idempotent identifier |
globally unique identifier |
None. |
| Offline | boolean |
None. |
|
| Updated |
Time record changed |
date |
None. |
| ExternalTransNo | string |
Relation. This field may not always be loaded or used for updates. |
Request Formats
application/json, text/json
{
"id": 1,
"customerIdentifier": "ViYGddmwG0GxiG8bRZOYeQ==",
"customerIdentifierGuid": "75062656-b0d9-411b-b188-6f1b45939879",
"saleHeaderID": 1,
"saleIdentifier": "sample string 3",
"transactionDate": "2026-04-03T06:18:54.4317227",
"points": 1,
"availableSpend": 1,
"pointsChange": 1,
"availableSpendChange": 1,
"user": "sample string 4",
"reason": 1,
"accruementMode": 1,
"storeSalePaymentID": 1,
"idempotentID": "y3O19T1ReEq62dFZi3cV4g==",
"idempotentGuid": "f5b573cb-513d-4a78-bad9-d1598b7715e2",
"offline": true,
"updated": "2026-04-03T06:18:54.4317227",
"externalTransNo": "sample string 7"
}
application/xml, text/xml
<CustomerLoyaltyLedgerEntry xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Customers"> <AccruementMode>1</AccruementMode> <AvailableSpend>1</AvailableSpend> <AvailableSpendChange>1</AvailableSpendChange> <CustomerIdentifier>ViYGddmwG0GxiG8bRZOYeQ==</CustomerIdentifier> <CustomerIdentifierGuid>75062656-b0d9-411b-b188-6f1b45939879</CustomerIdentifierGuid> <ExternalTransNo>sample string 7</ExternalTransNo> <ID>1</ID> <IdempotentGuid>f5b573cb-513d-4a78-bad9-d1598b7715e2</IdempotentGuid> <IdempotentID>y3O19T1ReEq62dFZi3cV4g==</IdempotentID> <Offline>true</Offline> <Points>1</Points> <PointsChange>1</PointsChange> <Reason>1</Reason> <SaleHeaderID>1</SaleHeaderID> <SaleIdentifier>sample string 3</SaleIdentifier> <StoreSalePaymentID>1</StoreSalePaymentID> <TransactionDate>2026-04-03T06:18:54.4317227+00:00</TransactionDate> <Updated>2026-04-03T06:18:54.4317227+00:00</Updated> <User>sample string 4</User> </CustomerLoyaltyLedgerEntry>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
None.