digitaluapi

<back to all web services

PartnerRegister

Requires Authentication
Required role:Admin
The following routes are available for this service:
POST/partnerregister
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using digitaluapi.ServiceModel;

namespace digitaluapi.ServiceModel
{
    public partial class PartnerRegister
    {
        [Validate("Email")]
        public virtual string EMail { get; set; }

        [Validate("[NotNull,NotEmpty]")]
        public virtual string Name { get; set; }

        [Validate("NotNull")]
        public virtual string Password { get; set; }

        public virtual string ConfirmPassword { get; set; }
        [Validate("NotNull")]
        public virtual string Company { get; set; }

        [Validate("NotNull")]
        public virtual int CurrencyId { get; set; }

        public virtual string[] Roles { get; set; }
    }

    public partial class PartnerRegisterResponse
    {
        public virtual int Id { get; set; }
        public virtual ResponseStatus ResponseStatus { get; set; }
    }

}

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