Client_Initiations

<back to all web services

ConsumerInitiation

Requires Authentication
The following routes are available for this service:
POST/consumerinitiation
"use strict";
export class ConsumerInitiation {
    /** @param {{FirstName?:string,LastName?:string,Program?:string,CompanyName?:string,MobileNumber?:string,PreferredEmail?:string,CurrentWorkState?:string,CurrentWorkCountry?:string,DestinationWorkState?:string,DestinationWorkCountry?:string,PreferredWorkState?:string,PreferredWorkCountry?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {string}
     * @description First name of the consumer */
    FirstName;
    /**
     * @type {string}
     * @description Last name of the consumer */
    LastName;
    /**
     * @type {string}
     * @description Program name */
    Program;
    /**
     * @type {string}
     * @description Company name */
    CompanyName;
    /**
     * @type {string}
     * @description Mobile phone number */
    MobileNumber;
    /**
     * @type {string}
     * @description Preferred email address */
    PreferredEmail;
    /**
     * @type {string}
     * @description Current work location state */
    CurrentWorkState;
    /**
     * @type {string}
     * @description Current work location country */
    CurrentWorkCountry;
    /**
     * @type {string}
     * @description Destination work location state */
    DestinationWorkState;
    /**
     * @type {string}
     * @description Destination work location country */
    DestinationWorkCountry;
    /**
     * @type {string}
     * @description Preferred work location state */
    PreferredWorkState;
    /**
     * @type {string}
     * @description Preferred work location country */
    PreferredWorkCountry;
}

JavaScript ConsumerInitiation DTOs

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-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/" />