POST api/Account/Register
Request Information
URI Parameters
None.
Body Parameters
RegisterBindingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| FullName | string |
Required Max length: 200 String length: inclusive between 6 and 200 |
|
| LocationId | integer |
None. |
|
| Mobile | string |
Required Data type: PhoneNumber Matching regular expression pattern: ^[0-9+-]+$ Max length: 7 String length: inclusive between 7 and 7 |
|
| string |
Required Max length: 450 String length: inclusive between 5 and 450 |
||
| Password | string |
Required Data type: Password Max length: 20 String length: inclusive between 6 and 20 |
|
| ConfirmPassword | string |
Data type: Password |
|
| Source | AccountSource |
Required |
|
| DOB | date |
Data type: DateTime |
|
| DOA | date |
Data type: DateTime |
Request Formats
application/json, text/json
Sample:
{
"FullName": "sample string 1",
"LocationId": 1,
"Mobile": "sample string 2",
"Email": "sample string 3",
"Password": "sample string 4",
"ConfirmPassword": "sample string 5",
"Source": 0,
"DOB": "2026-04-16T05:42:10.0396421",
"DOA": "2026-04-16T05:42:10.0396421"
}
application/xml, text/xml
Sample:
<RegisterBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Coke.Models.WebApi.BindingModels.Account"> <ConfirmPassword>sample string 5</ConfirmPassword> <DOA>2026-04-16T05:42:10.0396421</DOA> <DOB>2026-04-16T05:42:10.0396421</DOB> <Email>sample string 3</Email> <FullName>sample string 1</FullName> <LocationId>1</LocationId> <Mobile>sample string 2</Mobile> <Password>sample string 4</Password> <Source>Android</Source> </RegisterBindingModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.