-
Notifications
You must be signed in to change notification settings - Fork 15
/
api.yaml
1666 lines (1666 loc) · 57 KB
/
api.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.0
info:
description: |
This is a OCPP Central System API.
version: "1.0.0"
title: OCPP CS API
contact:
email: ufocomp@gmail.com
license:
name: MIT License
url: https://github.com/apostoldevel/apostol-cs/blob/master/LICENSE
externalDocs:
description: GitHub
url: https://github.com/apostoldevel/apostol-cs
servers:
- url: 'https://cs.ocpp-css.com/api/v1'
description: OCPP CS
- url: 'http://{host}:{port}/api/v1'
description: Custom
variables:
host:
default: localhost
port:
default: '9220'
tags:
- name: Connection
description: Check server connection
- name: CentralSystem
description: Central System endpoints
- name: ChargePoint
description: Charge point endpoints
paths:
/ping:
get:
tags:
- Connection
summary: Check server connection.
responses:
'200':
description: Successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/response'
'400':
$ref: '#/components/responses/BadRequest'
'404':
$ref: '#/components/responses/NotFound'
'5XX':
$ref: '#/components/responses/InternalError'
/time:
get:
tags:
- Connection
summary: Get server time.
responses:
'200':
description: Successfully.
content:
application/json:
schema:
type: object
properties:
serverTime:
type: integer
description: UNIX time
example:
serverTime: 1642521843938
'400':
$ref: '#/components/responses/BadRequest'
'404':
$ref: '#/components/responses/NotFound'
'5XX':
$ref: '#/components/responses/InternalError'
/CentralSystem/ChargePointList:
get:
tags:
- CentralSystem
summary: Get a list of connected charging stations.
operationId: ChargePointList
responses:
'200':
description: Successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/ChargePointListResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'5XX':
$ref: '#/components/responses/InternalError'
/CentralSystem/TransactionList:
post:
tags:
- CentralSystem
summary: Transaction list.
operationId: TransactionList
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/TransactionList'
application/json:
schema:
$ref: '#/components/schemas/TransactionList'
responses:
'200':
description: Successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/TransactionListResponce'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'5XX':
$ref: '#/components/responses/InternalError'
/CentralSystem/ReservationList:
post:
tags:
- CentralSystem
summary: Reservation list.
operationId: ReservationList
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/ReservationList'
application/json:
schema:
$ref: '#/components/schemas/ReservationList'
responses:
'200':
description: Successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/ReservationListResponce'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'5XX':
$ref: '#/components/responses/InternalError'
/ChargePoint/{identity}/CancelReservation:
post:
tags:
- ChargePoint
summary: 5.1. Cancel Reservation
description: >
To cancel a reservation the Central System SHALL send an CancelReservation.req PDU to the Charge Point.
If the Charge Point has a reservation matching the reservationId in the request PDU, it SHALL return status
‘Accepted’. Otherwise it SHALL return ‘Rejected’.
operationId: CancelReservation
parameters:
- $ref: '#/components/parameters/Identity'
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/CancelReservation'
application/json:
schema:
$ref: '#/components/schemas/CancelReservation'
responses:
'200':
description: >
This indicates the success or failure of the cancelling of a reservation by Central System.
content:
application/json:
schema:
$ref: '#/components/schemas/CancelReservationResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'5XX':
$ref: '#/components/responses/InternalError'
/ChargePoint/{identity}/ChangeAvailability:
post:
tags:
- ChargePoint
summary: 5.2. Change Availability
description: >
Central System can request a Charge Point to change its availability. A Charge Point is considered available
(“operative”) when it is charging or ready for charging. A Charge Point is considered unavailable when it does not
allow any charging. The Central System SHALL send a ChangeAvailability.req PDU for requesting a Charge Point
to change its availability. The Central System can change the availability to available or unavailable.
operationId: ChangeAvailability
parameters:
- $ref: '#/components/parameters/Identity'
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/ChangeAvailability'
application/json:
schema:
$ref: '#/components/schemas/ChangeAvailability'
responses:
'200':
description: >
This indicates whether the Charge Point is able to perform the availability change.
content:
application/json:
schema:
$ref: '#/components/schemas/AvailabilityResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'5XX':
$ref: '#/components/responses/InternalError'
/ChargePoint/{identity}/ChangeConfiguration:
post:
tags:
- ChargePoint
summary: 5.3. Change Configuration
description: >
Central System can request a Charge Point to change configuration parameters. To achieve this, Central System
SHALL send a ChangeConfiguration.req. This request contains a key-value pair, where "key" is the name of the
configuration setting to change and "value" contains the new setting for the configuration setting.
operationId: ChangeConfiguration
parameters:
- $ref: '#/components/parameters/Identity'
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/ChangeConfiguration'
application/json:
schema:
$ref: '#/components/schemas/ChangeConfiguration'
responses:
'200':
description: >
Returns whether configuration change has been accepted.
content:
application/json:
schema:
$ref: '#/components/schemas/ConfigurationResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'5XX':
$ref: '#/components/responses/InternalError'
/ChargePoint/{identity}/ClearCache:
post:
tags:
- ChargePoint
summary: 5.4. Clear Cache
description: >
Central System can request a Charge Point to clear its Authorization Cache. The Central System SHALL send a
ClearCache.req PDU for clearing the Charge Point’s Authorization Cache.
operationId: ClearCache
parameters:
- $ref: '#/components/parameters/Identity'
responses:
'200':
description: >
Accepted if the Charge Point has executed the request, otherwise rejected.
content:
application/json:
schema:
$ref: '#/components/schemas/ClearCacheResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'5XX':
$ref: '#/components/responses/InternalError'
/ChargePoint/{identity}/ClearChargingProfile:
post:
tags:
- ChargePoint
summary: 5.5. Clear Charging Profile
description: >
If the Central System wishes to clear some or all of the charging profiles that were previously sent the Charge Point, it SHALL use the ClearChargingProfile.req PDU.
operationId: ClearChargingProfile
parameters:
- $ref: '#/components/parameters/Identity'
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/ClearChargingProfile'
application/json:
schema:
$ref: '#/components/schemas/ClearChargingProfile'
responses:
'200':
description: >
Indicates if the Charge Point was able to execute the request.
content:
application/json:
schema:
$ref: '#/components/schemas/ClearChargingProfileResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'5XX':
$ref: '#/components/responses/InternalError'
/ChargePoint/{identity}/DataTransfer:
post:
tags:
- ChargePoint
summary: 5.6. Data Transfer
description: >
If the Central System needs to send information to a Charge Point for a function not supported by OCPP, it SHALL use the DataTransfer.req PDU.
operationId: DataTransfer
parameters:
- $ref: '#/components/parameters/Identity'
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/DataTransfer'
application/json:
schema:
$ref: '#/components/schemas/DataTransfer'
responses:
'200':
description: >
This indicates the success or failure of the data transfer.
content:
application/json:
schema:
$ref: '#/components/schemas/DataTransferResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'5XX':
$ref: '#/components/responses/InternalError'
/ChargePoint/{identity}/GetCompositeSchedule:
post:
tags:
- ChargePoint
summary: 5.7. Get Composite Schedule
description: >
This contains the field definition of the GetCompositeSchedule.conf PDU sent by the Charge Point to the Central System in response to a GetCompositeSchedule.req PDU.
operationId: GetCompositeSchedule
parameters:
- $ref: '#/components/parameters/Identity'
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/GetCompositeSchedule'
application/json:
schema:
$ref: '#/components/schemas/GetCompositeSchedule'
responses:
'200':
description: >
This contains the field definition of the GetCompositeSchedule.conf PDU sent by the Charge Point to the Central System in response to a GetCompositeSchedule.req PDU.
content:
application/json:
schema:
$ref: '#/components/schemas/GetCompositeScheduleResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'5XX':
$ref: '#/components/responses/InternalError'
/ChargePoint/{identity}/GetConfiguration:
post:
tags:
- ChargePoint
summary: 5.8. Get Configuration
description: >
To retrieve the value of configuration settings, the Central System SHALL send a GetConfiguration.req PDU to the Charge Point.
operationId: GetConfiguration
parameters:
- $ref: '#/components/parameters/Identity'
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/GetConfiguration'
application/json:
schema:
$ref: '#/components/schemas/GetConfiguration'
responses:
'200':
description: >
This contains the field definition of the GetConfiguration.conf PDU sent by Charge Point the to the Central System in response to a GetConfiguration.req.
content:
application/json:
schema:
$ref: '#/components/schemas/GetConfigurationResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'5XX':
$ref: '#/components/responses/InternalError'
/ChargePoint/{identity}/GetDiagnostics:
post:
tags:
- ChargePoint
summary: 5.9. Get Diagnostics
description: >
Central System can request a Charge Point for diagnostic information. The Central System SHALL send a
GetDiagnostics.req PDU for getting diagnostic information of a Charge Point with a location where the Charge
Point MUST upload its diagnostic data to and optionally a begin and end time for the requested diagnostic information.
operationId: GetDiagnostics
parameters:
- $ref: '#/components/parameters/Identity'
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/GetDiagnostics'
application/json:
schema:
$ref: '#/components/schemas/GetDiagnostics'
responses:
'200':
description: >
This contains the field definition of the GetDiagnostics.conf PDU sent by the Charge Point to the Central System in response to a GetDiagnostics.req PDU.
content:
application/json:
schema:
$ref: '#/components/schemas/GetDiagnosticsResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'5XX':
$ref: '#/components/responses/InternalError'
/ChargePoint/{identity}/GetLocalListVersion:
post:
tags:
- ChargePoint
summary: 5.10. Get Local List Version
description: >
In order to support synchronisation of the Local Authorization List, Central System can request a Charge Point
for the version number of the Local Authorization List. The Central System SHALL send a GetLocalListVersion.req
PDU to request this value.
operationId: GetLocalListVersion
parameters:
- $ref: '#/components/parameters/Identity'
responses:
'200':
description: >
This contains the field definition of the GetLocalListVersion.conf PDU sent by the Charge Point to Central System in response to a GetLocalListVersion.req PDU.
content:
application/json:
schema:
$ref: '#/components/schemas/GetLocalListVersionResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'5XX':
$ref: '#/components/responses/InternalError'
/ChargePoint/{identity}/RemoteStartTransaction:
post:
tags:
- ChargePoint
summary: 5.11. Remote Start Transaction
description: >
Central System can request a Charge Point to start a transaction by sending a RemoteStartTransaction.req. Upon
receipt, the Charge Point SHALL reply with RemoteStartTransaction.conf and a status indicating whether it has
accepted the request and will attempt to start a transaction.
operationId: RemoteStartTransaction
parameters:
- $ref: '#/components/parameters/Identity'
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/RemoteStartTransaction'
application/json:
schema:
$ref: '#/components/schemas/RemoteStartTransactionJson'
responses:
'200':
description: >
This contains the field definitions of the RemoteStartTransaction.conf PDU sent from Charge Point to Central System.
content:
application/json:
schema:
$ref: '#/components/schemas/RemoteStartTransactionResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'5XX':
$ref: '#/components/responses/InternalError'
/ChargePoint/{identity}/RemoteStopTransaction:
post:
tags:
- ChargePoint
summary: 5.12. Remote Stop Transaction
description: >
Central System can request a Charge Point to stop a transaction by sending a RemoteStopTransaction.req to
Charge Point with the identifier of the transaction. Charge Point SHALL reply with RemoteStopTransaction.conf
and a status indicating whether it has accepted the request and a transaction with the given transactionId is
ongoing and will be stopped.
operationId: RemoteStopTransaction
parameters:
- $ref: '#/components/parameters/Identity'
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/RemoteStopTransaction'
application/json:
schema:
$ref: '#/components/schemas/RemoteStopTransaction'
responses:
'200':
description: >
This contains the field definition of the StopTransaction.conf PDU sent by the Central System to the Charge Point in response to a StopTransaction.req PDU.
content:
application/json:
schema:
$ref: '#/components/schemas/RemoteStopTransactionResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'5XX':
$ref: '#/components/responses/InternalError'
/ChargePoint/{identity}/ReserveNow:
post:
tags:
- ChargePoint
summary: 5.13. Reserve Now
description: A Central System can issue a ReserveNow.req to a Charge Point to reserve a connector for use by a specific idTag.
operationId: ReserveNow
parameters:
- $ref: '#/components/parameters/Identity'
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/ReserveNow'
application/json:
schema:
$ref: '#/components/schemas/ReserveNow'
responses:
'200':
description: >
This contains the field definition of the ReserveNow.conf PDU sent by the Charge Point to the Central System in response to a ReserveNow.req PDU.
content:
application/json:
schema:
$ref: '#/components/schemas/ReserveNowResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'5XX':
$ref: '#/components/responses/InternalError'
/ChargePoint/{identity}/Reset:
post:
tags:
- ChargePoint
summary: 5.14. Reset
description: >
The Central System SHALL send a Reset.req PDU for requesting a Charge Point to reset itself. The Central System
can request a hard or a soft reset. Upon receipt of a Reset.req PDU, the Charge Point SHALL respond with a
Reset.conf PDU. The response PDU SHALL include whether the Charge Point will attempt to reset itself.
operationId: Reset
parameters:
- $ref: '#/components/parameters/Identity'
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/Reset'
application/json:
schema:
$ref: '#/components/schemas/Reset'
responses:
'200':
description: >
This contains the field definition of the Reset.conf PDU sent by the Charge Point to the Central System in response to a Reset.req PDU.
content:
application/json:
schema:
$ref: '#/components/schemas/ResetResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'5XX':
$ref: '#/components/responses/InternalError'
/ChargePoint/{identity}/SendLocalList:
post:
tags:
- ChargePoint
summary: 5.15. Send Local List
description: >
Central System can send a Local Authorization List that a Charge Point can use for authorization of idTags. The
list MAY be either a full list to replace the current list in the Charge Point or it MAY be a differential list with
updates to be applied to the current list in the Charge Point.
operationId: SendLocalList
parameters:
- $ref: '#/components/parameters/Identity'
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/SendLocalList'
application/json:
schema:
$ref: '#/components/schemas/SendLocalList'
responses:
'200':
description: >
This contains the field definition of the SendLocalList.conf PDU sent by the Charge Point to the Central System in response to a SendLocalList.req PDU.
content:
application/json:
schema:
$ref: '#/components/schemas/SendLocalListResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'5XX':
$ref: '#/components/responses/InternalError'
/ChargePoint/{identity}/SetChargingProfile:
post:
tags:
- ChargePoint
summary: 5.16. Set Charging Profile
description: >
A Central System can send a SetChargingProfile.req to a Charge Point, to set a charging profile, in the following situations:
• At the start of a transaction to set the charging profile for the transaction;
• In a RemoteStartTransaction.req sent to a Charge Point
• During a transaction to change the active profile for the transaction;
• Outside the context of a transaction as a separate message to set a charging profile to a local controller, Charge Point, or a default charging profile to a connector.
operationId: SetChargingProfile
parameters:
- $ref: '#/components/parameters/Identity'
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/SetChargingProfile'
application/json:
schema:
$ref: '#/components/schemas/SetChargingProfile'
responses:
'200':
description: >
This contains the field definition of the SetChargingProfile.conf PDU sent by the Charge Point to the Central System in response to a SetChargingProfile.req PDU.
content:
application/json:
schema:
$ref: '#/components/schemas/SetChargingProfileResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'5XX':
$ref: '#/components/responses/InternalError'
/ChargePoint/{identity}/TriggerMessage:
post:
tags:
- ChargePoint
summary: 5.17. Trigger Message
description: >
The TriggerMessage.req makes it possible for the Central System, to request the Charge Point, to send Charge
Point-initiated messages. In the request the Central System indicates which message it wishes to receive. For
every such requested message the Central System MAY optionally indicate to which connector this request
applies. The requested message is leading: if the specified connectorId is not relevant to the message, it should
be ignored. In such cases the requested message should still be sent.
operationId: TriggerMessage
parameters:
- $ref: '#/components/parameters/Identity'
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/TriggerMessage'
application/json:
schema:
$ref: '#/components/schemas/TriggerMessage'
responses:
'200':
description: >
This contains the field definition of the TriggerMessage.conf PDU sent by the Charge Point to the Central System in response to a TriggerMessage.req PDU.
content:
application/json:
schema:
$ref: '#/components/schemas/TriggerMessageResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'5XX':
$ref: '#/components/responses/InternalError'
/ChargePoint/{identity}/UnlockConnector:
post:
tags:
- ChargePoint
summary: 5.18. Unlock Connector
description: >
Central System can request a Charge Point to unlock a connector. To do so, the Central System SHALL send an UnlockConnector.req PDU.
operationId: UnlockConnector
parameters:
- $ref: '#/components/parameters/Identity'
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/UnlockConnector'
application/json:
schema:
$ref: '#/components/schemas/UnlockConnector'
responses:
'200':
description: >
This contains the field definition of the UnlockConnector.conf PDU sent by the Charge Point to the Central System in response to an UnlockConnector.req PDU.
content:
application/json:
schema:
$ref: '#/components/schemas/UnlockConnectorResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'5XX':
$ref: '#/components/responses/InternalError'
/ChargePoint/{identity}/UpdateFirmware:
post:
tags:
- ChargePoint
summary: 5.19. Update Firmware
description: >
Central System can notify a Charge Point that it needs to update its firmware. The Central System SHALL send an
UpdateFirmware.req PDU to instruct the Charge Point to install new firmware. The PDU SHALL contain a date
and time after which the Charge Point is allowed to retrieve the new firmware and the location from which the
firmware can be downloaded.
operationId: UpdateFirmware
parameters:
- $ref: '#/components/parameters/Identity'
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/UpdateFirmware'
application/json:
schema:
$ref: '#/components/schemas/UpdateFirmware'
responses:
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'5XX':
$ref: '#/components/responses/InternalError'
components:
parameters:
Identity:
in: path
name: identity
description: Charge point identity
required: true
schema:
type: string
responses:
BadRequest:
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/error'
NotFound:
description: The specified resource was not found
content:
application/json:
schema:
$ref: '#/components/schemas/error'
Unauthorized:
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/error'
InternalError:
description: Internal error
content:
application/json:
schema:
$ref: '#/components/schemas/error'
schemas:
CancelReservation:
type: object
required:
- reservationId
properties:
reservationId:
type: integer
format: int32
description: Id of the reservation to cancel.
CancelReservationResponse:
type: object
required:
- status
properties:
status:
type: string
enum: [Accepted, Rejected]
ChangeAvailability:
type: object
required:
- connectorId
- type
properties:
connectorId:
type: integer
format: int32
description: >
The id of the connector for which availability needs to change.
Id '0' (zero) is used if the availability of the Charge Point and all its connectors needs to change.
type:
type: string
enum: [Inoperative, Operative]
description: This contains the type of availability change that the Charge Point should perform.
AvailabilityResponse:
type: object
properties:
status:
type: string
enum: [Accepted, Rejected, Scheduled]
ChangeConfiguration:
type: object
required:
- key
- value
properties:
key:
type: string
description: The name of the configuration setting to change.
value:
type: string
description: The new value as string for the setting.
ConfigurationResponse:
type: object
required:
- status
properties:
status:
type: string
enum: [Accepted, Rejected, RebootRequired, NotSupported]
ClearCacheResponse:
type: object
required:
- status
properties:
status:
type: string
default: Accepted
ClearChargingProfile:
type: object
properties:
id:
type: integer
format: int32
description: The ID of the charging profile to clear.
connectorId:
type: integer
format: int32
description: >
Specifies the ID of the connector for which to clear charging profiles. A connectorId of zero (0) specifies
the charging profile for the overall Charge Point. Absence of this parameter means the clearing applies
to all charging profiles that match the other criteria in the request.
chargingProfilePurpose:
type: string
description: Specifies to purpose of the charging profiles that will be cleared, if they meet the other criteria in the request.
enum: [ChargePointMaxProfile, TxDefaultProfile, TxProfile]
stackLevel:
type: integer
format: int32
description: Specifies the stackLevel for which charging profiles will be cleared, if they meet the other criteria in the request.
ClearChargingProfileResponse:
type: object
required:
- status
properties:
status: