These endpoints provide comprehensive functionality for managing car bookings. They enable users to search for cars, check rates and availability, create and modify bookings, and handle cancellations and rebooking.
Car API (v2)
Request
Search for available cars using the pickup and dropoff locations, and the traveler's user ID.
Search Parameter including location and datetime for a given search.
Car Search location parameters.
Local date and time in ISO 8601 format.
Search Parameter including location and datetime for a given search.
Car Search location parameters.
Local date and time in ISO 8601 format.
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/car/search
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/carapi/v2/car/search
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api-ext-sboxmeta.partners.spotnana.com/v2/car/search \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"pickup": {
"location": {
"airportCode": "SFO",
"cityCode": "JFK",
"coordinates": {
"latitude": 77.1025,
"longitude": 28.7041
}
},
"datetime": {
"iso8601": "2017-07-21T17:32"
},
"searchQuery": "London"
},
"dropOff": {
"location": {
"airportCode": "SFO",
"cityCode": "JFK",
"coordinates": {
"latitude": 77.1025,
"longitude": 28.7041
}
},
"datetime": {
"iso8601": "2017-07-21T17:32"
},
"searchQuery": "London"
},
"renterAge": 30,
"citizenCountryCode": "US",
"pickupCountryCode": "US",
"loyaltyCode": [
{
"vendor": "ZI",
"code": "1924047077",
"type": "PROMOTIONAL_COUPON"
}
],
"userId": {
"userIdType": "USER_ID",
"userId": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
},
"filters": {
"carTypes": [
"ECONOMY"
],
"numPassengers": {
"min": 0,
"max": 0
},
"vendors": [
"ZI",
"ZD"
],
"excludeTransmissions": [
"AUTOMATIC"
],
"engineTypes": [
"PETROL"
],
"hasAirConditioning": true,
"carExtraTypes": [
"CHILD_SEAT_INFANT"
],
"preferredOnly": false,
"price": {
"min": {
"amount": 510,
"currencyCode": "GBP"
},
"max": {
"amount": 510,
"currencyCode": "GBP"
}
},
"paymentTypes": [
"CARD"
],
"fareTypes": [
"CORPORATE"
]
},
"sortOptions": {
"sortBy": "PRICE",
"sortOrder": "ASCENDING"
}
}'{ "searchId": "9585821762922174", "cars": [ { … } ], "metadata": { "availableVendors": [ … ], "showOnlyBaseFare": false } }
Booking Key from car price check response.
CarId of the car to be booked.
Trip data for the booking.
Email address of the approver who should receives approval email for the current booking.
Whether the current booking requires hard approval or soft approval. This flag should be used only if valid approver is present.
List of travelers for the booking.
The ID of the traveler.
List of charges for the booking.
The amount to be charged for this payment method. This is optional if there's only one payment method provided for the booking.
Custom field responses for the booking.
Payment information sent after the verification of payment method.
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/car/create-pnr
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/carapi/v2/car/create-pnr
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api-ext-sboxmeta.partners.spotnana.com/v2/car/create-pnr \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"bookingKey": "ChBjMmRlYjdhNzJiM2RjMzE1EhBmNDA3MzZlYjFiZDRmYWU5",
"carId": "EgRFQ0FSGgNFVzIiAkVUKgoKA1NGTxIDU0ZPMgoKA1NGTxIDU0ZP",
"tripData": {
"approverEmail": "string",
"approverName": "string",
"hardApprovalRequired": true,
"outOfPolicy": true,
"policyId": "string",
"policyVersion": 0,
"tripId": {
"id": "2783425534"
}
},
"travelers": [
{
"travelerId": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
},
"name": {
"family1": "Gandas",
"family2": "FamilyTwo",
"given": "Vichitr",
"middle": "Kumar",
"suffix": "SR",
"preferred": "Don"
},
"dob": {
"iso8601": "2017-07-21"
},
"phoneNumber": {
"countryCode": 91,
"countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
"extension": "222",
"isoCountryCode": "IN",
"italianLeadingZero": true,
"nationalNumber": 8150,
"numberOfLeadingZeros": 1,
"preferredDomesticCarrierCode": "7",
"rawInput": "77777",
"type": "MOBILE"
},
"email": "example@email.com",
"loyaltyInfo": {
"appliedTo": [
"TAJ"
],
"id": "firstId",
"issuedBy": "firstIssuedBy",
"type": "AIR",
"linked": false
},
"blockLoyalty": false
}
],
"bookingContact": {
"emailAddress": "mail@mail.com",
"phoneNumber": {
"countryCode": 91,
"countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
"extension": "222",
"isoCountryCode": "IN",
"italianLeadingZero": true,
"nationalNumber": 8150,
"numberOfLeadingZeros": 1,
"preferredDomesticCarrierCode": "7",
"rawInput": "77777",
"type": "MOBILE"
}
},
"bookingCharges": [
{
"amount": {
"base": {
"amount": 510,
"currencyCode": "GBP",
"convertedAmount": 715.42,
"convertedCurrency": "USD",
"otherCoinage": [
{
"coinageCode": "BREX_POINTS",
"amount": 1000,
"conversionRate": 0.01,
"preferredCurrencyConversionRate": 0.01,
"otherCoinageMetadata": {}
}
]
},
"tax": {
"amount": 510,
"currencyCode": "GBP",
"convertedAmount": 715.42,
"convertedCurrency": "USD",
"otherCoinage": [
{
"coinageCode": "BREX_POINTS",
"amount": 1000,
"conversionRate": 0.01,
"preferredCurrencyConversionRate": 0.01,
"otherCoinageMetadata": {}
}
]
},
"taxBreakdown": [
{
"amount": {
"amount": 510,
"currencyCode": "GBP",
"convertedAmount": 715.42,
"convertedCurrency": "USD",
"otherCoinage": [
{}
]
},
"taxCode": "VAT",
"percentage": 9
}
]
},
"paymentMethod": {
"selectedPaymentSource": {
"paymentSourceId": "f49d00fe-1eda-4304-ba79-a980f565281d",
"rawPaymentSource": {
"type": "string",
"cardDetails": {
"company": "VISA",
"token": "4111111111111111",
"expiry": {}
}
},
"postPaymentRedirectionUrl": "https://mycompany.com/checkout?paymentSourceId=f49d00fe-1eda-4304-ba79-a980f565281d",
"cvv": "string",
"amount": {
"amount": 510,
"currencyCode": "GBP",
"convertedAmount": 715.42,
"convertedCurrency": "USD",
"otherCoinage": [
{}
]
}
}
}
}
],
"customFieldUserResponses": [
{
"fieldId": "84922011-b03d-4966-bc95-c5b49bc2e342",
"fieldName": "string",
"armId": "0fd508db-63ff-4444-bfb1-b89c43061433",
"includeLocations": [
"APPROVAL_EMAILS"
],
"selectedOptions": [
{
"name": "string",
"translatedName": "string",
"description": "string",
"translatedDescription": "string",
"additionalUserInput": "string",
"additionalInfos": [
"string"
],
"additionalInfoConfigs": [
{
"type": "VARIABLE",
"name": "LLF"
}
]
}
]
}
],
"postPaymentVerificationInfo": {
"paymentKey": "string",
"postStripeVerificationInfo": {
"paymentMethodId": "pm_1HzKDPI3bT9GUjvoUkRQooN3"
}
}
}'{ "pnrId": "2267585596", "sourcePnrId": "LRXQXA", "pnrStatus": "CONFIRMED", "paymentVerificationInfo": { "gatewayIdentifier": { … }, "paymentKey": "string", "stripeVerificationInfo": { … } } }
Search Parameter including location and datetime for a given search.
Car Search location parameters.
Local date and time in ISO 8601 format.
Search Parameter including location and datetime for a given search.
Car Search location parameters.
Local date and time in ISO 8601 format.
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/car/pnrs/{pnrId}/modify-search
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/carapi/v2/car/pnrs/{pnrId}/modify-search
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api-ext-sboxmeta.partners.spotnana.com/v2/car/pnrs/4974a66b/modify-search \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"pickup": {
"location": {
"airportCode": "SFO",
"cityCode": "JFK",
"coordinates": {
"latitude": 77.1025,
"longitude": 28.7041
}
},
"datetime": {
"iso8601": "2017-07-21T17:32"
},
"searchQuery": "London"
},
"dropOff": {
"location": {
"airportCode": "SFO",
"cityCode": "JFK",
"coordinates": {
"latitude": 77.1025,
"longitude": 28.7041
}
},
"datetime": {
"iso8601": "2017-07-21T17:32"
},
"searchQuery": "London"
},
"filters": {
"carTypes": [
"ECONOMY"
],
"numPassengers": {
"min": 0,
"max": 0
},
"vendors": [
"ZI",
"ZD"
],
"excludeTransmissions": [
"AUTOMATIC"
],
"engineTypes": [
"PETROL"
],
"hasAirConditioning": true,
"carExtraTypes": [
"CHILD_SEAT_INFANT"
],
"preferredOnly": false,
"price": {
"min": {
"amount": 510,
"currencyCode": "GBP"
},
"max": {
"amount": 510,
"currencyCode": "GBP"
}
},
"paymentTypes": [
"CARD"
],
"fareTypes": [
"CORPORATE"
]
},
"sortOptions": {
"sortBy": "PRICE",
"sortOrder": "ASCENDING"
},
"renterAge": 30,
"citizenCountryCode": "US",
"pickupCountryCode": "US",
"loyaltyCode": [
{
"vendor": "ZI",
"code": "1924047077",
"type": "PROMOTIONAL_COUPON"
}
]
}'{ "searchId": "9585821762922174", "cars": [ { … } ], "metadata": { "availableVendors": [ … ], "showOnlyBaseFare": false } }
CarId of the car to be booked.
Trip data to book a PNR.
Email address of the approver who should receives approval email for the current booking.
Whether the current booking requires hard approval or soft approval. This flag should be used only if valid approver is present.
The amount to be charged for this payment method. This is optional if there's only one payment method provided for the booking.
The ID of the traveler.
Custom field responses for the booking.
Booking Key from car price check response.
Details about the payment methods used by travelers for booking.
Payment information sent after the verification of payment method.
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/car/pnrs/{pnrId}/modify-book
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/carapi/v2/car/pnrs/{pnrId}/modify-book
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api-ext-sboxmeta.partners.spotnana.com/v2/car/pnrs/4974a66b/modify-book \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"searchId": "1cf76aba18e4015f",
"carId": "EgRFQ0FSGgNFVzIiAkVUKgoKA1NGTxIDU0ZPMgoKA1NGTxIDU0ZP",
"tripData": {
"approverEmail": "string",
"approverName": "string",
"hardApprovalRequired": true,
"outOfPolicy": true,
"policyId": "string",
"policyVersion": 0,
"tripId": {
"id": "2783425534"
}
},
"preBookAnswers": {
"answers": [
{
"entityId": "string",
"userInput": "string",
"itemIds": [
0
],
"answers": [
{
"item": "string",
"value": "string",
"description": "string"
}
],
"customFieldType": "QUESTION",
"questionDisplayText": "string",
"question": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"questionFormat": "CHECKBOX",
"optionInfo": {
"source": "MANUAL",
"sourceMetadata": {
"companyConfig": {}
},
"totalNumOptions": 0,
"options": [
{}
]
},
"isRequired": true,
"isDisabled": true,
"includeInItinerary": true,
"customFieldLocations": [
"POLICY_APPROVAL_EMAIL"
],
"matchConditions": {
"travelerConditions": {
"workerTypes": [
null
],
"countries": [
null
],
"legalEntities": [
null
],
"departments": [
null
],
"costCenters": [
null
],
"offices": [
null
]
},
"travelTypes": [
"AIR"
],
"travelRegionTypes": [
"DOMESTIC"
],
"tripUsageTypes": [
"STANDARD"
]
},
"questionType": {
"preSearchQuestionType": "PURPOSE_OF_TRIP",
"preCheckoutQuestionType": "OOP_REASON_CODE"
}
}
}
],
"preBookQuestionResponseId": "string"
},
"bookingCharges": [
{
"amount": {
"base": {
"amount": 510,
"currencyCode": "GBP",
"convertedAmount": 715.42,
"convertedCurrency": "USD",
"otherCoinage": [
{
"coinageCode": "BREX_POINTS",
"amount": 1000,
"conversionRate": 0.01,
"preferredCurrencyConversionRate": 0.01,
"otherCoinageMetadata": {}
}
]
},
"tax": {
"amount": 510,
"currencyCode": "GBP",
"convertedAmount": 715.42,
"convertedCurrency": "USD",
"otherCoinage": [
{
"coinageCode": "BREX_POINTS",
"amount": 1000,
"conversionRate": 0.01,
"preferredCurrencyConversionRate": 0.01,
"otherCoinageMetadata": {}
}
]
},
"taxBreakdown": [
{
"amount": {
"amount": 510,
"currencyCode": "GBP",
"convertedAmount": 715.42,
"convertedCurrency": "USD",
"otherCoinage": [
{}
]
},
"taxCode": "VAT",
"percentage": 9
}
]
},
"paymentMethod": {
"selectedPaymentSource": {
"paymentSourceId": "f49d00fe-1eda-4304-ba79-a980f565281d",
"rawPaymentSource": {
"type": "string",
"cardDetails": {
"company": "VISA",
"token": "4111111111111111",
"expiry": {}
}
},
"postPaymentRedirectionUrl": "https://mycompany.com/checkout?paymentSourceId=f49d00fe-1eda-4304-ba79-a980f565281d",
"cvv": "string",
"amount": {
"amount": 510,
"currencyCode": "GBP",
"convertedAmount": 715.42,
"convertedCurrency": "USD",
"otherCoinage": [
{}
]
}
}
}
}
],
"travelers": [
{
"travelerId": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
},
"name": {
"family1": "Gandas",
"family2": "FamilyTwo",
"given": "Vichitr",
"middle": "Kumar",
"suffix": "SR",
"preferred": "Don"
},
"dob": {
"iso8601": "2017-07-21"
},
"phoneNumber": {
"countryCode": 91,
"countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
"extension": "222",
"isoCountryCode": "IN",
"italianLeadingZero": true,
"nationalNumber": 8150,
"numberOfLeadingZeros": 1,
"preferredDomesticCarrierCode": "7",
"rawInput": "77777",
"type": "MOBILE"
},
"email": "example@email.com",
"loyaltyInfo": {
"appliedTo": [
"TAJ"
],
"id": "firstId",
"issuedBy": "firstIssuedBy",
"type": "AIR",
"linked": false
},
"blockLoyalty": false
}
],
"customFieldV3Responses": [
{
"fieldId": "84922011-b03d-4966-bc95-c5b49bc2e342",
"fieldName": "string",
"armId": "0fd508db-63ff-4444-bfb1-b89c43061433",
"includeLocations": [
"APPROVAL_EMAILS"
],
"selectedOptions": [
{
"name": "string",
"translatedName": "string",
"description": "string",
"translatedDescription": "string",
"additionalUserInput": "string",
"additionalInfos": [
"string"
],
"additionalInfoConfigs": [
{
"type": "VARIABLE",
"name": "LLF"
}
]
}
]
}
],
"waiveOffInfo": {
"waiveOffInfoPerModules": [
{
"moduleId": "BOOKING",
"waiveOffFeeReason": {
"reasonCode": "WA05",
"reason": "Customer goodwill"
}
}
]
},
"arrivalFlightNumber": {
"num": "321",
"airlineCode": "AA"
},
"bookingKey": "ChBjMmRlYjdhNzJiM2RjMzE1EhBmNDA3MzZlYjFiZDRmYWU5",
"bookingPaymentDetails": {
"bookingTravelerPaymentDetails": [
{
"selectedFormOfPayments": [
{
"paymentItems": [
{
"fareComponent": []
}
],
"selectedPaymentSources": [
{}
]
}
]
}
]
},
"postPaymentVerificationInfo": {
"paymentKey": "string",
"postStripeVerificationInfo": {
"paymentMethodId": "pm_1HzKDPI3bT9GUjvoUkRQooN3"
}
}
}'{ "pnrId": "2267585596", "sourcePnrId": "LRXQXA", "pnrStatus": "CONFIRMED", "paymentVerificationInfo": { "gatewayIdentifier": { … }, "paymentKey": "string", "stripeVerificationInfo": { … } } }
Custom field responses for the booking.
Payment information sent after the verification of payment method.
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/car/pnrs/{pnrId}/cancel-pnr
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/carapi/v2/car/pnrs/{pnrId}/cancel-pnr
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api-ext-sboxmeta.partners.spotnana.com/v2/car/pnrs/4974a66b/cancel-pnr \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"pnrId": "4974a66b",
"customFieldUserResponses": [
{
"fieldId": "84922011-b03d-4966-bc95-c5b49bc2e342",
"fieldName": "string",
"armId": "0fd508db-63ff-4444-bfb1-b89c43061433",
"includeLocations": [
"APPROVAL_EMAILS"
],
"selectedOptions": [
{
"name": "string",
"translatedName": "string",
"description": "string",
"translatedDescription": "string",
"additionalUserInput": "string",
"additionalInfos": [
"string"
],
"additionalInfoConfigs": [
{
"type": "VARIABLE",
"name": "LLF"
}
]
}
]
}
],
"waiveOffInfo": {
"waiveOffInfoPerModules": [
{
"moduleId": "BOOKING",
"waiveOffFeeReason": {
"reasonCode": "WA05",
"reason": "Customer goodwill"
}
}
]
},
"postPaymentVerificationInfo": {
"paymentKey": "string",
"postStripeVerificationInfo": {
"paymentMethodId": "pm_1HzKDPI3bT9GUjvoUkRQooN3"
}
},
"bookingPaymentDetails": {
"bookingTravelerPaymentDetails": [
{
"selectedFormOfPayments": [
{
"paymentItems": [
{
"fareComponent": []
}
],
"selectedPaymentSources": [
{}
]
}
]
}
]
}
}'{ "confirmationId": "AU847750750", "paymentVerificationInfo": { "gatewayIdentifier": { … }, "paymentKey": "string", "stripeVerificationInfo": { … } } }
CarId of the car to be booked.
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/car/rate-details
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/carapi/v2/car/rate-details
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api-ext-sboxmeta.partners.spotnana.com/v2/car/rate-details \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"searchId": "1cf76aba18e4015f",
"carId": "EgRFQ0FSGgNFVzIiAkVUKgoKA1NGTxIDU0ZPMgoKA1NGTxIDU0ZP",
"isModify": false
}'OK
CarId of the car to be booked.
Car Pickup Location details
Location address / airport code.
Address lines
Code of administrative area. For example: DL for Delhi, India. Highest administrative subdivision which is used for postal addresses of a country or region. For example, this can be a state, a province, an oblast, or a prefecture. Specifically, for Spain this is the province and not the autonomous community (e.g. "Barcelona" and not "Catalonia"). Many countries don't use an administrative area in postal addresses. E.g. in Switzerland this should be left unpopulated.
Name of administrative area. This is full name corresponding to administrativeArea. Like Delhi for DL area code. For some places, code and name maybe same as well like Tokyo.
Whether this address is default address in case multiple addresses are specified.
BCP-47 language code of the contents of this address (if known). This is often the UI language of the input form or is expected to match one of the languages used in the address' country/region, or their transliterated equivalents. This can affect formatting in certain countries, but is not critical to the correctness of the data and will never affect any validation or other non-formatting related operations. Examples: "zh-Hant", "ja", "ja-Latn", "en".
Generally refers to the city/town portion of the address.
IATA 3-letter location code. See https://www.iata.org/en/services/codes.
The name of the organization at the address.
Postal code of the address. This is a required field when setting for a user/legal entity/company etc.
2 letter continent code of the continent this address falls in.
Region code of the country/region of the address.
Region name of the country/region of the address.
Additional, country-specific, sorting code. This is not used in most regions. Where it is used, the value is either a string like "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number alone, representing the "sector code" (Jamaica), "delivery area indicator" (Malawi) or "post office indicator" (e.g. Côte d'Ivoire).
Sublocality of the address. This can be neighborhoods, boroughs, districts.
Counter location. If airport counter, set locationCode in address.
Weekly operating schedule of vendor
Car DropOff Location details
Location address / airport code.
Address lines
Code of administrative area. For example: DL for Delhi, India. Highest administrative subdivision which is used for postal addresses of a country or region. For example, this can be a state, a province, an oblast, or a prefecture. Specifically, for Spain this is the province and not the autonomous community (e.g. "Barcelona" and not "Catalonia"). Many countries don't use an administrative area in postal addresses. E.g. in Switzerland this should be left unpopulated.
Name of administrative area. This is full name corresponding to administrativeArea. Like Delhi for DL area code. For some places, code and name maybe same as well like Tokyo.
Whether this address is default address in case multiple addresses are specified.
BCP-47 language code of the contents of this address (if known). This is often the UI language of the input form or is expected to match one of the languages used in the address' country/region, or their transliterated equivalents. This can affect formatting in certain countries, but is not critical to the correctness of the data and will never affect any validation or other non-formatting related operations. Examples: "zh-Hant", "ja", "ja-Latn", "en".
Generally refers to the city/town portion of the address.
IATA 3-letter location code. See https://www.iata.org/en/services/codes.
The name of the organization at the address.
Postal code of the address. This is a required field when setting for a user/legal entity/company etc.
2 letter continent code of the continent this address falls in.
Region code of the country/region of the address.
Region name of the country/region of the address.
Additional, country-specific, sorting code. This is not used in most regions. Where it is used, the value is either a string like "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number alone, representing the "sector code" (Jamaica), "delivery area indicator" (Malawi) or "post office indicator" (e.g. Côte d'Ivoire).
Sublocality of the address. This can be neighborhoods, boroughs, districts.
Counter location. If airport counter, set locationCode in address.
Weekly operating schedule of vendor
{ "searchId": "1cf76aba18e4015f", "carId": "EgRFQ0FSGgNFVzIiAkVUKgoKA1NGTxIDU0ZPMgoKA1NGTxIDU0ZP", "pickupLocation": { "address": { … }, "coordinates": { … }, "counterLocation": "OFF_AIRPORT_RENTAL_SHUTTLE", "operatingSchedule": { … }, "weeklyOperatingSchedule": [ … ], "contactInfo": { … } }, "dropOffLocation": { "address": { … }, "coordinates": { … }, "counterLocation": "OFF_AIRPORT_RENTAL_SHUTTLE", "operatingSchedule": { … }, "weeklyOperatingSchedule": [ … ], "contactInfo": { … } }, "additionalDetails": [ { … } ], "vendor": { "code": "ZE", "name": "HERTZ", "email": "abc@xyz.com", "phone": { … } }, "co2Emission": { "co2EmissionValue": 0.01 }, "isFlightNumberMandatoryForPickup": true, "checkoutApprovalInfo": { "approvalType": "SOFT_APPROVAL", "approverDetails": [ … ] } }
CarId of the car to be booked.
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/car/price-check
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/carapi/v2/car/price-check
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api-ext-sboxmeta.partners.spotnana.com/v2/car/price-check \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"searchId": "1cf76aba18e4015f",
"carId": "EgRFQ0FSGgNFVzIiAkVUKgoKA1NGTxIDU0ZPMgoKA1NGTxIDU0ZP",
"tripId": 1234567890,
"isModify": false
}'{ "timeoutSeconds": 3900, "hasPriceChanged": true, "rateInfo": { "rateType": "GUARANTEED", "carRateComponents": [ … ], "carExtras": [ … ], "refundable": "REFUNDABLE", "fareType": "CORPORATE", "allowedFop": "BREX_POINTS", "allowedPaymentTypes": [ … ], "dailyRates": [ … ] }, "finalRateInfo": { "rateType": "GUARANTEED", "carRateComponents": [ … ], "carExtras": [ … ], "refundable": "REFUNDABLE", "fareType": "CORPORATE", "allowedFop": "BREX_POINTS", "allowedPaymentTypes": [ … ], "dailyRates": [ … ] }, "preferences": [ { … } ], "bookingKey": "string" }
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/car/location-details
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/carapi/v2/car/location-details
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api-ext-sboxmeta.partners.spotnana.com/v2/car/location-details \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"vendorCode": "ZE",
"locationCode": "SFO",
"userId": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
}'OK
Car Location details
Location address / airport code.
Address lines
Code of administrative area. For example: DL for Delhi, India. Highest administrative subdivision which is used for postal addresses of a country or region. For example, this can be a state, a province, an oblast, or a prefecture. Specifically, for Spain this is the province and not the autonomous community (e.g. "Barcelona" and not "Catalonia"). Many countries don't use an administrative area in postal addresses. E.g. in Switzerland this should be left unpopulated.
Name of administrative area. This is full name corresponding to administrativeArea. Like Delhi for DL area code. For some places, code and name maybe same as well like Tokyo.
Whether this address is default address in case multiple addresses are specified.
BCP-47 language code of the contents of this address (if known). This is often the UI language of the input form or is expected to match one of the languages used in the address' country/region, or their transliterated equivalents. This can affect formatting in certain countries, but is not critical to the correctness of the data and will never affect any validation or other non-formatting related operations. Examples: "zh-Hant", "ja", "ja-Latn", "en".
Generally refers to the city/town portion of the address.
IATA 3-letter location code. See https://www.iata.org/en/services/codes.
The name of the organization at the address.
Postal code of the address. This is a required field when setting for a user/legal entity/company etc.
2 letter continent code of the continent this address falls in.
Region code of the country/region of the address.
Region name of the country/region of the address.
Additional, country-specific, sorting code. This is not used in most regions. Where it is used, the value is either a string like "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number alone, representing the "sector code" (Jamaica), "delivery area indicator" (Malawi) or "post office indicator" (e.g. Côte d'Ivoire).
Sublocality of the address. This can be neighborhoods, boroughs, districts.
Counter location. If airport counter, set locationCode in address.
Weekly operating schedule of vendor
{ "location": { "address": { … }, "coordinates": { … }, "counterLocation": "OFF_AIRPORT_RENTAL_SHUTTLE", "operatingSchedule": { … }, "weeklyOperatingSchedule": [ … ], "contactInfo": { … } }, "vendor": { "code": "ZE", "name": "HERTZ", "email": "abc@xyz.com", "phone": { … } } }
The ID of the traveler.
Email of the traveler.
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/car/pnrs/{pnrId}/update
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/carapi/v2/car/pnrs/{pnrId}/update
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://api-ext-sboxmeta.partners.spotnana.com/v2/car/pnrs/1213124111/update \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{}'