API documentation

Get Parking Session Transactions V1

GET /api/car_driver/parking_session_transactions

Include access_token in HTTP header:

Authorization: Bearer 09ba487fc3df...

Description

This WS returns all the Parking Session Transactions for the authorized user.

REQUEST PARAMETERS

Parameter name Parameter type Description
page int get a different page (optional, defaults to 1)
{
  "page": 1
}

Response

Status Code: 200 if OK

{
  "current_page": 1,
  "total_entries": 1,
  "total_pages": 1,
  "parking_session_transactions": [
    {
      "id": 59,
      "start_time": "2017-10-11T15:08:28Z",
      "end_time": "2017-10-11T15:13:28Z",
      "duration_minutes": 5,
      "amount": "0.17",
      "payment_status": "confirmed",
      "curency": "RON",
      "parking": {
        "id": 3,
        "name": "Parking name",
        "price_unit": "hour",
        "default_price": "5.00",
        "curency": "RON"
      }
    }
  ]
}

Response parameters

Parameter name Parameter type Description
current_page int current page (used for pagination)
total_entries int total number of Parking Session Transactions
total_pages int total number of pages (used for pagination)
parking_session_transactions list list of Parking Session Transactions
parking_session_transactions/id int id of the Parking Session Transaction
parking_session_transactions/start_time datetime start_time of the parking session transaction
parking_session_transactions/end_time datetime end_time of the parking session transaction
parking_session_transactions/duration_minutes int duration of the transaction in minutes the value used for payment
parking_session_transactions/amount string amount (decimal representation, 2 decimals precision) that was payed
parking_session_transactions/payment_status string payment status (confirmed, pending, error)
parking_session_transactions/currency string currency used for payment
parking_session_transactions/parking object object representing the parking of the current transaction
../parking/id int db id of the parking
../parking/name string name of the parking
../parking/price_unit string time unit for default_price param, (hour/minute)
../parking/default_price string string representation of decimal unit
../parking/currency string current currency on parking