digitaluapi

<back to all web services

PartnerRegister

Requires Authentication
Required role:Admin
The following routes are available for this service:
POST/partnerregister
namespace digitaluapi.ServiceModel

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type PartnerRegisterResponse() = 
        member val Id:Int32 = new Int32() with get,set
        member val ResponseStatus:ResponseStatus = null with get,set

    [<AllowNullLiteral>]
    type PartnerRegister() = 
        [<Validate(Validator="Email")>]
        member val EMail:String = null with get,set

        [<Validate(Validator="[NotNull,NotEmpty]")>]
        member val Name:String = null with get,set

        [<Validate(Validator="NotNull")>]
        member val Password:String = null with get,set

        member val ConfirmPassword:String = null with get,set
        [<Validate(Validator="NotNull")>]
        member val Company:String = null with get,set

        [<Validate(Validator="NotNull")>]
        member val CurrencyId:Int32 = new Int32() with get,set

        member val Roles:String[] = null with get,set

F# PartnerRegister 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 /partnerregister HTTP/1.1 
Host: duengageapi.uat.scadsoftware.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	EMail: String,
	Name: String,
	Password: String,
	ConfirmPassword: String,
	Company: String,
	CurrencyId: 0,
	Roles: 
	[
		String
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Id: 0,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}