Mobypark API Docs
Home
Home
  1. Reservations
  • Auth
    • Account
      • /profile
      • /logout
      • /profile
    • Parking Lots
      • /parking-lots
      • /parking-lots/{parking-lot_id}/sessions/start
      • /parking-lots/{parking-lot_id}/sessions/stop
      • /parking-lots
      • /parking-lots/{parkinglot_id}
      • /parking-lots/{parkinglot_id}/sessions
      • /parking-lots/{parkinglot_id}/sessions/{parking_session_id}
      • /parking-lots/{parkinglot_id} (ADMIN)
      • /parking-lots/{parkinglot_id}/sessions/{parking_session_id} (ADMIN)
      • /parking-lots/{parkinglot_id} (ADMIN)
    • Payments/Billing
      • /payments
      • /payments/refund
      • /billing
      • /billing/{username} (ADMIN)
      • /payments
      • /payments/{username} (ADMIN)
      • /payments/{transaction_id}
    • Vehicles
      • /vehicles
      • /vehicles/{license_plate}/entry
      • /vehicles
      • /vehicles/{vehicle_id}/history
      • /vehicles/{vehicle_id}/reservations
      • /vehicles/{license_id} (ADMIN)
      • /vehicles/{vehicle_id}
      • /vehicles/{username}
    • Reservations
      • /reservations (USER)
        POST
      • /reservations (ADMIN)
        POST
      • /reservations/{reservation_id}
        GET
      • /reservations/{reservation_id}
        DELETE
      • /reservations/{reservation_id}
        PUT
  • NoAuth
    • Account
      • /login
      • /register
  • Schemas
    • Billing Object
    • Parkinglot Object
    • Parking Session Object
    • Payment Object
    • Reservation Object
    • Vehicle Object
  1. Reservations

/reservations (USER)

POST
/reservations

Request

Authorization
API Key
Add parameter in header
Authorization
Example:
Authorization: ********************
or
Body Params application/json

Examples

Responses

🟢200Success
application/json
Body

🟠403Access Denied
🟠401Unauthorized
🟠401Unauthorized
🟠404Content not found
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/reservations' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "licenseplate": "10-TST-9",
    "startdate": "startdate",
    "enddate": "soma end date",
    "parkinglot": "1501"
}'
Response Response Example
200 - Success
{
    "status": "Success",
    "reservation": {
        "id": "(new id)",
        "user_id": "(user id)",
        "parking_lot_id": "1501",
        "vehicle_id": "(vehicle id)",
        "start_time": "(same startd date)",
        "end_time": "(sam end date)",
        "status": "pending",
        "created_at": "(creation time with the same format)",
        "cost": 5.5
    }
}
Modified at 2025-10-13 11:47:05
Previous
/vehicles/{username}
Next
/reservations (ADMIN)
Built with