/identity/v1/tokens/{tokenId}/archiveArchives a token by permanently setting isValid to false and isArchived to true
WARNING! This action is potentially dangerous and irreversible!
networkIdstringrequired
The ID of the network for which authorization is requested
{
"networkId": "string"
}OK
{
"data": {
"id": "string",
"refId": "string",
"network": "string",
"isValid": true,
"type": "AD_HOC_PAYMENT_TERMINAL",
"whitelistType": "ALWAYS",
"driver": "string",
"paymentTerminal": "string",
"name": "string",
"expiresAt": "2023-06-07T17:32:28Z",
"createdAt": "2023-06-07T17:32:28Z",
"updatedAt": "2023-06-07T17:32:28Z"
}
}/identity/v1/tokens/{tokenId}/authorizeUse this route to check if a token in our system should be authorized to start a charge on a particular station. If the token is associated with a driver, it checks for valid billing status, if the station is free, and private charging access.
assetIdstringrequired
The ID of the asset for which authorization is requested
networkIdstringrequired
The ID of the network for which authorization is requested
{
"assetId": "string",
"networkId": "string"
}The token is unauthorized.
{
"data": {
"authorized": true,
"token": {
"id": "string",
"refId": "string",
"network": "string",
"isValid": true,
"type": "AD_HOC_PAYMENT_TERMINAL",
"whitelistType": "ALWAYS",
"driver": "string",
"paymentTerminal": "string",
"name": "string",
"expiresAt": "2023-06-07T17:32:28Z",
"createdAt": "2023-06-07T17:32:28Z",
"updatedAt": "2023-06-07T17:32:28Z"
}
}
}/identity/v1/tokensThis endpoint retrieves a list of all tokens available to the authenticated user.
limitstringThe maximum number of tokens to return (default 20, maximum 100)
startingAfterstringThe ID of the last token in the previous page of results. Results will start after this token
driverIdstringThe ID of the driver to filter tokens by
A list of tokens
{
"data": {
"hasMore": true,
"items": [
{
"id": "string",
"refId": "string",
"network": "string",
"isValid": true,
"type": "AD_HOC_PAYMENT_TERMINAL",
"whitelistType": "ALWAYS",
"driver": "string",
"paymentTerminal": "string",
"name": "string",
"expiresAt": "2023-06-07T17:32:28Z",
"createdAt": "2023-06-07T17:32:28Z",
"updatedAt": "2023-06-07T17:32:28Z"
}
]
}
}/identity/v1/tokensThis endpoint creates a new token
This action is not enabled by default. You must request additional permissions to perform this action.
idstringAn ID can optionally be provided when created a token. For example to register a VEHICLE token you would create a token with the "id" being the VID. For example VID:A1B2C3D4
paymentTerminalIdstringdriverIdstringisValidbooleanrequired
typestringrequired
whitelistTypestringrequired
networkstringnamestringexpiresAtstringThe ISO date time when the token will expire. If not provided, the token will not expire.
{
"id": "string",
"paymentTerminalId": "string",
"driverId": "string",
"isValid": true,
"type": "AD_HOC_USER",
"whitelistType": "ALWAYS",
"network": "string",
"name": "string",
"expiresAt": "2023-06-07T17:32:28Z"
}OK
{
"data": {
"id": "string",
"refId": "string",
"network": "string",
"isValid": true,
"type": "AD_HOC_PAYMENT_TERMINAL",
"whitelistType": "ALWAYS",
"driver": "string",
"paymentTerminal": "string",
"name": "string",
"expiresAt": "2023-06-07T17:32:28Z",
"createdAt": "2023-06-07T17:32:28Z",
"updatedAt": "2023-06-07T17:32:28Z"
}
}/identity/v1/tokens/{tokenId}This endpoint updates an existing token by its ID.
This action is not enabled by default. You must request additional permissions to perform this action.
networkstringrequired
The network the token is associated with
isActivebooleanrequired
Corresponds to the "isValid" field on the token
namestring or nullThe name associated with the token
expiresAtstring or nullThe ISO date time when the token will expire
whitelistTypestring{
"network": "string",
"isActive": true,
"name": "string",
"expiresAt": "2023-06-07T17:32:28Z",
"whitelistType": "ALWAYS"
}The updated token object.
{
"data": {
"id": "string",
"refId": "string",
"network": "string",
"isValid": true,
"type": "AD_HOC_PAYMENT_TERMINAL",
"whitelistType": "ALWAYS",
"driver": "string",
"paymentTerminal": "string",
"name": "string",
"expiresAt": "2023-06-07T17:32:28Z",
"createdAt": "2023-06-07T17:32:28Z",
"updatedAt": "2023-06-07T17:32:28Z"
}
}Was this page helpful?