Access IDs

Access IDs include RFID cards or vehicles. When a charger identifies who is initiating a charging session, it sends us an ID tag. This ID can be from one of the following sources:

  • RFID Card: A card that is scanned on the charger to authenticate the user before charging begins.

  • Vehicle: The MAC ID of a vehicle that is directly plugged into the charger.

GET /api/access-ids

Retrieve a list of all Access IDs.

Response

The JSON response will contain a data field with a list of access ids, and a pagination field containing pagination details.

{
  data: {
    id: number;
    ocppIdTag: string;
    type: string; // RFID | Vehicle
    name: string;
    authorizationStatus: string; // Authorized | Revoked
    authorizedAt: string; // ISO 8601 format
    revokedAt: string | null; // ISO 8601 format or null. Set only if authorizationStatus is Revoked
    createdAt: string; // ISO 8601 format
    updatedAt: string; // ISO 8601 format
    // Only defined if the "type" is a vehicle:
    vehicle: {
      id: number;
      make: string | null;
      model: string | null;
      name: string;
      vin: string | null;
    } | null;
  }[];
  pagination: {
    hasNextPage: boolean;
    nextPageCursor: string | null;
  };
};

Example request and response

Request:

Response:

GET /api/access-ids/{id}

Retrieve the details for a specific Access ID (RFID Card or Vehicle).

Response

Example request and response

Request:

Response:

POST /api/access-ids

Create a new access ID. An access ID can be of two types: RFID or Vehicle. When creating a vehicle access ID, you can either create a new vehicle by passing in the vehicle parameters, or associate the new access ID with an existing vehicle by passing a vehicleId.

A single vehicle can have multiple access IDs, which can be used to represent cases where:

  1. A vehicle has multiple charging ports with different MAC IDs

  2. A vehicle MAC ID has changed over time, and you wish to maintain the connection to old charging sessions

Request Body

Response

Example request for vehicle and response

Request:

Response:

Example request for RFID card and response

Request:

Response:

PATCH /api/access-ids/{id}

Update an Access ID (RFID Card or Vehicle).

Request Body

For optional fields, explicitly providing null will delete the value.

Response

Example request and response

Request:

Response:

Last updated