| POST | /consumerinitiation |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ClientID | body | string | Yes | Client identifier |
| File | body | RelocationsRequestFile | Yes | Consumer relocation request file details |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Command | form | string | Yes | Command type for the request (INITIATE) |
| ExternalID | form | string | Yes | External identifier for the transferee |
| TransfereeDetails | form | RelocationsRequestFileTransfereeDetails | Yes | Details about the transferee |
| Addresses | form | RelocationsRequestFileAddress[] | Yes | List of addresses associated with the transferee |
| Phones | form | RelocationsRequestFilePhone[] | Yes | List of phone numbers associated with the transferee |
| AssignmentDetails | form | RelocationsRequestFileAssignmentDetails | Yes | Assignment details for the relocation |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| FirstName | form | string | Yes | First name of the transferee |
| LastName | form | string | Yes | Last name of the transferee |
| PreferredEmail | form | string | Yes | Preferred email address |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| AddressType | form | AddressType | Yes | Type of address (CurrentHome, DestinationHome, CurrentWork, DestinationWork) |
| Primary | form | YesNo | Yes | Indicates if this is the primary address |
| AddressLine1 | form | string | Yes | Address line 1 |
| City | form | string | Yes | City |
| Country | form | string | Yes | Country |
| CurrentHome | |
| DestinationHome | |
| CurrentWork | |
| DestinationWork |
| Y | |
| N | |
| Item |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Type | form | string | Yes | Phone type (e.g., Mobile, OriginHome) |
| Primary | form | YesNo | Yes | Indicates if this is the primary phone number |
| Number | form | string | Yes | Phone number |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Program | form | string | Yes | Program name or code |
| AssignmentType | form | string | Yes | Type of assignment |
| StartDate | form | DateTime? | Yes | Assignment start date |
| CompanyName | form | string | Yes | Company name |
| Contact | form | string | Yes | Contact |
| Current | form | AssignmentLocationDetails | Yes | Current assignment location details |
| Destination | form | AssignmentLocationDetails | Yes | Destination assignment location details |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| WorkCity | form | string | Yes | Work city |
| CurrentWorkState | form | string | No | Current work location state |
| WorkState | form | string | No | Work state or province |
| DestinationWorkState | form | string | No | Destination work location state |
| WorkCountry | form | string | Yes | Work country |
| PreferredWorkState | form | string | No | Preferred work location state |
| PreferredWorkCountry | form | string | No | Preferred work location country |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Message | form | string | No | Response message |
| FileId | form | string | No | File identifier for the created initiation |
| Errors | form | List<ValidateError> | No | List of validation errors, if any |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ErrorNumber | form | string | No | |
| ErrorDescription | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=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>