API reference
/Car
//
Cancel a car booking
Cancel an existing car booking and initiate a refund (if applicable).
Security
Bearer
Custom field responses for the booking.
postPaymentVerificationInfoPostStripeVerificationInfoWrapper (object) or PostUrlBasedVerificationInfoWrapper (object) or AmadeusCheckoutVerificationInfoWrapper (object) or ThreeDSecure2PostVerificationInfoWrapper (object) or RazorpayPostVerificationInfoWrapper (object)(PostPaymentVerificationInfo)
One of:
Wrapper for post stripe verification info object.
- 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 -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"
}
],
"optionId": "dee15a0e-f1fe-4cd8-88ac-c090810707f8"
}
]
}
],
"waiveOffInfo": {
"waiveOffInfoPerModules": [
{
"moduleId": "BOOKING",
"waiveOffFeeReason": {
"reasonCode": "WA05",
"reason": "Customer goodwill"
}
}
]
},
"postPaymentVerificationInfo": {
"paymentKey": "string",
"postStripeVerificationInfo": {
"paymentMethodId": "pm_1HzKDPI3bT9GUjvoUkRQooN3"
}
},
"bookingPaymentDetails": {
"bookingTravelerPaymentDetails": [
{
"selectedFormOfPayments": [
{
"paymentItems": [
{
"fareComponent": []
}
],
"selectedPaymentSources": [
{}
]
}
]
}
]
}
}'OK
Response
{ "confirmationId": "AU847750750", "paymentVerificationInfo": { "gatewayIdentifier": { … }, "paymentKey": "string", "stripeVerificationInfo": { … } } }