| 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 .other suffix or ?format=other
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: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"FirstName":"String","LastName":"String","Program":"String","CompanyName":"String","MobileNumber":"String","PreferredEmail":"String","CurrentWorkState":"String","CurrentWorkCountry":"String","DestinationWorkState":"String","DestinationWorkCountry":"String","PreferredWorkState":"String","PreferredWorkCountry":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{}