Loyalty
Loyalty account and point movements
Returns the user's total loyalty (points) balance.
Business Logic:
Aggregates balances from all loyalty accounts for the active session currency
Returns a single
balancevalue (Decimal, 2 fractional digits)Multi-currency supported: separate balance per currency
Filtered by session currency
Notes:
Only returns balance for the active session currency
If balance is 0: no account in this currency OR fully consumed
Use X-Cookie header instead of Cookie header in "try out" section. Use Cookie header while testing in postman or other tools. Some commerce applications may support 'sesionid' instead of 'osessionid'.
osessionid=abc123Language preference (for multilingual content). Supported languages: tr, en, ar, ru, de, fr
trExample: trPossible values: Successful response
Authentication credentials were not provided.
GET /account/loyalty-account-balance/ HTTP/1.1
Host: sandbox.akinon.com
X-Cookie: osessionid=abc123
Accept: */*
{
"balance": 1499826.68
}Lists the user's loyalty point transfer history.
Business Logic:
Includes both point earnings and spendings
Each transfer: amount, transaction date, related order number, currency
Sorted newest first (
-pk)Supports pagination
Filtered by session currency
Transfer Types:
Positive values: Point earning (credit) – post-order accrual
Negative values: Point spending (debit) – usage during checkout
Related Data:
Each transfer is linked to a
LoyaltyTransactionTransaction contains an order number (
order.number)Transaction date (
transaction.created_date) is also returned
Page number (starts from 1)
1Example: 1Number of records per page
10Example: 10Use X-Cookie header instead of Cookie header in "try out" section. Use Cookie header while testing in postman or other tools. Some commerce applications may support 'sesionid' instead of 'osessionid'.
osessionid=abc123Language preference (for multilingual content). Supported languages: tr, en, ar, ru, de, fr
trExample: trPossible values: Successful response
Authentication credentials were not provided.
GET /account/loyalty/ HTTP/1.1
Host: sandbox.akinon.com
X-Cookie: osessionid=abc123
Accept: */*
{
"count": 150,
"next": "https://sandbox.akinon.com/account/loyalty/?page=2",
"previous": null,
"results": [
{
"amount": "250.50",
"currency": {
"value": "try",
"label": "TRY"
},
"created_date": "2025-11-01T14:30:00Z",
"transaction": {
"order": "ORD-2025-001234",
"created_date": "2025-11-01T14:30:00Z"
}
},
{
"amount": "-100.00",
"currency": {
"value": "try",
"label": "TRY"
},
"created_date": "2025-10-28T10:15:00Z",
"transaction": {
"order": "ORD-2025-001200",
"created_date": "2025-10-28T10:15:00Z"
}
},
{
"amount": "180.25",
"currency": {
"value": "try",
"label": "TRY"
},
"created_date": "2025-10-25T16:45:00Z",
"transaction": {
"order": "ORD-2025-001180",
"created_date": "2025-10-25T16:45:00Z"
}
},
{
"amount": "-50.00",
"currency": {
"value": "try",
"label": "TRY"
},
"created_date": "2025-10-20T12:00:00Z",
"transaction": {
"order": "ORD-2025-001150",
"created_date": "2025-10-20T12:00:00Z"
}
}
]
}Last updated
Was this helpful?

