Client_Initiations

<back to all web services

ConsumerInitiation

Requires Authentication
The following routes are available for this service:
POST/consumerinitiation
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Client_Initiations.ServiceModel;

namespace Client_Initiations.ServiceModel
{
    public partial class ConsumerInitiation
        : IPost
    {
        ///<summary>
        ///First name of the consumer
        ///</summary>
        [ApiMember(Description="First name of the consumer", IsRequired=true)]
        public virtual string FirstName { get; set; }

        ///<summary>
        ///Last name of the consumer
        ///</summary>
        [ApiMember(Description="Last name of the consumer", IsRequired=true)]
        public virtual string LastName { get; set; }

        ///<summary>
        ///Program name
        ///</summary>
        [ApiMember(Description="Program name", IsRequired=true)]
        public virtual string Program { get; set; }

        ///<summary>
        ///Company name
        ///</summary>
        [ApiMember(Description="Company name", IsRequired=true)]
        public virtual string CompanyName { get; set; }

        ///<summary>
        ///Mobile phone number
        ///</summary>
        [ApiMember(Description="Mobile phone number")]
        public virtual string MobileNumber { get; set; }

        ///<summary>
        ///Preferred email address
        ///</summary>
        [ApiMember(Description="Preferred email address", IsRequired=true)]
        public virtual string PreferredEmail { get; set; }

        ///<summary>
        ///Current work location state
        ///</summary>
        [ApiMember(Description="Current work location state")]
        public virtual string CurrentWorkState { get; set; }

        ///<summary>
        ///Current work location country
        ///</summary>
        [ApiMember(Description="Current work location country")]
        public virtual string CurrentWorkCountry { get; set; }

        ///<summary>
        ///Destination work location state
        ///</summary>
        [ApiMember(Description="Destination work location state")]
        public virtual string DestinationWorkState { get; set; }

        ///<summary>
        ///Destination work location country
        ///</summary>
        [ApiMember(Description="Destination work location country")]
        public virtual string DestinationWorkCountry { get; set; }

        ///<summary>
        ///Preferred work location state
        ///</summary>
        [ApiMember(Description="Preferred work location state")]
        public virtual string PreferredWorkState { get; set; }

        ///<summary>
        ///Preferred work location country
        ///</summary>
        [ApiMember(Description="Preferred work location country")]
        public virtual string PreferredWorkCountry { get; set; }
    }

}

C# 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

{
	
}