Jifeline Partner Websockets API offers real time updates related to data of your Partner Portal.
Server that requires a access token to be send when connecting.
See this Partner API documentation to learn how to get an access token.
Send the access token via the header Authorization: Bearer <your token>
or pass it via the ?access_token=<your token>
query parameter.
Once the socket is open you can subscribe by sending a specific subscribe request messages.
Provide an access token.
For more information, see "Exchanging client credentials for an access token: client secret in authorization header" on this page.
Accepts one of the following messages:
Subscribe to receive status updates regarding a connector.
{
"action": "subscribe-to-connector",
"connector_id": "9389ba6f-3696-4571-84d4-34d588c4b109"
}
Unsubscribe from receiving status updates regarding a connector.
{
"action": "unsubscribe-from-connector",
"connector_id": "9389ba6f-3696-4571-84d4-34d588c4b109"
}
Subscribe to receive events with the specified type.
{
"action": "subscribe-to-event",
"event_type": "tickets.ticket.created"
}
Unsubscribe from receiving events with the specified type.
{
"action": "unsubscribe-from-event",
"event_type": "tickets.ticket.created"
}
Accepts one of the following messages:
A status update of a subscribed connector.
{
"action": "subscribe-to-connector",
"message": {
"connector_id": "9389ba6f-3696-4571-84d4-34d588c4b109",
"voltage": 11.2,
"vin_number": "JFL91010104491010",
"round_trip_time": 23
}
}
{
"action": "event-received",
"event_id": "string",
"event_type": "tickets.ticket.created",
"message": {}
}
Subscribe to receive status updates regarding a connector.
Unsubscribe from receiving status updates regarding a connector.
A status update of a subscribed connector.
Subscribe to receive events with the specified type.
Unsubscribe from receiving events with the specified type.