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

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"}
      ]
    }
  }
}