Scans
Log scan
POST
/
api
/
v1
/
scans
/
log
curl --request POST \
--url https://api.passentry.com/api/v1/scans/log \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"scan": {
"readerId": "south-gate-1",
"scanType": "nfc",
"status": "failed",
"statusDetail": "Membership expired",
"scanValue": "PROMO-CODE-123456",
"passId": "7882e98b-0eba-4625-9223-5221eb8dad7f",
"loyalty": {
"balance": -10
}
}
}'
{
"scanInfo": {
"scanId": "019488b8-c2fc-7b5b-b5b4-deb2b7f33bdd",
"scanType": "nfc",
"scanValue": "PROMO-CODE-123456",
"validationType": "externalValidation",
"status": "failed",
"statusDetail": "Membership expired",
"scannedAt": "2025-01-21T11:56:37Z",
"passId": "7882e98b-0eba-4625-9223-5221eb8dad7f",
"passExtId": "4312d68fd106e3e6dd15",
"readerId": "south-gate-1"
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200
application/json
OK
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api.passentry.com/api/v1/scans/log \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"scan": {
"readerId": "south-gate-1",
"scanType": "nfc",
"status": "failed",
"statusDetail": "Membership expired",
"scanValue": "PROMO-CODE-123456",
"passId": "7882e98b-0eba-4625-9223-5221eb8dad7f",
"loyalty": {
"balance": -10
}
}
}'
{
"scanInfo": {
"scanId": "019488b8-c2fc-7b5b-b5b4-deb2b7f33bdd",
"scanType": "nfc",
"scanValue": "PROMO-CODE-123456",
"validationType": "externalValidation",
"status": "failed",
"statusDetail": "Membership expired",
"scannedAt": "2025-01-21T11:56:37Z",
"passId": "7882e98b-0eba-4625-9223-5221eb8dad7f",
"passExtId": "4312d68fd106e3e6dd15",
"readerId": "south-gate-1"
}
}
Assistant
Responses are generated using AI and may contain mistakes.