Skip to main content

How to: consult the details of a client via API in RAY?

Ramón avatar
Written by Ramón
Updated over a year ago

To be able to consult the details of a client it is necessary:

Parameter

Description

userId

user id

storeIds

store ids, separated by commas

Answer: customer data and their activity in stores

{
"data": {
"visitationsGroupdByStores": [],
"lastVisitationDate": null,
"registrationDate": 1656344076000,
"clientValue": 0,
"npsCount": 0,
"npsAverage": 0,
"visitationsCount": 0,
"mailDeliveredCount": 0,
"mailOpenedCount": 0,
"walkthrougCount": 0,
"allEvents": [
{
"storeId": 3,
"storeName": "RAY",
"companyId": 3,
"ticketAverage": 300,
"timestamp": 1656344076000,
"eventSubType": {
"id": 1,
"name": "REGISTRATION",
"eventTypeId": "0"
},
"customProps": {
"total_time_in_store": 0,
"registeredThrough": "Manual"
},
"source": "BOTBIT"
}
],
"visitationsGroupedByDate": [
{
"date": 1626638957983,
"userVisits": []
},
{
"date": 1658174957983,
"userVisits": []
}
],
"userInformation": {
"id": 4129004,
"name": "Gonza",
"lastName": "",
"email": "testsetupcreate5@mail.com",
"gender": "M",
"location": null,
"company": null,
"avatar": null,
"bio": null,
"birthDate": null,
"role": null,
"emailStatus": "deliverable",
"phone": null,
"loggedInThrough": null,
"facebookProfile": null,
"googleProfile": null,
"linkedInProfile": null,
"twitterProfile": null,
"instagramProfile": null,
"country": null,
"qrCode": null,
"identityNumber": null,
"visitorType": null,
"sonBirthDate": null,
"pygRegistrationStore": null,
"tags": [],
"storeRegistrations": [
{
"storeId": 3,
"storeCompanyId": 3,
"userId": 4129004,
"lastVisitationDate": null,
"ignored": false,
"ignoredBy": null,
"ignoredTimestamp": null,
"allowAutomaticIgnore": true,
"registrationDate": 1656344076000,
"registeredThrough": {
"id": "Manual",
"name": "Manual"
}
}
],
"ignored": null,
"registrationDate": null,
"lastVisitationDate": null,
"registeredThrough": null,
"province": null,
"ignoredStores": null,
"registeredBy": null,
"userDisplayName": "Gonza"
},
"userStatus": null,
"onlinePurchaseCount": 0,
"stimulatedPurchaseCount": 0
},
"result": "success",
"message": "ok",
"statusCode": 200
}

Related Posts:


Visit our Help Center , there you will find more information to continue learning about the platform.


What do you think of this article? 👇

Did this answer your question?