Operator-to-operator (legacy interop)
Push work status (legacy)
Legacy interface (§7). Implemented by the customer platform and called
by the device operator after a charge starts or fails. Retry policy:
5 attempts at intervals of 1m, 5m, 60m, 180m, 24h. After exhaustion,
the customer can call query_station_status to fetch state.
POST
/
customer
/
notify_work_status
Push work status (legacy)
curl --request POST \
--url https://api.telluspower.example.com/v1/customer/notify_work_status \
--header 'Content-Type: application/json' \
--data '
{
"OrderId": "<string>",
"DeviceVendorOrderId": "<string>",
"ChargePointId": "<string>",
"ConnectorId": 2,
"ChangeTime": "<string>"
}
'import requests
url = "https://api.telluspower.example.com/v1/customer/notify_work_status"
payload = {
"OrderId": "<string>",
"DeviceVendorOrderId": "<string>",
"ChargePointId": "<string>",
"ConnectorId": 2,
"ChangeTime": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
OrderId: '<string>',
DeviceVendorOrderId: '<string>',
ChargePointId: '<string>',
ConnectorId: 2,
ChangeTime: '<string>'
})
};
fetch('https://api.telluspower.example.com/v1/customer/notify_work_status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.telluspower.example.com/v1/customer/notify_work_status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'OrderId' => '<string>',
'DeviceVendorOrderId' => '<string>',
'ChargePointId' => '<string>',
'ConnectorId' => 2,
'ChangeTime' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.telluspower.example.com/v1/customer/notify_work_status"
payload := strings.NewReader("{\n \"OrderId\": \"<string>\",\n \"DeviceVendorOrderId\": \"<string>\",\n \"ChargePointId\": \"<string>\",\n \"ConnectorId\": 2,\n \"ChangeTime\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.telluspower.example.com/v1/customer/notify_work_status")
.header("Content-Type", "application/json")
.body("{\n \"OrderId\": \"<string>\",\n \"DeviceVendorOrderId\": \"<string>\",\n \"ChargePointId\": \"<string>\",\n \"ConnectorId\": 2,\n \"ChangeTime\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.telluspower.example.com/v1/customer/notify_work_status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"OrderId\": \"<string>\",\n \"DeviceVendorOrderId\": \"<string>\",\n \"ChargePointId\": \"<string>\",\n \"ConnectorId\": 2,\n \"ChangeTime\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"Status": "Accept"
}Body
application/json
Maximum string length:
64Maximum string length:
64Maximum string length:
64Required range:
x >= 1yyyy-MM-dd HH:mm:ss
Available options:
STARTING, START_FAILED, CHARGING, WAIT_CP_STOP_CHARGING, WAIT_PULL_OUT_CONNECTOR, WAIT_PAY, COMPLETED Meter information for legacy work-status push.
Show child attributes
Show child attributes
Response
200 - application/json
Status push acknowledged.
Available options:
Accept, Reject ⌘I
Push work status (legacy)
curl --request POST \
--url https://api.telluspower.example.com/v1/customer/notify_work_status \
--header 'Content-Type: application/json' \
--data '
{
"OrderId": "<string>",
"DeviceVendorOrderId": "<string>",
"ChargePointId": "<string>",
"ConnectorId": 2,
"ChangeTime": "<string>"
}
'import requests
url = "https://api.telluspower.example.com/v1/customer/notify_work_status"
payload = {
"OrderId": "<string>",
"DeviceVendorOrderId": "<string>",
"ChargePointId": "<string>",
"ConnectorId": 2,
"ChangeTime": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
OrderId: '<string>',
DeviceVendorOrderId: '<string>',
ChargePointId: '<string>',
ConnectorId: 2,
ChangeTime: '<string>'
})
};
fetch('https://api.telluspower.example.com/v1/customer/notify_work_status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.telluspower.example.com/v1/customer/notify_work_status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'OrderId' => '<string>',
'DeviceVendorOrderId' => '<string>',
'ChargePointId' => '<string>',
'ConnectorId' => 2,
'ChangeTime' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.telluspower.example.com/v1/customer/notify_work_status"
payload := strings.NewReader("{\n \"OrderId\": \"<string>\",\n \"DeviceVendorOrderId\": \"<string>\",\n \"ChargePointId\": \"<string>\",\n \"ConnectorId\": 2,\n \"ChangeTime\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.telluspower.example.com/v1/customer/notify_work_status")
.header("Content-Type", "application/json")
.body("{\n \"OrderId\": \"<string>\",\n \"DeviceVendorOrderId\": \"<string>\",\n \"ChargePointId\": \"<string>\",\n \"ConnectorId\": 2,\n \"ChangeTime\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.telluspower.example.com/v1/customer/notify_work_status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"OrderId\": \"<string>\",\n \"DeviceVendorOrderId\": \"<string>\",\n \"ChargePointId\": \"<string>\",\n \"ConnectorId\": 2,\n \"ChangeTime\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"Status": "Accept"
}