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 protected]",
"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"
}
]
}
Please see the flow: https://docs.nextpark.io/partner/bookings
The request has been successful
No content
The request is unauthorized
The request is forbiden
The request cannot be processed
POST /v1/bookings HTTP/1.1
Host:
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
No content
The resource
The request has been successful
No content
The request has been successful
The request is unauthorized
The request is forbiden
The resource cannot be found
The request has been refused
DELETE /v1/bookings/{booking} HTTP/1.1
Host:
Authorization: Bearer JWT
Accept: */*
No content
The resource
The request has been successful
No content
The request is unauthorized
The request is forbiden
The resource cannot be found
The request has been refused
The request cannot be processed
PATCH /v1/bookings/{booking} HTTP/1.1
Host:
Authorization: Bearer JWT
Accept: */*
No content
The resource
The resource
The request has been successful
No content
The request is unauthorized
The request is forbiden
The resource cannot be found
The request cannot be processed
GET /v1/bookings/{booking}/vehicles/{vehicle} HTTP/1.1
Host:
Authorization: Bearer JWT
Accept: */*
No content
The resource
The resource
The request has been successful
No content
The request is unauthorized
The request is forbiden
The resource cannot be found
The request has been refused
The request cannot be processed
PATCH /v1/bookings/{booking}/vehicles/{vehicle} HTTP/1.1
Host:
Authorization: Bearer JWT
Accept: */*
No content
Last updated