POST api/useraccount/registertemp
Provides a temporary token so that secured services may be subsequently accessed.
Request Information
URI Parameters
None.
Body Parameters
ERP.Domain.Common.Auth.QuickRegistrationCredentials| Name | Description | Type | Additional 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:
Response Information
Resource Description
ERP.Api.Controllers.CustomerPortal.TokenResponse| Name | Description | Type | Additional 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.