NAV

<back to all web services

ProfileSignUpCreate

The following routes are available for this service:
POST/profile/sign-up
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using NAV.ServiceModel;

namespace NAV.ServiceModel
{
    public partial class NAVCASLTermsUpdate
    {
        public virtual string Agree { get; set; }
        public virtual DateTime Date { get; set; }
    }

    public partial class NAVPhoneUpdate
    {
        public virtual string Number { get; set; }
        public virtual string Extension { get; set; }
        public virtual string CodeIdPhoneType { get; set; }
        public virtual string CountryCode { get; set; }
    }

    public partial class ProfileSignUpCreate
        : IPost
    {
        public virtual string FirstName { get; set; }
        public virtual string LastName { get; set; }
        public virtual string EmailAddress { get; set; }
        public virtual string CustomerType { get; set; }
        public virtual string CultureName { get; set; }
        public virtual NAVPhoneUpdate Phone { get; set; }
        public virtual NAVCASLTermsUpdate CASLStatementAgreement { get; set; }
    }

    public partial class ProfileSignUpCreateResponse
    {
        public virtual ResponseStatus ResponseStatus { get; set; }
        public virtual decimal? BeeNumber { get; set; }
        public virtual string AccessToken { get; set; }
        public virtual DateTime? Timestamp { get; set; }
    }

}

C# ProfileSignUpCreate 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 /profile/sign-up HTTP/1.1 
Host: extensions.avon.ca 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	firstName: String,
	lastName: String,
	emailAddress: String,
	customerType: String,
	cultureName: String,
	phone: 
	{
		number: String,
		extension: String,
		codeIdPhoneType: String,
		countryCode: String
	},
	caslStatementAgreement: 
	{
		agree: String,
		date: 0001-01-01T00:00:00
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	responseStatus: 
	{
		errorCode: String,
		message: String,
		stackTrace: String,
		errors: 
		[
			{
				errorCode: String,
				fieldName: String,
				message: String,
				meta: 
				{
					String: String
				}
			}
		],
		meta: 
		{
			String: String
		}
	},
	beeNumber: 0,
	accessToken: String,
	timestamp: 0001-01-01T00:00:00
}