NextPark
  • Welcome!
  • APIs
  • Partner
    • Bookings
      • Offers
      • Booking
      • Booking Fee
      • Booking Review
      • Booking Addons
      • Booking Services
      • Booking Payment
      • Booking Discount
    • Place
    • Parking
  • Operator
    • Parking
      • Locks
      • Pricing
    • Bookings
      • Booking Invoice
      • Booking Barcode
    • Barriers
  • Advance
    • Authorize
    • Languages
    • Constans
      • Barcodes
    • Responses
    • Sandbox Limits
Powered by GitBook
On this page
  1. Partner
  2. Bookings

Booking

Booking Creation

Request

  • oid - The external id, you can use for any purposes

Example

{
   "place":"WAW",
   "parking":"b3aec2fd-32c4-4cd3-8dc9-0d08f741998b",
   "arrival_at":"2023-01-21T12:00:00",
   "departure_at":"2023-01-30T12:00:00",
   "payform":"ONLINE",
   "discount":null,
   "client_title":"Client Name",
   "client_email":"email@address.com",
   "client_phone":"+48123123132",
   "client_consent_rule":true,
   "client_consent_marketing":true,
   "person_adult":1,
   "person_child":0,
   "person_disabled":0,
   "depart_flight":null,
   "depart_from":null,
   "return_flight":null,
   "return_from":null,
   "invoice":false,
   "billing_title":null,
   "billing_code":null,
   "billing_type":null,
   "billing_city":null,
   "billing_address":null,
   "billing_zipcode":null,
   "billing_country":null,
   "comments":null,
   "addons":[
      {
         "type":"SHORTCANCEL",
         "uuid":"8c51707e-a0bb-487d-be50-e352ec8ac0da"
      }
   ],
   "services":[
      
   ],
   "vehicles":[
      {
         "plate":"XYZYT",
         "type":"CAR"
      }
   ]
}

PreviousOffersNextBooking Fee

Last updated 2 years ago

Cancel booking

delete
Authorizations
Path parameters
bookingstring · uuidRequired

The resource

Header parameters
Accept-LanguagestringOptional
Responses
200
The request has been successful
204
The request has been successful
401
The request is unauthorized
403
The request is forbiden
404
The resource cannot be found
406
The request has been refused
delete
DELETE /v1/bookings/{booking} HTTP/1.1
Host: 
Authorization: Bearer JWT
Accept: */*

No content

Update booking

patch
Authorizations
Path parameters
bookingstring · uuidRequired

The resource

Header parameters
Accept-LanguagestringOptional
Responses
200
The request has been successful
401
The request is unauthorized
403
The request is forbiden
404
The resource cannot be found
406
The request has been refused
422
The request cannot be processed
patch
PATCH /v1/bookings/{booking} HTTP/1.1
Host: 
Authorization: Bearer JWT
Accept: */*

No content

Show booking vehicle

get
Authorizations
Path parameters
bookingstring · uuidRequired

The resource

vehiclestring · uuidRequired

The resource

Header parameters
Accept-LanguagestringOptional
Responses
200
The request has been successful
401
The request is unauthorized
403
The request is forbiden
404
The resource cannot be found
422
The request cannot be processed
get
GET /v1/bookings/{booking}/vehicles/{vehicle} HTTP/1.1
Host: 
Authorization: Bearer JWT
Accept: */*

No content

Update booking vehicle

patch
Authorizations
Path parameters
bookingstring · uuidRequired

The resource

vehiclestring · uuidRequired

The resource

Header parameters
Accept-LanguagestringOptional
Responses
200
The request has been successful
401
The request is unauthorized
403
The request is forbiden
404
The resource cannot be found
406
The request has been refused
422
The request cannot be processed
patch
PATCH /v1/bookings/{booking}/vehicles/{vehicle} HTTP/1.1
Host: 
Authorization: Bearer JWT
Accept: */*

No content

  • Booking Creation
  • POSTNew booking
  • DELETECancel booking
  • PATCHUpdate booking
  • GETShow booking vehicle
  • PATCHUpdate booking vehicle

New booking

post

Please see the flow: https://docs.nextpark.io/partner/bookings

Authorizations
Header parameters
Accept-LanguagestringOptional
Body
anyOptional
Responses
201
The request has been successful
401
The request is unauthorized
403
The request is forbiden
422
The request cannot be processed
post
POST /v1/bookings HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*

No content