/identity/v1/tokens/{tokenId}/archive
Archives a token by permanently setting isValid to false and isArchived to true
WARNING! This action is potentially dangerous and irreversible!
networkId
string
required
The ID of the network for which authorization is requested
{
"networkId": "string"
}
OK
{
"data": {
"id": "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}/authorize
Use 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.
assetId
string
required
The ID of the asset for which authorization is requested
networkId
string
required
The ID of the network for which authorization is requested
{
"assetId": "string",
"networkId": "string"
}
The token is unauthorized.
{
"data": {
"authorized": true,
"token": {
"id": "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
This endpoint retrieves a list of all tokens available to the authenticated user.
limit
string
The maximum number of tokens to return (default 20, maximum 100)
startingAfter
string
The ID of the last token in the previous page of results. Results will start after this token
driverId
string
The ID of the driver to filter tokens by
A list of tokens
{
"data": {
"hasMore": true,
"items": [
{
"id": "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
This endpoint creates a new token
This action is not enabled by default. You must request additional permissions to perform this action.
id
string
An 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
paymentTerminalId
string
driverId
string
isValid
boolean
required
type
string
required
whitelistType
string
required
network
string
name
string
expiresAt
string
The 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",
"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.
network
string
required
The network the token is associated with
isActive
boolean
required
Corresponds to the "isValid" field on the token
name
string or null
The name associated with the token
expiresAt
string or null
The ISO date time when the token will expire
{
"network": "string",
"isActive": true,
"name": "string",
"expiresAt": "2023-06-07T17:32:28Z"
}
The updated token object.
{
"data": {
"id": "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?