statusboolean
true when the signature verified; false on the 4xx envelope. Note: status = true does not mean the user shared their profile — the PII fields are null when the user has not granted consent.
data.user_idnumber
Shoppingate user id — always returned, regardless of consent state. Persist this against your own account row so subsequent sessions with the same user land on the same profile. This is the load-bearing identifier for your side of the integration.
data.namestring | null (consent-gated)
User's full display name — first_name and last_name joined with a space. Populated only when the user has granted consent; null otherwise.
data.first_name, last_namestring | null (consent-gated)
Individual name parts, in case you need to store them separately or greet the user with just their first name. Both are null unless consent is granted.
data.emailstring | null (consent-gated)
User's email — populated only when consent is granted. May itself still be null even under consent if the user hasn't added an email to their Shoppingate account.
data.phone_number, phone_codestring
Mobile number and dial code (e.g. "+966") — always present, whatever the consent status. Combine them for a full E.164 number.
data.verified_atstring, ISO 8601 UTC
When this verify call resolved. Log for audit; do not use for token freshness (use expires_at).
data.issued_at, expires_atstring, ISO 8601 UTC
Token lifetime. Verify the token once — this endpoint is a one-time handshake, not a request-time header.
error_code (on 4xx)string
Machine string for the failure mode. 400: IDENTITY_TOKEN_REQUIRED (no token in the body), MINI_APP_REQUIRED (no X-Mini-App-Id). 401: IDENTITY_TOKEN_EXPIRED, INVALID_SIGNATURE, INVALID_SUBJECT. Branch on this — do not parse the human message.
messagestring
Human string for logs — do not parse.