x-api-key: ********************{
"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"
}curl --location --request POST 'https://api.mircate.com/5p1hp1d2t/CALL/LoyaltyAPI/receiveEvent' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"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"
}'{
"eventId": "68f8b2fe28aa8c91d5f0aa99",
"entityErrors": {
"phoneNumber": [
"0 is not a string."
],
"birthDate": [
"Incorrect Date is not a valid date."
],
"gdprOptin": [
"Wrong Type is not a boolean."
],
"registrationType": [
"Invalid type is not a valid option."
]
},
"eventErrors": {
"orderId": [
"1234 is not a string."
],
"rate": [
"number is not a number."
]
}
}