Push identity matching

identity matching

POST
/api/push/identity-matching

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

sessionId*stringDeprecated

A unique token to identify a shopping session. Note, sessionToken and sessionId are same concept in AIFI system. Deprecated, usesession.sessionId

customer*

Customer information

storeId*integer

AiFi store id

store*
storeExternalId*|

Retailer store id

timeOfOrigin*string

ISO formatted creation time of the event, that caused this webhook to be sent

Formatdate-time
timeOfIssue*string

ISO formatted time, in which this webhook was sent

Formatdate-time
session*

Provides details about the session for the registered shopper that was matched with the visitor shopper. During identity matching, the system attempts to associate the visitor shopper with the corresponding registered shopper. Ultimately, the goal is to link the visitor shopper to the session of the same customer for whom the registered session was originally created.

visitorShopperId*string

Identifier of the Visitor shopper that was matched with registered shopper during identity matching

Response Body

curl -X POST "https://oasis-api.public.sandbox.oasis.aifi.com/api/push/identity-matching" \  -H "Content-Type: application/json" \  -d '{    "sessionId": "d3a00526-1864-4f6e-bb2d-46e3ab7fa780",    "customer": {      "externalId": "string",      "metadata": {        "arbitraryKey": "arbitraryValue"      },      "id": "string",      "role": "customer"    },    "storeId": 0,    "store": {      "oasisApiStoreId": 0,      "aifiUniqueStoreId": "string"    },    "storeExternalId": "string",    "timeOfOrigin": "2019-08-24T14:15:22Z",    "timeOfIssue": "2019-08-24T14:15:22Z",    "session": {      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z",      "id": 0,      "customerId": 0,      "code": "c69bb289-1190-4156-b9f6-bfb7f61e85db",      "codeFirstSuccesfullyScannedAt": "2019-08-24T14:15:22Z",      "codeLastSuccesfullyScannedAt": "2019-08-24T14:15:22Z",      "customerFirstEnteredAt": "2019-08-24T14:15:22Z",      "customerLastEnteredAt": "2019-08-24T14:15:22Z",      "customerFirstExitedAt": "2019-08-24T14:15:22Z",      "customerLastExitedAt": "2019-08-24T14:15:22Z",      "customerPaymentInstrumentId": 0,      "customerSatisfaction": 95,      "customerSatisfactionSubmitted": false,      "groupSize": 0,      "visitors": 0,      "locationId": "string",      "priority": 0,      "sessionToken": "d3a00526-1864-4f6e-bb2d-46e3ab7fa780",      "sessionId": "d3a00526-1864-4f6e-bb2d-46e3ab7fa780",      "referencedSessionId": null,      "status": "active",      "storeId": 0,      "storeIdScannableAt": 0,      "suspectedFraud": false,      "metadata": {        "events": [          {            "eventId": "6bdbfb2d-65b2-491c-bc97-c0ac73338476",            "metadata": {              "key": "value"            }          }        ],        "exampleKey": "exampleValue"      },      "expiresAt": "2019-08-24T14:15:22Z"    },    "visitorShopperId": "string"  }'
Empty

How is this guide?

AiFI AI Chat

Beta

Powered by AiFi

Ask docs or API questions to get grounded answers.