Push entry codes

verify entry-code at external provider

POST
/api/push/entry-code/verify

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

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
customerId*|Deprecated

AiFi customer id

customer*

Customer information

role*|Deprecated
Value in"customer" | "employee" | "tester" | "untracked" | "unknown"
checkInDeviceId*|

The id of check-in device

entryCode*string

Entry code to be verified

expectedGroupSize*|

Group size that was specified by the user in the customer app, when requesting a qr code

groupSize?integer

Size of a group that was present in the scanning zone during qr code scan

payment*

Response Body

application/json

curl -X POST "https://oasis-api.public.sandbox.oasis.aifi.com/api/push/entry-code/verify" \  -H "Content-Type: application/json" \  -d '{    "storeId": 0,    "store": {      "oasisApiStoreId": 0,      "aifiUniqueStoreId": "string"    },    "storeExternalId": "string",    "timeOfOrigin": "2019-08-24T14:15:22Z",    "timeOfIssue": "2019-08-24T14:15:22Z",    "customerId": 0,    "customer": {      "externalId": "string",      "metadata": {        "arbitraryKey": "arbitraryValue"      },      "id": "string",      "role": "customer"    },    "role": "customer",    "checkInDeviceId": 0,    "entryCode": "string",    "expectedGroupSize": 0,    "payment": {      "paymentProvider": "NONE"    }  }'
{
  "status": "FAILED",
  "reason": "Payment verification failed",
  "sessionId": "cc256d83-a307-483e-b3bf-3740cb925f92",
  "customerId": 123
}

How is this guide?

AiFI AI Chat

Beta

Powered by AiFi

Ask docs or API questions to get grounded answers.