Service Directory > v31.2 > Resource_Management > Put_Car_Rental_Agency
 

Operation: Put_Car_Rental_Agency

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


@ - 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_Car_Rental_Agency_Request

Element containing Car Rental Agency reference for update and all Car Rental Agency data items
 
Parameter name Type/Value Cardinality Description Validations
@version string [0..1] Web Service version  
@Add_Only  boolean  [1..1]  Add Only   
Car_Rental_Agency_Reference  Car_Rental_AgencyObject  [0..1]  Car Rental Agency Reference   
Car_Rental_Agency_Data  Car_Rental_Agency_Data  [1..1]  Car Rental Agency Data 
Validation Description
The Car Rental Agency 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 Car Rental Agency already exists.  Create a new Car Rental Agency, or change 'Add Only' to 'false' to edit the existing Car Rental Agency. 
top
 

Response Element: Put_Car_Rental_Agency_Response

Element containing the Car Rental Agency Reference and Data that is sent in the response
 
Parameter name Type/Value Cardinality Description Validations
@version string [0..1] Web Service version  
Car_Rental_Agency_Reference  Car_Rental_AgencyObject  [0..1]  Car Rental Agency Reference   
top
 

Car_Rental_AgencyObject

part of: Put_Car_Rental_Agency_Request, Put_Car_Rental_Agency_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  Car_Rental_AgencyObjectID  [0..*]  Contains a unique identifier for an instance of an object.   
top
 

Car_Rental_AgencyObjectID

part of: Car_Rental_AgencyObject
Contains a unique identifier for an instance of an object.
 
Parameter name Type/Value Cardinality Description Validations
#text  string       
@type  WID, Car_Rental_Agency_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
 

Car_Rental_Agency_Data

part of: Put_Car_Rental_Agency_Request
Element that contains Car Rental Agency Data
 
Parameter name Type/Value Cardinality Description Validations
Spend_Data_ID  string  [0..1]  Car Rental Agency ID   
Car_Rental_Agency_Value  string  [1..1]  Car Rental Spend Data Value   
Merchant_Code_Reference  Merchant_CodeObject  [0..1]  A Merchant Code to map to this Car Rental Agency. If a Merchant Code is specified, it will be used on Expense Credit Card Transactions to match the specified Merchant Code to this Car Rental Agency. 
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 Car Rental Agency 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: Car_Rental_Agency_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: Car_Rental_Agency_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
 

Car_Rental_AgencyReferenceEnumeration

part of: Car_Rental_AgencyObjectID
Base Type
string
top
 

Merchant_CodeReferenceEnumeration

part of: Merchant_CodeObjectID
Base Type
string
top