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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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/json
Content-Type: application/json
Content-Length: length

{"ClientID":"String","File":{"Command":"String","ExternalID":"String","TransfereeDetails":{"FirstName":"String","LastName":"String","PreferredEmail":"String"},"Addresses":[{"AddressType":"CurrentHome","Primary":"Y","AddressLine1":"String","City":"String","Country":"String"}],"Phones":[{"Type":"String","Primary":"Y","Number":"String"}],"AssignmentDetails":{"Program":"String","AssignmentType":"String","StartDate":"\/Date(-62135596800000-0000)\/","CompanyName":"String","Contact":"String","Current":{"WorkCity":"String","CurrentWorkState":"String","WorkState":"String","DestinationWorkState":"String","WorkCountry":"String","PreferredWorkState":"String","PreferredWorkCountry":"String"},"Destination":{"WorkCity":"String","CurrentWorkState":"String","WorkState":"String","DestinationWorkState":"String","WorkCountry":"String","PreferredWorkState":"String","PreferredWorkCountry":"String"}}}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Message":"String","FileId":"String","Errors":[{"ErrorNumber":"String","ErrorDescription":"String"}]}