Download OpenAPI specification:Download
This endpoint creates a company. This is allowed only by TMC_ADMIN and above roles.
Created
Bad request
Unauthorized
Forbidden
{- "name": "Spotnana",
- "emailDomains": [
- "spotnana.com"
], - "billingCurrency": "INR",
- "phoneNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "emergencyContactInfos": [
- {
- "address": {
- "addressLines": [
- "Golden Gate Bridge"
], - "administrativeArea": "CA",
- "administrativeAreaName": "California",
- "description": "San Francisco Home",
- "isDefault": true,
- "languageCode": "en",
- "locality": "San Francisco",
- "locationCode": "LAX",
- "organization": "Spotnana",
- "postalCode": "94130",
- "continentCode": "AF",
- "recipients": [
- "string"
], - "regionCode": "US",
- "regionName": "America",
- "revision": 1,
- "sortingCode": "Jamaica",
- "sublocality": "string",
- "timezone": "America/Los_Angeles",
- "coordinates": {
- "latitude": 77.1025,
- "longitude": 28.7041
}
}, - "designation": "MANAGER",
- "email": "emergency-contact@email.com",
- "name": {
- "family1": "Gandas",
- "family2": "FamilyTwo",
- "given": "Vichitr",
- "middle": "Kumar",
- "suffix": "SR",
- "preferred": "Don"
}, - "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"
}, - "userOrgId": {
- "organizationAgencyId": {
- "id": "string"
}, - "organizationId": {
- "id": "string"
}, - "userId": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "tmcInfo": {
- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "primaryServiceProviderTmc": {
- "tmcId": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}
}, - "secondaryServiceProviderTmcs": [
- {
- "tmcId": {
- "id": null
}, - "supplier": "SABRE",
- "travelType": "AIR"
}
], - "partnerTmcId": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}
}, - "tmcBasicInfo": {
- "contractingTmc": {
- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "name": "string",
- "logo": {
- "data": "6935813e12584abda0e43d71cd2ea260",
- "dimensions": {
- "height": null,
- "width": null
},
}
}, - "bookingTmc": {
- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "name": "string",
- "logo": {
- "data": "6935813e12584abda0e43d71cd2ea260",
- "dimensions": {
- "height": null,
- "width": null
},
}
}
}
}
}
], - "isSelfSignUpEnabled": true,
- "announcements": [
- {
- "title": "Spotnana on Mission to Unbundle Travel",
- "description": "Amex Ventures Joins Spotnana on Mission to Unbundle Travel.",
- "linkDisplayText": "New announcement"
}
], - "companyLogo": {
- "data": "6935813e12584abda0e43d71cd2ea260",
- "dimensions": {
- "height": 120,
- "width": 240
},
}, - "contractedBy": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "companyRoles": [
- "ORG"
], - "supportConfig": {
- "contactNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "emailAddresses": [
- "support@spotnana.com"
], - "freshdeskConfig": {
- "enabled": true,
- "hasCredentials": false,
- "credentials": {
- "webCredentials": {
- "domain": "string",
- "appId": "string",
- "appKey": "string"
}, - "mobileCredentials": {
- "domain": "string",
- "appId": "string",
- "appKey": "string"
}
}
}, - "tier": "SEAT1A",
- "genesysConfig": {
- "enabled": true,
- "dataUrl": "string"
}, - "portalUrls": [
- "www.support.spotnana.com"
], - "zendeskConfig": {
- "enabled": true,
- "integrationId": "1234567890",
- "androidIntegrationId": "1234567890",
- "iosIntegrationId": "1234567890"
}, - "genesysCloudConfig": {
- "enabled": true,
- "deploymentId": "52dc2a6f-772a-4edf-96d3-b3f0c49400a7",
- "environment": "usa-1",
}, - "twilioChatConfig": {
- "enabled": true
}
}, - "supportConfigs": [
- {
- "contactNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "emailAddresses": [
- "support@spotnana.com"
], - "freshdeskConfig": {
- "enabled": true,
- "hasCredentials": false,
- "credentials": {
- "webCredentials": {
- "domain": "string",
- "appId": "string",
- "appKey": "string"
}, - "mobileCredentials": {
- "domain": "string",
- "appId": "string",
- "appKey": "string"
}
}
}, - "tier": "SEAT1A",
- "genesysConfig": {
- "enabled": true,
- "dataUrl": "string"
}, - "portalUrls": [
- "www.support.spotnana.com"
], - "zendeskConfig": {
- "enabled": true,
- "integrationId": "1234567890",
- "androidIntegrationId": "1234567890",
- "iosIntegrationId": "1234567890"
}, - "genesysCloudConfig": {
- "enabled": true,
- "deploymentId": "52dc2a6f-772a-4edf-96d3-b3f0c49400a7",
- "environment": "usa-1",
}, - "twilioChatConfig": {
- "enabled": true
}
}
], - "ccEmailAddresses": [
- "example@gmail.com"
], - "bccEmailAddresses": [
- "example@gmail.com"
], - "postalAddress": {
- "addressLines": [
- "Golden Gate Bridge"
], - "administrativeArea": "CA",
- "administrativeAreaName": "California",
- "description": "San Francisco Home",
- "isDefault": true,
- "languageCode": "en",
- "locality": "San Francisco",
- "locationCode": "LAX",
- "organization": "Spotnana",
- "postalCode": "94130",
- "continentCode": "AF",
- "recipients": [
- "string"
], - "regionCode": "US",
- "regionName": "America",
- "revision": 1,
- "sortingCode": "Jamaica",
- "sublocality": "string",
- "timezone": "America/Los_Angeles",
- "coordinates": {
- "latitude": 77.1025,
- "longitude": 28.7041
}
}, - "redirectUrl": "string",
- "rewardsProgram": {
- "allowedUserRoles": [
- "TRAVEL_ARRANGER"
], - "conversionRate": {
- "currencyCode": "USD",
- "rate": 0
}, - "redeemablePaymentMethods": [
- "BREX_POINTS"
], - "backingCurrency": [
- "USD"
]
}, - "tmcDefaultConfiguration": {
- "defaultBookingTmcId": "734f4ea2-e9ed-4c90-853c-9eed62f1254b",
- "countryWiseBookingTmcs": [
- {
- "countryCode": "US",
- "bookingTmcId": "734f4ea2-e9ed-4c90-853c-9eed62f1254b"
}
]
}, - "expensePartnerConfig": {
- "partner": "EXPENSIFY",
- "emailConfig": {
- "personalCardConfig": {
- "sendToTraveler": false,
- "personalCardExpenseEmail": "user@company.com"
}, - "centralCardExpenseEmail": "finance+le@company.com",
- "expensePartnerEmail": "receipts@expensify.com",
- "bccEmail": "docs@company.com"
}, - "travelType": [
- "AIR"
], - "isExpensePartnerEnabled": true,
- "reportCustomFields": true,
- "personalCardExpenseOwner": {
- "traveler": true,
- "centralEmail": "docs@company.com"
}, - "centralCardExpenseOwner": {
- "traveler": true,
- "centralEmail": "docs@company.com"
}, - "partnerReferralId": "1234hgd",
- "itineraryConfig": {
- "skipModificationUpdate": true,
- "skipCancellationUpdate": true
}
}, - "mobileRedirectUrl": "string",
- "applicableCustomFieldTypes": [
- "QUESTION"
], - "oauthPartnerConfig": {
- "name": "string",
- "userDetailEndpoint": {
- "url": "string",
- "authHeaderName": "string",
- "userIdentifierType": "PID",
- "responseAttributes": [
- {
- "name": "PID",
- "jsonXpath": "$.user.email"
}
]
}, - "tokenVerifier": {
- "doVerifyToken": true,
- "type": "OKTA_JWT",
- "verifierDetails": {
- "oktaJwtVerifier": {
- "oauthUrl": "string",
- "audience": "string"
}
}
}, - "doPersistToken": true
}, - "privacySettings": {
- "allowCompanyAdminAccessToRelativesInfo": true
}, - "emailClientConfig": {
- "client": "SENDGRID",
- "credentials": {
- "emailClientSecretKey": {
- "secretKey": "SECRET_KEY",
- "versionId": "1"
}
}, - "defaultSenderAddress": "test@somedomain.com",
- "defaultSenderName": "Test Sender"
}, - "externalId": "company-external-id",
- "isFake": false,
- "tmcPartnerRoleMappings": [
- {
- "partnerRole": "string",
- "spotnanaRole": "TRAVEL_ARRANGER"
}
], - "loyaltyBlockedCountries": [
- "US",
- "IN"
], - "allowDomainBasedAuthConfig": false,
- "carbonCostConfig": {
- "price": {
- "amount": 510,
- "currencyCode": "GBP",
- "convertedAmount": 715.42,
- "convertedCurrency": "USD",
- "otherCoinage": [
- {
- "coinageCode": "BREX_POINTS",
- "amount": 1000,
- "conversionRate": 0.01,
- "preferredCurrencyConversionRate": 0.01
}
]
}, - "weight": {
- "weight": 150,
- "unit": "KG"
}
}
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
This endpoint lists companies. If externalId is provided in query param, only the company having the specified external ID is returned.
OK
Unauthorized
Forbidden
{- "length": 0,
- "elements": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
]
}
This endpoint gets a company by ID.
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "name": "Spotnana",
- "emailDomains": [
- "spotnana.com"
], - "billingCurrency": "INR",
- "phoneNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "emergencyContactInfos": [
- {
- "address": {
- "addressLines": [
- "Golden Gate Bridge"
], - "administrativeArea": "CA",
- "administrativeAreaName": "California",
- "description": "San Francisco Home",
- "isDefault": true,
- "languageCode": "en",
- "locality": "San Francisco",
- "locationCode": "LAX",
- "organization": "Spotnana",
- "postalCode": "94130",
- "continentCode": "AF",
- "recipients": [
- "string"
], - "regionCode": "US",
- "regionName": "America",
- "revision": 1,
- "sortingCode": "Jamaica",
- "sublocality": "string",
- "timezone": "America/Los_Angeles",
- "coordinates": {
- "latitude": 77.1025,
- "longitude": 28.7041
}
}, - "designation": "MANAGER",
- "email": "emergency-contact@email.com",
- "name": {
- "family1": "Gandas",
- "family2": "FamilyTwo",
- "given": "Vichitr",
- "middle": "Kumar",
- "suffix": "SR",
- "preferred": "Don"
}, - "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"
}, - "userOrgId": {
- "organizationAgencyId": {
- "id": "string"
}, - "organizationId": {
- "id": "string"
}, - "userId": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "tmcInfo": {
- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "primaryServiceProviderTmc": {
- "tmcId": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}
}, - "secondaryServiceProviderTmcs": [
- {
- "tmcId": {
- "id": null
}, - "supplier": "SABRE",
- "travelType": "AIR"
}
], - "partnerTmcId": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}
}, - "tmcBasicInfo": {
- "contractingTmc": {
- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "name": "string",
- "logo": {
- "data": "6935813e12584abda0e43d71cd2ea260",
- "dimensions": {
- "height": null,
- "width": null
},
}
}, - "bookingTmc": {
- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "name": "string",
- "logo": {
- "data": "6935813e12584abda0e43d71cd2ea260",
- "dimensions": {
- "height": null,
- "width": null
},
}
}
}
}
}
], - "isSelfSignUpEnabled": true,
- "announcements": [
- {
- "title": "Spotnana on Mission to Unbundle Travel",
- "description": "Amex Ventures Joins Spotnana on Mission to Unbundle Travel.",
- "linkDisplayText": "New announcement"
}
], - "companyLogo": {
- "data": "6935813e12584abda0e43d71cd2ea260",
- "dimensions": {
- "height": 120,
- "width": 240
},
}, - "contractedBy": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "isActive": true,
- "companyRoles": [
- "ORG"
], - "supportConfig": {
- "contactNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "emailAddresses": [
- "support@spotnana.com"
], - "freshdeskConfig": {
- "enabled": true,
- "hasCredentials": false,
- "credentials": {
- "webCredentials": {
- "domain": "string",
- "appId": "string",
- "appKey": "string"
}, - "mobileCredentials": {
- "domain": "string",
- "appId": "string",
- "appKey": "string"
}
}
}, - "tier": "SEAT1A",
- "genesysConfig": {
- "enabled": true,
- "dataUrl": "string"
}, - "portalUrls": [
- "www.support.spotnana.com"
], - "zendeskConfig": {
- "enabled": true,
- "integrationId": "1234567890",
- "androidIntegrationId": "1234567890",
- "iosIntegrationId": "1234567890"
}, - "genesysCloudConfig": {
- "enabled": true,
- "deploymentId": "52dc2a6f-772a-4edf-96d3-b3f0c49400a7",
- "environment": "usa-1",
}, - "twilioChatConfig": {
- "enabled": true
}
}, - "ccEmailAddresses": [
- "example@gmail.com"
], - "bccEmailAddresses": [
- "example@gmail.com"
], - "connectors": [
- {
- "connectorType": "HR_FEED_CONNECTOR",
- "connectorId": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}
}
], - "postalAddress": {
- "addressLines": [
- "Golden Gate Bridge"
], - "administrativeArea": "CA",
- "administrativeAreaName": "California",
- "description": "San Francisco Home",
- "isDefault": true,
- "languageCode": "en",
- "locality": "San Francisco",
- "locationCode": "LAX",
- "organization": "Spotnana",
- "postalCode": "94130",
- "continentCode": "AF",
- "recipients": [
- "string"
], - "regionCode": "US",
- "regionName": "America",
- "revision": 1,
- "sortingCode": "Jamaica",
- "sublocality": "string",
- "timezone": "America/Los_Angeles",
- "coordinates": {
- "latitude": 77.1025,
- "longitude": 28.7041
}
}, - "redirectUrl": "string",
- "rewardsProgram": {
- "allowedUserRoles": [
- "TRAVEL_ARRANGER"
], - "conversionRate": {
- "currencyCode": "USD",
- "rate": 0
}, - "redeemablePaymentMethods": [
- "BREX_POINTS"
], - "backingCurrency": [
- "USD"
]
}, - "tmcDefaultConfiguration": {
- "defaultBookingTmcId": "734f4ea2-e9ed-4c90-853c-9eed62f1254b",
- "countryWiseBookingTmcs": [
- {
- "countryCode": "US",
- "bookingTmcId": "734f4ea2-e9ed-4c90-853c-9eed62f1254b"
}
]
}, - "expensePartnerConfig": {
- "partner": "EXPENSIFY",
- "emailConfig": {
- "personalCardConfig": {
- "sendToTraveler": false,
- "personalCardExpenseEmail": "user@company.com"
}, - "centralCardExpenseEmail": "finance+le@company.com",
- "expensePartnerEmail": "receipts@expensify.com",
- "bccEmail": "docs@company.com"
}, - "travelType": [
- "AIR"
], - "isExpensePartnerEnabled": true,
- "reportCustomFields": true,
- "personalCardExpenseOwner": {
- "traveler": true,
- "centralEmail": "docs@company.com"
}, - "centralCardExpenseOwner": {
- "traveler": true,
- "centralEmail": "docs@company.com"
}, - "partnerReferralId": "1234hgd",
- "itineraryConfig": {
- "skipModificationUpdate": true,
- "skipCancellationUpdate": true
}
}, - "mobileRedirectUrl": "string",
- "applicableCustomFieldTypes": [
- "QUESTION"
], - "oauthPartnerConfig": {
- "name": "string",
- "userDetailEndpoint": {
- "url": "string",
- "authHeaderName": "string",
- "userIdentifierType": "PID",
- "responseAttributes": [
- {
- "name": "PID",
- "jsonXpath": "$.user.email"
}
]
}, - "tokenVerifier": {
- "doVerifyToken": true,
- "type": "OKTA_JWT",
- "verifierDetails": {
- "oktaJwtVerifier": {
- "oauthUrl": "string",
- "audience": "string"
}
}
}, - "doPersistToken": true
}, - "privacySettings": {
- "allowCompanyAdminAccessToRelativesInfo": true
}, - "designationTree": {
- "name": "string",
- "children": [
- { }
]
}, - "externalId": "MyCompanyId",
- "emailClientConfig": {
- "client": "SENDGRID",
- "credentials": {
- "emailClientSecretKey": {
- "secretKey": "SECRET_KEY",
- "versionId": "1"
}
}, - "defaultSenderAddress": "test@somedomain.com",
- "defaultSenderName": "Test Sender"
}, - "isFake": false,
- "tmcPartnerRoleMappings": [
- {
- "partnerRole": "string",
- "spotnanaRole": "TRAVEL_ARRANGER"
}
], - "supportConfigs": {
- "length": 0,
- "elements": [
- {
- "contactNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "emailAddresses": [
- "support@spotnana.com"
], - "freshdeskConfig": {
- "enabled": true,
- "hasCredentials": false,
- "credentials": {
- "webCredentials": {
- "domain": "string",
- "appId": "string",
- "appKey": "string"
}, - "mobileCredentials": {
- "domain": "string",
- "appId": "string",
- "appKey": "string"
}
}
}, - "tier": "SEAT1A",
- "genesysConfig": {
- "enabled": true,
- "dataUrl": "string"
}, - "portalUrls": [
- "www.support.spotnana.com"
], - "zendeskConfig": {
- "enabled": true,
- "integrationId": "1234567890",
- "androidIntegrationId": "1234567890",
- "iosIntegrationId": "1234567890"
}, - "genesysCloudConfig": {
- "enabled": true,
- "deploymentId": "52dc2a6f-772a-4edf-96d3-b3f0c49400a7",
- "environment": "usa-1",
}, - "twilioChatConfig": {
- "enabled": true
}
}
]
}, - "loyaltyBlockedCountries": [
- "US",
- "IN"
], - "allowDomainBasedAuthConfig": false,
- "carbonCostConfig": {
- "price": {
- "amount": 510,
- "currencyCode": "GBP",
- "convertedAmount": 715.42,
- "convertedCurrency": "USD",
- "otherCoinage": [
- {
- "coinageCode": "BREX_POINTS",
- "amount": 1000,
- "conversionRate": 0.01,
- "preferredCurrencyConversionRate": 0.01
}
]
}, - "weight": {
- "weight": 150,
- "unit": "KG"
}
}
}
This endpoint updates a company by ID.
Updated Successfully
Bad request
Unauthorized
Forbidden
The specified resource was not found.
{- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "name": "Spotnana",
- "emailDomains": [
- "spotnana.com"
], - "billingCurrency": "INR",
- "phoneNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "emergencyContactInfos": [
- {
- "address": {
- "addressLines": [
- "Golden Gate Bridge"
], - "administrativeArea": "CA",
- "administrativeAreaName": "California",
- "description": "San Francisco Home",
- "isDefault": true,
- "languageCode": "en",
- "locality": "San Francisco",
- "locationCode": "LAX",
- "organization": "Spotnana",
- "postalCode": "94130",
- "continentCode": "AF",
- "recipients": [
- "string"
], - "regionCode": "US",
- "regionName": "America",
- "revision": 1,
- "sortingCode": "Jamaica",
- "sublocality": "string",
- "timezone": "America/Los_Angeles",
- "coordinates": {
- "latitude": 77.1025,
- "longitude": 28.7041
}
}, - "designation": "MANAGER",
- "email": "emergency-contact@email.com",
- "name": {
- "family1": "Gandas",
- "family2": "FamilyTwo",
- "given": "Vichitr",
- "middle": "Kumar",
- "suffix": "SR",
- "preferred": "Don"
}, - "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"
}, - "userOrgId": {
- "organizationAgencyId": {
- "id": "string"
}, - "organizationId": {
- "id": "string"
}, - "userId": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "tmcInfo": {
- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "primaryServiceProviderTmc": {
- "tmcId": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}
}, - "secondaryServiceProviderTmcs": [
- {
- "tmcId": {
- "id": null
}, - "supplier": "SABRE",
- "travelType": "AIR"
}
], - "partnerTmcId": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}
}, - "tmcBasicInfo": {
- "contractingTmc": {
- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "name": "string",
- "logo": {
- "data": "6935813e12584abda0e43d71cd2ea260",
- "dimensions": {
- "height": null,
- "width": null
},
}
}, - "bookingTmc": {
- "id": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "name": "string",
- "logo": {
- "data": "6935813e12584abda0e43d71cd2ea260",
- "dimensions": {
- "height": null,
- "width": null
},
}
}
}
}
}
], - "isSelfSignUpEnabled": true,
- "announcements": [
- {
- "title": "Spotnana on Mission to Unbundle Travel",
- "description": "Amex Ventures Joins Spotnana on Mission to Unbundle Travel.",
- "linkDisplayText": "New announcement"
}
], - "companyLogo": {
- "data": "6935813e12584abda0e43d71cd2ea260",
- "dimensions": {
- "height": 120,
- "width": 240
},
}, - "contractedBy": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}, - "isActive": true,
- "companyRoles": [
- "ORG"
], - "supportConfig": {
- "contactNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "emailAddresses": [
- "support@spotnana.com"
], - "freshdeskConfig": {
- "enabled": true,
- "hasCredentials": false,
- "credentials": {
- "webCredentials": {
- "domain": "string",
- "appId": "string",
- "appKey": "string"
}, - "mobileCredentials": {
- "domain": "string",
- "appId": "string",
- "appKey": "string"
}
}
}, - "tier": "SEAT1A",
- "genesysConfig": {
- "enabled": true,
- "dataUrl": "string"
}, - "portalUrls": [
- "www.support.spotnana.com"
], - "zendeskConfig": {
- "enabled": true,
- "integrationId": "1234567890",
- "androidIntegrationId": "1234567890",
- "iosIntegrationId": "1234567890"
}, - "genesysCloudConfig": {
- "enabled": true,
- "deploymentId": "52dc2a6f-772a-4edf-96d3-b3f0c49400a7",
- "environment": "usa-1",
}, - "twilioChatConfig": {
- "enabled": true
}
}, - "ccEmailAddresses": [
- "example@gmail.com"
], - "bccEmailAddresses": [
- "example@gmail.com"
], - "connectors": [
- {
- "connectorType": "HR_FEED_CONNECTOR",
- "connectorId": {
- "id": "f49d00fe-1eda-4304-ba79-a980f565281d"
}
}
], - "postalAddress": {
- "addressLines": [
- "Golden Gate Bridge"
], - "administrativeArea": "CA",
- "administrativeAreaName": "California",
- "description": "San Francisco Home",
- "isDefault": true,
- "languageCode": "en",
- "locality": "San Francisco",
- "locationCode": "LAX",
- "organization": "Spotnana",
- "postalCode": "94130",
- "continentCode": "AF",
- "recipients": [
- "string"
], - "regionCode": "US",
- "regionName": "America",
- "revision": 1,
- "sortingCode": "Jamaica",
- "sublocality": "string",
- "timezone": "America/Los_Angeles",
- "coordinates": {
- "latitude": 77.1025,
- "longitude": 28.7041
}
}, - "redirectUrl": "string",
- "rewardsProgram": {
- "allowedUserRoles": [
- "TRAVEL_ARRANGER"
], - "conversionRate": {
- "currencyCode": "USD",
- "rate": 0
}, - "redeemablePaymentMethods": [
- "BREX_POINTS"
], - "backingCurrency": [
- "USD"
]
}, - "tmcDefaultConfiguration": {
- "defaultBookingTmcId": "734f4ea2-e9ed-4c90-853c-9eed62f1254b",
- "countryWiseBookingTmcs": [
- {
- "countryCode": "US",
- "bookingTmcId": "734f4ea2-e9ed-4c90-853c-9eed62f1254b"
}
]
}, - "expensePartnerConfig": {
- "partner": "EXPENSIFY",
- "emailConfig": {
- "personalCardConfig": {
- "sendToTraveler": false,
- "personalCardExpenseEmail": "user@company.com"
}, - "centralCardExpenseEmail": "finance+le@company.com",
- "expensePartnerEmail": "receipts@expensify.com",
- "bccEmail": "docs@company.com"
}, - "travelType": [
- "AIR"
], - "isExpensePartnerEnabled": true,
- "reportCustomFields": true,
- "personalCardExpenseOwner": {
- "traveler": true,
- "centralEmail": "docs@company.com"
}, - "centralCardExpenseOwner": {
- "traveler": true,
- "centralEmail": "docs@company.com"
}, - "partnerReferralId": "1234hgd",
- "itineraryConfig": {
- "skipModificationUpdate": true,
- "skipCancellationUpdate": true
}
}, - "mobileRedirectUrl": "string",
- "applicableCustomFieldTypes": [
- "QUESTION"
], - "oauthPartnerConfig": {
- "name": "string",
- "userDetailEndpoint": {
- "url": "string",
- "authHeaderName": "string",
- "userIdentifierType": "PID",
- "responseAttributes": [
- {
- "name": "PID",
- "jsonXpath": "$.user.email"
}
]
}, - "tokenVerifier": {
- "doVerifyToken": true,
- "type": "OKTA_JWT",
- "verifierDetails": {
- "oktaJwtVerifier": {
- "oauthUrl": "string",
- "audience": "string"
}
}
}, - "doPersistToken": true
}, - "privacySettings": {
- "allowCompanyAdminAccessToRelativesInfo": true
}, - "designationTree": {
- "name": "string",
- "children": [
- { }
]
}, - "externalId": "MyCompanyId",
- "emailClientConfig": {
- "client": "SENDGRID",
- "credentials": {
- "emailClientSecretKey": {
- "secretKey": "SECRET_KEY",
- "versionId": "1"
}
}, - "defaultSenderAddress": "test@somedomain.com",
- "defaultSenderName": "Test Sender"
}, - "isFake": false,
- "tmcPartnerRoleMappings": [
- {
- "partnerRole": "string",
- "spotnanaRole": "TRAVEL_ARRANGER"
}
], - "supportConfigs": {
- "length": 0,
- "elements": [
- {
- "contactNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "emailAddresses": [
- "support@spotnana.com"
], - "freshdeskConfig": {
- "enabled": true,
- "hasCredentials": false,
- "credentials": {
- "webCredentials": {
- "domain": "string",
- "appId": "string",
- "appKey": "string"
}, - "mobileCredentials": {
- "domain": "string",
- "appId": "string",
- "appKey": "string"
}
}
}, - "tier": "SEAT1A",
- "genesysConfig": {
- "enabled": true,
- "dataUrl": "string"
}, - "portalUrls": [
- "www.support.spotnana.com"
], - "zendeskConfig": {
- "enabled": true,
- "integrationId": "1234567890",
- "androidIntegrationId": "1234567890",
- "iosIntegrationId": "1234567890"
}, - "genesysCloudConfig": {
- "enabled": true,
- "deploymentId": "52dc2a6f-772a-4edf-96d3-b3f0c49400a7",
- "environment": "usa-1",
}, - "twilioChatConfig": {
- "enabled": true
}
}
]
}, - "loyaltyBlockedCountries": [
- "US",
- "IN"
], - "allowDomainBasedAuthConfig": false,
- "carbonCostConfig": {
- "price": {
- "amount": 510,
- "currencyCode": "GBP",
- "convertedAmount": 715.42,
- "convertedCurrency": "USD",
- "otherCoinage": [
- {
- "coinageCode": "BREX_POINTS",
- "amount": 1000,
- "conversionRate": 0.01,
- "preferredCurrencyConversionRate": 0.01
}
]
}, - "weight": {
- "weight": 150,
- "unit": "KG"
}
}
}
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
This endpoint deletes a company by ID.
Deleted Successfully
Unauthorized
Forbidden
The specified resource was not found.
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "length": 1,
- "features": [
- {
- "name": "ADMIN_VIRTUAL_CARD",
- "enabled": true,
- "valueType": "BOOL",
- "value": "string"
}
]
}
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "featuresToUpdate": [
- {
- "name": "ADMIN_VIRTUAL_CARD",
- "value": "string"
}
], - "featuresToDelete": [
- "ADMIN_VIRTUAL_CARD"
]
}
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "airConfig": {
- "fareCategoryFilter": [
- {
- "priority": 1,
- "origin": {
- "value": "string",
- "metadata": {
- "type": "CITY",
- "code": "string"
}, - "infos": [
- { }
]
}, - "destination": {
- "value": "string",
- "metadata": {
- "type": "CITY",
- "code": "string"
}, - "infos": [
- { }
]
}, - "fareCategoryOption": [
- {
- "fareCategory": {
- "ngsCategory": "UNKNOWN_NGS_CATEGORY",
- "cabinViewCategory": "UNKNOWN_CABIN_CATEGORY"
}, - "disabled": true
}
]
}
]
}
}
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "airConfig": {
- "fareCategoryFilter": [
- {
- "priority": 1,
- "origin": {
- "value": "string",
- "metadata": {
- "type": "CITY",
- "code": "string"
}, - "infos": [
- { }
]
}, - "destination": {
- "value": "string",
- "metadata": {
- "type": "CITY",
- "code": "string"
}, - "infos": [
- { }
]
}, - "fareCategoryOption": [
- {
- "fareCategory": {
- "ngsCategory": "UNKNOWN_NGS_CATEGORY",
- "cabinViewCategory": "UNKNOWN_CABIN_CATEGORY"
}, - "disabled": true
}
]
}
]
}
}
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
This endpoint stores white label config for the company at different entity levels.
OK
Bad request
Unauthorized
Forbidden
The specified resource was not found.
{- "companyName": "Spotnana",
- "colors": {
- "primary": "#D33B47",
- "primaryDark": "#D33B47",
- "primaryLight": "#D33B47",
- "primaryPale": "#D33B47",
- "onPrimary": "#D33B47",
- "secondary": "#D33B47",
- "secondaryDark": "#D33B47",
- "secondaryLight": "#D33B47",
- "secondaryPale": "#D33B47",
- "onSecondary": "#D33B47",
- "error": "#D33B47",
- "errorDark": "#D33B47",
- "errorLight": "#D33B47",
- "errorPale": "#D33B47",
- "onError": "#D33B47"
}, - "webLinks": {
- "poweredBySpotnana": false,
- "appDownloadLinks": {
}, - "socialMediaLinks": {
},
}, - "fromEmailAddress": "no-reply@spotnana.com",
- "fontFamily": "Arial",
- "emailFontFamily": "Roboto",
- "emailClientConfig": {
- "client": "SENDGRID",
- "credentials": {
- "emailClientSecretKey": {
- "secretKey": "SECRET_KEY",
- "versionId": "1"
}
}, - "defaultSenderAddress": "test@somedomain.com",
- "defaultSenderName": "Test Sender"
}, - "clientRoutingBasePath": "string",
- "routingConfig": {
- "appHomeRoute": "/my-account"
}, - "privacyDisclaimer": {
- "show": true,
- "html": "</html>"
}
}
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
This endpoint fetches the white label config for the company.
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "companyName": "Spotnana",
- "colors": {
- "primary": "#D33B47",
- "primaryDark": "#D33B47",
- "primaryLight": "#D33B47",
- "primaryPale": "#D33B47",
- "onPrimary": "#D33B47",
- "secondary": "#D33B47",
- "secondaryDark": "#D33B47",
- "secondaryLight": "#D33B47",
- "secondaryPale": "#D33B47",
- "onSecondary": "#D33B47",
- "error": "#D33B47",
- "errorDark": "#D33B47",
- "errorLight": "#D33B47",
- "errorPale": "#D33B47",
- "onError": "#D33B47"
}, - "webLinks": {
- "poweredBySpotnana": false,
- "appDownloadLinks": {
}, - "socialMediaLinks": {
},
}, - "fromEmailAddress": "no-reply@spotnana.com",
- "fontFamily": "Arial",
- "emailFontFamily": "Roboto",
- "emailClientConfig": {
- "client": "SENDGRID",
- "credentials": {
- "emailClientSecretKey": {
- "secretKey": "SECRET_KEY",
- "versionId": "1"
}
}, - "defaultSenderAddress": "test@somedomain.com",
- "defaultSenderName": "Test Sender"
}, - "clientRoutingBasePath": "string",
- "routingConfig": {
- "appHomeRoute": "/my-account"
}, - "privacyDisclaimer": {
- "show": true,
- "html": "</html>"
}
}
This endpoint stores Color config for the company at some entity level.
Array of objects (ProfileColors) The list of colors relating to profile. |
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "profileColors": [
- {
- "title": "PROFILE_TIER_MEMBER_COLOR",
- "color": "#FF0000"
}
]
}
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
This endpoint fetches the color config for the given entity.
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "profileColors": [
- {
- "title": "PROFILE_TIER_MEMBER_COLOR",
- "color": "#FF0000"
}
]
}
This endpoint creates a legal entity.
Created
Bad request
Unauthorized
Forbidden
{- "name": "string",
- "address": {
- "addressLines": [
- "Golden Gate Bridge"
], - "administrativeArea": "CA",
- "administrativeAreaName": "California",
- "description": "San Francisco Home",
- "isDefault": true,
- "languageCode": "en",
- "locality": "San Francisco",
- "locationCode": "LAX",
- "organization": "Spotnana",
- "postalCode": "94130",
- "continentCode": "AF",
- "recipients": [
- "string"
], - "regionCode": "US",
- "regionName": "America",
- "revision": 1,
- "sortingCode": "Jamaica",
- "sublocality": "string",
- "timezone": "America/Los_Angeles",
- "coordinates": {
- "latitude": 77.1025,
- "longitude": 28.7041
}
}, - "billingCurrency": "string",
- "dba": "string",
- "ein": "string",
- "phoneNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "isDelayedInvoicingEnabled": true,
- "ccEmailAddresses": [
- "example@gmail.com"
], - "bccEmailAddresses": [
- "example@gmail.com"
], - "externalId": "legal-entity-external-id",
- "companySpecifiedAttributes": [
- {
- "fieldName": "businessId",
- "value": "ABCD"
}
]
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
This endpoint lists legal entities of a company. If externalId is provided in the query param only the legal entity having the provided externalId is returned.
OK
Unauthorized
Forbidden
{- "length": 0,
- "elements": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
]
}
This endpoint gets a legal entity by ID.
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "address": {
- "addressLines": [
- "Golden Gate Bridge"
], - "administrativeArea": "CA",
- "administrativeAreaName": "California",
- "description": "San Francisco Home",
- "isDefault": true,
- "languageCode": "en",
- "locality": "San Francisco",
- "locationCode": "LAX",
- "organization": "Spotnana",
- "postalCode": "94130",
- "continentCode": "AF",
- "recipients": [
- "string"
], - "regionCode": "US",
- "regionName": "America",
- "revision": 1,
- "sortingCode": "Jamaica",
- "sublocality": "string",
- "timezone": "America/Los_Angeles",
- "coordinates": {
- "latitude": 77.1025,
- "longitude": 28.7041
}
}, - "billingCurrency": "string",
- "dba": "string",
- "ein": "string",
- "phoneNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "isDelayedInvoicingEnabled": true,
- "bookingTmcRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "expensePartnerConfig": {
- "partner": "EXPENSIFY",
- "emailConfig": {
- "personalCardConfig": {
- "sendToTraveler": false,
- "personalCardExpenseEmail": "user@company.com"
}, - "centralCardExpenseEmail": "finance+le@company.com",
- "expensePartnerEmail": "receipts@expensify.com",
- "bccEmail": "docs@company.com"
}, - "travelType": [
- "AIR"
], - "isExpensePartnerEnabled": true,
- "reportCustomFields": true,
- "personalCardExpenseOwner": {
- "traveler": true,
- "centralEmail": "docs@company.com"
}, - "centralCardExpenseOwner": {
- "traveler": true,
- "centralEmail": "docs@company.com"
}, - "partnerReferralId": "1234hgd",
- "itineraryConfig": {
- "skipModificationUpdate": true,
- "skipCancellationUpdate": true
}
}, - "ccEmailAddresses": [
- "example@gmail.com"
], - "bccEmailAddresses": [
- "example@gmail.com"
], - "externalId": "my-external-id",
- "companySpecifiedAttributes": [
- {
- "fieldName": "businessId",
- "value": "ABCD"
}
]
}
This endpoint updates a legal entity by ID.
Updated Successfully
Bad request
Unauthorized
Forbidden
The specified resource was not found.
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "address": {
- "addressLines": [
- "Golden Gate Bridge"
], - "administrativeArea": "CA",
- "administrativeAreaName": "California",
- "description": "San Francisco Home",
- "isDefault": true,
- "languageCode": "en",
- "locality": "San Francisco",
- "locationCode": "LAX",
- "organization": "Spotnana",
- "postalCode": "94130",
- "continentCode": "AF",
- "recipients": [
- "string"
], - "regionCode": "US",
- "regionName": "America",
- "revision": 1,
- "sortingCode": "Jamaica",
- "sublocality": "string",
- "timezone": "America/Los_Angeles",
- "coordinates": {
- "latitude": 77.1025,
- "longitude": 28.7041
}
}, - "billingCurrency": "string",
- "dba": "string",
- "ein": "string",
- "phoneNumbers": [
- {
- "countryCode": 91,
- "countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
- "extension": "222",
- "isoCountryCode": "IN",
- "italianLeadingZero": true,
- "nationalNumber": 8150,
- "numberOfLeadingZeros": 1,
- "preferredDomesticCarrierCode": "7",
- "rawInput": "77777",
- "type": "MOBILE"
}
], - "isDelayedInvoicingEnabled": true,
- "bookingTmcRef": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "expensePartnerConfig": {
- "partner": "EXPENSIFY",
- "emailConfig": {
- "personalCardConfig": {
- "sendToTraveler": false,
- "personalCardExpenseEmail": "user@company.com"
}, - "centralCardExpenseEmail": "finance+le@company.com",
- "expensePartnerEmail": "receipts@expensify.com",
- "bccEmail": "docs@company.com"
}, - "travelType": [
- "AIR"
], - "isExpensePartnerEnabled": true,
- "reportCustomFields": true,
- "personalCardExpenseOwner": {
- "traveler": true,
- "centralEmail": "docs@company.com"
}, - "centralCardExpenseOwner": {
- "traveler": true,
- "centralEmail": "docs@company.com"
}, - "partnerReferralId": "1234hgd",
- "itineraryConfig": {
- "skipModificationUpdate": true,
- "skipCancellationUpdate": true
}
}, - "ccEmailAddresses": [
- "example@gmail.com"
], - "bccEmailAddresses": [
- "example@gmail.com"
], - "externalId": "my-external-id",
- "companySpecifiedAttributes": [
- {
- "fieldName": "businessId",
- "value": "ABCD"
}
]
}
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
This endpoint deletes a legal entity by ID.
Deleted
Unauthorized
Forbidden
The specified resource was not found.
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
This endpoint creates a cost center.
OK
Bad request
Unauthorized
Forbidden
{- "name": "string",
- "numberOfEmployees": 0,
- "externalId": "external-id"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
This endpoint lists cost centers of a company. If an externalId is provided in the query parameter only the cost center with the provided externalId is returned.
OK
Unauthorized
Forbidden
{- "length": 0,
- "elements": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
]
}
This endpoint gets a cost center by ID.
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "employeeCount": 120,
- "id": {
- "id": "731ccbca-0415-6fe1-d235-c324dfbe7423"
}, - "name": "CostCenter",
- "externalId": "external-id"
}
This endpoint updates a cost center by ID.
Updated Successfully
Bad request
Unauthorized
Forbidden
The specified resource was not found.
{- "employeeCount": 120,
- "id": {
- "id": "731ccbca-0415-6fe1-d235-c324dfbe7423"
}, - "name": "CostCenter",
- "externalId": "external-id"
}
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
This endpoint deletes a cost center by ID.
No Content
Unauthorized
Forbidden
The specified resource was not found.
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
This endpoint creates an office.
Created
Bad request
Unauthorized
Forbidden
{- "address": {
- "addressLines": [
- "Golden Gate Bridge"
], - "administrativeArea": "CA",
- "administrativeAreaName": "California",
- "description": "San Francisco Home",
- "isDefault": true,
- "languageCode": "en",
- "locality": "San Francisco",
- "locationCode": "LAX",
- "organization": "Spotnana",
- "postalCode": "94130",
- "continentCode": "AF",
- "recipients": [
- "string"
], - "regionCode": "US",
- "regionName": "America",
- "revision": 1,
- "sortingCode": "Jamaica",
- "sublocality": "string",
- "timezone": "America/Los_Angeles",
- "coordinates": {
- "latitude": 77.1025,
- "longitude": 28.7041
}
}, - "name": "Office name",
- "latlng": {
- "latitude": 77.1025,
- "longitude": 28.7041
}, - "externalId": "external-id",
- "taxId": "123232"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
This endpoint list offices of given legal entity. If externalId is provided in query param, the office having the externalId is fetched.
OK
Unauthorized
Forbidden
{- "length": 0,
- "elements": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
]
}
This endpoint gets an office by ID.
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "address": {
- "addressLines": [
- "Golden Gate Bridge"
], - "administrativeArea": "CA",
- "administrativeAreaName": "California",
- "description": "San Francisco Home",
- "isDefault": true,
- "languageCode": "en",
- "locality": "San Francisco",
- "locationCode": "LAX",
- "organization": "Spotnana",
- "postalCode": "94130",
- "continentCode": "AF",
- "recipients": [
- "string"
], - "regionCode": "US",
- "regionName": "America",
- "revision": 1,
- "sortingCode": "Jamaica",
- "sublocality": "string",
- "timezone": "America/Los_Angeles",
- "coordinates": {
- "latitude": 77.1025,
- "longitude": 28.7041
}
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Office",
- "latlng": {
- "latitude": 77.1025,
- "longitude": 28.7041
}, - "externalId": "external-id",
- "taxId": "123232"
}
This endpoing updates office by ID.
Updated successfully
Bad request
Unauthorized
Forbidden
The specified resource was not found.
{- "address": {
- "addressLines": [
- "Golden Gate Bridge"
], - "administrativeArea": "CA",
- "administrativeAreaName": "California",
- "description": "San Francisco Home",
- "isDefault": true,
- "languageCode": "en",
- "locality": "San Francisco",
- "locationCode": "LAX",
- "organization": "Spotnana",
- "postalCode": "94130",
- "continentCode": "AF",
- "recipients": [
- "string"
], - "regionCode": "US",
- "regionName": "America",
- "revision": 1,
- "sortingCode": "Jamaica",
- "sublocality": "string",
- "timezone": "America/Los_Angeles",
- "coordinates": {
- "latitude": 77.1025,
- "longitude": 28.7041
}
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Office",
- "latlng": {
- "latitude": 77.1025,
- "longitude": 28.7041
}, - "externalId": "external-id",
- "taxId": "123232"
}
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
This endpoint deletes office by ID.
Deleted
Unauthorized
Forbidden
The specified resource was not found.
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
This endpoint creates a department.
OK
Bad request
Unauthorized
Forbidden
{- "name": "string",
- "externalId": "department-external-id"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
This endpoint lists departments of a company.
OK
Unauthorized
Forbidden
{- "length": 0,
- "elements": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
]
}
This endpoint gets a department by ID.
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "IT Department",
- "externalId": "department-ext-id"
}
This endpoint updates department by ID.
Updated Successfully
Bad request
Unauthorized
Forbidden
The specified resource was not found.
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "IT Department",
- "externalId": "department-ext-id"
}
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
This endpoint deletes department by ID.
Deleted Successfully
Unauthorized
Forbidden
The specified resource was not found.
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
Get per-trip service charge configuration for company
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "config": {
- "charges": [
- {
- "amount": 510,
- "currencyCode": "GBP",
- "convertedAmount": 715.42,
- "convertedCurrency": "USD",
- "otherCoinage": [
- {
- "coinageCode": "BREX_POINTS",
- "amount": 1000,
- "conversionRate": 0.01,
- "preferredCurrencyConversionRate": 0.01
}
]
}
], - "defaultCurrencyCode": "GBP",
- "tierCharges": [
- {
- "tier": "SEAT1A",
- "charges": [
- {
- "amount": 510,
- "currencyCode": "GBP",
- "convertedAmount": 715.42,
- "convertedCurrency": "USD",
- "otherCoinage": [
- {
- "coinageCode": null,
- "amount": null,
- "conversionRate": null,
- "preferredCurrencyConversionRate": null
}
]
}
]
}
]
}, - "enabled": true,
- "enableDisableOpSupported": true
}
Set per-trip service charge configuration for company
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "config": {
- "charges": [
- {
- "amount": 510,
- "currencyCode": "GBP",
- "convertedAmount": 715.42,
- "convertedCurrency": "USD",
- "otherCoinage": [
- {
- "coinageCode": "BREX_POINTS",
- "amount": 1000,
- "conversionRate": 0.01,
- "preferredCurrencyConversionRate": 0.01
}
]
}
], - "defaultCurrencyCode": "GBP",
- "tierCharges": [
- {
- "tier": "SEAT1A",
- "charges": [
- {
- "amount": 510,
- "currencyCode": "GBP",
- "convertedAmount": 715.42,
- "convertedCurrency": "USD",
- "otherCoinage": [
- {
- "coinageCode": null,
- "amount": null,
- "conversionRate": null,
- "preferredCurrencyConversionRate": null
}
]
}
]
}
]
}
}
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
List service charges for a given entity
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "serviceType": "ITINERARY_BOOKING"
}
{- "serviceCharges": [
- {
- "entity": {
- "entityType": "TRIP",
- "entityId": "1234567890"
}, - "tripId": "1234567890",
- "serviceChargeType": "TMC_CHARGE",
- "serviceType": "ITINERARY_BOOKING",
- "agentContact": {
- "contactType": "PHONE",
- "contactId": "1234567890",
- "contactOp": "AGENT_BOOKING",
- "agentId": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "billable": true,
- "pnrId": "1234567890",
- "travelType": "AIR",
- "notes": "Requested by customer",
- "nonBillableReason": {
- "reasonCode": "PRODUCT_ISSUE",
- "notes": "Waived off"
}
}, - "charge": {
- "amount": {
- "amount": 510,
- "currencyCode": "GBP",
- "convertedAmount": 715.42,
- "convertedCurrency": "USD",
- "otherCoinage": [
- {
- "coinageCode": "BREX_POINTS",
- "amount": 1000,
- "conversionRate": 0.01,
- "preferredCurrencyConversionRate": 0.01
}
]
}, - "taxes": [
- {
- "amount": {
- "amount": 510,
- "currencyCode": "GBP",
- "convertedAmount": 715.42,
- "convertedCurrency": "USD",
- "otherCoinage": [
- { }
]
}, - "taxCode": "VAT",
- "description": "string",
- "percentage": 10
}
], - "totalAmount": {
- "amount": 510,
- "currencyCode": "GBP",
- "convertedAmount": 715.42,
- "convertedCurrency": "USD",
- "otherCoinage": [
- {
- "coinageCode": "BREX_POINTS",
- "amount": 1000,
- "conversionRate": 0.01,
- "preferredCurrencyConversionRate": 0.01
}
]
}, - "allowedFoP": [
- "BREX_POINTS"
]
}, - "transactionTime": {
- "iso8601": "2017-07-21T17:32Z"
}, - "paymentStatus": "SUCCESS"
}
]
}
This endpoint stores Enrollment config for the company at TMC level.
OK
Bad request
Unauthorized
Forbidden
The specified resource was not found.
{
}
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
This endpoint fetches the enrollment config for the company.
OK
Unauthorized
Forbidden
The specified resource was not found.
{
}
This endpoint stores Tier config for the company at TMC level.
Array of objects (TierDefinition) A list of tiers for this company. |
OK
Bad request
Unauthorized
Forbidden
The specified resource was not found.
{- "tiers": [
- {
- "name": "string",
- "icon": "string",
- "tier": "SEAT1A"
}
]
}
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
This endpoint fetches the tier config for the company.
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "tiers": [
- {
- "name": "string",
- "icon": "string",
- "tier": "SEAT1A"
}
]
}