Client_Initiations

<back to all web services

ConsumerInitiation

Requires Authentication
The following routes are available for this service:
POST/consumerinitiation
import Foundation
import ServiceStack

public class ConsumerInitiation : IPost, Codable
{
    /**
    * First name of the consumer
    */
    // @ApiMember(Description="First name of the consumer", IsRequired=true)
    public var firstName:String

    /**
    * Last name of the consumer
    */
    // @ApiMember(Description="Last name of the consumer", IsRequired=true)
    public var lastName:String

    /**
    * Program name
    */
    // @ApiMember(Description="Program name", IsRequired=true)
    public var program:String

    /**
    * Company name
    */
    // @ApiMember(Description="Company name", IsRequired=true)
    public var companyName:String

    /**
    * Mobile phone number
    */
    // @ApiMember(Description="Mobile phone number")
    public var mobileNumber:String

    /**
    * Preferred email address
    */
    // @ApiMember(Description="Preferred email address", IsRequired=true)
    public var preferredEmail:String

    /**
    * Current work location state
    */
    // @ApiMember(Description="Current work location state")
    public var currentWorkState:String

    /**
    * Current work location country
    */
    // @ApiMember(Description="Current work location country")
    public var currentWorkCountry:String

    /**
    * Destination work location state
    */
    // @ApiMember(Description="Destination work location state")
    public var destinationWorkState:String

    /**
    * Destination work location country
    */
    // @ApiMember(Description="Destination work location country")
    public var destinationWorkCountry:String

    /**
    * Preferred work location state
    */
    // @ApiMember(Description="Preferred work location state")
    public var preferredWorkState:String

    /**
    * Preferred work location country
    */
    // @ApiMember(Description="Preferred work location country")
    public var preferredWorkCountry:String

    required public init(){}
}


Swift ConsumerInitiation DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

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/jsv
Content-Type: text/jsv
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/jsv
Content-Length: length

{
	
}