Snippets

OICP 2.2 REST eRoamingAuthorizeStart

You are viewing an old version of this snippet. View the current version.
Revised by Antonio Acuna 6f04e54
The Service End Points to which the below POST command should be sent are: 

for QA - environment: https://service-qa.hubject.com/api/oicp/charging/v21/operators/{operatorID}/authorize/start
for PROD - environment: https://service.hubject.com/api/oicp/charging/v21/operators/{operatorID}/authorize/start

Please note that this part of the URL '/api/oicp/charging/v21/operators/{operatorID}/authorize/start' will be added to your URL endpoint when sending the request through our HBS platform.

The service description can be found in the OICP protocol version 2.2.
To download the latest OICP Version, please visit our website:
https://www.hubject.com/downloads/
{
  "CPOPartnerSessionID": "string",
  "EMPPartnerSessionID": "string",
  "EvseID": "string",
  "Identification": {
    "RFIDMifareFamilyIdentification": {
      "UID": "string"
    },
    "QRCodeIdentification": {
      "EvcoID": "string",
      "HashedPIN": {
        "Function": "Bcrypt",
        "LegacyHashData": {
          "Function": "MD5",
          "Salt": "string",
          "Value": "string"
        },
        "Value": "string"
      },
      "PIN": "string"
    },
    "PlugAndChargeIdentification": {
      "EvcoID": "string"
    },
    "RemoteIdentification": {
      "EvcoID": "string"
    },
    "RFIDIdentification": {
      "EvcoID": "string",
      "ExpiryDate": "2018-01-23T14:21:23.744Z",
      "PrintedNumber": "string",
      "RFID": "mifareCls",
      "UID": "string"
    }
  },
  "OperatorID": "string",
  "PartnerProductID": "string",
  "SessionID": "string"
}
{
  "AuthorizationStatus": "Authorized",
  "AuthorizationStopIdentifications": [
    {
      "RFIDMifareFamilyIdentification": {
        "UID": "string"
      },
      "QRCodeIdentification": {
        "EvcoID": "string",
        "HashedPIN": {
          "Function": "Bcrypt",
          "LegacyHashData": {
            "Function": "MD5",
            "Salt": "string",
            "Value": "string"
          },
          "Value": "string"
        },
        "PIN": "string"
      },
      "PlugAndChargeIdentification": {
        "EvcoID": "string"
      },
      "RemoteIdentification": {
        "EvcoID": "string"
      },
      "RFIDIdentification": {
        "EvcoID": "string",
        "ExpiryDate": "2018-01-23T14:21:36.954Z",
        "PrintedNumber": "string",
        "RFID": "mifareCls",
        "UID": "string"
      }
    }
  ],
  "CPOPartnerSessionID": "string",
  "EMPPartnerSessionID": "string",
  "ProviderID": "string",
  "SessionID": "string",
  "StatusCode": {
    "AdditionalInfo": "string",
    "Code": "000",
    "Description": "string"
  }
}
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.