APIs to manage trips.
curl -i -X POST \
https://apis.spotnana.com/v3/trips/6926658168 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"tripContacts": [
{
"label": "Coordinator",
"name": "Himani Jain",
"email": "himani@spotnana.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"
},
"isPrimary": true,
"restrictVisibility": true
}
]
}'curl -i -X POST \
https://apis.spotnana.com/v3/trips/users/4974a66b-7493-4f41-908c-58ba81093947/list \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"paginationRequestParams": {
"offset": 0,
"limit": 100
},
"includePnrSummaries": true,
"tripFilters": [
{
"filterType": "string",
"userIds": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
]
}
],
"sortOptions": [
{
"sortField": "START_DATE",
"sortOrder": "DESC"
}
]
}'{ "paginationResponseParams": { "totalNumResults": 0 }, "tripSummaries": [ { … } ], "failedTripSummaries": [ { … } ] }
curl -i -X POST \
https://apis.spotnana.com/v3/trips/companies/4974a66b-7493-4f41-908c-58ba81093947/list \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"paginationRequestParams": {
"offset": 0,
"limit": 100
},
"includePnrSummaries": true,
"tripFilters": [
{
"filterType": "string",
"userIds": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
]
}
],
"sortOptions": [
{
"sortField": "START_DATE",
"sortOrder": "DESC"
}
]
}'{ "paginationResponseParams": { "totalNumResults": 0 }, "tripSummaries": [ { … } ], "failedTripSummaries": [ { … } ] }