This is the documentation for version 2.0.0 of the Your Parking Space API. The API requires authentication and API credentials are only available to selected third-parties and a per-request basis.
first_name | string |
last_name | string |
email required | string |
password required | string |
mobile | string |
marketing_consent_given | boolean |
{- "first_name": "string",
- "last_name": "string",
- "email": "string",
- "password": "string",
- "mobile": "string",
- "marketing_consent_given": true
}
{- "id": 0,
- "first_name": "string",
- "last_name": "string",
- "email": "user@example.com",
- "mobile": "string",
- "date_of_birth": "string",
- "city": "string",
- "postcode": "string",
- "login_hash": "string",
- "notification_preferences": {
- "sms": true,
- "newsletters": true,
- "discounts": true
}, - "profile_image_url": "string",
- "social": {
- "facebook": {
- "connected": true
}, - "google": {
- "connected": true
}
}, - "is_admin": true
}
Perform a location availability search:
location
and
do not send a latitude or longitude.location required | string A string representation of what the user searched for (eg. York, UK). Enter the site ID here if searching by this. |
lat | string The latitude for this search |
lng | string The longitude for this search |
start required | string <YYYY-MM-DDTHH:MM:SS+00:00> The request start time for the search. Has to be later than now minus 24h. |
end required | string <YYYY-MM-DDTHH:MM:SS+00:00> The request end time for the search. Has to be later than start. |
rental required | string Enum: "long" "short" The type of rental to search for. |
type required | string Enum: "parking" "garage" "both" The type of space to search for |
space_size | string Enum: "small" "medium" "large" "van" "minibus" The size of vehicle the spaces need to accommodate |
radius | string Default: "10mi" The search radius in miles |
price_pins | boolean Default: false Include base64 encoded price-pins in the response |
with | string Default: "location" Enum: "location" "features" Any additional information that needs including in the response |
spaces_available | string |
include_booked | boolean Include booked spaces in the response. Booked spaces are marked as |
season_plan | string Enum: "mon-sun" "mon-fri" "any-three-days" Filter spaces with the requested plan. Behaviour differs slightly based on the value of the
|
sort | string Enum: "reviews" "price" "location" Sort results by average review (desc), or price (asc), or location (asc, default) |
page required | integer [ 1 .. 100 ] The number of results to return per page |
per_page required | integer |
offset required | integer |
{- "data": [
- {
- "id": 0,
- "title": "string",
- "description": "string",
- "image_url": "string",
- "thumbnail_url": "string",
- "price_from": 0.1,
- "price_matrix": {
- "hourly": 0.1,
- "daily": 0.1,
- "monthly": 0.1,
- "quarterly": 0.1,
- "annually": 0.1
}, - "quote": {
- "value": 0.1,
- "season_plan": "mon-sun"
}, - "currency": {
- "value": "GBP",
- "locale": "en_GB"
}, - "rental_types": {
- "short": true,
- "long": true,
- "ncp": true,
- "enquiry": true
}, - "reviews": {
- "count": 0,
- "average": 0
}, - "location": {
- "lat": 0.1,
- "lng": 0.1
}, - "distance": {
- "value": 0.1,
- "text": "string"
}, - "enabled": true,
- "waiting_list": true,
- "available_from": "2018-09-13T10:30:00+01:00",
- "airport_space": true,
- "airport_code": "MAN",
- "airport_name": "Manchester Airport",
- "quote_from_third_party_provider": true,
- "site_id": "string",
- "features": {
- "data": {
- "key": "string",
- "icon": "string",
- "name": "string"
}
}, - "lt_plans": [
- {
- "deposit": 110,
- "interval_count": 1,
- "plan": "mon-sun",
- "price": 110
}, - {
- "deposit": 100,
- "interval_count": 1,
- "plan": "mon-fri",
- "price": 100
}, - {
- "deposit": 70,
- "interval_count": 1,
- "plan": "any-three-days",
- "price": 70
}
]
}
]
}
Perform a search for a location by the specified Site ID or by latitude and longitude (closest location with a Site ID) Warning this search endpoint does not check availability.
location | string The Site ID to search for. These are normally prefixed with 1089 |
lat | string The latitude to find Site IDs close to |
lng | string The longitude to find Site IDs close to |
page | integer Results page number |
per_page | integer Limit the search results |
radius | string NOT AVAILABLE YET! Will be added in YPS-8694. Example values '0.5mi', '0.25km' |
[- {
- "id": 0,
- "title": "string",
- "description": "string",
- "image_url": "string",
- "price_from": "string",
- "price_matrix": {
- "hourly": 0,
- "daily": 0,
- "monthly": 0,
- "quaterly": 0,
- "annually": 0
}, - "quote": "string",
- "currency": {
- "value": "GBP",
- "locale": "en_GB"
}, - "space_type": "string",
- "rental_types": {
- "short": true,
- "long": true,
- "ncp": true,
- "enquiry": true
}, - "reviews": {
- "count": 0,
- "averge": 0
}, - "location": {
- "lat": 0,
- "lng": 0
}, - "distance": 0,
- "distance_matrix": {
- "walking": {
- "distance": "string",
- "time": "string"
}
}, - "enabled": true,
- "wating_list": true,
- "available_from": "string",
- "site_id": "string",
- "allow_phone_prebookings": true,
- "post_pay_anpr": true,
- "seo": {
- "city": "string",
- "postcode_district": null,
- "street": "string"
}, - "lt_plans": [
- {
- "deposit": 110,
- "interval_count": 1,
- "plan": "mon-sun",
- "price": 110
}, - {
- "deposit": 100,
- "interval_count": 1,
- "plan": "mon-fri",
- "price": 100
}, - {
- "deposit": 70,
- "interval_count": 1,
- "plan": "any-three-days",
- "price": 70
}
]
}
]
Allows to search for EV charge points
connector_types[] | Array of strings Search for any of given connector types. Expects the connector's |
lat | string The latitude to find EV chargers close to |
lng | string The longitude to find EV chargers close to |
page | integer Results page number |
per_page | integer Search result page size. Default value is 50. |
radius | string Search radius in miles. Example value '0.5mi'. If not provided, defaults to 10mi. |
[- {
- "id": 7851,
- "device_name": "Manchester Tariff street 03",
- "device_id": "ca1df370637de0c95f799368a0cde293",
- "lat": "53.477996",
- "lng": "-2.268360",
- "connectors": [
- {
- "name": "Tesla Type-2",
- "power": "120.0 kW",
- "tethered": true
}
]
}
]
{- "id": 0,
- "first_name": "string",
- "last_name": "string",
- "email": "user@example.com",
- "mobile": "string",
- "date_of_birth": "string",
- "city": "string",
- "postcode": "string",
- "login_hash": "string",
- "notification_preferences": {
- "sms": true,
- "newsletters": true,
- "discounts": true
}, - "profile_image_url": "string",
- "social": {
- "facebook": {
- "connected": true
}, - "google": {
- "connected": true
}
}, - "is_admin": true
}
first_name | string |
last_name | string |
mobile | string |
date_of_birth | string |
string | |
city | string |
postcode | string |
fcm_token | string |
object |
{- "first_name": "string",
- "last_name": "string",
- "mobile": "string",
- "date_of_birth": "string",
- "email": "string",
- "city": "string",
- "postcode": "string",
- "fcm_token": "string",
- "notification_preferences": {
- "sms": true
}
}
first_name | string |
last_name | string |
mobile | string |
fcm_token | string |
marketing_consent_given | boolean |
{- "first_name": "string",
- "last_name": "string",
- "mobile": "string",
- "fcm_token": "string",
- "marketing_consent_given": true
}
Update VAT status and VAT number of a user.
The VAT settings to use for the update.
vat_registered | boolean |
vat_number | string |
{- "vat_registered": true,
- "vat_number": "string"
}
Get a list of referral codes that can be used by the authenticated user
booking-type | string Enum: "short-term" "long-term" "both" |
booking-value | number <0.00> |
location | number ID of the space that we are going to book |
vehicle-reg | string Vehicle registration |
start-date | string start date & time of booking |
include-expired | string Enum: true false include vouchers expired up to 10 days ago |
[- {
- "code": "string",
- "expired": true,
- "expiry_date": "string",
- "id": 0,
- "label": "string",
- "order": 0,
- "type": "string",
- "value": 0,
- "usages": {
- "current": 0,
- "limit": 0
}, - "min_purchase_price": 4.25
}
]
Add a referral code to the current user.
voucher required | string |
{- "voucher": "string"
}
[- {
- "code": "string",
- "expired": true,
- "expiry_date": "string",
- "id": 0,
- "label": "string",
- "order": 0,
- "type": "string",
- "value": 0,
- "usages": {
- "current": 0,
- "limit": 0
}, - "min_purchase_price": 4.25
}
]
Change order of current user's referral codes.
vouchers required | Array of strings |
{- "vouchers": [
- "string"
]
}
[- {
- "code": "string",
- "expired": true,
- "expiry_date": "string",
- "id": 0,
- "label": "string",
- "order": 0,
- "type": "string",
- "value": 0,
- "usages": {
- "current": 0,
- "limit": 0
}, - "min_purchase_price": 4.25
}
]
Gets the latest three bookings grouped by spaces
[- {
- "id": 4294955136,
- "title": "Parking on Exchange House, N8",
- "access_times": {
- "start": "08:00",
- "end": "22:00",
- "all_hours_access": true
}, - "description": "<p>One allocated space located on Exchange House in London</p>",
- "additional_information": "string",
- "approved": 1,
- "post_booking_info": "string",
- "rental_terms": "string",
- "price_matrix": {
- "hourly": 1.5,
- "daily": 3,
- "monthly": 150,
- "monthly_deposit": 150,
- "quarterly": 0,
- "annually": 0,
- "arrangement_fee": 0
}, - "quote": {
- "value": 0,
- "valueBeforeDiscount": 0,
- "serviceFee": 0.99,
- "serviceFeeBeforeDiscount": 0.99,
- "arrangementFee": 5,
- "deposit": 0,
- "discountedDeposit": 0,
- "additionalPayment": 0,
- "additionalData": { },
- "warning": "string",
- "currency": {
- "value": "GBP",
- "locale": "en_GB"
}, - "first_billing_date": "2020-11-24",
- "next_billing_date": "2020-12-24",
- "products": [
- {
- "id": "prod-1",
- "key": "variant-B",
- "quote": {
- "value": 0,
- "errors": true,
- "error": {
- "message": "key field is required",
- "code": "PRODUCT-QUOTE-ERROR",
- "type": "SERVICE"
}
}
}
], - "totalProductsValue": 0.99
}, - "currency": {
- "value": "GBP",
- "locale": "en_GB"
}, - "space_type": "residential_car_park",
- "owner_type": "private",
- "max_access_height": "3.50",
- "rental_types": {
- "short": true,
- "long": true,
- "ncp": true,
- "enquiry": true
}, - "reviews": {
- "count": 0,
- "avarage": 0,
- "highest": 0
}, - "distance": {
- "value": "1.22",
- "text": "1.22 mi"
}, - "enabled": true,
- "waiting_list": true,
- "rewards": true,
- "overnight": true,
- "schedule": "allweek",
- "follow_up": 0,
- "listing_completed_at": {
- "date": "2019-12-19 13:36:55",
- "timezone_type": 3,
- "timezone": "Europe/London"
}, - "dynamic_pricing": 0,
- "notice_periods": {
- "long_term": 0,
- "short_term": 0
}, - "landlord_id": 0,
- "archived": true,
- "monthly_deposit_required": true,
- "allow_phone_prebookings": true,
- "lt_pricing_type": "standard",
- "lt_available_from": {
- "date": "2021-02-06 00:00:00",
- "timezone_type": 0,
- "timezone": "UTC"
}, - "force_vrn": true,
- "multi_bookings": {
- "allow": 1,
- "limit": 50
}, - "upper_period_limit": 365,
- "permit_required": true,
- "post_pay": {
- "allow": true,
- "max_hours_back": 0,
- "earliest_bookable_date": "2021-02-06 00:00:00"
}, - "site_id": 0,
- "default_cashless_tab": "exit",
- "post_pay_anpr": true,
- "should_be_indexed": true,
- "meta_description": "string",
- "skip_availability_check_cashless": true,
- "cashless_minutes_for_prebook_rate": 0,
- "location": {
- "lat": 51.577309,
- "lng": -0.1246119
}, - "address": {
- "address": "Flat 67",
- "address_2": "Edgeware Road",
- "postcode": "N8 8DF",
- "city": "London",
- "country": "Great Britain"
}, - "sizes": {
- "data": [
- {
- "key": "small",
- "name": "Small - (2 Door)"
}
]
}, - "features": {
- "data": [
- {
- "key": "sheltered_parking",
- "icon": "car",
- "name": "Covered Parking"
}
]
}, - "images": {
- "data": [
- {
- "id": 143379,
- "default": true,
- "is_streetview": true,
- "order": 0,
- "medium": "string",
- "large": "string",
- "thumbnail": "string"
}
]
}, - "streetview": {
- "lat": 51.577553,
- "lng": -0.1247939,
- "heading": 131.31821785764583,
- "pitch": -7.98650643572435,
}, - "availability": {
- "low_availability": [
- "string"
], - "unavailable": [
- "string"
], - "unavailable_access_times": [
- "string"
], - "fully_booked": {
- "days": [
- "string"
], - "periods": [
- "string"
]
}
}, - "video": "string",
- "display_access_times": [
- {
- "recurs_on": "Monday",
- "start": "07:00:00",
- "end": "22:30:00"
}
], - "opening_hours": [
- "Mo-Su 00:00-23:59"
], - "what_three_words": {
- "label": "North Street entrance",
- "words": "robin.likes.worms",
}, - "linked_locations": {
- "linked_site_id": 10800,
- "pre_book_st": 4294961769,
- "pre_book_lt": 4294961769,
- "book_now": 4294961145,
- "post_pay": 4294961145,
- "post_pay_anpr": null
}, - "seo": {
- "city": "string",
- "postcode_district": null,
- "street": "string"
}, - "lt_rental_enabled": true,
- "lt_pricing": {
- "1": [
- {
- "deposit": 110,
- "interval_count": 1,
- "plan": "mon-sun",
- "price": 110
}, - {
- "deposit": 100,
- "interval_count": 1,
- "plan": "mon-fri",
- "price": 100
}
], - "3": [
- {
- "deposit": 110,
- "interval_count": 3,
- "plan": "mon-sun",
- "price": 330
}
]
}, - "lt_season_pricing": [
- {
- "billing": {
- "interval_count": 1,
- "plan": "mon-sun",
- "interval": "1 Month (Rolling)"
}, - "cost": {
- "total": 110,
- "per_month": 100
}, - "deposit": {
- "was": 110,
- "now": 110
}
}, - {
- "billing": {
- "interval_count": 1,
- "plan": "mon-fri",
- "interval": "1 Month (Rolling)"
}, - "cost": {
- "total": 100,
- "per_month": 100
}, - "deposit": {
- "was": 100,
- "now": 100
}
}, - {
- "billing": {
- "interval_count": 1,
- "plan": "any-three-days",
- "interval": "1 Month (Rolling)"
}, - "cost": {
- "total": 70,
- "per_month": 70
}, - "deposit": {
- "was": 70,
- "now": 70
}
}, - {
- "billing": {
- "interval_count": 12,
- "plan": "mon-sun",
- "interval": "12 Month (Rolling)"
}, - "cost": {
- "total": 780,
- "per_month": 65
}, - "deposit": {
- "was": 100,
- "now": 100
}
}
], - "update_vrn_restriction": "active",
- "limit_vrn_discounts": false,
- "requires_roadworthy_vehicle": false,
- "roadworthy_grace_period_days": 14,
- "disable_paypal_st": false,
- "disable_paypal_lt": false,
- "hide_webloyalty": false,
- "airport_space": true,
- "airport_code": "MAN",
- "airport_name": "Manchester Airport",
- "is_upsell_eligible": true
}
]
include | string Enum: "space" "vehicle" "vehicle.vehicle_data" "states" "receipt" "permit_address" "horizon_barcode" Example: include=space,vehicle,horizon_barcode |
status | string Enum: "active" "completed" "cancelled" "active_started" "upcoming" "past" Example: status=upcoming |
vrn | string Example: vrn=ABC123 |
start_from | string Example: start_from=24-12-2023 |
start_to | string Example: start_to=24-12-2023 |
space_id | integer Example: space_id=4294961145 |
{- "data": [
- {
- "id": 0,
- "status": "string",
- "confirmed": true,
- "value": "4.28",
- "price": 0,
- "service_fee": 0,
- "price_paid_with_service_fee": 0,
- "currency": {
- "value": "GBP",
- "locale": "en_GB"
}, - "start": "2018-09-13T10:30:00+01:00",
- "end": "2018-09-13T10:30:00+01:00",
- "created_at": "2018-09-13T10:30:00+01:00",
- "duration": {
- "days": 0,
- "hours": 0
}, - "has_review": true,
- "review_required": true,
- "post_booking_info": "string",
- "access": {
- "qr_code": "string",
- "access_code": "string",
- "anpr": "string",
- "credit_card": "string"
}, - "show_landlord": true,
- "commission": 0,
- "barcode": "string",
- "cancelled_at": "2018-09-13T10:30:00+01:00",
- "term": "string",
- "calendar_link": "string",
- "billing_interval_count": 0,
- "next_billing_date": "1st Jan 2020",
- "horizon_barcode": "string",
- "is_pay_by_mobile": true,
- "qrCode": "string",
- "group_booking_id": 0,
- "states": {
- "cancel_booking": "ALLOW_ALL",
- "update_start_date": "ALLOW_ALL",
- "update_end_date": "ALLOW_ALL",
- "change_vrn": "ALLOW_ALL",
- "end_long_term": {
- "allowed_to_end": "ALLOW_ALL",
- "min_date": "2022-05-09",
- "max_date": "2022-11-05"
}
}, - "products": {
- "data": [
- {
- "product_id": "string",
- "product_key": "string",
- "purchased_product_id": "string",
- "name": "string",
- "price": "0.99",
- "convenience_fee": "0.99",
- "paid_at": "2023-01-03T15:53:00+00:00",
- "refunded_at": "2023-01-03T15:53:00+00:00",
- "cancelable": true,
- "editable": true,
- "refundable_product": true,
- "priority_product": true
}
]
}, - "totalProductsValue": 0.99,
- "season_plan": "mon-sun",
- "space": {
- "id": 0,
- "title": "string",
- "location": {
- "lat": 52.123456,
- "lng": 1.123456
}, - "address": {
- "address": "string",
- "city": "string",
- "postcode": "string"
}, - "currency": {
- "locale": "en_GB",
- "value": "GBP"
}, - "landlord": {
- "id": 123456,
- "email": "email@me.com",
- "first_name": "John",
- "last_name": "Doe",
- "mobile": "07711223344",
- "profile_picture_url": "https://yourparkingspace.co.uk/file/small/b17fe5308f4dbb74d4a2a8378bd7fed9/20161014_140544.jpeg",
- "sms_alerts_enabled": 1
}, - "allow_ending_lt_bookings": true,
- "what_three_words": {
- "label": "North Street entrance",
- "words": "robin.likes.worms",
}, - "site_id": 0,
- "airport_space": true,
- "airport_code": "MAN",
- "airport_name": "Manchester Airport"
}, - "arrangement_fee": 5
}
], - "meta": {
- "pagination": {
- "total": 0,
- "count": 0,
- "per_page": 0,
- "current_page": 0,
- "total_pages": 0,
- "links": {
- "next": "string",
- "previous": "string"
}
}
}
}
{- "reminder": {
- "allow_email": true,
- "allow_sms": false,
- "allow_push": true
}, - "general": {
- "allow_email": true,
- "allow_sms": false,
- "allow_push": true
}, - "confirmation": {
- "allow_email": true,
- "allow_sms": false,
- "allow_push": true
}
}
booking-reminder-tenant | Array of strings |
general | Array of strings |
booking-confirmation-tenant | Array of strings Valid items value - 'sms' |
{- "booking-reminder-tenant": "email",
- "general": "email",
- "booking-confirmation-tenant": [
- "string"
]
}
{- "reminder": {
- "allow_email": true,
- "allow_sms": false,
- "allow_push": true
}, - "general": {
- "allow_email": true,
- "allow_sms": false,
- "allow_push": true
}, - "confirmation": {
- "allow_email": true,
- "allow_sms": false,
- "allow_push": true
}
}
booking-reminder-tenant | Array of strings |
general | Array of strings |
booking-confirmation-tenant | Array of strings Valid items value - 'sms' |
{- "booking-reminder-tenant": "email",
- "general": "email",
- "booking-confirmation-tenant": [
- "string"
]
}
{- "data": {
- "account_type": "private-individual",
- "name": "John Smith",
- "address": "1 Some Street, Town, AA1 1AA",
- "date_of_birth": "1990-01-01",
- "tax_identification_number": "AA123456A",
- "country": "GB",
- "company_registration_number": "AB1234CD"
}
}
account_type required | string Enum: "private-individual" "private-business" "commercial" |
name required | string Labels:
|
address required | string Labels:
|
date_of_birth | string <Y-m-d> Required only when |
country required | string Enum: "uk" "other" Required only when |
company_registration_number | string Required only when:
Labels:
|
tax_identification_number required | string Labels:
|
{- "account_type": "private-individual",
- "name": "John Smith",
- "address": "1 Some Street, Town, AA1 1AA",
- "date_of_birth": "1990-01-01",
- "country": "uk",
- "company_registration_number": "string",
- "tax_identification_number": "AA123456A"
}
{- "data": {
- "account_type": "private-individual",
- "name": "John Smith",
- "address": "1 Some Street, Town, AA1 1AA",
- "date_of_birth": "1990-01-01",
- "tax_identification_number": "AA123456A",
- "country": "GB",
- "company_registration_number": "AB1234CD"
}
}
Get the account value of the authenticated space owner
historic_months | integer [ 1 .. 24 ] Number of months back from now to include. Returns current month if not provided. |
{- "year": 2024,
- "month": 7,
- "amount": 42.5,
- "currency": "GBP",
- "formatted_amount": "£42.50"
}
Set the details of PayPal payout preference for space owners.
bank_country_code required | string ISO-3316-3 digit country code |
paypal_email required | string Email address of PayPal account to send SO earnings |
{- "bank_country_code": "GBR",
- "paypal_email": "john.smith@yourparkingspace.co.uk"
}
{- "data": {
- "bank_country_code": "GBR",
- "paypal_email": "john.smith@yourparkingspace.co.uk"
}
}
Get the details of bank transfer payout preference for space owners.
{- "data": {
- "bank_country_code": "GBR",
- "account_holder_name": "john.smith@yourparkingspace.co.uk",
- "bank_account_number": "xxxx5678",
- "bank_sort_code": "xxxx33"
}
}
Set the details of PayPal payout preference for space owners.
bank_country_code required | string ISO-3316-3 digit country code |
account_holder_name required | string Name of account holder |
bank_account_number required | string Bank account number. Validation depends on |
bank_sort_code | Array of any Bank sort code (list of digits). Required when |
{- "bank_country_code": "GBR",
- "account_holder_name": "John Smith",
- "bank_account_number": 12345678,
- "bank_sort_code": [
- 11,
- 22,
- 33
]
}
{- "data": {
- "bank_country_code": "GBR",
- "account_holder_name": "john.smith@yourparkingspace.co.uk",
- "bank_account_number": "xxxx5678",
- "bank_sort_code": "xxxx33"
}
}
List the vehicles that are attached to the current user.
include | string Value: "vehicle_data" |
[- {
- "id": 1,
- "reference": "M6 SOJ",
- "registration_number": "M6SOJ",
- "default": false,
- "vehicle_data": {
- "make": "Morris Minor",
- "model": "Minor Series II",
- "colour": "Beige",
- "mot_expires_at": "2022-04-17",
- "ved_expires_at": "2023-02-01",
- "vehicle_data_refresh_allowed": true,
- "days_until_next_refresh": 7,
- "last_refreshed_at": "2024-01-24 13:50:04"
}
}
]
Add a vehicle to the current user.
reference | string |
registration_number | string |
object |
{- "reference": "M6 SOJ",
- "registration_number": "M6SOJ",
- "custom_data": {
- "model": "string",
- "make": "string",
- "colour": "string"
}
}
{- "id": 1,
- "reference": "M6 SOJ",
- "registration_number": "M6SOJ",
- "default": false,
- "vehicle_data": {
- "make": "Morris Minor",
- "model": "Minor Series II",
- "colour": "Beige",
- "mot_expires_at": "2022-04-17",
- "ved_expires_at": "2023-02-01",
- "vehicle_data_refresh_allowed": true,
- "days_until_next_refresh": 7,
- "last_refreshed_at": "2024-01-24 13:50:04"
}
}
id required | integer Example: 1 |
include | string Value: "vehicle_data" |
{- "id": 1,
- "reference": "M6 SOJ",
- "registration_number": "M6SOJ",
- "default": false,
- "vehicle_data": {
- "make": "Morris Minor",
- "model": "Minor Series II",
- "colour": "Beige",
- "mot_expires_at": "2022-04-17",
- "ved_expires_at": "2023-02-01",
- "vehicle_data_refresh_allowed": true,
- "days_until_next_refresh": 7,
- "last_refreshed_at": "2024-01-24 13:50:04"
}
}
Update the reference or registration number of a vehicle.
id required | integer Example: 1 |
Vehicle data
reference | string |
registration_number | string |
object |
{- "reference": "M6 SOJ",
- "registration_number": "M6SOJ",
- "custom_data": {
- "model": "string",
- "make": "string",
- "colour": "string"
}
}
{- "id": 1,
- "reference": "M6 SOJ",
- "registration_number": "M6SOJ",
- "default": false,
- "vehicle_data": {
- "make": "Morris Minor",
- "model": "Minor Series II",
- "colour": "Beige",
- "mot_expires_at": "2022-04-17",
- "ved_expires_at": "2023-02-01",
- "vehicle_data_refresh_allowed": true,
- "days_until_next_refresh": 7,
- "last_refreshed_at": "2024-01-24 13:50:04"
}
}
Retrieve information for the vehicle registered to a specific VIN
registration required | string Example: M6SOJ The vehicle registration to query |
refresh_if_unroadworthy | boolean Example: refresh_if_unroadworthy=true Optional - If the vehicle is unroadworthy and refresh is available, then the vehicle data will be refreshed before returning it. |
{- "make": "Morris Minor",
- "model": "Minor Series II",
- "colour": "Beige",
- "mot_expires_at": "2022-04-17",
- "ved_expires_at": "2023-02-01",
- "vehicle_data_refresh_allowed": true,
- "days_until_next_refresh": 7,
- "last_refreshed_at": "2024-01-24 13:50:04"
}
include | string Enum: "space" "vehicle" "vehicle.vehicle_data" "states" "receipt" "permit_address" "horizon_barcode" Example: include=space,vehicle,horizon_barcode |
status | string Enum: "active" "completed" "cancelled" "active_started" "upcoming" "past" Example: status=upcoming |
order_by | string Enum: "start" "created_at" Example: order_by=start |
order_direction | string Enum: "asc" "desc" Example: order_direction=asc |
vrn | string Example: vrn=ABC123 |
start_from | string Example: start_from=24-12-2023 |
start_to | string Example: start_to=24-12-2023 |
space_id | integer Example: space_id=4294961145 |
{- "data": [
- {
- "id": 0,
- "status": "string",
- "confirmed": true,
- "value": "4.28",
- "price": 0,
- "service_fee": 0,
- "price_paid_with_service_fee": 0,
- "currency": {
- "value": "GBP",
- "locale": "en_GB"
}, - "start": "2018-09-13T10:30:00+01:00",
- "end": "2018-09-13T10:30:00+01:00",
- "created_at": "2018-09-13T10:30:00+01:00",
- "duration": {
- "days": 0,
- "hours": 0
}, - "has_review": true,
- "review_required": true,
- "post_booking_info": "string",
- "access": {
- "qr_code": "string",
- "access_code": "string",
- "anpr": "string",
- "credit_card": "string"
}, - "show_landlord": true,
- "commission": 0,
- "barcode": "string",
- "cancelled_at": "2018-09-13T10:30:00+01:00",
- "term": "string",
- "calendar_link": "string",
- "billing_interval_count": 0,
- "next_billing_date": "1st Jan 2020",
- "horizon_barcode": "string",
- "is_pay_by_mobile": true,
- "qrCode": "string",
- "group_booking_id": 0,
- "states": {
- "cancel_booking": "ALLOW_ALL",
- "update_start_date": "ALLOW_ALL",
- "update_end_date": "ALLOW_ALL",
- "change_vrn": "ALLOW_ALL",
- "end_long_term": {
- "allowed_to_end": "ALLOW_ALL",
- "min_date": "2022-05-09",
- "max_date": "2022-11-05"
}
}, - "products": {
- "data": [
- {
- "product_id": "string",
- "product_key": "string",
- "purchased_product_id": "string",
- "name": "string",
- "price": "0.99",
- "convenience_fee": "0.99",
- "paid_at": "2023-01-03T15:53:00+00:00",
- "refunded_at": "2023-01-03T15:53:00+00:00",
- "cancelable": true,
- "editable": true,
- "refundable_product": true,
- "priority_product": true
}
]
}, - "totalProductsValue": 0.99,
- "season_plan": "mon-sun",
- "space": {
- "id": 0,
- "title": "string",
- "location": {
- "lat": 52.123456,
- "lng": 1.123456
}, - "address": {
- "address": "string",
- "city": "string",
- "postcode": "string"
}, - "currency": {
- "locale": "en_GB",
- "value": "GBP"
}, - "landlord": {
- "id": 123456,
- "email": "email@me.com",
- "first_name": "John",
- "last_name": "Doe",
- "mobile": "07711223344",
- "profile_picture_url": "https://yourparkingspace.co.uk/file/small/b17fe5308f4dbb74d4a2a8378bd7fed9/20161014_140544.jpeg",
- "sms_alerts_enabled": 1
}, - "allow_ending_lt_bookings": true,
- "what_three_words": {
- "label": "North Street entrance",
- "words": "robin.likes.worms",
}, - "site_id": 0,
- "airport_space": true,
- "airport_code": "MAN",
- "airport_name": "Manchester Airport"
}, - "arrangement_fee": 5
}
], - "meta": {
- "pagination": {
- "total": 0,
- "count": 0,
- "per_page": 0,
- "current_page": 0,
- "total_pages": 0,
- "links": {
- "next": "string",
- "previous": "string"
}
}
}
}
Get booking details.
id required | integer Example: 1 |
include | string Enum: "space" "vehicle" "vehicle.vehicle_data" "states" "receipt" "permit_address" "horizon_barcode" Example: include=space,vehicle,horizon_barcode |
{- "id": 0,
- "status": "string",
- "confirmed": true,
- "value": "4.28",
- "price": 0,
- "service_fee": 0,
- "price_paid_with_service_fee": 0,
- "currency": {
- "value": "GBP",
- "locale": "en_GB"
}, - "start": "2018-09-13T10:30:00+01:00",
- "end": "2018-09-13T10:30:00+01:00",
- "created_at": "2018-09-13T10:30:00+01:00",
- "duration": {
- "days": 0,
- "hours": 0
}, - "has_review": true,
- "review_required": true,
- "post_booking_info": "string",
- "access": {
- "qr_code": "string",
- "access_code": "string",
- "anpr": "string",
- "credit_card": "string"
}, - "show_landlord": true,
- "commission": 0,
- "barcode": "string",
- "cancelled_at": "2018-09-13T10:30:00+01:00",
- "term": "string",
- "calendar_link": "string",
- "billing_interval_count": 0,
- "next_billing_date": "1st Jan 2020",
- "horizon_barcode": "string",
- "is_pay_by_mobile": true,
- "qrCode": "string",
- "group_booking_id": 0,
- "states": {
- "cancel_booking": "ALLOW_ALL",
- "update_start_date": "ALLOW_ALL",
- "update_end_date": "ALLOW_ALL",
- "change_vrn": "ALLOW_ALL",
- "end_long_term": {
- "allowed_to_end": "ALLOW_ALL",
- "min_date": "2022-05-09",
- "max_date": "2022-11-05"
}
}, - "products": {
- "data": [
- {
- "product_id": "string",
- "product_key": "string",
- "purchased_product_id": "string",
- "name": "string",
- "price": "0.99",
- "convenience_fee": "0.99",
- "paid_at": "2023-01-03T15:53:00+00:00",
- "refunded_at": "2023-01-03T15:53:00+00:00",
- "cancelable": true,
- "editable": true,
- "refundable_product": true,
- "priority_product": true
}
]
}, - "totalProductsValue": 0.99,
- "season_plan": "mon-sun",
- "space": {
- "id": 0,
- "title": "string",
- "location": {
- "lat": 52.123456,
- "lng": 1.123456
}, - "address": {
- "address": "string",
- "city": "string",
- "postcode": "string"
}, - "currency": {
- "locale": "en_GB",
- "value": "GBP"
}, - "landlord": {
- "id": 123456,
- "email": "email@me.com",
- "first_name": "John",
- "last_name": "Doe",
- "mobile": "07711223344",
- "profile_picture_url": "https://yourparkingspace.co.uk/file/small/b17fe5308f4dbb74d4a2a8378bd7fed9/20161014_140544.jpeg",
- "sms_alerts_enabled": 1
}, - "allow_ending_lt_bookings": true,
- "what_three_words": {
- "label": "North Street entrance",
- "words": "robin.likes.worms",
}, - "site_id": 0,
- "airport_space": true,
- "airport_code": "MAN",
- "airport_name": "Manchester Airport"
}, - "arrangement_fee": 5
}
Update the registration of the vehicle assigned to the booking, or extend/reduce the duration of the booking.
id required | integer Example: 1 |
vehicle_id | integer |
start required | string <YYYY-MM-DDTHH:MM:SS+00:00> |
end required | string <YYYY-MM-DDTHH:MM:SS+00:00> |
biller | string |
token | string |
card_id | integer |
products_to_cancel | Array of integers IDs of products you want to cancel when updating booking. |
{- "vehicle_id": 0,
- "start": "string",
- "end": "string",
- "biller": "string",
- "token": "string",
- "card_id": 0,
- "products_to_cancel": [
- 0
]
}
Update the registration of the vehicle assigned to the booking, or extend/reduce the duration of the booking.
id required | integer Example: 1 |
vehicle_id | integer |
start required | string <YYYY-MM-DDTHH:MM:SS+00:00> |
end required | string <YYYY-MM-DDTHH:MM:SS+00:00> |
biller | string |
token | string |
card_id | integer |
products_to_cancel | Array of integers IDs of products you want to cancel when updating booking. |
{- "vehicle_id": 0,
- "start": "string",
- "end": "string",
- "biller": "string",
- "token": "string",
- "card_id": 0,
- "products_to_cancel": [
- 0
]
}
Get all of the available cancellation reasons for a booking, including if they require additional text.
full-list | boolean Example: full-list=true Optional - if included will return full list with sub-reasons |
[- {
- "id": 1,
- "value": "I found a better located space",
- "additional_text": false
}
]
Cancel the specified booking for the current user.
id required | integer Example: 1 |
cancellation_reason_id | integer |
cancellation_reason_text | string |
{- "cancellation_reason_id": 1,
- "cancellation_reason_text": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
}
Request a quote for either extending or reducing the duration of a booking.
id required | integer Example: 1 |
start | string <YYYY-MM-DDTHH:MM:SS+00:00> |
end | string <YYYY-MM-DDTHH:MM:SS+00:00> |
{- "start": "2018-02-12T13:00:00+01:00",
- "end": "2018-02-17T13:00:00+01:00"
}
{- "value": 0,
- "valueBeforeDiscount": 0,
- "serviceFee": 0.99,
- "serviceFeeBeforeDiscount": 0.99,
- "arrangementFee": 5,
- "deposit": 0,
- "discountedDeposit": 0,
- "additionalPayment": 0,
- "additionalData": { },
- "warning": "string",
- "currency": {
- "value": "GBP",
- "locale": "en_GB"
}, - "first_billing_date": "2020-11-24",
- "next_billing_date": "2020-12-24",
- "products": [
- {
- "id": "prod-1",
- "key": "variant-B",
- "quote": {
- "value": 0,
- "errors": true,
- "error": {
- "message": "key field is required",
- "code": "PRODUCT-QUOTE-ERROR",
- "type": "SERVICE"
}
}
}
], - "totalProductsValue": 0.99
}
Download or email a VAT receipt for a given booking in PDF format
id required | integer Example: 1 |
download required | string Example: download Optional. Specify how to view the PDF, either download or email. Defaults to download if excluded |
Get reasons for ending a long term booking. Can be used to get all reasons or just reasons that belong to specific parent by providing parent_id
parent_id | integer Example: parent_id=24 Optional - if included, will only return sub-reasons that belong to given main reason. If |
[- {
- "id": 0,
- "reason_text": "I found a cheaper space",
- "parent_id": 0,
- "requires_additional_text": true,
- "sub_reason_heading": "How did you find your new space?",
- "requires_file_upload": true
}
]
Get a list of locations, in which the logged in driver has made bookings
status required | string Enum: "active" "past" "completed" "cancelled" Example: status=active |
[- {
- "id": 4294939408,
- "title": "Bideford Avenue, UB6"
}
]
Submit the end date for a long term booking.
booking_id required | integer Example: 1 |
end_date required | string <YYYY-MM-DD> |
ending_reason_id required | integer |
additional_comment | string Required when the "Other" is selected. |
attachment | string <binary> Required when the "PCN" option is selected. |
View a list of all products purchased for a booking
booking_id required | integer Example: 1 |
{- "data": [
- {
- "id": 0,
- "product_id": "string",
- "product_key": "string",
- "purchased_product_id": "string",
- "name": "string",
- "price": 200,
- "paid_at": "2023-01-03T15:53:00+00:00",
- "refunded_at": "2023-01-03T15:53:00+00:00",
- "configurable": true,
- "editable": true,
- "cancelable": true,
- "refundable_product": true,
- "product_data": {
- "pick_up": {
- "latitude": 51.515349490752726,
- "longitude": -0.14188575379675056
}, - "drop_off": {
- "latitude": 51.5024551107677,
- "longitude": -0.1411683541284915
}, - "pick_up_time": "2023-07-11T09:00:00+00:00",
- "fare_id": "string",
- "first_name": "string",
- "last_name": "string",
- "phone_number": "string",
- "product": {
- "id": "string",
- "name": "UberX",
- "capacity": 0,
}, - "fare_amount": 0,
- "status": "Accepted",
- "ride_id": "string"
}
}
]
}
Purchase one or more products to be associated with a booking
booking_id required | integer Example: 1 |
Array of objects (ProductQuote) Ancillary products to quote | |
biller | string Biller to use for payment |
card_id | integer YPS ID of driver payment method (i.e. card). Required if no token |
token | string Token of new payment method (i.e. when user has added a new card). Required if no card_id |
object Used for 3DS authentication |
{- "data": [
- {
- "product_id": "string",
- "product_key": "string",
- "purchased_product_id": "string",
- "name": "string",
- "price": "0.99",
- "convenience_fee": "0.99",
- "paid_at": "2023-01-03T15:53:00+00:00",
- "refunded_at": "2023-01-03T15:53:00+00:00",
- "cancelable": true,
- "editable": true,
- "refundable_product": true,
- "priority_product": true
}
], - "total_products_value": {
- "value": 0,
- "currency": "string",
- "locale": "string",
- "convenience_fee": 0
}
}
View a product purchased for a booking
booking_id required | integer Example: 1 |
booking_product_id required | integer Example: 1 |
{- "data": {
- "id": 0,
- "product_id": "string",
- "product_key": "string",
- "purchased_product_id": "string",
- "name": "string",
- "price": 200,
- "paid_at": "2023-01-03T15:53:00+00:00",
- "refunded_at": "2023-01-03T15:53:00+00:00",
- "configurable": true,
- "editable": true,
- "cancelable": true,
- "refundable_product": true,
- "product_data": {
- "pick_up": {
- "latitude": 51.515349490752726,
- "longitude": -0.14188575379675056
}, - "drop_off": {
- "latitude": 51.5024551107677,
- "longitude": -0.1411683541284915
}, - "pick_up_time": "2023-07-11T09:00:00+00:00",
- "fare_id": "string",
- "first_name": "string",
- "last_name": "string",
- "phone_number": "string",
- "product": {
- "id": "string",
- "name": "UberX",
- "capacity": 0,
}, - "fare_amount": 0,
- "status": "Accepted",
- "ride_id": "string"
}
}
}
Update a purchased product for a booking including taking any required payment or processing refunds
booking_id required | integer Example: 1 |
booking_product_id required | integer Example: 1 |
price | number Additional amount to pay, or amount to refund, for product (in minor units) |
Uber product request (object) or Fast Track Security product update request (object) or Airport Lounge product update request (object) Product specific data | |
biller | string Biller to use for payment |
card_id | integer YPS ID of driver payment method (i.e. card). Required if no token |
token | string Token of new payment method (i.e. when user has added a new card). Required if no card_id |
object Used for 3DS authentication |
{- "success": true
}
Get all paginated space owner bookings with optional filtering of status
status | string Example: status=completed,cancelled Comma separate list of booking statuses to filter by |
order_by | string Enum: "start" "created_at" "end" Example: order_by=start |
order_direction | string Enum: "asc" "desc" Example: order_direction=asc |
term | string Enum: "one-off" "mon-sun" "mon-fri" "any-three-days" Example: term=one-off,mon-fri Comma separated list of terms |
search | string Example: search=2 Some Street Free text search on bookings. Looks at VRN, space address/postcode, tenant name/email |
between_start | string <Y-m-d> Example: between_start=2023-01-01 If start date is given but no end date, end date will be now + 10 years |
between_end | string <Y-m-d> Example: between_end=2024-01-01 If start date is given but no end date, end date will be now + 10 years |
space_ids | string Example: space_ids=1234,9876 Comma separated list of space IDs to check for bookings |
{- "data": [
- {
- "id": 0,
- "status": "string",
- "confirmed": 1,
- "value": "8.00",
- "currency": {
- "value": "GBP",
- "locale": "en_GB"
}, - "start": "2018-11-02T12:00:00+00:00",
- "end": "2018-11-03T12:00:00+00:00",
- "created_at": "2018-10-27T21:45:12+01:00",
- "cancelled_at": "2018-10-28T21:00:00+01:00",
- "duration": {
- "days": 0,
- "hours": 0
}, - "in_progress": true,
- "tenant": {
- "first_name": "string",
- "last_name": "string",
- "mobile": "string",
- "booking_count": {
- "upcoming": 0,
- "completed": 0,
- "cancelled": 0
}, - "profile_image_url": "string",
- "created_at": "2024-09-11T11:54:33+00:00"
}, - "vehicle": {
- "id": 1,
- "reference": "M6 SOJ",
- "registration_number": "M6SOJ",
- "default": false,
- "vehicle_data": {
- "make": "Morris Minor",
- "model": "Minor Series II",
- "colour": "Beige",
- "mot_expires_at": "2022-04-17",
- "ved_expires_at": "2023-02-01",
- "vehicle_data_refresh_allowed": true,
- "days_until_next_refresh": 7,
- "last_refreshed_at": "2024-01-24 13:50:04"
}
}, - "space": {
- "id": 0,
- "title": "string",
- "image_url": "string",
- "landlord": {
- "id": 0,
- "first_name": "string",
- "last_name": "string",
- "email": "string",
- "mobile": "string",
- "sms_alerts_enabled": 1,
- "profile_image_url": "string"
}, - "address": {
- "address": "string",
- "postcode": "string",
- "city": "string"
}
}, - "long_term": true,
- "season_plan": "mon-sun"
}
], - "meta": {
- "pagination": {
- "total": 0,
- "count": 0,
- "per_page": 0,
- "current_page": 0,
- "total_pages": 0,
- "links": {
- "next": "string",
- "previous": "string"
}
}
}
}
Get paginated space owner bookings that are active and in progress.
space_id | integer Example: space_id=425968721 Optional - if included will return bookings for given location |
order_by | string Enum: "start" "created_at" "end" Example: order_by=start |
order_direction | string Enum: "asc" "desc" Example: order_direction=asc |
term | string Enum: "one-off" "mon-sun" "mon-fri" "any-three-days" Example: term=one-off,mon-fri Comma separated list of terms |
search | string Example: search=2 Some Street Free text search on bookings. Looks at VRN, space address/postcode, tenant name/email |
between_start | string <Y-m-d> Example: between_start=2023-01-01 If start date is given but no end date, end date will be now + 10 years |
between_end | string <Y-m-d> Example: between_end=2024-01-01 If start date is given but no end date, end date will be now + 10 years |
space_ids | string Example: space_ids=1234,9876 Comma separated list of space IDs to check for bookings |
{- "data": [
- {
- "id": 0,
- "status": "string",
- "confirmed": 1,
- "value": "8.00",
- "currency": {
- "value": "GBP",
- "locale": "en_GB"
}, - "start": "2018-11-02T12:00:00+00:00",
- "end": "2018-11-03T12:00:00+00:00",
- "created_at": "2018-10-27T21:45:12+01:00",
- "cancelled_at": "2018-10-28T21:00:00+01:00",
- "duration": {
- "days": 0,
- "hours": 0
}, - "in_progress": true,
- "tenant": {
- "first_name": "string",
- "last_name": "string",
- "mobile": "string",
- "booking_count": {
- "upcoming": 0,
- "completed": 0,
- "cancelled": 0
}, - "profile_image_url": "string",
- "created_at": "2024-09-11T11:54:33+00:00"
}, - "vehicle": {
- "id": 1,
- "reference": "M6 SOJ",
- "registration_number": "M6SOJ",
- "default": false,
- "vehicle_data": {
- "make": "Morris Minor",
- "model": "Minor Series II",
- "colour": "Beige",
- "mot_expires_at": "2022-04-17",
- "ved_expires_at": "2023-02-01",
- "vehicle_data_refresh_allowed": true,
- "days_until_next_refresh": 7,
- "last_refreshed_at": "2024-01-24 13:50:04"
}
}, - "space": {
- "id": 0,
- "title": "string",
- "image_url": "string",
- "landlord": {
- "id": 0,
- "first_name": "string",
- "last_name": "string",
- "email": "string",
- "mobile": "string",
- "sms_alerts_enabled": 1,
- "profile_image_url": "string"
}, - "address": {
- "address": "string",
- "postcode": "string",
- "city": "string"
}
}, - "long_term": true,
- "season_plan": "mon-sun"
}
], - "meta": {
- "pagination": {
- "total": 0,
- "count": 0,
- "per_page": 0,
- "current_page": 0,
- "total_pages": 0,
- "links": {
- "next": "string",
- "previous": "string"
}
}
}
}
Get paginated space owner bookings that are active and upcoming.
space_id | integer Example: space_id=425968721 Optional - if included will return bookings for given location |
order_by | string Enum: "start" "created_at" "end" Example: order_by=start |
order_direction | string Enum: "asc" "desc" Example: order_direction=asc |
term | string Enum: "one-off" "mon-sun" "mon-fri" "any-three-days" Example: term=one-off,mon-fri Comma separated list of terms |
search | string Example: search=2 Some Street Free text search on bookings. Looks at VRN, space address/postcode, tenant name/email |
between_start | string <Y-m-d> Example: between_start=2023-01-01 If start date is given but no end date, end date will be now + 10 years |
between_end | string <Y-m-d> Example: between_end=2024-01-01 If start date is given but no end date, end date will be now + 10 years |
space_ids | string Example: space_ids=1234,9876 Comma separated list of space IDs to check for bookings |
{- "data": [
- {
- "id": 0,
- "status": "string",
- "confirmed": 1,
- "value": "8.00",
- "currency": {
- "value": "GBP",
- "locale": "en_GB"
}, - "start": "2018-11-02T12:00:00+00:00",
- "end": "2018-11-03T12:00:00+00:00",
- "created_at": "2018-10-27T21:45:12+01:00",
- "cancelled_at": "2018-10-28T21:00:00+01:00",
- "duration": {
- "days": 0,
- "hours": 0
}, - "in_progress": true,
- "tenant": {
- "first_name": "string",
- "last_name": "string",
- "mobile": "string",
- "booking_count": {
- "upcoming": 0,
- "completed": 0,
- "cancelled": 0
}, - "profile_image_url": "string",
- "created_at": "2024-09-11T11:54:33+00:00"
}, - "vehicle": {
- "id": 1,
- "reference": "M6 SOJ",
- "registration_number": "M6SOJ",
- "default": false,
- "vehicle_data": {
- "make": "Morris Minor",
- "model": "Minor Series II",
- "colour": "Beige",
- "mot_expires_at": "2022-04-17",
- "ved_expires_at": "2023-02-01",
- "vehicle_data_refresh_allowed": true,
- "days_until_next_refresh": 7,
- "last_refreshed_at": "2024-01-24 13:50:04"
}
}, - "space": {
- "id": 0,
- "title": "string",
- "image_url": "string",
- "landlord": {
- "id": 0,
- "first_name": "string",
- "last_name": "string",
- "email": "string",
- "mobile": "string",
- "sms_alerts_enabled": 1,
- "profile_image_url": "string"
}, - "address": {
- "address": "string",
- "postcode": "string",
- "city": "string"
}
}, - "long_term": true,
- "season_plan": "mon-sun"
}
], - "meta": {
- "pagination": {
- "total": 0,
- "count": 0,
- "per_page": 0,
- "current_page": 0,
- "total_pages": 0,
- "links": {
- "next": "string",
- "previous": "string"
}
}
}
}
Get paginated space owner bookings that are completed.
space_id | integer Example: space_id=425968721 Optional - if included will return bookings for given location |
order_by | string Enum: "start" "created_at" "end" Example: order_by=start |
order_direction | string Enum: "asc" "desc" Example: order_direction=asc |
term | string Enum: "one-off" "mon-sun" "mon-fri" "any-three-days" Example: term=one-off,mon-fri Comma separated list of terms |
search | string Example: search=2 Some Street Free text search on bookings. Looks at VRN, space address/postcode, tenant name/email |
between_start | string <Y-m-d> Example: between_start=2023-01-01 If start date is given but no end date, end date will be now + 10 years |
between_end | string <Y-m-d> Example: between_end=2024-01-01 If start date is given but no end date, end date will be now + 10 years |
space_ids | string Example: space_ids=1234,9876 Comma separated list of space IDs to check for bookings |
{- "data": [
- {
- "id": 0,
- "status": "string",
- "confirmed": 1,
- "value": "8.00",
- "currency": {
- "value": "GBP",
- "locale": "en_GB"
}, - "start": "2018-11-02T12:00:00+00:00",
- "end": "2018-11-03T12:00:00+00:00",
- "created_at": "2018-10-27T21:45:12+01:00",
- "cancelled_at": "2018-10-28T21:00:00+01:00",
- "duration": {
- "days": 0,
- "hours": 0
}, - "in_progress": true,
- "tenant": {
- "first_name": "string",
- "last_name": "string",
- "mobile": "string",
- "booking_count": {
- "upcoming": 0,
- "completed": 0,
- "cancelled": 0
}, - "profile_image_url": "string",
- "created_at": "2024-09-11T11:54:33+00:00"
}, - "vehicle": {
- "id": 1,
- "reference": "M6 SOJ",
- "registration_number": "M6SOJ",
- "default": false,
- "vehicle_data": {
- "make": "Morris Minor",
- "model": "Minor Series II",
- "colour": "Beige",
- "mot_expires_at": "2022-04-17",
- "ved_expires_at": "2023-02-01",
- "vehicle_data_refresh_allowed": true,
- "days_until_next_refresh": 7,
- "last_refreshed_at": "2024-01-24 13:50:04"
}
}, - "space": {
- "id": 0,
- "title": "string",
- "image_url": "string",
- "landlord": {
- "id": 0,
- "first_name": "string",
- "last_name": "string",
- "email": "string",
- "mobile": "string",
- "sms_alerts_enabled": 1,
- "profile_image_url": "string"
}, - "address": {
- "address": "string",
- "postcode": "string",
- "city": "string"
}
}, - "long_term": true,
- "season_plan": "mon-sun"
}
], - "meta": {
- "pagination": {
- "total": 0,
- "count": 0,
- "per_page": 0,
- "current_page": 0,
- "total_pages": 0,
- "links": {
- "next": "string",
- "previous": "string"
}
}
}
}
Get paginated space owner bookings that are cancelled.
space_id | integer Example: space_id=425968721 Optional - if included will return bookings for given location |
order_by | string Enum: "start" "created_at" "end" Example: order_by=start |
order_direction | string Enum: "asc" "desc" Example: order_direction=asc |
term | string Enum: "one-off" "mon-sun" "mon-fri" "any-three-days" Example: term=one-off,mon-fri Comma separated list of terms |
search | string Example: search=2 Some Street Free text search on bookings. Looks at VRN, space address/postcode, tenant name/email |
between_start | string <Y-m-d> Example: between_start=2023-01-01 If start date is given but no end date, end date will be now + 10 years |
between_end | string <Y-m-d> Example: between_end=2024-01-01 If start date is given but no end date, end date will be now + 10 years |
space_ids | string Example: space_ids=1234,9876 Comma separated list of space IDs to check for bookings |
{- "data": [
- {
- "id": 0,
- "status": "string",
- "confirmed": 1,
- "value": "8.00",
- "currency": {
- "value": "GBP",
- "locale": "en_GB"
}, - "start": "2018-11-02T12:00:00+00:00",
- "end": "2018-11-03T12:00:00+00:00",
- "created_at": "2018-10-27T21:45:12+01:00",
- "cancelled_at": "2018-10-28T21:00:00+01:00",
- "duration": {
- "days": 0,
- "hours": 0
}, - "in_progress": true,
- "tenant": {
- "first_name": "string",
- "last_name": "string",
- "mobile": "string",
- "booking_count": {
- "upcoming": 0,
- "completed": 0,
- "cancelled": 0
}, - "profile_image_url": "string",
- "created_at": "2024-09-11T11:54:33+00:00"
}, - "vehicle": {
- "id": 1,
- "reference": "M6 SOJ",
- "registration_number": "M6SOJ",
- "default": false,
- "vehicle_data": {
- "make": "Morris Minor",
- "model": "Minor Series II",
- "colour": "Beige",
- "mot_expires_at": "2022-04-17",
- "ved_expires_at": "2023-02-01",
- "vehicle_data_refresh_allowed": true,
- "days_until_next_refresh": 7,
- "last_refreshed_at": "2024-01-24 13:50:04"
}
}, - "space": {
- "id": 0,
- "title": "string",
- "image_url": "string",
- "landlord": {
- "id": 0,
- "first_name": "string",
- "last_name": "string",
- "email": "string",
- "mobile": "string",
- "sms_alerts_enabled": 1,
- "profile_image_url": "string"
}, - "address": {
- "address": "string",
- "postcode": "string",
- "city": "string"
}
}, - "long_term": true,
- "season_plan": "mon-sun"
}
], - "meta": {
- "pagination": {
- "total": 0,
- "count": 0,
- "per_page": 0,
- "current_page": 0,
- "total_pages": 0,
- "links": {
- "next": "string",
- "previous": "string"
}
}
}
}
Get the user vehicle assigned to a specific booking
bookingId required | integer Example: 425968721 |
{- "id": 1,
- "reference": "M6 SOJ",
- "registration_number": "M6SOJ",
- "default": false,
- "vehicle_data": {
- "make": "Morris Minor",
- "model": "Minor Series II",
- "colour": "Beige",
- "mot_expires_at": "2022-04-17",
- "ved_expires_at": "2023-02-01",
- "vehicle_data_refresh_allowed": true,
- "days_until_next_refresh": 7,
- "last_refreshed_at": "2024-01-24 13:50:04"
}
}
Only accessable from internal network
vrn required | string VRN of vehicle for bookings |
datetime required | string <YYYY-MM-DD HH:MM:SS> Datetime to query for active bookings |
space_ids | string Comma separated list of space IDs to check for bookings |
start_time_buffer | integer Optional number of minutes to add before provided datetime to accept bookings for |
end_time_buffer | integer Optional number of minutes to add after provided datetime to accept bookings for |
strict_vrn | boolean Allows to perform a strict VRN search instead of the default fuzzy search |
[- {
- "id": 0,
- "start": "string",
- "end": "string",
- "status": "string",
- "space_id": 0,
- "vrn": "string"
}
]
Alternative route, authenticated using client credentials
vrn required | string VRN of vehicle for bookings |
datetime required | string <YYYY-MM-DD HH:MM:SS> Datetime to query for active bookings |
space_ids | string Comma separated list of space IDs to check for bookings |
start_time_buffer | integer Optional number of minutes to add before provided datetime to accept bookings for |
end_time_buffer | integer Optional number of minutes to add after provided datetime to accept bookings for |
strict_vrn | boolean Allows to perform a strict VRN search instead of the default fuzzy search |
[- {
- "id": 0,
- "start": "string",
- "end": "string",
- "status": "string",
- "space_id": 0,
- "vrn": "string"
}
]
View a list of all products purchased for a booking
booking_id required | integer Example: 1 |
{- "data": [
- {
- "id": 0,
- "product_id": "string",
- "product_key": "string",
- "purchased_product_id": "string",
- "name": "string",
- "price": 200,
- "paid_at": "2023-01-03T15:53:00+00:00",
- "refunded_at": "2023-01-03T15:53:00+00:00",
- "configurable": true,
- "editable": true,
- "cancelable": true,
- "refundable_product": true,
- "product_data": {
- "pick_up": {
- "latitude": 51.515349490752726,
- "longitude": -0.14188575379675056
}, - "drop_off": {
- "latitude": 51.5024551107677,
- "longitude": -0.1411683541284915
}, - "pick_up_time": "2023-07-11T09:00:00+00:00",
- "fare_id": "string",
- "first_name": "string",
- "last_name": "string",
- "phone_number": "string",
- "product": {
- "id": "string",
- "name": "UberX",
- "capacity": 0,
}, - "fare_amount": 0,
- "status": "Accepted",
- "ride_id": "string"
}
}
]
}
Purchase one or more products to be associated with a booking
booking_id required | integer Example: 1 |
Array of objects (ProductQuote) Ancillary products to quote | |
biller | string Biller to use for payment |
card_id | integer YPS ID of driver payment method (i.e. card). Required if no token |
token | string Token of new payment method (i.e. when user has added a new card). Required if no card_id |
object Used for 3DS authentication |
{- "data": [
- {
- "product_id": "string",
- "product_key": "string",
- "purchased_product_id": "string",
- "name": "string",
- "price": "0.99",
- "convenience_fee": "0.99",
- "paid_at": "2023-01-03T15:53:00+00:00",
- "refunded_at": "2023-01-03T15:53:00+00:00",
- "cancelable": true,
- "editable": true,
- "refundable_product": true,
- "priority_product": true
}
], - "total_products_value": {
- "value": 0,
- "currency": "string",
- "locale": "string",
- "convenience_fee": 0
}
}
View a product purchased for a booking
booking_id required | integer Example: 1 |
booking_product_id required | integer Example: 1 |
{- "data": {
- "id": 0,
- "product_id": "string",
- "product_key": "string",
- "purchased_product_id": "string",
- "name": "string",
- "price": 200,
- "paid_at": "2023-01-03T15:53:00+00:00",
- "refunded_at": "2023-01-03T15:53:00+00:00",
- "configurable": true,
- "editable": true,
- "cancelable": true,
- "refundable_product": true,
- "product_data": {
- "pick_up": {
- "latitude": 51.515349490752726,
- "longitude": -0.14188575379675056
}, - "drop_off": {
- "latitude": 51.5024551107677,
- "longitude": -0.1411683541284915
}, - "pick_up_time": "2023-07-11T09:00:00+00:00",
- "fare_id": "string",
- "first_name": "string",
- "last_name": "string",
- "phone_number": "string",
- "product": {
- "id": "string",
- "name": "UberX",
- "capacity": 0,
}, - "fare_amount": 0,
- "status": "Accepted",
- "ride_id": "string"
}
}
}
Update a purchased product for a booking including taking any required payment or processing refunds
booking_id required | integer Example: 1 |
booking_product_id required | integer Example: 1 |
price | number Additional amount to pay, or amount to refund, for product (in minor units) |
Uber product request (object) or Fast Track Security product update request (object) or Airport Lounge product update request (object) Product specific data | |
biller | string Biller to use for payment |
card_id | integer YPS ID of driver payment method (i.e. card). Required if no token |
token | string Token of new payment method (i.e. when user has added a new card). Required if no card_id |
object Used for 3DS authentication |
{- "success": true
}
Get driver's bookings when accessed via the chat bot. Currently limited on backend to 10 results.
booking_id | integer Allows to fetch a particular booking |
term | string Enum: "short" "long" Fetch short / long term bookings |
only_endable | boolean When provided and is |
{- "data": [
- {
- "id": 4598634,
- "price": 12.58,
- "currency": "GBP",
- "start": "2022-09-13T10:30:00+01:00",
- "end": "2022-09-13T10:30:00+01:00",
- "created_at": "2022-09-13T10:30:00+01:00",
- "term": "Short term",
- "billing_interval_count": 1,
- "states": {
- "cancel_booking": "ALLOW_ALL",
- "update_start_date": "ALLOW_ALL",
- "update_end_date": "ALLOW_ALL",
- "change_vrn": "ALLOW_ALL",
- "end_long_term": {
- "allowed_to_end": "ALLOW_ALL",
- "min_date": "2022-05-09",
- "max_date": "2022-11-05"
}
}, - "space": {
- "title": "string"
}, - "vehicle": {
- "registration_number": "string"
}
}
]
}
Get booking details in a format useful to the Knowledge Engine via Client Credentials.
booking_id | integer Fetch a booking with a specific ID |
payment_id | integer Fetch a booking associated with this payment ID |
{- "id": 864705,
- "price": 50,
- "currency": "GBP",
- "start": "2024-04-25T00:00:00+01:00",
- "end": null,
- "created_at": "2024-04-23T17:33:50+01:00",
- "term": "Short term",
- "billing_interval_count": 1,
- "billing_interval_label": "Once per month",
- "stripe_subscription_id": "sub_1P8mJ1B1C7jL2S3wQxIWFb6c",
- "space": {
- "title": "Leach Road, OX10"
}, - "vehicle": {
- "registration_number": "HON7777"
}, - "payments": [
- {
- "type": "payment",
- "payment": {
- "id": 739221,
- "user_id": 888103,
- "payment_id": "pi_3PEBQ3B1C7jL2S3w0dhP2qMs",
- "amount": "3.49",
- "biller_id": 1,
- "created_at": "2024-05-08 14:24:32",
- "updated_at": "2024-05-24 14:32:46",
- "payable_id": 864705,
- "payable_type": "YPS\\Booking",
- "landlord_payment_id": null,
- "refunded_amount": null,
- "charge_id": null,
- "receipt_sent": 0,
- "currency": "GBP",
- "country_code": "GBR"
}
}
]
}
List all of the users payment methods, with additional information such as the types of bookings they can be used for. If 'biller' parameter is provided, then we will only return cards for given biller. Otherwise it will return cards for currently enabled biller.
biller | string Example: biller=stripe |
{- "id": 119271,
- "brand": "MasterCard",
- "last4": "3093",
- "expiry_year": 2021,
- "expiry_month": 1,
- "reference": "xxxx-xxxx-xxxx-3093",
- "default": true
}
Stores a new payment method either via token or payment method ID
biller | string Required with biller |
card_id | integer |
authentication_response | Array of strings Required without token |
token | string Required without authentication_response and with biller |
skip | boolean Used alongside user impersonation to set a null biller |
default | boolean Indicates if new payment method should be the default |
{- "biller": "stripe",
- "card_id": 123,
- "authentication_response": [
- {
- "payment_intent_id": 123
}, - {
- "payment_intent_client_secret": "abc123"
}
], - "token": "abc123",
- "skip": true,
- "default": true
}
{- "id": 119271,
- "brand": "MasterCard",
- "last4": "3093",
- "expiry_year": 2021,
- "expiry_month": 1,
- "reference": "xxxx-xxxx-xxxx-3093",
- "default": true
}
Updates a users payment method reference or set as the default payment
id required | integer Example: 1 |
default | boolean Indicates if payment method should be the default |
reference | string |
{- "default": true,
- "reference": "xxxx-xxxx-xxxx-3093"
}
{- "id": 119271,
- "brand": "MasterCard",
- "last4": "3093",
- "expiry_year": 2021,
- "expiry_month": 1,
- "reference": "xxxx-xxxx-xxxx-3093",
- "default": true
}
ids required | string |
{- "ids": "string"
}
{- "data": [
- {
- "id": 0,
- "title": "string",
- "description": "string",
- "image_url": "string",
- "thumbnail_url": "string",
- "price_from": 0.1,
- "price_matrix": {
- "hourly": 0.1,
- "daily": 0.1,
- "monthly": 0.1,
- "quarterly": 0.1,
- "annually": 0.1
}, - "quote": {
- "value": 0.1,
- "season_plan": "mon-sun"
}, - "currency": {
- "value": "GBP",
- "locale": "en_GB"
}, - "rental_types": {
- "short": true,
- "long": true,
- "ncp": true,
- "enquiry": true
}, - "reviews": {
- "count": 0,
- "average": 0
}, - "location": {
- "lat": 0.1,
- "lng": 0.1
}, - "distance": {
- "value": 0.1,
- "text": "string"
}, - "enabled": true,
- "waiting_list": true,
- "available_from": "2018-09-13T10:30:00+01:00",
- "airport_space": true,
- "airport_code": "MAN",
- "airport_name": "Manchester Airport",
- "quote_from_third_party_provider": true,
- "site_id": "string",
- "features": {
- "data": {
- "key": "string",
- "icon": "string",
- "name": "string"
}
}, - "lt_plans": [
- {
- "deposit": 110,
- "interval_count": 1,
- "plan": "mon-sun",
- "price": 110
}, - {
- "deposit": 100,
- "interval_count": 1,
- "plan": "mon-fri",
- "price": 100
}, - {
- "deposit": 70,
- "interval_count": 1,
- "plan": "any-three-days",
- "price": 70
}
]
}
]
}
space required | integer Example: 3798564 |
include | string Enum: "streetview" "availability" "video" "display_access_times" "what_three_words" "city" "opening_hours" "linked_locations" "seo" "is_upsell_eligible" |
{- "id": 4294955136,
- "title": "Parking on Exchange House, N8",
- "access_times": {
- "start": "08:00",
- "end": "22:00",
- "all_hours_access": true
}, - "description": "<p>One allocated space located on Exchange House in London</p>",
- "additional_information": "string",
- "approved": 1,
- "post_booking_info": "string",
- "rental_terms": "string",
- "price_matrix": {
- "hourly": 1.5,
- "daily": 3,
- "monthly": 150,
- "monthly_deposit": 150,
- "quarterly": 0,
- "annually": 0,
- "arrangement_fee": 0
}, - "quote": {
- "value": 0,
- "valueBeforeDiscount": 0,
- "serviceFee": 0.99,
- "serviceFeeBeforeDiscount": 0.99,
- "arrangementFee": 5,
- "deposit": 0,
- "discountedDeposit": 0,
- "additionalPayment": 0,
- "additionalData": { },
- "warning": "string",
- "currency": {
- "value": "GBP",
- "locale": "en_GB"
}, - "first_billing_date": "2020-11-24",
- "next_billing_date": "2020-12-24",
- "products": [
- {
- "id": "prod-1",
- "key": "variant-B",
- "quote": {
- "value": 0,
- "errors": true,
- "error": {
- "message": "key field is required",
- "code": "PRODUCT-QUOTE-ERROR",
- "type": "SERVICE"
}
}
}
], - "totalProductsValue": 0.99
}, - "currency": {
- "value": "GBP",
- "locale": "en_GB"
}, - "space_type": "residential_car_park",
- "owner_type": "private",
- "max_access_height": "3.50",
- "rental_types": {
- "short": true,
- "long": true,
- "ncp": true,
- "enquiry": true
}, - "reviews": {
- "count": 0,
- "avarage": 0,
- "highest": 0
}, - "distance": {
- "value": "1.22",
- "text": "1.22 mi"
}, - "enabled": true,
- "waiting_list": true,
- "rewards": true,
- "overnight": true,
- "schedule": "allweek",
- "follow_up": 0,
- "listing_completed_at": {
- "date": "2019-12-19 13:36:55",
- "timezone_type": 3,
- "timezone": "Europe/London"
}, - "dynamic_pricing": 0,
- "notice_periods": {
- "long_term": 0,
- "short_term": 0
}, - "landlord_id": 0,
- "archived": true,
- "monthly_deposit_required": true,
- "allow_phone_prebookings": true,
- "lt_pricing_type": "standard",
- "lt_available_from": {
- "date": "2021-02-06 00:00:00",
- "timezone_type": 0,
- "timezone": "UTC"
}, - "force_vrn": true,
- "multi_bookings": {
- "allow": 1,
- "limit": 50
}, - "upper_period_limit": 365,
- "permit_required": true,
- "post_pay": {
- "allow": true,
- "max_hours_back": 0,
- "earliest_bookable_date": "2021-02-06 00:00:00"
}, - "site_id": 0,
- "default_cashless_tab": "exit",
- "post_pay_anpr": true,
- "should_be_indexed": true,
- "meta_description": "string",
- "skip_availability_check_cashless": true,
- "cashless_minutes_for_prebook_rate": 0,
- "location": {
- "lat": 51.577309,
- "lng": -0.1246119
}, - "address": {
- "address": "Flat 67",
- "address_2": "Edgeware Road",
- "postcode": "N8 8DF",
- "city": "London",
- "country": "Great Britain"
}, - "sizes": {
- "data": [
- {
- "key": "small",
- "name": "Small - (2 Door)"
}
]
}, - "features": {
- "data": [
- {
- "key": "sheltered_parking",
- "icon": "car",
- "name": "Covered Parking"
}
]
}, - "images": {
- "data": [
- {
- "id": 143379,
- "default": true,
- "is_streetview": true,
- "order": 0,
- "medium": "string",
- "large": "string",
- "thumbnail": "string"
}
]
}, - "streetview": {
- "lat": 51.577553,
- "lng": -0.1247939,
- "heading": 131.31821785764583,
- "pitch": -7.98650643572435,
}, - "availability": {
- "low_availability": [
- "string"
], - "unavailable": [
- "string"
], - "unavailable_access_times": [
- "string"
], - "fully_booked": {
- "days": [
- "string"
], - "periods": [
- "string"
]
}
}, - "video": "string",
- "display_access_times": [
- {
- "recurs_on": "Monday",
- "start": "07:00:00",
- "end": "22:30:00"
}
], - "opening_hours": [
- "Mo-Su 00:00-23:59"
], - "what_three_words": {
- "label": "North Street entrance",
- "words": "robin.likes.worms",
}, - "linked_locations": {
- "linked_site_id": 10800,
- "pre_book_st": 4294961769,
- "pre_book_lt": 4294961769,
- "book_now": 4294961145,
- "post_pay": 4294961145,
- "post_pay_anpr": null
}, - "seo": {
- "city": "string",
- "postcode_district": null,
- "street": "string"
}, - "lt_rental_enabled": true,
- "lt_pricing": {
- "1": [
- {
- "deposit": 110,
- "interval_count": 1,
- "plan": "mon-sun",
- "price": 110
}, - {
- "deposit": 100,
- "interval_count": 1,
- "plan": "mon-fri",
- "price": 100
}
], - "3": [
- {
- "deposit": 110,
- "interval_count": 3,
- "plan": "mon-sun",
- "price": 330
}
]
}, - "lt_season_pricing": [
- {
- "billing": {
- "interval_count": 1,
- "plan": "mon-sun",
- "interval": "1 Month (Rolling)"
}, - "cost": {
- "total": 110,
- "per_month": 100
}, - "deposit": {
- "was": 110,
- "now": 110
}
}, - {
- "billing": {
- "interval_count": 1,
- "plan": "mon-fri",
- "interval": "1 Month (Rolling)"
}, - "cost": {
- "total": 100,
- "per_month": 100
}, - "deposit": {
- "was": 100,
- "now": 100
}
}, - {
- "billing": {
- "interval_count": 1,
- "plan": "any-three-days",
- "interval": "1 Month (Rolling)"
}, - "cost": {
- "total": 70,
- "per_month": 70
}, - "deposit": {
- "was": 70,
- "now": 70
}
}, - {
- "billing": {
- "interval_count": 12,
- "plan": "mon-sun",
- "interval": "12 Month (Rolling)"
}, - "cost": {
- "total": 780,
- "per_month": 65
}, - "deposit": {
- "was": 100,
- "now": 100
}
}
], - "update_vrn_restriction": "active",
- "limit_vrn_discounts": false,
- "requires_roadworthy_vehicle": false,
- "roadworthy_grace_period_days": 14,
- "disable_paypal_st": false,
- "disable_paypal_lt": false,
- "hide_webloyalty": false,
- "airport_space": true,
- "airport_code": "MAN",
- "airport_name": "Manchester Airport",
- "is_upsell_eligible": true
}
space required | integer Example: 3798564 |
{- "id": 4294955136,
- "title": "Parking on Exchange House, N8",
- "access_times": {
- "start": "08:00",
- "end": "22:00",
- "all_hours_access": true
}, - "description": "<p>One allocated space located on Exchange House in London</p>",
- "additional_information": "string",
- "post_booking_info": "string",
- "streetview": {
- "lat": 51.577553,
- "lng": -0.1247939,
- "heading": 131.31821785764583,
- "pitch": -7.98650643572435,
}, - "display_access_times": [
- {
- "recurs_on": "Monday",
- "start": "07:00:00",
- "end": "22:30:00"
}
]
}
space required | integer Example: 3798564 |
start | string Example: start=2022-02-14T11:30:00+00:00 Required if |
end | string Example: end=2022-03-14T11:30:00+00:00 Required if |
rental | string Enum: "short" "long" Example: rental=long If the parameter is not provided it will be classed as “short“. |
{- "low_availability": [
- "string"
], - "unavailable": [
- "string"
], - "unavailable_access_times": [
- "string"
], - "fully_booked": {
- "days": [
- "string"
], - "periods": [
- "string"
]
}
}
Creates an enquiry record, emailing the customer a confirmation
space required | integer Example: 3798564 |
first_name | string |
last_name | string |
mobile | string |
string | |
type | string |
message | string |
start_date | string |
end:date | string |
{- "first_name": "string",
- "last_name": "string",
- "mobile": "string",
- "email": "string",
- "type": "shortterm",
- "message": "string",
- "start_date": "string",
- "end:date": "string"
}
space required | integer Example: 3798564 |
start | string <ISO8601> Start date - required unless |
end | string <ISO8601> End date - required for short term bookings with |
string optional email address | |
vehicle_reg | string optional vrm |
interval_count | integer For long term bookings only |
id | integer Space ID |
rental | string Enum: "short" "long" Rental type of the booking |
start_date | string <Y-m-d> Start date (legacy) - required unless |
start_time | string <H:i> Start time (legacy) - required with |
end_date | string <Y-m-d> End date (legacy) |
end_time | string <H:i> End time (legacy) - required with |
book_now | boolean Allows to by-pass the availability checks, is required for Cashless availability setting to work, activates the check for Book Now access hours warning, switches off time rounding to the nearest 30 mins, tells the quoter to use cashless tariffs under certain conditions. |
skip_availability | boolean Allows to by-pass the quote validation, e.g. validity of start & end dates, amount of notice, overnight booking, maximum bookable duration, available from, etc. |
upgrade_booking | integer Booking ID - is used when upgrading an existing LT booking to a season ticket |
voucher_code | string Optional voucher code to apply to booking quote |
Array of objects (ProductQuote) Ancillary products to quote | |
season_plan | string (SeasonPlan) Enum: "mon-sun" "mon-fri" "any-three-days" |
{- "start": "2019-06-27T14:00:00+01:00",
- "end": "2019-06-27T16:00:00+01:00",
- "email": "john.doe@gmail.com",
- "vehicle_reg": "TESTABC",
- "interval_count": 0,
- "id": 0,
- "rental": "short",
- "start_date": "2019-06-27",
- "start_time": "14:00",
- "end_date": "2019-06-28",
- "end_time": "16:00",
- "book_now": true,
- "skip_availability": true,
- "upgrade_booking": 0,
- "voucher_code": "string",
- "products": [
- {
- "id": "pd_01h77mehgx305sd67g21mrxag8",
- "key": "park-and-go-uber",
- "price": 0,
- "convenience_fee": 0,
- "product_data": {
- "pick_up": {
- "latitude": 51.515349490752726,
- "longitude": -0.14188575379675056
}, - "drop_off": {
- "latitude": 51.5024551107677,
- "longitude": -0.1411683541284915
}, - "pick_up_time": "2023-07-11T09:00:00+00:00",
- "fare_id": "string",
- "phone_number": "string",
- "product": {
- "id": "string",
- "name": "UberX",
- "capacity": 0,
}
}
}
], - "season_plan": "mon-sun"
}
{- "value": 0,
- "valueBeforeDiscount": 0,
- "serviceFee": 0.99,
- "serviceFeeBeforeDiscount": 0.99,
- "arrangementFee": 5,
- "deposit": 0,
- "discountedDeposit": 0,
- "additionalPayment": 0,
- "additionalData": { },
- "warning": "string",
- "currency": {
- "value": "GBP",
- "locale": "en_GB"
}, - "first_billing_date": "2020-11-24",
- "next_billing_date": "2020-12-24",
- "products": [
- {
- "id": "prod-1",
- "key": "variant-B",
- "quote": {
- "value": 0,
- "errors": true,
- "error": {
- "message": "key field is required",
- "code": "PRODUCT-QUOTE-ERROR",
- "type": "SERVICE"
}
}
}
], - "totalProductsValue": 0.99
}
space required | integer Example: 3798564 |
code | string Textual discount code |
id | integer Space ID |
reservation_id | integer Required unless |
quote | number <0.00> Required unless |
type | string Enum: "short" "long" Rental type of the booking |
vehicle_reg | string optional vrm |
start | string <YYYY-MM-DD HH:MM:SS> |
{- "code": "YPS10OFF",
- "id": 0,
- "reservation_id": 0,
- "quote": 0,
- "type": "short",
- "vehicle_reg": "string",
- "start": "string"
}
{- "price": {
- "new": 0,
- "old": 0,
- "serviceFee": 0.49,
- "arrangementFee": 5
}, - "currency": {
- "value": "GBP",
- "locale": "en_GB"
}, - "voucher": {
- "id": 0,
- "code": "YPS10",
- "name": "10%",
- "checkout_label": "string"
}
}
space required | integer Example: 3798564 |
amount | number <0.00> Total amount of all multi-day bookings |
{- "amount": 12.65
}
{- "serviceFee": 0.99,
- "currency": {
- "value": "GBP",
- "locale": "en_GB"
}
}
space required | integer Example: 3798564 |
Array of objects (MultiBookingsQuote) | |
book_now | boolean Allows to by-pass the availability checks |
{- "quotes": [
- {
- "quote_id": 1,
- "start": "2019-06-27T14:00:00+01:00",
- "end": "2019-06-27T16:00:00+01:00",
- "vehicle_reg": "TESTABC"
}, - {
- "quote_id": 2,
- "start": "2019-06-28T14:00:00+01:00",
- "end": "2019-06-28T16:00:00+01:00",
- "vehicle_reg": "TESTABC"
}
]
}
{- "quotes": [
- {
- "quote_id": 1,
- "data": {
- "value": 0,
- "valueBeforeDiscount": 0,
- "additionalData": { },
- "warning": "string",
- "products": [
- {
- "id": "prod-1",
- "key": "variant-B",
- "quote": {
- "value": 0,
- "errors": true,
- "error": {
- "message": "key field is required",
- "code": "PRODUCT-QUOTE-ERROR",
- "type": "SERVICE"
}
}
}
], - "totalProductsValue": 0.99
}, - "message": "Invalid date range!",
- "errors": true,
- "status_code": 422
}
], - "totalValue": 0,
- "totalValueBeforeDiscount": 0,
- "serviceFee": 0.99,
- "serviceFeeBeforeDiscount": 0.99,
- "currency": {
- "value": "GBP",
- "locale": "en_GB"
}, - "overallTotalProductsValue": 1.99
}
space required | integer Example: 3798564 |
terms_and_conditions_accepted required | boolean |
id | integer Space ID |
start | string <YYYY-MM-DDTHH:MM:SS+00:00> Required unless |
end | string <YYYY-MM-DDTHH:MM:SS+00:00> |
interval_count | integer Used for season tickets |
start_date | string <YYYY-MM-DD> Required unless |
start_time | string <HH:MM:SS> Required with |
end_date | string <YYYY-MM-DD> Required with |
end_time | string <HH:MM:SS> Required with |
Array of objects (MultiBookingsQuote) For multi-day bookings only | |
created_at | string <YYYY-MM-DD HH:MM:SS> |
retal | string Enum: "short" "long" |
upgrade_booking | integer |
vehicle_id | integer |
voucher_id | integer |
book_now | boolean Allows to bypass availability checks. Tags the booking as 'pay-by-phone'. Reserving runs the quoter - see /spaces/{space}/quote for explanation on how it affects the quoting. |
skip_rounding | boolean Allows to bypass time rounding to 30 minute intervals |
skip_availability | boolean Allows to bypass availability checks for non book-now reservations. Reserving runs the quoter - see /spaces/{space}/quote for explanation on how it affects the quoting. |
object | |
object | |
Array of objects (ProductQuote) Ancillary products to reserve | |
season_plan | string Enum: "mon-sun" "mon-fri" "any-three-days" Season plan for which to make a LT reservation. Ignored for ST bookings. |
{- "terms_and_conditions_accepted": true,
- "id": 0,
- "start": "2018-02-12T13:00:00+01:00",
- "end": "2018-02-12T14:00:00+01:00",
- "interval_count": 0,
- "start_date": "2018-02-12",
- "start_time": "13:00:00",
- "end_date": "2018-02-13",
- "end_time": "14:00:00",
- "reservations": [
- {
- "quote_id": 0,
- "start": "2021-07-06T10:30:00+01:00",
- "end": "2021-07-06T10:30:00+01:00",
- "vehicle_reg": "AB12 CDE",
- "products": [
- {
- "id": "pd_01h77mehgx305sd67g21mrxag8",
- "key": "park-and-go-uber",
- "price": 0,
- "convenience_fee": 0,
- "product_data": {
- "pick_up": {
- "latitude": 51.515349490752726,
- "longitude": -0.14188575379675056
}, - "drop_off": {
- "latitude": 51.5024551107677,
- "longitude": -0.1411683541284915
}, - "pick_up_time": "2023-07-11T09:00:00+00:00",
- "fare_id": "string",
- "phone_number": "string",
- "product": {
- "id": "string",
- "name": "UberX",
- "capacity": 0,
}
}
}
]
}
], - "created_at": "2018-02-12 14:00:00",
- "retal": "short",
- "upgrade_booking": 0,
- "vehicle_id": 0,
- "voucher_id": 0,
- "book_now": true,
- "skip_rounding": true,
- "skip_availability": true,
- "permit_address": {
- "address_1": "string",
- "address_2": "string",
- "city": "string",
- "postcode": "string",
- "display_name": "string"
}, - "user": {
- "first_name": "string",
- "last_name": "string",
- "mobile": 0,
- "email": "string",
- "vehicle": {
- "registration_number": "string",
- "reference": "string"
}, - "marketing_consent_given": true
}, - "products": [
- {
- "id": "pd_01h77mehgx305sd67g21mrxag8",
- "key": "park-and-go-uber",
- "price": 0,
- "convenience_fee": 0,
- "product_data": {
- "pick_up": {
- "latitude": 51.515349490752726,
- "longitude": -0.14188575379675056
}, - "drop_off": {
- "latitude": 51.5024551107677,
- "longitude": -0.1411683541284915
}, - "pick_up_time": "2023-07-11T09:00:00+00:00",
- "fare_id": "string",
- "phone_number": "string",
- "product": {
- "id": "string",
- "name": "UberX",
- "capacity": 0,
}
}
}
], - "season_plan": "string"
}
{- "billers": [
- {
- "name": "string",
- "slug": "string"
}
], - "reservation_id": 0,
- "quote_id": 0,
- "price": "2.56",
- "price_before_discount": "4.28",
- "arrangementFee": "5.00",
- "currency": {
- "value": "GBP",
- "locale": "en_GB"
}, - "products": [
- {
- "id": "prod-1",
- "key": "variant-B",
- "quote": {
- "value": 0,
- "errors": true,
- "error": {
- "message": "key field is required",
- "code": "PRODUCT-QUOTE-ERROR",
- "type": "SERVICE"
}
}
}
], - "totalProductsValue": 0.99
}
space required | integer Example: 3798564 |
id | integer Space ID |
reservation_id | integer Required unless |
Array of objects (MultiBookingsPurchaseItem) Required for multi-day bookings | |
skip | boolean Allows to skip the payment |
biller | string Required with |
token | string Required unless |
card_id | string Required unless |
book_now | boolean Allows to bypass availability checks |
upgrade_booking | integer Required upgrading a monthly booking to season ticket |
voucher_id | integer |
skip_availability | boolean Allows to bypass availability checks. Doesn't seem to be currently doing anything more than |
awc | string Awin checksum. Optional. |
{- "id": 0,
- "reservation_id": 0,
- "reservations": [
- {
- "reservation_id": 0
}
], - "skip": true,
- "biller": "string",
- "token": "string",
- "card_id": "string",
- "book_now": true,
- "upgrade_booking": 0,
- "voucher_id": 0,
- "skip_availability": true,
- "awc": "string"
}
{- "id": 0,
- "status": "string",
- "confirmed": true,
- "value": "4.28",
- "price": 0,
- "service_fee": 0,
- "price_paid_with_service_fee": 0,
- "currency": {
- "value": "GBP",
- "locale": "en_GB"
}, - "start": "2018-09-13T10:30:00+01:00",
- "end": "2018-09-13T10:30:00+01:00",
- "created_at": "2018-09-13T10:30:00+01:00",
- "duration": {
- "days": 0,
- "hours": 0
}, - "has_review": true,
- "review_required": true,
- "post_booking_info": "string",
- "access": {
- "qr_code": "string",
- "access_code": "string",
- "anpr": "string",
- "credit_card": "string"
}, - "show_landlord": true,
- "commission": 0,
- "barcode": "string",
- "cancelled_at": "2018-09-13T10:30:00+01:00",
- "term": "string",
- "calendar_link": "string",
- "billing_interval_count": 0,
- "next_billing_date": "1st Jan 2020",
- "horizon_barcode": "string",
- "is_pay_by_mobile": true,
- "qrCode": "string",
- "group_booking_id": 0,
- "states": {
- "cancel_booking": "ALLOW_ALL",
- "update_start_date": "ALLOW_ALL",
- "update_end_date": "ALLOW_ALL",
- "change_vrn": "ALLOW_ALL",
- "end_long_term": {
- "allowed_to_end": "ALLOW_ALL",
- "min_date": "2022-05-09",
- "max_date": "2022-11-05"
}
}, - "products": {
- "data": [
- {
- "product_id": "string",
- "product_key": "string",
- "purchased_product_id": "string",
- "name": "string",
- "price": "0.99",
- "convenience_fee": "0.99",
- "paid_at": "2023-01-03T15:53:00+00:00",
- "refunded_at": "2023-01-03T15:53:00+00:00",
- "cancelable": true,
- "editable": true,
- "refundable_product": true,
- "priority_product": true
}
]
}, - "totalProductsValue": 0.99,
- "season_plan": "mon-sun",
- "space": {
- "id": 0,
- "title": "string",
- "location": {
- "lat": 52.123456,
- "lng": 1.123456
}, - "address": {
- "address": "string",
- "city": "string",
- "postcode": "string"
}, - "currency": {
- "locale": "en_GB",
- "value": "GBP"
}, - "landlord": {
- "id": 123456,
- "email": "email@me.com",
- "first_name": "John",
- "last_name": "Doe",
- "mobile": "07711223344",
- "profile_picture_url": "https://yourparkingspace.co.uk/file/small/b17fe5308f4dbb74d4a2a8378bd7fed9/20161014_140544.jpeg",
- "sms_alerts_enabled": 1
}, - "allow_ending_lt_bookings": true,
- "what_three_words": {
- "label": "North Street entrance",
- "words": "robin.likes.worms",
}, - "site_id": 0,
- "airport_space": true,
- "airport_code": "MAN",
- "airport_name": "Manchester Airport"
}, - "arrangement_fee": 5
}
space required | integer Example: 3798564 |
string | |
number | string Phone number |
name | string |
radius | number |
{- "email": "string",
- "number": "string",
- "name": "string",
- "radius": 0
}
space required | integer Example: 3798564 |
booking_id | integer |
comment | string |
rating | integer |
{- "booking_id": 0,
- "comment": "string",
- "rating": 0
}
{- "id": 0,
- "name": "string",
- "rating": 0,
- "comment": "string",
- "created_at": "2010-01-01T09:00:00+00:00"
}
Get all space owner's locations.
exclude | string Example: exclude=landlord,image_url Optional - allows to exclude some data from results. Usage and possible values - URL?exclude=address,landlord,image_url |
space_ids | string Example: space_ids=123456,345678 Optional - comma separated list of space ids to allow filtering |
order_direction | string Example: order_direction=desc Optional - order direction of updated date |
per_page | integer Example: per_page=30 Optional - number of items to return per page |
paginate | boolean Example: paginate=true Optional - whether to return all results or use pagination |
{- "data": [
- {
- "id": 0,
- "title": "string",
- "image_url": "string",
- "landlord": {
- "id": 0,
- "first_name": "string",
- "last_name": "string",
- "email": "string",
- "mobile": "string",
- "sms_alerts_enabled": 1,
- "profile_image_url": "string"
}, - "address": {
- "address": "string",
- "postcode": "string",
- "city": "string"
}
}
]
}
lat | number <double> |
lng | number <double> |
type | string |
{- "lat": 0.1,
- "lng": 0.1,
- "type": "string"
}
{- "data": {
- "hourly": {
- "base": 0.1,
- "commission": 0.1
}, - "daily": {
- "base": 0.1,
- "commission": 0.1
}, - "monthly": {
- "base": 0.1,
- "commission": 0.1
}, - "sampleSizes": {
- "price_hourly": 0.1,
- "price_daily": 0.1,
- "price_monthly": 0.1
}, - "currency": {
- "value": "GBP",
- "locale": "en_GB"
}
}
}
Provides space pricing statistics for daily and hour bookings for spaces in radius of the provided lat and lng
lat required | string Latitude |
lng required | string Longitude |
{- "daily": {
- "min": 0.1,
- "max": 0.1,
- "average": 0.1
}, - "monthly": {
- "min": 0.1,
- "max": 0.1,
- "average": 0.1
}
}
Provides basic space and review statistics spaces in radius of the provided lat and lng
lat required | string Latitude |
lng required | string Longitude |
search_radius | integer Default: 10 Radius in miles to use for space related statistics. |
review_radius | integer Default: 10 Radius in miles to use for review related statistics. |
{- "spaces_count": 0,
- "reviews_count": 0.1,
- "reviews_average_rating": 0.1
}
Provides 20 most recent approved and Trustpilot eligible reviews for spaces within the given radius of the given lat and lng
lat required | string Latitude |
lng required | string Longitude |
radius | integer Default: 10 |
[- {
- "id": 0,
- "name": "string",
- "rating": 0,
- "comment": "string",
- "created_at": "2010-01-01T09:00:00+00:00"
}
]
Provides event information from Ticketmaster for events in radius of the provided lat and lng
lat required | string Latitude |
lng required | string Longitude |
amount | number Amount of events to return (defaults to 5 if not provided) |
radius | number Radius in miles from lat and lng to cover (defaults to 7 if not provided) |
{- "data": [
- {
- "name": "string",
- "url": "string",
- "date": "string"
}
]
}
Provides pricing statistics, parking statistics, location reviews, and nearby events for spaces within the radius of the provided lat and lng
lat required | string Latitude |
lng required | string Longitude |
search_radius | integer Default: 10 Radius in miles to use for space related statistics. Used in parking statistics. |
review_radius | integer Default: 10 Radius in miles to use for review related statistics. Used in parking statistics. |
radius | number Radius in miles. (defaults to 7, for nearby events, and 10, for location reviews, if not provided) Used in location reviews and nearby events. |
amount | number Amount of events to return (defaults to 5 if not provided). Used in nearby events. |
[- null
]
object | |
available_spaces | integer Minimum value of 1 |
features | Array of integers Array of allowed space feature IDs |
space_size | Array of integers Array of allowed space size IDs |
available_from | string <Y-m-d\TH:i:sP> |
amount_of_notice_required | integer |
price_hourly | number |
price_daily | number Required for space that allows short-term bookings |
price_monthly | number Required for space that allows long-term bookings |
object Either all properties or no properties required | |
listing_progress | object |
show_generated_desc | boolean |
show_generated_post_booking_desc | boolean |
overnight_booking | boolean |
access_method | string security-fob or pincode |
access_pin | string Required if access_method=pincode |
access_key_info | string |
listing_completed_at | string <Y-m-d\TH:i:sP> |
additional_information | string |
additional_post_booking_info | string |
max_access_height | string |
permit | string |
allocated | boolean |
allocated_info | string |
upper_period_limit | integer |
dynamic_pricing | boolean |
object | |
enabled | boolean |
options | object |
keep_bookings | boolean |
object |
{- "address": {
- "lat": 0,
- "lng": 0,
- "postcode": "string"
}, - "available_spaces": 0,
- "features": [
- 123,
- 456
], - "space_size": [
- 123,
- 456
], - "available_from": "2010-01-01T09:00:00+00:00",
- "amount_of_notice_required": 0,
- "price_hourly": 0,
- "price_daily": 0,
- "price_monthly": 0,
- "streetview": {
- "latitude": 0,
- "longitude": 0,
- "heading": 0,
- "pitch": 0
}, - "listing_progress": { },
- "show_generated_desc": true,
- "show_generated_post_booking_desc": true,
- "overnight_booking": true,
- "access_method": "string",
- "access_pin": "string",
- "access_key_info": "string",
- "listing_completed_at": "2010-01-01T09:00:00+00:00",
- "additional_information": "string",
- "additional_post_booking_info": "string",
- "max_access_height": "string",
- "permit": "string",
- "allocated": true,
- "allocated_info": "string",
- "upper_period_limit": 0,
- "dynamic_pricing": true,
- "rental_types": {
- "daily": true,
- "monthly": true
}, - "enabled": true,
- "options": { },
- "keep_bookings": true,
- "seo": {
- "city": "string",
- "postcode_district": "string",
- "street": "string",
- "town": "string"
}
}
[- {
- "id": 0,
- "title": "string",
- "description": "string",
- "address": {
- "address_1": "string",
- "address_2": "string",
- "city": "string",
- "display_name": "string",
- "postcode": "string"
}, - "features": [
- "string"
], - "additional_information": "string",
- "additional_post_booking_info": "string",
- "post_booking_info": "string",
- "rental_terms": "string",
- "image_url": "string",
- "space_type": "string",
- "space_size": "string",
- "max_access_height": 0,
- "access_pin": "string",
- "access_key_info": "string",
- "permit": "string",
- "allocated": 0,
- "allocated_info": "string",
- "enabled": true,
- "listing_completed_at": "2010-01-01T09:00:00+00:00",
- "waiting_list": true,
- "rewards": true,
- "overnight_booking": true,
- "schedule": "string",
- "schedule_time_start": "09:00:00",
- "schedule_time_end": "09:00:00",
- "follow_up": 0,
- "position": {
- "lat": 0,
- "lng": 0
}, - "available_spaces": 0,
- "amount_of_notice_required": 0,
- "available_from": "2010-01-01T09:00:00+00:00",
- "price_hourly": 0,
- "price_daily": 0,
- "price_monthly": 0,
- "currency": {
- "value": "GBP",
- "locale": "en_GB"
}, - "upper_period_limit": 0,
- "listing_progress": [
- "string"
], - "dynamic_pricing": 0,
- "access_method": "string",
- "streetview": {
- "latitude": 0,
- "longitude": 0,
- "heading": 0,
- "pitch": 0
}, - "rental_types": {
- "daily": true,
- "monthly": true
}
}
]
space required | integer Example: 12345 |
{- "id": 0,
- "title": "string",
- "description": "string",
- "address": {
- "address_1": "string",
- "address_2": "string",
- "city": "string",
- "display_name": "string",
- "postcode": "string"
}, - "features": [
- "string"
], - "additional_information": "string",
- "additional_post_booking_info": "string",
- "post_booking_info": "string",
- "rental_terms": "string",
- "image_url": "string",
- "space_type": "string",
- "space_size": "string",
- "max_access_height": 0,
- "access_pin": "string",
- "access_key_info": "string",
- "permit": "string",
- "allocated": 0,
- "allocated_info": "string",
- "enabled": true,
- "listing_completed_at": "2010-01-01T09:00:00+00:00",
- "waiting_list": true,
- "rewards": true,
- "overnight_booking": true,
- "schedule": "string",
- "schedule_time_start": "09:00:00",
- "schedule_time_end": "09:00:00",
- "follow_up": 0,
- "position": {
- "lat": 0,
- "lng": 0
}, - "available_spaces": 0,
- "amount_of_notice_required": 0,
- "available_from": "2010-01-01T09:00:00+00:00",
- "price_hourly": 0,
- "price_daily": 0,
- "price_monthly": 0,
- "currency": {
- "value": "GBP",
- "locale": "en_GB"
}, - "upper_period_limit": 0,
- "listing_progress": [
- "string"
], - "dynamic_pricing": 0,
- "access_method": "string",
- "streetview": {
- "latitude": 0,
- "longitude": 0,
- "heading": 0,
- "pitch": 0
}, - "rental_types": {
- "daily": true,
- "monthly": true
}
}
space required | integer Example: 12345 |
object | |
available_spaces | integer Minimum value of 1 |
features | Array of integers Array of allowed space feature IDs |
space_size | Array of integers Array of allowed space size IDs |
available_from | string <Y-m-d\TH:i:sP> |
amount_of_notice_required | integer |
price_hourly | number |
price_daily | number Required for space that allows short-term bookings |
price_monthly | number Required for space that allows long-term bookings |
object Either all properties or no properties required | |
listing_progress | object |
show_generated_desc | boolean |
show_generated_post_booking_desc | boolean |
overnight_booking | boolean |
access_method | string security-fob or pincode |
access_pin | string Required if access_method=pincode |
access_key_info | string |
listing_completed_at | string <Y-m-d\TH:i:sP> |
additional_information | string |
additional_post_booking_info | string |
max_access_height | string |
permit | string |
allocated | boolean |
allocated_info | string |
upper_period_limit | integer |
dynamic_pricing | boolean |
object | |
enabled | boolean |
options | object |
keep_bookings | boolean |
object |
{- "address": {
- "lat": 0,
- "lng": 0,
- "postcode": "string"
}, - "available_spaces": 0,
- "features": [
- 123,
- 456
], - "space_size": [
- 123,
- 456
], - "available_from": "2010-01-01T09:00:00+00:00",
- "amount_of_notice_required": 0,
- "price_hourly": 0,
- "price_daily": 0,
- "price_monthly": 0,
- "streetview": {
- "latitude": 0,
- "longitude": 0,
- "heading": 0,
- "pitch": 0
}, - "listing_progress": { },
- "show_generated_desc": true,
- "show_generated_post_booking_desc": true,
- "overnight_booking": true,
- "access_method": "string",
- "access_pin": "string",
- "access_key_info": "string",
- "listing_completed_at": "2010-01-01T09:00:00+00:00",
- "additional_information": "string",
- "additional_post_booking_info": "string",
- "max_access_height": "string",
- "permit": "string",
- "allocated": true,
- "allocated_info": "string",
- "upper_period_limit": 0,
- "dynamic_pricing": true,
- "rental_types": {
- "daily": true,
- "monthly": true
}, - "enabled": true,
- "options": { },
- "keep_bookings": true,
- "seo": {
- "city": "string",
- "postcode_district": "string",
- "street": "string",
- "town": "string"
}
}
{- "id": 0,
- "title": "string",
- "description": "string",
- "address": {
- "address_1": "string",
- "address_2": "string",
- "city": "string",
- "display_name": "string",
- "postcode": "string"
}, - "features": [
- "string"
], - "additional_information": "string",
- "additional_post_booking_info": "string",
- "post_booking_info": "string",
- "rental_terms": "string",
- "image_url": "string",
- "space_type": "string",
- "space_size": "string",
- "max_access_height": 0,
- "access_pin": "string",
- "access_key_info": "string",
- "permit": "string",
- "allocated": 0,
- "allocated_info": "string",
- "enabled": true,
- "listing_completed_at": "2010-01-01T09:00:00+00:00",
- "waiting_list": true,
- "rewards": true,
- "overnight_booking": true,
- "schedule": "string",
- "schedule_time_start": "09:00:00",
- "schedule_time_end": "09:00:00",
- "follow_up": 0,
- "position": {
- "lat": 0,
- "lng": 0
}, - "available_spaces": 0,
- "amount_of_notice_required": 0,
- "available_from": "2010-01-01T09:00:00+00:00",
- "price_hourly": 0,
- "price_daily": 0,
- "price_monthly": 0,
- "currency": {
- "value": "GBP",
- "locale": "en_GB"
}, - "upper_period_limit": 0,
- "listing_progress": [
- "string"
], - "dynamic_pricing": 0,
- "access_method": "string",
- "streetview": {
- "latitude": 0,
- "longitude": 0,
- "heading": 0,
- "pitch": 0
}, - "rental_types": {
- "daily": true,
- "monthly": true
}
}
space required | integer Example: 12345 |
from | string <Y-m-d> Required without recurs_on |
to | string <Y-m-d> Required without recurs_on |
recurs_on | string monday, tuesday, wednesday, ..., sunday |
available_spaces | integer |
hourly_price | number |
daily_price | number |
schedule_time_start | string <H:i:s> |
schedule_time_end | string <H:i:s> |
available | boolean |
notes | string |
{- "from": "2020-01-01",
- "to": "2020-01-01",
- "recurs_on": "string",
- "available_spaces": 0,
- "hourly_price": 0,
- "daily_price": 0,
- "schedule_time_start": "09:00:00",
- "schedule_time_end": "09:00:00",
- "available": true,
- "notes": "string"
}
space required | integer Example: 12345 |
[- {
- "available_spaces": 0,
- "daily_price": 0,
- "hourly_price": 0,
- "currency": {
- "value": "GBP",
- "locale": "en_GB"
}, - "schedule_time_start": "09:00:00",
- "schedule_time_end": "09:00:00",
- "available": true,
- "notes": "string",
- "recurs_on": "string",
- "date": "2020-01-01"
}
]
space required | integer Example: 12345 |
month required | string <Y-m> Example: 2020-01-01 Not required, will default to current month if not provided |
[- {
- "available_spaces": 0,
- "daily_price": 0,
- "hourly_price": 0,
- "currency": {
- "value": "GBP",
- "locale": "en_GB"
}, - "schedule_time_start": "09:00:00",
- "schedule_time_end": "09:00:00",
- "available": true,
- "notes": "string",
- "recurs_on": "string",
- "date": "2020-01-01"
}
]
space required | integer Example: 12345 |
add_photo_request | string <binary> |
{- "id": 0,
- "default": true,
- "small": "string",
- "medium": "string",
- "large": "string",
- "thumbnail": "string",
- "is_streetview": true,
- "order": 0
}
space required | integer Example: 12345 |
photo required | integer Example: 12345 |
{- "id": 0,
- "default": true,
- "small": "string",
- "medium": "string",
- "large": "string",
- "thumbnail": "string",
- "is_streetview": true,
- "order": 0
}
[- {
- "id": 0,
- "title": "string",
- "description": "string",
- "address": {
- "address_1": "string",
- "address_2": "string",
- "city": "string",
- "display_name": "string",
- "postcode": "string"
}, - "features": [
- "string"
], - "additional_information": "string",
- "additional_post_booking_info": "string",
- "post_booking_info": "string",
- "rental_terms": "string",
- "image_url": "string",
- "space_type": "string",
- "space_size": "string",
- "max_access_height": 0,
- "access_pin": "string",
- "access_key_info": "string",
- "permit": "string",
- "allocated": 0,
- "allocated_info": "string",
- "enabled": true,
- "listing_completed_at": "2010-01-01T09:00:00+00:00",
- "waiting_list": true,
- "rewards": true,
- "overnight_booking": true,
- "schedule": "string",
- "schedule_time_start": "09:00:00",
- "schedule_time_end": "09:00:00",
- "follow_up": 0,
- "position": {
- "lat": 0,
- "lng": 0
}, - "available_spaces": 0,
- "amount_of_notice_required": 0,
- "available_from": "2010-01-01T09:00:00+00:00",
- "price_hourly": 0,
- "price_daily": 0,
- "price_monthly": 0,
- "currency": {
- "value": "GBP",
- "locale": "en_GB"
}, - "upper_period_limit": 0,
- "listing_progress": [
- "string"
], - "dynamic_pricing": 0,
- "access_method": "string",
- "streetview": {
- "latitude": 0,
- "longitude": 0,
- "heading": 0,
- "pitch": 0
}, - "rental_types": {
- "daily": true,
- "monthly": true
}
}
]
Submit a vehicle validation request
vrn required | string Vehicle registration number |
validate_for required | string Validation period |
{- "vrn": "YPS001",
- "validate_for": "3 hours"
}
Cancel a customer PCN
pcn_number required | string PCN number |
customer_name required | string Customer name |
customer_email required | string Customer email address |
staff_name required | string Name of the member of staff submitting the request |
cancellation_reason required | string Reason for cancelling the customer's PCN |
space_id required | integer ID of location (space) submitting the request |
{- "pcn_number": "AB12345",
- "customer_name": "John Doe",
- "customer_email": "john.doe@email.com",
- "staff_name": "Jane Doe",
- "cancellation_reason": "Vehicle registration was entered incorrectly",
- "space_id": 1234
}
[- {
- "id": 0,
- "subdomain": "string",
- "company_name": "string",
- "website_url": "string",
- "phone": "string",
- "email": "string",
- "facebook": "string",
- "twitter": "string",
- "intro": "string",
- "background_colour": "string",
- "icon_colour": "string",
- "foreground_colour": "string",
- "menu_colour": "string",
- "logo_url": "string"
}
]
Creates a new whitelabel instance with branding and five dummy spaces
brandable_id | integer |
brandable_type | string |
company_name | string |
website_url | string |
phone | string |
string | |
string | |
string | |
intro | string |
background_colour | string |
dark_background_colour | string |
icon_colour | string |
foreground_colour | string |
dark_foreground_colour | string |
logo_id | integer |
text_colour | string |
privacy_policy_id | integer |
menu_colour | string |
subdomain | string |
{- "brandable_id": 0,
- "brandable_type": "string",
- "company_name": "string",
- "website_url": "string",
- "phone": "string",
- "email": "string",
- "facebook": "string",
- "twitter": "string",
- "intro": "string",
- "background_colour": "string",
- "dark_background_colour": "string",
- "icon_colour": "string",
- "foreground_colour": "string",
- "dark_foreground_colour": "string",
- "logo_id": 0,
- "text_colour": "string",
- "privacy_policy_id": 0,
- "menu_colour": "string",
- "subdomain": "string"
}
[- {
- "id": 0,
- "subdomain": "string",
- "company_name": "string",
- "website_url": "string",
- "phone": "string",
- "email": "string",
- "facebook": "string",
- "twitter": "string",
- "intro": "string",
- "background_colour": "string",
- "icon_colour": "string",
- "foreground_colour": "string",
- "menu_colour": "string",
- "logo_url": "string"
}
]
instance required | integer Example: 12345 |
{- "id": 0,
- "subdomain": "string",
- "company_name": "string",
- "website_url": "string",
- "phone": "string",
- "email": "string",
- "facebook": "string",
- "twitter": "string",
- "intro": "string",
- "background_colour": "string",
- "icon_colour": "string",
- "foreground_colour": "string",
- "menu_colour": "string",
- "logo_url": "string"
}
instance required | integer Example: 12345 |
brandable_id | integer |
brandable_type | string |
company_name | string |
website_url | string |
phone | string |
string | |
string | |
string | |
intro | string |
background_colour | string |
dark_background_colour | string |
icon_colour | string |
foreground_colour | string |
dark_foreground_colour | string |
logo_id | integer |
text_colour | string |
privacy_policy_id | integer |
menu_colour | string |
subdomain | string |
{- "brandable_id": 0,
- "brandable_type": "string",
- "company_name": "string",
- "website_url": "string",
- "phone": "string",
- "email": "string",
- "facebook": "string",
- "twitter": "string",
- "intro": "string",
- "background_colour": "string",
- "dark_background_colour": "string",
- "icon_colour": "string",
- "foreground_colour": "string",
- "dark_foreground_colour": "string",
- "logo_id": 0,
- "text_colour": "string",
- "privacy_policy_id": 0,
- "menu_colour": "string",
- "subdomain": "string"
}
{- "id": 0,
- "subdomain": "string",
- "company_name": "string",
- "website_url": "string",
- "phone": "string",
- "email": "string",
- "facebook": "string",
- "twitter": "string",
- "intro": "string",
- "background_colour": "string",
- "icon_colour": "string",
- "foreground_colour": "string",
- "menu_colour": "string",
- "logo_url": "string"
}
instance required | integer Example: 12345 |
logo | string <binary> |
{- "id": 0,
- "subdomain": "string",
- "company_name": "string",
- "website_url": "string",
- "phone": "string",
- "email": "string",
- "facebook": "string",
- "twitter": "string",
- "intro": "string",
- "background_colour": "string",
- "icon_colour": "string",
- "foreground_colour": "string",
- "menu_colour": "string",
- "logo_url": "string"
}
Returns all active bookings for the enforcement company location
location required | integer Example: 12345 |
vrn | string Example: vrn=AB1 2CD |
from | string <Y-m-d H:i:s> Example: from=2010-01-02 09:00:00 Start date for bookings. Will default to current time if not provided |
to | string <Y-m-d H:i:s> Example: to=2010-01-03 09:00:00 End date for bookings. Will default to current time if not provided |
[- [
- {
- "id": 0,
- "vrm": "string",
- "start": "2010-01-01T09:00:00+00:00",
- "end": "2010-01-01T09:00:00+00:00"
}
]
]
Returns all upcoming bookings within next seven days for the enforcement company location
location required | integer Example: 12345 |
vrn | string Example: vrn=AB1 2CD |
[- [
- {
- "id": 0,
- "vrm": "string",
- "start": "2010-01-01T09:00:00+00:00",
- "end": "2010-01-01T09:00:00+00:00"
}
]
]
Get information for a booking for an enforcement company location, determined via OAuth client ID
reservation required | integer Example: 12345 |
[- [
- {
- "id": 0,
- "vrm": "string",
- "start": "2010-01-01T09:00:00+00:00",
- "end": "2010-01-01T09:00:00+00:00"
}
]
]
Returns mobile kiosk configuration items for a given space
spaceId required | integer Example: 12345 |
{- "post_pay": true,
- "kiosk_enabled": true,
- "tariffs": [
- {
- "length": 0,
- "display": "string",
- "amount": 0
}
], - "site_id": 1000,
- "anpr_present": true,
- "vrn_suggest": true,
- "discount_codes": true,
- "web_theme": [
- {
- "brand_name": "YourParkingSpace",
- "logo": "string",
- "nav_background_colour": "string",
- "nav_text_colour": "string",
- "background_colour": "string",
- "background_image": "string",
- "heading_text_colour": "string",
- "primary_cta_background_colour": "string",
- "primary_cta_label_colour": "string",
- "secondary_cta_background_colour": "string",
- "secondary_cta_label_colour": "string",
- "primary_text_colour": "string",
- "interactive_text_colour": "string",
- "use_camera_to_scan_colour": "string",
- "payment_success_background": "string",
- "homepage_cta_background_colour": "string",
- "homepage_cta_label_colour": "string",
- "tick_icon_colour": "string",
- "terms_and_conditions": "string",
- "app_store_url": "string",
- "play_store_url": "string",
- "source": "kiosk-web"
}
], - "currency": [
- {
- "value": "GBP",
- "locale": "en_GB",
- "short_code": "GB"
}
], - "discount_codes_enabled": true,
- "post_payment_promotion": 0,
- "language": "en",
- "old_ui_displayed": true,
- "old_ui_display_durations": [
- 1,
- 3,
- 5
], - "use_availability": true,
- "is_horizon": true,
- "is_horizon_pre_book": true,
- "custom_text_enabled": true,
- "custom_text": {
- "text": "This is my homepage text.",
- "foreground_colour": "#93C62E",
- "background_colour": "#000000"
}
}
spaceId required | integer Example: 12345 |
vehicle_reg required | string |
length required | integer |
{- "vehicle_reg": "string",
- "length": 0
}
{- "parking_duration_label": "2 Hours",
- "start_time_display": "01/01/2020 09:00AM",
- "end_time_display": "01/01/2020 11:00AM",
- "start_time": "2020-01-01T09:00:00",
- "end_time": "2020-01-01T11:00:00",
- "total_amount_due": "5.00"
}
spaceId required | integer Example: 12345 |
vehicle_reg | string |
end_time | string |
start_time | string |
token | string |
charity_product_id | string or null The product id of the chosen charity product |
charity_product_key | string or null The product key of the chosen charity product |
{- "vehicle_reg": "string",
- "end_time": "string",
- "start_time": "string",
- "token": "string",
- "charity_product_id": "pd_ypsuk_01hw5frvwqjgyr5bajfqheqwga",
- "charity_product_key": "gosh-charitable-donation-50"
}
{- "booking_id": 0
}
Returns booking duration and total cost information
spaceId required | integer Example: 12345 |
vehicle_reg | string |
end_time | string |
start_time | string |
{- "vehicle_reg": "string",
- "end_time": "string",
- "start_time": "string"
}
{- "parking_duration": 2,
- "parking_duration_label": "2 Hours",
- "start_time_display": "01/01/2020 09:00AM",
- "end_time_display": "01/01/2020 11:00AM",
- "start_time": "2020-01-01T09:00:00",
- "end_time": "2020-01-01T11:00:00",
- "service_fee": 0.49,
- "total_amount_due": "5.49",
- "total_before_service_fee": "5.00",
- "currency": {
- "value": "GBP",
- "locale": "en_GB",
- "short_code": "GB"
}, - "registration_paid_recently": false
}
Returns booking duration and total cost information
spaceId required | integer Example: 12345 |
vehicle_reg | string |
end_time | string |
{- "vehicle_reg": "NG52CXK",
- "end_time": "2022-09-30T12:50:00"
}
{- "parking_duration": 2,
- "parking_duration_label": "2 Hours",
- "start_time_display": "01/01/2020 09:00AM",
- "end_time_display": "01/01/2020 11:00AM",
- "start_time": "2020-01-01T09:00:00",
- "end_time": "2020-01-01T11:00:00",
- "service_fee": 0.49,
- "total_amount_due": "5.49",
- "total_before_service_fee": "5.00",
- "currency": {
- "value": "GBP",
- "locale": "en_GB",
- "short_code": "GB"
}, - "registration_paid_recently": false
}
Links the booking and payment to either an existing or new user. Returns voucher code if new user was created, or if generate_promo is true
booking_id required | integer |
email required | string |
first_name | string |
last_name | string |
generate_promo | boolean |
{- "booking_id": 0,
- "email": "string",
- "first_name": "string",
- "last_name": "string",
- "generate_promo": true
}
{- "new_user": true,
- "voucher_code": "string"
}
Checks VRN against ANPR records and returns post payment information if valid
spaceId required | integer Example: 12345 |
vehicle_reg required | string |
{- "vehicle_reg": "string"
}
{- "parking_duration": 2,
- "parking_duration_label": "2 Hours",
- "start_time_display": "01/01/2020 09:00AM",
- "end_time_display": "01/01/2020 11:00AM",
- "start_time": "2020-01-01T09:00:00",
- "end_time": "2020-01-01T11:00:00",
- "service_fee": 0.49,
- "total_amount_due": "5.49",
- "total_before_service_fee": "5.00",
- "currency": {
- "value": "GBP",
- "locale": "en_GB",
- "short_code": "GB"
}, - "registration_paid_recently": false
}
Returns a list of EV connector types for the search filters
image_size | string Example: image_size=mdpi Image size. One off |
[- {
- "slug": "string",
- "name": "string",
- "images": {
}
}
]
Fetches charge point data from the database. Always returns connector status as unknown
.
device_id required | string Example: device_id=4fc7fd6e1cf252fb1a7403a8b1ce0476 Charge point device ID |
[- {
- "device_name": "Jet Oldfiled Road",
- "device_id": "4fc7fd6e1cf252fb1a7403a8b1ce0476",
- "status": "available",
- "device_network": {
- "name": "The GeniePoint Network",
- "access_types": [
- "App",
- "RFID"
],
}, - "lat": "53.477996",
- "lng": "-2.268360",
- "connectors": {
- "data": [
- {
- "connector_id": 1,
- "type": "Commando",
- "power": "22.0 kW",
- "status": "available",
- "tethered": true
}
]
}
}
]
In the background, calls UK Charge Point Registry API and returns current data for given charge point
device_id required | string Example: device_id=4fc7fd6e1cf252fb1a7403a8b1ce0476 Charge point device ID |
[- {
- "connector_id": 1,
- "type": "Commando",
- "power": "22.0 kW",
- "status": "available",
- "tethered": true
}
]
Validates given email address and checks that it's not been taken yet
email required | string |
{- "email": "john.doe@email.con"
}
{- "email": "john.doe@email.com"
}
Creates user account and marks it as 'AutoPay enabled'
email required | string |
mobile required | string |
password required | string |
{- "email": "john.doe@email.com",
- "mobile": 7711223344,
- "password": "4Oyd6$Kx63a"
}
{- "id": 321456,
- "email": "john.doe@email.com",
- "mobile": 7711223344
}
Searches for given VRN in UK Vehicle Data API and returns vehicle data, if found
vrn required | string |
include | string |
{- "vrn": "YPS123",
- "include": "vehicle_data"
}
{- "id": 1,
- "reference": "M6 SOJ",
- "registration_number": "M6SOJ",
- "default": false,
- "vehicle_data": {
- "make": "Morris Minor",
- "model": "Minor Series II",
- "colour": "Beige",
- "mot_expires_at": "2022-04-17",
- "ved_expires_at": "2023-02-01",
- "vehicle_data_refresh_allowed": true,
- "days_until_next_refresh": 7,
- "last_refreshed_at": "2024-01-24 13:50:04"
}
}
Returns some user's details, vehicles and payment cards
{- "id": 789987,
- "first_name": "John",
- "last_name": "Doe",
- "email": "john.doe@email.com",
- "vehicles": {
- "data": [
- {
- "id": 456321,
- "auto_pay_enabled": true,
- "registration_number": "YPS123",
- "make": "Morris Minor",
- "model": "Minor Series II"
}
]
}, - "cards": {
- "data": [
- {
- "id": 357951,
- "brand": "visa",
- "reference": "xxxx-xxxx-xxxx-4242",
- "default": true
}
]
}
}
Saves AutoPay settings for the authenticated user
vehicle_id required | integer |
enabled required | boolean |
ignore_local_anpr | boolean Local dev only - allows to test without having to set up ANPR service locally |
{- "vehicle_id": 456321,
- "enabled": true,
- "ignore_local_anpr": true
}
name required | string Name of person submitting form. |
subject required | string Subject to which enquiry relates. See |
email required | string Email address of person submitting form. |
phone | string Optional. |
support_type required | string Enum: "Driver" "Space owner/Partner" |
booking_id | integer Required for these subjects
|
company | string |
text required | string Body of text containing enquiry. |
booking_method | string Enum: "Auto Pay" "Kiosk" "Website or App" Required when |
refund_reason | string Required when Possible values when
Possible values when
Possible values when
|
unable_to_park_sub_reason | string Required when
Possible values:
|
supporting_image | string <binary> Optional. An array of files (jpg, png, pdf, jpeg) max 10MB. |
pcn_reference_number | string Only required when |
enforcement_company | string Only required when |
vehicle_registration | string Only required when |
reason_for_appeal | string Only required when |
parking_location | string Required when |
payment_time | string Required when |
payment_amount | string Required when |
last_4_digits | string Required when |
card_expiration | string Required when |
string | |
lat | number |
lng | number |
number_of_spaces | integer |
name | string |
phone | string |
search_term | string |
{- "email": "string",
- "lat": 0,
- "lng": 0,
- "number_of_spaces": 0,
- "name": "string",
- "phone": "string",
- "search_term": "string"
}
email required | string |
notification_type required | string |
unsubscribe_from | Array of strings |
{- "email": "john.doe@laravel.com",
- "notification_type": "booking-reminder-tenant",
- "unsubscribe_from": [
- "email",
- "sms"
]
}
email required | string |
all required | boolean |
lnId | integer |
{- "email": "john.doe@laravel.com",
- "all": false,
- "lnId": 182594
}
Return IDs of spaces which should be indexed by external search engines
country_code | string Example: country_code=IRL 3 character ISO country code. Defaults to GBR if not provided. |
{- "space_ids": [
- 0
]
}
Returns SEO-ready paths of spaces which should be indexed by external search engines
country_code | string Example: country_code=IRL 3 character ISO country code. Defaults to GBR if not provided. |
{- "space_paths": [
- "/london/WC2B/theater-street-20482100"
]
}
message required | string |
level required | string |
logger | string |
platform | string |
breadcrumbs | Array of strings |
request | Array of strings |
tags | Array of strings |
context | Array of strings |
contexts | Array of strings |
{- "message": "string",
- "level": "string",
- "logger": "string",
- "platform": "string",
- "breadcrumbs": [
- "string"
], - "request": [
- "string"
], - "tags": [
- "string"
], - "context": [
- "string"
], - "contexts": [
- "string"
]
}
bookingId required | integer Example: 12345 Booking ID |
hash required | string Driver's email address hash |
{- "hash": "string"
}
[- {
- "id": 0,
- "start": "string",
- "end": "string",
- "status": "string",
- "space_id": 0,
- "vrn": "string"
}
]
companyId required | integer Example: 12345 ID of QR company |
spaceId required | integer Example: 12345 ID of QR company's space |
code required | string QR space code |
{- "valid": true,
- "enabled": true,
- "kiosk_enabled": true,
- "config": {
- "name": "string",
- "background_colour": "string",
- "foreground_colour": "string",
- "body_colour": "string",
- "text_colour": "string",
- "logo": "string",
- "qr_code": "string",
- "valid_from": "08:00",
- "valid_to": "19:00"
}, - "fields": {
- "driver": true,
- "email": true,
- "hide_parking_until": true
}, - "parkingOptions": [
- 72
], - "countryData": {
- "country_code": "string",
- "language": "string",
- "locale": "string"
}
}
companyId required | integer Example: 12345 ID of QR company |
spaceId required | integer Example: 12345 ID of QR company's space |
code required | string QR space code |
vehicle_registration | string |
first_name | string |
last_name | string |
full_name | string |
mobile | string |
string | |
duration | integer |
{- "vehicle_registration": "string",
- "first_name": "string",
- "last_name": "string",
- "full_name": "string",
- "mobile": "string",
- "email": "string",
- "duration": 0
}
Only accessable from internal network
vrn required | string VRN of vehicle for bookings |
datetime required | string <YYYY-MM-DD HH:MM:SS> Datetime to query for active bookings |
space_ids | string Comma separated list of space IDs to check for bookings |
start_time_buffer | integer Optional number of minutes to add before provided datetime to accept bookings for |
end_time_buffer | integer Optional number of minutes to add after provided datetime to accept bookings for |
strict_vrn | boolean Allows to perform a strict VRN search instead of the default fuzzy search |
[- {
- "id": 0,
- "start": "string",
- "end": "string",
- "status": "string",
- "space_id": 0,
- "vrn": "string"
}
]
Return details of the corporate account to which the user is connected.
{- "id": 1,
- "account_name": "YourParkingSpace",
- "primary_contact_name": "John Smith",
- "primary_contact_email": "john@example.com",
- "primary_contact_number": 123456789,
- "currency_code": "GBP",
- "total_spend": {
- "limit_30d": 100,
- "limit_1y": 200,
- "warn_30d": 300,
- "warn_1y": 400
}, - "users": {
- "total": 10,
- "active": 8
}
}
Update details of the corporate account to which the user is connected.
Comma separated list of space IDs to check for bookings
account_name required | string |
primary_contact_name required | string |
primary_contact_email required | string |
primary_contact_number | string Optional. |
company_registration_number | string Optional |
vat_number | string Optional |
total_spend_limit_last_30d | number Optional. |
total_spend_limit_last_1y | number Optional. |
total_spend_warn_last_30d | number Optional. |
total_spend_warn_last_1y | number Optional. |
{- "account_name": "YourParkingSpace",
- "primary_contact_name": "John Smith",
- "primary_contact_email": "john@example.com",
- "primary_contact_number": 1234567890,
- "company_registration_number": "C12345678",
- "vat_number": "V123456",
- "total_spend_limit_last_30d": 100,
- "total_spend_limit_last_1y": 200,
- "total_spend_warn_last_30d": 300,
- "total_spend_warn_last_1y": 400
}
{- "id": 1,
- "account_name": "YourParkingSpace",
- "primary_contact_name": "John Smith",
- "primary_contact_email": "john@example.com",
- "primary_contact_number": 123456789,
- "currency_code": "GBP",
- "total_spend": {
- "limit_30d": 100,
- "limit_1y": 200,
- "warn_30d": 300,
- "warn_1y": 400
}, - "users": {
- "total": 10,
- "active": 8
}
}
Return user details of members of the corporate account to which the user is connected.
search | string Filter on user_id, name, email, phone number |
filter[user_id] | string Filter on user_id |
filter[name] | string Filter on name |
filter[email] | string Filter on email |
filter[number] | string Filter on phone number |
{- "data": [
- {
- "id": 1,
- "user_id": 53234,
- "name": "John Smith",
- "email": "john@example.com",
- "number": 123456789
}
], - "meta": {
- "pagination": {
- "total": 0,
- "count": 0,
- "per_page": 0,
- "current_page": 0,
- "total_pages": 0,
- "links": {
- "next": "string",
- "previous": "string"
}
}
}
}
Create (if applicable) and connect a user account to the corporate account to which the user is connected.
User details
first_name required | string |
last_name required | string |
email required | string |
phone | string Optional. |
is_admin | boolean Optional. Default is |
{- "first_name": "string",
- "last_name": "string",
- "email": "string",
- "phone": "string",
- "is_admin": true
}
Create (if applicable) and connect a user account to the corporate account to which the user is connected.
csv | string <binary> CSV file containing user records |
Return user details of this member of the corporate account to which the user is connected.
user required | number Corporate account user ID, not user id. |
{- "data": {
- "id": 1,
- "user_id": 53234,
- "name": "John Smith",
- "email": "john@example.com",
- "number": 123456789
}
}
Unlink the user from the corporate account to which the user is connected.
user required | number Corporate account user ID, not user id. |
cancel_bookings required | boolean Whether unlinking the user should also cancel active and upcoming bookings which may exist |
{- "cancel_bookings": true
}