POST api/useraccount/registerDpCustomer

Creates and registers a new dealerplus customer in a single step. The user is activated immediately and assumes the password supplied. The user does not need any further registration activities.

Request Information

URI Parameters

None.

Body Parameters

The user details.

ERP.Domain.Common.Auth.QuickRegistrationCredentials
NameDescriptionTypeAdditional information
CustomerId

integer

None.

Username

string

None.

Password

string

None.

Source

string

None.

Request Formats

application/json, text/json

Sample:
{
  "customerId": 1,
  "username": "sample string 2",
  "password": "********",
  "source": "sample string 4"
}

application/xml, text/xml

Sample:
<QuickRegistrationCredentials xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERP.Domain.Common.Auth">
  <Password>sample string 3</Password>
  <Source>sample string 4</Source>
  <Username>sample string 2</Username>
  <CustomerId>1</CustomerId>
</QuickRegistrationCredentials>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'System.Web.Http.ModelBinding.JQueryMvcFormUrlEncodedFormatter' to write type 'ERP.Domain.Common.Auth.QuickRegistrationCredentials'.

Response Information

Resource Description

For valid requests, an authentication token.

ERP.Api.Controllers.CustomerPortal.TokenResponse
NameDescriptionTypeAdditional information
Token

Gets or sets the token.

string

None.

Roles

Gets the authorized roles.

Collection of string

None.

Lifetime

Gets the token lifetime (in seconds).

integer

None.

ContactId

Gets the contact id.

integer

None.

ApplicationStatus

Gets the application status.

string

None.

Response Formats

application/json, text/json

Sample:

Sample not available.