Skip to main content
POST
/
v1
/
api
/
qrcode
/
validate
Validate a scanned QR code
curl --request POST \
  --url http://localhost:3091/v1/api/qrcode/validate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "payload": "<string>"
}
'
{
  "valid": true,
  "result": "VALID",
  "reservationId": 123,
  "type": "DEPOSIT",
  "reservationNumber": "<string>",
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

JWT access token from POST /v1/api/auth/login

Body

application/json
payload
string
required

Response

Validation result returned

valid
boolean
result
enum<string>
Available options:
VALID,
INVALID_FORMAT,
INVALID_SIGNATURE,
EXPIRED,
ALREADY_USED,
NOT_FOUND,
WRONG_STATUS
reservationId
integer<int32>
type
enum<string>
Available options:
DEPOSIT,
DELIVERY
reservationNumber
string
message
string