Service Directory > v31.2 > Resource_Management > Put_Airline
 

Operation: Put_Airline

Creates a new Airline or modifies an existing Airline. If you supply a valid ID, then the existing Airline is modified. Otherwise, the operation creates a new Airline.


@ - A parameter name with this symbol denotes an XML attribute within the document instead of an XML element.


Contents

 

Web Service

 

Request

 

Response

 

Element(s)

 

Request Element: Put_Airline_Request

Put Airline Request
 
Parameter name Type/Value Cardinality Description Validations
@version string [0..1] Web Service version  
@Add_Only  boolean  [1..1]  Add Only Flag. Indicates that the service is an add only, not an update.   
Airline_Reference  AirlineObject  [0..1]  Airline Reference   
Airline_Data  Airline_Data  [1..1]  Airline Data 
Validation Description
The Airline Data Value "[value]" is already in use.  Spend Data instances of the same Data Value and Attribute Type is not allowed. 
[merchant_name] is already used as an alternate name.   
 
Validation Description
The Web Service is set to Add Only; but the Airline already exists.  Create a new Airline, or change 'Add Only' to 'false' to edit the existing Airline. 
top
 

Response Element: Put_Airline_Response

Element containing the Airline Reference and Data that is sent in the response
 
Parameter name Type/Value Cardinality Description Validations
@version string [0..1] Web Service version  
Airline_Reference  AirlineObject  [0..1]  Airline Reference   
top
 

AirlineObject

part of: Put_Airline_Request, Put_Airline_Response
 
Parameter name Type/Value Cardinality Description Validations
@Descriptor  string  [1..1]  Display information used to describe an instance of an object. This 'optional' information is for outbound descriptive purposes only and is not processed on inbound Workday Web Services requests.   
ID  AirlineObjectID  [0..*]  Contains a unique identifier for an instance of an object.   
top
 

AirlineObjectID

part of: AirlineObject
Contains a unique identifier for an instance of an object.
 
Parameter name Type/Value Cardinality Description Validations
#text  string       
@type  WID, Airline_ID, Spend_Data_ID  [1..1]  The unique identifier type. Each "ID" for an instance of an object contains a type and a value. A single instance of an object can have multiple "ID" but only a single "ID" per "type".   
top
 

Airline_Data

part of: Put_Airline_Request
Contains Airline Data
 
Parameter name Type/Value Cardinality Description Validations
Spend_Data_ID  string  [0..1]  Airline Reference ID. Uniquely identifies an Airline.   
Airline_Value  string  [1..1]  Airline Value. The text description (title) of an airline.   
Merchant_Code_Reference  Merchant_CodeObject  [0..1]  A Merchant Code to map to this Airline. If a Merchant Code is specified, it will be used on Expense Credit Card Transactions to match the specified Merchant Code to this Airline. 
Validation Description
The Merchant Code selected is already mapped to a different Merchant: [merchant]  Each Merchant Code can only be assigned to one Merchant (Airline, Hotel, or Car Rental Agency). 
 
Alternate_Merchant_Name_Data  Alternate_Merchant_Name_Data  [0..*]  Alternate Names for Merchant are entered here. 
Validation Description
Cannot have duplicate alternate names.   
[alternate_name] is already used as an alternate name.   
[alternate_name] is already used a merchant name.   
 
Validation Description
The Airline Data Value "[value]" is already in use.  Spend Data instances of the same Data Value and Attribute Type is not allowed. 
[merchant_name] is already used as an alternate name.   
top
 

Merchant_CodeObject

part of: Airline_Data
 
Parameter name Type/Value Cardinality Description Validations
@Descriptor  string  [1..1]  Display information used to describe an instance of an object. This 'optional' information is for outbound descriptive purposes only and is not processed on inbound Workday Web Services requests.   
ID  Merchant_CodeObjectID  [0..*]  Contains a unique identifier for an instance of an object.   
top
 

Merchant_CodeObjectID

part of: Merchant_CodeObject
Contains a unique identifier for an instance of an object.
 
Parameter name Type/Value Cardinality Description Validations
#text  string       
@type  WID, Merchant_Code  [1..1]  The unique identifier type. Each "ID" for an instance of an object contains a type and a value. A single instance of an object can have multiple "ID" but only a single "ID" per "type".   
top
 

Alternate_Merchant_Name_Data

part of: Airline_Data
Alternate Names for Merchant are entered here.
 
Parameter name Type/Value Cardinality Description Validations
Alternate_Name_Value  string  [1..1]  Alternate Name Value   
Validation Description
Cannot have duplicate alternate names.   
[alternate_name] is already used as an alternate name.   
[alternate_name] is already used a merchant name.   
top
 

AirlineReferenceEnumeration

part of: AirlineObjectID
Base Type
string
top
 

Merchant_CodeReferenceEnumeration

part of: Merchant_CodeObjectID
Base Type
string
top