Authorization Tokens 1.0
Issue and revoke location-scoped JWT authorization tokens used by the POS API.
Authentication requires an Account Manager administrative token in the
Authorization: Bearer <token> header. The authenticated user must be the active business administrator for the requested organization.Tokens
GET/v1/tokens/requestAuthorizationTokenIssue an authorization token
Creates a location-scoped JWT with a 30-day lifetime after validating the authenticated business administrator.
Parameters
| Name | In | Description |
|---|---|---|
Authorizationrequired | header Bearer token | Account Manager administrative token. |
organizationIdrequired | query integer | Organization owned by the authenticated business administrator. |
locationIdrequired | query integer | Location to encode into the new authorization token. |
Try it out
Request URL
—Server response
GET/v1/tokens/revokeAuthorizationTokenRevoke an authorization token
Marks a previously issued POS authorization token as revoked using its database identifier.
Parameters
| Name | In | Description |
|---|---|---|
Authorizationrequired | header Bearer token | Account Manager administrative token. |
apiLocationTokenIdrequired | query integer | Identifier returned when the POS authorization token was issued. |
Try it out
Request URL
—Server response
Response models
Application responses use the envelope { status, message, data }.
Issued token data
Property
Type
Description
tokenTypestring
Authentication scheme; currently
Bearer.authorizationTokenstring
Signed JWT used to authorize POS API requests.
apiLocationTokenIdinteger
Database identifier used to revoke this token.
expiresIninteger
Lifetime in seconds; currently 2,592,000 (30 days).
Revocation data
Property
Type
Description
revokedboolean
Whether a token record was updated.
affectedRowsinteger
Number of matching token records updated.