Client_Initiations

<back to all web services

ConsumerInitiation

Consumer Initiation Service

Requires Authentication
The following routes are available for this service:
POST/consumerinitiation
ConsumerInitiation Parameters:
NameParameterData TypeRequiredDescription
ClientIDbodystringYesClient identifier
FilebodyRelocationsRequestFileYesConsumer relocation request file details
RelocationsRequestFile Parameters:
NameParameterData TypeRequiredDescription
CommandformstringYesCommand type for the request (INITIATE)
ExternalIDformstringYesExternal identifier for the transferee
TransfereeDetailsformRelocationsRequestFileTransfereeDetailsYesDetails about the transferee
AddressesformRelocationsRequestFileAddress[]YesList of addresses associated with the transferee
PhonesformRelocationsRequestFilePhone[]YesList of phone numbers associated with the transferee
AssignmentDetailsformRelocationsRequestFileAssignmentDetailsYesAssignment details for the relocation
RelocationsRequestFileTransfereeDetails Parameters:
NameParameterData TypeRequiredDescription
FirstNameformstringYesFirst name of the transferee
LastNameformstringYesLast name of the transferee
PreferredEmailformstringYesPreferred email address
RelocationsRequestFileAddress Parameters:
NameParameterData TypeRequiredDescription
AddressTypeformAddressTypeYesType of address (CurrentHome, DestinationHome, CurrentWork, DestinationWork)
PrimaryformYesNoYesIndicates if this is the primary address
AddressLine1formstringYesAddress line 1
CityformstringYesCity
CountryformstringYesCountry
AddressType Enum:
CurrentHome
DestinationHome
CurrentWork
DestinationWork
YesNo Enum:
Y
N
Item
RelocationsRequestFilePhone Parameters:
NameParameterData TypeRequiredDescription
TypeformstringYesPhone type (e.g., Mobile, OriginHome)
PrimaryformYesNoYesIndicates if this is the primary phone number
NumberformstringYesPhone number
RelocationsRequestFileAssignmentDetails Parameters:
NameParameterData TypeRequiredDescription
ProgramformstringYesProgram name or code
AssignmentTypeformstringYesType of assignment
StartDateformDateTime?YesAssignment start date
CompanyNameformstringYesCompany name
ContactformstringYesContact
CurrentformAssignmentLocationDetailsYesCurrent assignment location details
DestinationformAssignmentLocationDetailsYesDestination assignment location details
AssignmentLocationDetails Parameters:
NameParameterData TypeRequiredDescription
WorkCityformstringYesWork city
CurrentWorkStateformstringNoCurrent work location state
WorkStateformstringNoWork state or province
DestinationWorkStateformstringNoDestination work location state
WorkCountryformstringYesWork country
PreferredWorkStateformstringNoPreferred work location state
PreferredWorkCountryformstringNoPreferred work location country
ConsumerInitiationResponse Parameters:
NameParameterData TypeRequiredDescription
MessageformstringNoResponse message
FileIdformstringNoFile identifier for the created initiation
ErrorsformList<ValidateError>NoList of validation errors, if any
ValidateError Parameters:
NameParameterData TypeRequiredDescription
ErrorNumberformstringNo
ErrorDescriptionformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /consumerinitiation HTTP/1.1 
Host: initiation-pen.sirva.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<ConsumerInitiation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Client_Initiations.ServiceModel">
  <ClientID>String</ClientID>
  <File>
    <Addresses>
      <RelocationsRequestFileAddress>
        <AddressLine1>String</AddressLine1>
        <AddressType>CurrentHome</AddressType>
        <City>String</City>
        <Country>String</Country>
        <Primary>Y</Primary>
      </RelocationsRequestFileAddress>
    </Addresses>
    <AssignmentDetails>
      <AssignmentType>String</AssignmentType>
      <CompanyName>String</CompanyName>
      <Contact>String</Contact>
      <Current>
        <CurrentWorkState>String</CurrentWorkState>
        <DestinationWorkState>String</DestinationWorkState>
        <PreferredWorkCountry>String</PreferredWorkCountry>
        <PreferredWorkState>String</PreferredWorkState>
        <WorkCity>String</WorkCity>
        <WorkCountry>String</WorkCountry>
        <WorkState>String</WorkState>
      </Current>
      <Destination>
        <CurrentWorkState>String</CurrentWorkState>
        <DestinationWorkState>String</DestinationWorkState>
        <PreferredWorkCountry>String</PreferredWorkCountry>
        <PreferredWorkState>String</PreferredWorkState>
        <WorkCity>String</WorkCity>
        <WorkCountry>String</WorkCountry>
        <WorkState>String</WorkState>
      </Destination>
      <Program>String</Program>
      <StartDate>0001-01-01T00:00:00</StartDate>
    </AssignmentDetails>
    <Command>String</Command>
    <ExternalID>String</ExternalID>
    <Phones>
      <RelocationsRequestFilePhone>
        <Number>String</Number>
        <Primary>Y</Primary>
        <Type>String</Type>
      </RelocationsRequestFilePhone>
    </Phones>
    <TransfereeDetails>
      <FirstName>String</FirstName>
      <LastName>String</LastName>
      <PreferredEmail>String</PreferredEmail>
    </TransfereeDetails>
  </File>
</ConsumerInitiation>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ConsumerInitiationResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Client_Initiations.ServiceModel">
  <Errors xmlns:d2p1="http://schemas.datacontract.org/2004/07/Client_Initiations.ServiceModel.Types">
    <d2p1:ValidateError>
      <d2p1:ErrorDescription>String</d2p1:ErrorDescription>
      <d2p1:ErrorNumber>String</d2p1:ErrorNumber>
    </d2p1:ValidateError>
  </Errors>
  <FileId>String</FileId>
  <Message>String</Message>
</ConsumerInitiationResponse>