| POST | /consumerinitiation |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| FirstName | body | string | Yes | First name of the consumer |
| LastName | body | string | Yes | Last name of the consumer |
| Program | body | string | Yes | Program name |
| CompanyName | body | string | Yes | Company name |
| MobileNumber | body | string | No | Mobile phone number |
| PreferredEmail | body | string | Yes | Preferred email address |
| CurrentWorkState | body | string | No | Current work location state |
| CurrentWorkCountry | body | string | No | Current work location country |
| DestinationWorkState | body | string | No | Destination work location state |
| DestinationWorkCountry | body | string | No | Destination work location country |
| PreferredWorkState | body | string | No | Preferred work location state |
| PreferredWorkCountry | body | string | No | Preferred work location country |
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-test.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">
<CompanyName>String</CompanyName>
<CurrentWorkCountry>String</CurrentWorkCountry>
<CurrentWorkState>String</CurrentWorkState>
<DestinationWorkCountry>String</DestinationWorkCountry>
<DestinationWorkState>String</DestinationWorkState>
<FirstName>String</FirstName>
<LastName>String</LastName>
<MobileNumber>String</MobileNumber>
<PreferredEmail>String</PreferredEmail>
<PreferredWorkCountry>String</PreferredWorkCountry>
<PreferredWorkState>String</PreferredWorkState>
<Program>String</Program>
</ConsumerInitiation>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />