POST api/v1/ocpp/session_end

Request Information

URI Parameters

None.

Body Parameters

OcppSessionEndRequest
NameDescriptionTypeAdditional information
id

globally unique identifier

Required

tokenId

globally unique identifier

None.

sessionId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "id": "2c89a9b6-11d4-4899-a3ca-fef6f45d1d0e",
  "tokenId": "5304901a-decb-472c-8ffc-350f0b88b8ed",
  "sessionId": "sample string 3"
}

application/xml, text/xml

Sample:
<OcppSessionEndRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IO.Swagger.Models">
  <id>2c89a9b6-11d4-4899-a3ca-fef6f45d1d0e</id>
  <sessionId>sample string 3</sessionId>
  <tokenId>5304901a-decb-472c-8ffc-350f0b88b8ed</tokenId>
</OcppSessionEndRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'OcppSessionEndRequest'.

Response Information

Resource Description

OcppSessionEndResponse
NameDescriptionTypeAdditional information
id

globally unique identifier

Required

tokenId

globally unique identifier

None.

result

string

None.

errorMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "id": "8b243b06-970e-428b-994e-8ef534db258a",
  "tokenId": "38e72923-f59d-407f-a243-4af94f17771f",
  "result": "sample string 3",
  "errorMessage": "sample string 4"
}

application/xml, text/xml

Sample:
<OcppSessionEndResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IO.Swagger.Models">
  <errorMessage>sample string 4</errorMessage>
  <id>8b243b06-970e-428b-994e-8ef534db258a</id>
  <result>sample string 3</result>
  <tokenId>38e72923-f59d-407f-a243-4af94f17771f</tokenId>
</OcppSessionEndResponse>