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 | Value | Required |
brandId | String | $SHARED_BRAND_ID | true |
phoneNumber | String | $PHONE_NUMBER | true |
extension | String | $EXTENSION | true |
outletId | String | $OUTLET_ID | true |
spending | Float | $SPENDING | true |
transactionNumber | String | $TRANSACTION_NUMBER | true |
Important: Append country code to phone number string
Tip: $SHARED_BRAND_ID and $OUTLET_ID can be obtained via Accessible Brands
Example
Request
curl \
-X POST \
-H "Content-Type: application/json" \
-H "Token: $TOKEN" \
-d '{
"operation_name": "zeroErrorCollectPoints",
"variables": {
"phoneNumber": "60123123123",
"extension": "MY",
"brandId": $SHARED_BRAND_ID,
"outletId": $OUTLET_ID,
"spending": 100.20,
"transactionNumber": "TRANSACTION123"
}
}' \
https://mulahpoints.com/third_party
Response
{
"data": {
"zeroErrorCollectPoints": {
"result": $SUCCESS_MESSAGE,
"errors": [
{message: $ERROR_MESSAGE}
]
}
}
}