POST api/customers
Request Information
URI Parameters
None.
Body Parameters
customer| Name | Description | Type | Additional information |
|---|---|---|---|
| userId | integer |
None. |
|
| facebookId | string |
None. |
|
| string |
None. |
||
| phone | string |
None. |
|
| firstName | string |
None. |
|
| lastName | string |
None. |
|
| credit | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"userId": 1,
"facebookId": "sample string 2",
"email": "sample string 3",
"phone": "sample string 4",
"firstName": "sample string 5",
"lastName": "sample string 6",
"credit": 1.0
}
application/xml, text/xml
Sample:
<customer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/mustCnoAuth"> <credit>1</credit> <email>sample string 3</email> <facebookId>sample string 2</facebookId> <firstName>sample string 5</firstName> <lastName>sample string 6</lastName> <phone>sample string 4</phone> <userId>1</userId> </customer>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
customer| Name | Description | Type | Additional information |
|---|---|---|---|
| userId | integer |
None. |
|
| facebookId | string |
None. |
|
| string |
None. |
||
| phone | string |
None. |
|
| firstName | string |
None. |
|
| lastName | string |
None. |
|
| credit | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
{
"userId": 1,
"facebookId": "sample string 2",
"email": "sample string 3",
"phone": "sample string 4",
"firstName": "sample string 5",
"lastName": "sample string 6",
"credit": 1.0
}
application/xml, text/xml
Sample:
<customer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/mustCnoAuth"> <credit>1</credit> <email>sample string 3</email> <facebookId>sample string 2</facebookId> <firstName>sample string 5</firstName> <lastName>sample string 6</lastName> <phone>sample string 4</phone> <userId>1</userId> </customer>