Note: This API is part of SimpleLoyalty Third Party V2. For more details, refer to V2 APIs
Description
Record a transaction in the Zero Error Point Crediting database.
Parameters
| Parameter | Type | Value | Required |
| operation_name | String | zeroErrorCollectPoints | true |
| variables | JSON | $JSON_OBJECT | true |
$JSON_OBJECT Structure
| Key | Type | Description | Required |
| outletId | String | SimpleLoyalty Outlet ID | true |
| spending | Float | Spending amount | true |
| transactionNumber | String | Transaction number from source system | true |
| transactionTime | String | Transaction time from source system | true |
| receiptNumber | String | Receipt number from source system | false |
Important: transactionTime must be in the format YYYY-MM-DD HH:MI:SS and in UTC
Important: If there is no receipt number, the field can be left out
Tip: The OAuth 2.0 token can be obtained via Get OAuth Token
Example
Sample Request
curl \
-X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OAUTH_TOKEN" \
-d '{
"operation_name": "zeroErrorCollectPoints",
"variables": {
"outletId": $OUTLET_ID,
"spending": 100.20,
"transactionNumber": "TRANSACTION123",
"transactionTime": "2026-04-01 12:13:58",
"receiptNumber": "RECEIPT123"
}
}' \
https://simpleloyalty.com/third_party/v2
Sample Success Response
{
"data": {
"thirdPartyZeroErrorCollectPoints": {
"result": "OK",
"errors": []
}
}
}
Sample Error Response
{
"data": {
"thirdPartyZeroErrorCollectPoints": {
"result": "ERROR",
"errors": [
{"message": "Invalid phone number"}
]
}
}
}