- Introduction
- Authentication
- Errors
- Change Logs
- Promotion
- Loyalty
- Wallet
- PIM
- Merchant
- How to
Receive Event
Production
Production
POST
https://api.b2b.retter.io/5p1hp1d2t/CALL/LoyaltyAPI/receiveEvent
Loyalty
Last modified:2024-09-17 11:22:35
Request
Authorization
Add parameter in header
x-api-key
Example:
x-api-key: ********************
Body Params application/json
entityId
string
required
entityType
string
required
entityData
object
optional
name
string
optional
surname
string
optional
referenceId
string
optional
eventType
string
required
eventData
object
optional
transactionId
string
optional
amount
integer
optional
currency
string
optional
webhook
boolean
optional
measurements
array [object {5}]
optional
measurement
string
optional
value
integer
optional
groupeName
string
optional
groupeValue
string
optional
time
string
optional
If not provided, event time is taken.
Example:
2024-09-04T13:14:43.779Z
time
string
optional
If not provided, now is taken.
Example
{
"entityId": "string",
"entityType": "string",
"entityData": {
"name": "string",
"surname": "string"
},
"referenceId": "string",
"eventType": "string",
"eventData": {
"transactionId": "string",
"amount": 0,
"currency": "string",
"webhook": true
},
"measurements": [
{
"measurement": "string",
"value": 0,
"groupeName": "string",
"groupeValue": "string",
"time": "2024-09-04T13:14:43.779Z"
}
],
"time": "string"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.b2b.retter.io/5p1hp1d2t/CALL/LoyaltyAPI/receiveEvent' \
--header 'Content-Type: application/json' \
--header 'x-api-key;' \
--data-raw ''
Responses
🟢200OK
application/json
Body
eventId
string
optional
Example
{
"eventId": "string"
}
🟠400Bad Request
🟠403Forbidden
🟠404Record Not Found
Modified at 2024-09-17 11:22:35