API documentation

Parking Session Incident V1

DEPRECATED WS, it will be removed in the next version o API. Use the V2 instead

POST /api/car_driver/parking_sessions/incident

Include access_token in HTTP header:

Authorization: Bearer 09ba487fc3df...

Description

This web service reports incidents with PayPerUse by creating a SupportEntry.

REQUEST PARAMETERS

Parameter name Parameter type Description
type string one of 'entrance_time', 'entrance_tries', 'exit_time' or 'exit_tries'
{
  "type" : "entrance_time"
}

Response

Status Code: 201 if OK

{}

Status Code: 401 if request access token not ok

Status Code: 422 if there were errors (messages included in body)


Parking Session Incident V2

POST /api/car_driver/parking_sessions/incident

Include access_token and version name in HTTP header:

Authorization: Bearer 09ba487fc3df...
Accept: application/vnd.parkingplus.v2+json"

Description

This web service reports incidents with PayPerUse by creating a SupportEntry.

REQUEST PARAMETERS

Parameter name Parameter type Description
type string one of 'entrance_tries', 'exit_tries' or 'failed_payment'
parking_session_id int id of the parking session involved in the incident
payment_id int id of the payment involved in the incident
{
  "type" : "entrance_tries",
  "parking_session_id" : 10,
  "payment_id" : 179
}

Response

Status Code: 201 if OK

{}

Status Code: 401 if request access token not ok

Status Code: 422 if there were errors (messages included in body)

Status Code: 404 if parking_session does not exist in DB