| POST | /consumerinitiation |
|---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class ConsumerInitiation : IPost
{
/**
* First name of the consumer
*/
@ApiMember(Description="First name of the consumer", IsRequired=true)
var FirstName:String? = null
/**
* Last name of the consumer
*/
@ApiMember(Description="Last name of the consumer", IsRequired=true)
var LastName:String? = null
/**
* Program name
*/
@ApiMember(Description="Program name", IsRequired=true)
var Program:String? = null
/**
* Company name
*/
@ApiMember(Description="Company name", IsRequired=true)
var CompanyName:String? = null
/**
* Mobile phone number
*/
@ApiMember(Description="Mobile phone number")
var MobileNumber:String? = null
/**
* Preferred email address
*/
@ApiMember(Description="Preferred email address", IsRequired=true)
var PreferredEmail:String? = null
/**
* Current work location state
*/
@ApiMember(Description="Current work location state")
var CurrentWorkState:String? = null
/**
* Current work location country
*/
@ApiMember(Description="Current work location country")
var CurrentWorkCountry:String? = null
/**
* Destination work location state
*/
@ApiMember(Description="Destination work location state")
var DestinationWorkState:String? = null
/**
* Destination work location country
*/
@ApiMember(Description="Destination work location country")
var DestinationWorkCountry:String? = null
/**
* Preferred work location state
*/
@ApiMember(Description="Preferred work location state")
var PreferredWorkState:String? = null
/**
* Preferred work location country
*/
@ApiMember(Description="Preferred work location country")
var PreferredWorkCountry:String? = null
}
Kotlin ConsumerInitiation DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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/csv
Content-Type: text/csv
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/csv
Content-Length: length
{}