Download OpenAPI specification:Download
This endpoint creates a policy.
Created
Bad request
Unauthorized
Forbidden
{- "name": "string",
- "type": "GROUP",
- "parentPolicyId": "f7b3b3b3-7b3b-4b3b-8b3b-3b3b3b3b3b3b",
- "currency": {
- "currencyCode": "USD"
}, - "inPolicyApprovalInfo": {
- "approvalProcessType": "NONE",
- "designatedApprovers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "isManagerApprover": false,
- "isEmployeeLevelDesignatedApprover": false,
- "shouldNotifyManager": false,
- "travelTypes": [
- "AIR"
], - "approvalConditions": [
- {
- "rules": [
- {
- "travelRegionRule": {
- "travelRegionType": "DOMESTIC"
}
}
]
}
], - "defaultApprovers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
]
}, - "outOfPolicyApprovalInfo": {
- "approvalProcessType": "NONE",
- "designatedApprovers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "isManagerApprover": false,
- "isEmployeeLevelDesignatedApprover": false,
- "shouldNotifyManager": false,
- "travelTypes": [
- "AIR"
], - "approvalConditions": [
- {
- "rules": [
- {
- "travelRegionRule": {
- "travelRegionType": "DOMESTIC"
}
}
]
}
], - "defaultApprovers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
]
}, - "inPolicyApprovalInfos": [
- {
- "approvalProcessType": "NONE",
- "designatedApprovers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "isManagerApprover": false,
- "isEmployeeLevelDesignatedApprover": false,
- "shouldNotifyManager": false,
- "travelTypes": [
- "AIR"
], - "approvalConditions": [
- {
- "rules": [
- {
- "travelRegionRule": {
- "travelRegionType": null
}
}
]
}
], - "defaultApprovers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
]
}
], - "outOfPolicyApprovalInfos": [
- {
- "approvalProcessType": "NONE",
- "designatedApprovers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "isManagerApprover": false,
- "isEmployeeLevelDesignatedApprover": false,
- "shouldNotifyManager": false,
- "travelTypes": [
- "AIR"
], - "approvalConditions": [
- {
- "rules": [
- {
- "travelRegionRule": {
- "travelRegionType": null
}
}
]
}
], - "defaultApprovers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
]
}
], - "userGroups": [
- {
- "userIds": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "legalEntityIds": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "officeIds": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "departments": [
- "string"
], - "costCenters": [
- "string"
], - "grades": [
- "string"
], - "positionTitles": [
- "string"
], - "personas": [
- "EMPLOYEE"
], - "customFieldIds": [
- {
- "type": "QUESTION",
- "externalId": "string"
}
], - "countryCodes": [
- "GB"
], - "workerTypes": [
- "EMPLOYEE"
], - "accountingCodes": [
- "string"
]
}
], - "commonPolicyRules": {
- "restrictedContinents": {
- "isLinked": true
}, - "restrictedCountries": {
- "isLinked": true
}
}, - "carPolicyRules": {
- "maxCarPricePerNumberOfDays": {
- "isLinked": true
}, - "allowedCarTypes": {
- "isLinked": true
}
}, - "hotelPolicyRules": {
- "restrictedHotels": {
- "isLinked": true
}, - "maxHotelPriceByLocation": {
- "isLinked": true
}, - "hotelAdvanceBookingWindow": {
- "isLinked": true
}, - "hotelCancellation": {
- "isLinked": true
}, - "hotelChainCodes": {
- "isLinked": true
}, - "hotelStarRating": {
- "isLinked": true
}, - "hotelMedianRateNightly": {
- "isLinked": true
}
}, - "airPolicyRules": {
- "restrictedAirlines": {
- "isLinked": true
}, - "restrictedAirCrafts": {
- "isLinked": true
}, - "maxFlightBookingPriceByDuration": {
- "isLinked": true
}, - "flightCabinUpgrade": {
- "isLinked": true
}, - "flightAdvanceBookingWindow": {
- "isLinked": true
}, - "flightTicketsRefundable": {
- "isLinked": true
}, - "flightTicketsChangeable": {
- "isLinked": true
}, - "highestFlightCabinByDurationDomestic": {
- "isLinked": true
}, - "highestFlightCabinByDurationInternational": {
- "isLinked": true
}, - "highestFlightCabinOvernight": {
- "isLinked": true
}, - "differenceBetweenFlightFareAndMedianFare": {
- "isLinked": true
}, - "co2EmissionPerPassengerPerKm": {
- "isLinked": true
}, - "maxFlightBookingPriceInternational": {
- "isLinked": true
}, - "maxFlightBookingPriceDomestic": {
- "isLinked": true
}, - "lowestLogicalFare": {
- "isLinked": true
}
}, - "isRestrictive": true,
- "rules": [
- {
- "ruleType": "CAR_TYPES_NOT_ALLOWED",
- "action": {
- "preventBooking": {
- "prevent": false,
- "reason": "string"
}
}, - "policyValue": {
- "isLinked": true
}
}
], - "airOopReasonCodes": {
- "props": {
- "reasonCodes": [
- {
- "entityId": "string",
- "displayInfo": "string",
- "questionFormat": "CHECKBOX",
- "options": [
- {
- "displayCode": "string",
- "displayValue": "string"
}
], - "isRequired": true,
- "isDisabled": true
}
]
}
}, - "hotelOopReasonCodes": {
- "props": {
- "reasonCodes": [
- {
- "entityId": "string",
- "displayInfo": "string",
- "questionFormat": "CHECKBOX",
- "options": [
- {
- "displayCode": "string",
- "displayValue": "string"
}
], - "isRequired": true,
- "isDisabled": true
}
]
}
}, - "carOopReasonCodes": {
- "props": {
- "reasonCodes": [
- {
- "entityId": "string",
- "displayInfo": "string",
- "questionFormat": "CHECKBOX",
- "options": [
- {
- "displayCode": "string",
- "displayValue": "string"
}
], - "isRequired": true,
- "isDisabled": true
}
]
}
}, - "railOopReasonCodes": {
- "props": {
- "reasonCodes": [
- {
- "entityId": "string",
- "displayInfo": "string",
- "questionFormat": "CHECKBOX",
- "options": [
- {
- "displayCode": "string",
- "displayValue": "string"
}
], - "isRequired": true,
- "isDisabled": true
}
]
}
}, - "category": "EMPLOYEE"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
This endpoint list company policies.
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "length": 0,
- "elements": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
]
}
This endpoint gets a policy by ID.
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "id": "4974a66b-7493-4f41-908c-58ba81093947",
- "version": 0,
- "updatedAt": {
- "iso8601": "2017-07-21T17:32Z"
}, - "isMembershipViaHrFeed": true,
- "hrFeedPolicyDetails": {
- "totalMemberCount": 0
}, - "name": "string",
- "type": "GROUP",
- "parentPolicyId": "f7b3b3b3-7b3b-4b3b-8b3b-3b3b3b3b3b3b",
- "currency": {
- "currencyCode": "USD"
}, - "inPolicyApprovalInfo": {
- "approvalProcessType": "NONE",
- "designatedApprovers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "isManagerApprover": false,
- "isEmployeeLevelDesignatedApprover": false,
- "shouldNotifyManager": false,
- "travelTypes": [
- "AIR"
], - "approvalConditions": [
- {
- "rules": [
- {
- "travelRegionRule": {
- "travelRegionType": "DOMESTIC"
}
}
]
}
], - "defaultApprovers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
]
}, - "outOfPolicyApprovalInfo": {
- "approvalProcessType": "NONE",
- "designatedApprovers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "isManagerApprover": false,
- "isEmployeeLevelDesignatedApprover": false,
- "shouldNotifyManager": false,
- "travelTypes": [
- "AIR"
], - "approvalConditions": [
- {
- "rules": [
- {
- "travelRegionRule": {
- "travelRegionType": "DOMESTIC"
}
}
]
}
], - "defaultApprovers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
]
}, - "inPolicyApprovalInfos": [
- {
- "approvalProcessType": "NONE",
- "designatedApprovers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "isManagerApprover": false,
- "isEmployeeLevelDesignatedApprover": false,
- "shouldNotifyManager": false,
- "travelTypes": [
- "AIR"
], - "approvalConditions": [
- {
- "rules": [
- {
- "travelRegionRule": {
- "travelRegionType": null
}
}
]
}
], - "defaultApprovers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
]
}
], - "outOfPolicyApprovalInfos": [
- {
- "approvalProcessType": "NONE",
- "designatedApprovers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "isManagerApprover": false,
- "isEmployeeLevelDesignatedApprover": false,
- "shouldNotifyManager": false,
- "travelTypes": [
- "AIR"
], - "approvalConditions": [
- {
- "rules": [
- {
- "travelRegionRule": {
- "travelRegionType": null
}
}
]
}
], - "defaultApprovers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
]
}
], - "userGroups": [
- {
- "userIds": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "legalEntityIds": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "officeIds": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "departments": [
- "string"
], - "costCenters": [
- "string"
], - "grades": [
- "string"
], - "positionTitles": [
- "string"
], - "personas": [
- "EMPLOYEE"
], - "customFieldIds": [
- {
- "type": "QUESTION",
- "externalId": "string"
}
], - "countryCodes": [
- "GB"
], - "workerTypes": [
- "EMPLOYEE"
], - "accountingCodes": [
- "string"
]
}
], - "commonPolicyRules": {
- "restrictedContinents": {
- "isLinked": true
}, - "restrictedCountries": {
- "isLinked": true
}
}, - "carPolicyRules": {
- "maxCarPricePerNumberOfDays": {
- "isLinked": true
}, - "allowedCarTypes": {
- "isLinked": true
}
}, - "hotelPolicyRules": {
- "restrictedHotels": {
- "isLinked": true
}, - "maxHotelPriceByLocation": {
- "isLinked": true
}, - "hotelAdvanceBookingWindow": {
- "isLinked": true
}, - "hotelCancellation": {
- "isLinked": true
}, - "hotelChainCodes": {
- "isLinked": true
}, - "hotelStarRating": {
- "isLinked": true
}, - "hotelMedianRateNightly": {
- "isLinked": true
}
}, - "airPolicyRules": {
- "restrictedAirlines": {
- "isLinked": true
}, - "restrictedAirCrafts": {
- "isLinked": true
}, - "maxFlightBookingPriceByDuration": {
- "isLinked": true
}, - "flightCabinUpgrade": {
- "isLinked": true
}, - "flightAdvanceBookingWindow": {
- "isLinked": true
}, - "flightTicketsRefundable": {
- "isLinked": true
}, - "flightTicketsChangeable": {
- "isLinked": true
}, - "highestFlightCabinByDurationDomestic": {
- "isLinked": true
}, - "highestFlightCabinByDurationInternational": {
- "isLinked": true
}, - "highestFlightCabinOvernight": {
- "isLinked": true
}, - "differenceBetweenFlightFareAndMedianFare": {
- "isLinked": true
}, - "co2EmissionPerPassengerPerKm": {
- "isLinked": true
}, - "maxFlightBookingPriceInternational": {
- "isLinked": true
}, - "maxFlightBookingPriceDomestic": {
- "isLinked": true
}, - "lowestLogicalFare": {
- "isLinked": true
}
}, - "isRestrictive": true,
- "rules": [
- {
- "ruleType": "CAR_TYPES_NOT_ALLOWED",
- "action": {
- "preventBooking": {
- "prevent": false,
- "reason": "string"
}
}, - "policyValue": {
- "isLinked": true
}
}
], - "airOopReasonCodes": {
- "props": {
- "reasonCodes": [
- {
- "entityId": "string",
- "displayInfo": "string",
- "questionFormat": "CHECKBOX",
- "options": [
- {
- "displayCode": "string",
- "displayValue": "string"
}
], - "isRequired": true,
- "isDisabled": true
}
]
}
}, - "hotelOopReasonCodes": {
- "props": {
- "reasonCodes": [
- {
- "entityId": "string",
- "displayInfo": "string",
- "questionFormat": "CHECKBOX",
- "options": [
- {
- "displayCode": "string",
- "displayValue": "string"
}
], - "isRequired": true,
- "isDisabled": true
}
]
}
}, - "carOopReasonCodes": {
- "props": {
- "reasonCodes": [
- {
- "entityId": "string",
- "displayInfo": "string",
- "questionFormat": "CHECKBOX",
- "options": [
- {
- "displayCode": "string",
- "displayValue": "string"
}
], - "isRequired": true,
- "isDisabled": true
}
]
}
}, - "railOopReasonCodes": {
- "props": {
- "reasonCodes": [
- {
- "entityId": "string",
- "displayInfo": "string",
- "questionFormat": "CHECKBOX",
- "options": [
- {
- "displayCode": "string",
- "displayValue": "string"
}
], - "isRequired": true,
- "isDisabled": true
}
]
}
}, - "category": "EMPLOYEE"
}
This endpoint updates a policy by ID.
Updated Successfully
Bad request
Unauthorized
Forbidden
The specified resource was not found.
{- "id": "4974a66b-7493-4f41-908c-58ba81093947",
- "version": 0,
- "updatedAt": {
- "iso8601": "2017-07-21T17:32Z"
}, - "isMembershipViaHrFeed": true,
- "hrFeedPolicyDetails": {
- "totalMemberCount": 0
}, - "name": "string",
- "type": "GROUP",
- "parentPolicyId": "f7b3b3b3-7b3b-4b3b-8b3b-3b3b3b3b3b3b",
- "currency": {
- "currencyCode": "USD"
}, - "inPolicyApprovalInfo": {
- "approvalProcessType": "NONE",
- "designatedApprovers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "isManagerApprover": false,
- "isEmployeeLevelDesignatedApprover": false,
- "shouldNotifyManager": false,
- "travelTypes": [
- "AIR"
], - "approvalConditions": [
- {
- "rules": [
- {
- "travelRegionRule": {
- "travelRegionType": "DOMESTIC"
}
}
]
}
], - "defaultApprovers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
]
}, - "outOfPolicyApprovalInfo": {
- "approvalProcessType": "NONE",
- "designatedApprovers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "isManagerApprover": false,
- "isEmployeeLevelDesignatedApprover": false,
- "shouldNotifyManager": false,
- "travelTypes": [
- "AIR"
], - "approvalConditions": [
- {
- "rules": [
- {
- "travelRegionRule": {
- "travelRegionType": "DOMESTIC"
}
}
]
}
], - "defaultApprovers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
]
}, - "inPolicyApprovalInfos": [
- {
- "approvalProcessType": "NONE",
- "designatedApprovers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "isManagerApprover": false,
- "isEmployeeLevelDesignatedApprover": false,
- "shouldNotifyManager": false,
- "travelTypes": [
- "AIR"
], - "approvalConditions": [
- {
- "rules": [
- {
- "travelRegionRule": {
- "travelRegionType": null
}
}
]
}
], - "defaultApprovers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
]
}
], - "outOfPolicyApprovalInfos": [
- {
- "approvalProcessType": "NONE",
- "designatedApprovers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "isManagerApprover": false,
- "isEmployeeLevelDesignatedApprover": false,
- "shouldNotifyManager": false,
- "travelTypes": [
- "AIR"
], - "approvalConditions": [
- {
- "rules": [
- {
- "travelRegionRule": {
- "travelRegionType": null
}
}
]
}
], - "defaultApprovers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
]
}
], - "userGroups": [
- {
- "userIds": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "legalEntityIds": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "officeIds": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "departments": [
- "string"
], - "costCenters": [
- "string"
], - "grades": [
- "string"
], - "positionTitles": [
- "string"
], - "personas": [
- "EMPLOYEE"
], - "customFieldIds": [
- {
- "type": "QUESTION",
- "externalId": "string"
}
], - "countryCodes": [
- "GB"
], - "workerTypes": [
- "EMPLOYEE"
], - "accountingCodes": [
- "string"
]
}
], - "commonPolicyRules": {
- "restrictedContinents": {
- "isLinked": true
}, - "restrictedCountries": {
- "isLinked": true
}
}, - "carPolicyRules": {
- "maxCarPricePerNumberOfDays": {
- "isLinked": true
}, - "allowedCarTypes": {
- "isLinked": true
}
}, - "hotelPolicyRules": {
- "restrictedHotels": {
- "isLinked": true
}, - "maxHotelPriceByLocation": {
- "isLinked": true
}, - "hotelAdvanceBookingWindow": {
- "isLinked": true
}, - "hotelCancellation": {
- "isLinked": true
}, - "hotelChainCodes": {
- "isLinked": true
}, - "hotelStarRating": {
- "isLinked": true
}, - "hotelMedianRateNightly": {
- "isLinked": true
}
}, - "airPolicyRules": {
- "restrictedAirlines": {
- "isLinked": true
}, - "restrictedAirCrafts": {
- "isLinked": true
}, - "maxFlightBookingPriceByDuration": {
- "isLinked": true
}, - "flightCabinUpgrade": {
- "isLinked": true
}, - "flightAdvanceBookingWindow": {
- "isLinked": true
}, - "flightTicketsRefundable": {
- "isLinked": true
}, - "flightTicketsChangeable": {
- "isLinked": true
}, - "highestFlightCabinByDurationDomestic": {
- "isLinked": true
}, - "highestFlightCabinByDurationInternational": {
- "isLinked": true
}, - "highestFlightCabinOvernight": {
- "isLinked": true
}, - "differenceBetweenFlightFareAndMedianFare": {
- "isLinked": true
}, - "co2EmissionPerPassengerPerKm": {
- "isLinked": true
}, - "maxFlightBookingPriceInternational": {
- "isLinked": true
}, - "maxFlightBookingPriceDomestic": {
- "isLinked": true
}, - "lowestLogicalFare": {
- "isLinked": true
}
}, - "isRestrictive": true,
- "rules": [
- {
- "ruleType": "CAR_TYPES_NOT_ALLOWED",
- "action": {
- "preventBooking": {
- "prevent": false,
- "reason": "string"
}
}, - "policyValue": {
- "isLinked": true
}
}
], - "airOopReasonCodes": {
- "props": {
- "reasonCodes": [
- {
- "entityId": "string",
- "displayInfo": "string",
- "questionFormat": "CHECKBOX",
- "options": [
- {
- "displayCode": "string",
- "displayValue": "string"
}
], - "isRequired": true,
- "isDisabled": true
}
]
}
}, - "hotelOopReasonCodes": {
- "props": {
- "reasonCodes": [
- {
- "entityId": "string",
- "displayInfo": "string",
- "questionFormat": "CHECKBOX",
- "options": [
- {
- "displayCode": "string",
- "displayValue": "string"
}
], - "isRequired": true,
- "isDisabled": true
}
]
}
}, - "carOopReasonCodes": {
- "props": {
- "reasonCodes": [
- {
- "entityId": "string",
- "displayInfo": "string",
- "questionFormat": "CHECKBOX",
- "options": [
- {
- "displayCode": "string",
- "displayValue": "string"
}
], - "isRequired": true,
- "isDisabled": true
}
]
}
}, - "railOopReasonCodes": {
- "props": {
- "reasonCodes": [
- {
- "entityId": "string",
- "displayInfo": "string",
- "questionFormat": "CHECKBOX",
- "options": [
- {
- "displayCode": "string",
- "displayValue": "string"
}
], - "isRequired": true,
- "isDisabled": true
}
]
}
}, - "category": "EMPLOYEE"
}
{- "debugIdentifier": "string",
- "errorMessages": [
- {
- "errorCode": "string",
- "message": "string",
- "errorParameters": [
- {
- "name": "string",
- "value": "string"
}
], - "errorDetail": "string"
}
]
}
This endpoint deletes a policy 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"
}
]
}
{- "length": 0,
- "elements": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
]
}
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "name": "string",
- "questionFormat": "CHECKBOX",
- "optionInfo": {
- "source": "MANUAL",
- "sourceMetadata": {
- "companyConfig": {
- "optionsParam": "COST_CENTER"
}
}, - "totalNumOptions": 0,
- "options": [
- {
- "displayCode": "string",
- "displayValue": "string"
}
]
}, - "isRequired": true,
- "isDisabled": false,
- "includeInItinerary": true,
- "customFieldLocations": [
- "POLICY_APPROVAL_EMAIL"
], - "matchConditions": {
- "travelerConditions": {
- "workerTypes": [
- "EMPLOYEE"
], - "countries": [
- "string"
], - "legalEntities": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
], - "departments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
], - "costCenters": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
], - "offices": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
]
}, - "travelTypes": [
- "AIR"
], - "travelRegionTypes": [
- "DOMESTIC"
], - "tripUsageTypes": [
- "STANDARD"
]
}
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "questionFormat": "CHECKBOX",
- "optionInfo": {
- "source": "MANUAL",
- "sourceMetadata": {
- "companyConfig": {
- "optionsParam": "COST_CENTER"
}
}, - "totalNumOptions": 0,
- "options": [
- {
- "displayCode": "string",
- "displayValue": "string"
}
]
}, - "isRequired": true,
- "isDisabled": true,
- "includeInItinerary": true,
- "customFieldLocations": [
- "POLICY_APPROVAL_EMAIL"
], - "matchConditions": {
- "travelerConditions": {
- "workerTypes": [
- "EMPLOYEE"
], - "countries": [
- "string"
], - "legalEntities": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
], - "departments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
], - "costCenters": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
], - "offices": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
]
}, - "travelTypes": [
- "AIR"
], - "travelRegionTypes": [
- "DOMESTIC"
], - "tripUsageTypes": [
- "STANDARD"
]
}, - "questionType": {
- "preSearchQuestionType": "PURPOSE_OF_TRIP",
- "preCheckoutQuestionType": "OOP_REASON_CODE"
}
}
OK
Unauthorized
Forbidden
The specified resource was not found.
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "questionFormat": "CHECKBOX",
- "optionInfo": {
- "source": "MANUAL",
- "sourceMetadata": {
- "companyConfig": {
- "optionsParam": "COST_CENTER"
}
}, - "totalNumOptions": 0,
- "options": [
- {
- "displayCode": "string",
- "displayValue": "string"
}
]
}, - "isRequired": true,
- "isDisabled": true,
- "includeInItinerary": true,
- "customFieldLocations": [
- "POLICY_APPROVAL_EMAIL"
], - "matchConditions": {
- "travelerConditions": {
- "workerTypes": [
- "EMPLOYEE"
], - "countries": [
- "string"
], - "legalEntities": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
], - "departments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
], - "costCenters": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
], - "offices": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
]
}, - "travelTypes": [
- "AIR"
], - "travelRegionTypes": [
- "DOMESTIC"
], - "tripUsageTypes": [
- "STANDARD"
]
}, - "questionType": {
- "preSearchQuestionType": "PURPOSE_OF_TRIP",
- "preCheckoutQuestionType": "OOP_REASON_CODE"
}
}
{- "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"
}
]
}