POST staff/vehicle_type/import
Request Information
URI Parameters
None.
Body Parameters
Request_Vehicle_Type_Import| Name | Description | Type | Additional information |
|---|---|---|---|
| vehicle_life | string |
Required |
|
| vehicle_model | string |
Required |
|
| vehicle_name | string |
Required |
|
| input_price | decimal number |
Required |
|
| retail_price | decimal number |
Required |
|
| wholesale_price | decimal number |
Required |
|
| vat | decimal number |
Required |
|
| token | string |
Required |
|
| secret_key | string |
Required |
|
| id_staff_action | integer |
Required |
Request Formats
application/json, text/json
Sample:
{
"vehicle_life": "sample string 1",
"vehicle_model": "sample string 2",
"vehicle_name": "sample string 3",
"input_price": 4.0,
"retail_price": 5.0,
"wholesale_price": 6.0,
"vat": 7.0,
"token": "sample string 8",
"secret_key": "sample string 9",
"id_staff_action": 10
}
application/xml, text/xml
Sample:
<Request_Vehicle_Type_Import xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code.Directory.Models.Dictionary.Request"> <id_staff_action xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">10</id_staff_action> <secret_key xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">sample string 9</secret_key> <token xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">sample string 8</token> <input_price>4</input_price> <retail_price>5</retail_price> <vat>7</vat> <vehicle_life>sample string 1</vehicle_life> <vehicle_model>sample string 2</vehicle_model> <vehicle_name>sample string 3</vehicle_name> <wholesale_price>6</wholesale_price> </Request_Vehicle_Type_Import>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Result| Name | Description | Type | Additional information |
|---|---|---|---|
| status | integer |
None. |
|
| error_code | string |
None. |
|
| content | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"status": 1,
"error_code": "sample string 2",
"content": {}
}
application/xml, text/xml
Sample:
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code"> <content /> <error_code>sample string 2</error_code> <status>1</status> </Result>