POST staff/buy_vehicle_return/create

Request Information

URI Parameters

None.

Body Parameters

Request_Buy_Vehicle_Return_CU
NameDescriptionTypeAdditional information
id

integer

Required

receipt_date

date

Required

batch_num

string

Required

bill_no

string

Required

bill_date

date

Required

bill_sign

string

Required

description

string

Required

id_provider

integer

Required

provider_name

string

Required

id_warehouse

integer

Required

warehouse_name

string

Required

deliverer

string

Required

receipt_root

string

Required

id_buy_vehicle

integer

Required

list_vehicle_return

Collection of DTO_Buy_Vehicle_Detail_Return_List

Required

token

string

Required

secret_key

string

Required

id_staff_action

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "receipt_date": "2026-01-22T12:29:05.7939856+07:00",
  "batch_num": "sample string 2",
  "bill_no": "sample string 3",
  "bill_date": "2026-01-22T12:29:05.7939856+07:00",
  "bill_sign": "sample string 4",
  "description": "sample string 5",
  "id_provider": 6,
  "provider_name": "sample string 7",
  "id_warehouse": 8,
  "warehouse_name": "sample string 9",
  "deliverer": "sample string 10",
  "receipt_root": "sample string 11",
  "id_buy_vehicle": 12,
  "list_vehicle_return": [
    {
      "id": 1,
      "id_buy_vehicle_return": 2,
      "id_color": 3,
      "color_name": "sample string 4",
      "id_unit": 5,
      "unit_name": "sample string 6",
      "id_vehicle_type": 7,
      "frame_number": "sample string 8",
      "engine_number": "sample string 9",
      "warranty_no": "sample string 10",
      "vehicle_name": "sample string 11",
      "vehicle_life": "sample string 12",
      "vehicle_model": "sample string 13",
      "smartkey": "sample string 14",
      "pin_number": "sample string 15",
      "old_license_plate": "sample string 16",
      "old_car_parrot": "sample string 17",
      "input_price": 18.0,
      "wholesale_price": 19.0,
      "retail_price": 20.0,
      "countryside_price": 21.0,
      "city_price": 22.0,
      "is_registration": true,
      "is_license_plate": true,
      "is_accessary_attached": true
    },
    {
      "id": 1,
      "id_buy_vehicle_return": 2,
      "id_color": 3,
      "color_name": "sample string 4",
      "id_unit": 5,
      "unit_name": "sample string 6",
      "id_vehicle_type": 7,
      "frame_number": "sample string 8",
      "engine_number": "sample string 9",
      "warranty_no": "sample string 10",
      "vehicle_name": "sample string 11",
      "vehicle_life": "sample string 12",
      "vehicle_model": "sample string 13",
      "smartkey": "sample string 14",
      "pin_number": "sample string 15",
      "old_license_plate": "sample string 16",
      "old_car_parrot": "sample string 17",
      "input_price": 18.0,
      "wholesale_price": 19.0,
      "retail_price": 20.0,
      "countryside_price": 21.0,
      "city_price": 22.0,
      "is_registration": true,
      "is_license_plate": true,
      "is_accessary_attached": true
    }
  ],
  "token": "sample string 13",
  "secret_key": "sample string 14",
  "id_staff_action": 15
}

application/xml, text/xml

Sample:
<Request_Buy_Vehicle_Return_CU xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code.Directory.Models.Vehicle.Request">
  <id_staff_action xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">15</id_staff_action>
  <secret_key xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">sample string 14</secret_key>
  <token xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">sample string 13</token>
  <batch_num>sample string 2</batch_num>
  <bill_date>2026-01-22T12:29:05.7939856+07:00</bill_date>
  <bill_no>sample string 3</bill_no>
  <bill_sign>sample string 4</bill_sign>
  <deliverer>sample string 10</deliverer>
  <description>sample string 5</description>
  <id>1</id>
  <id_buy_vehicle>12</id_buy_vehicle>
  <id_provider>6</id_provider>
  <id_warehouse>8</id_warehouse>
  <list_vehicle_return xmlns:d2p1="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code.Directory.Models.Vehicle.DTO">
    <d2p1:DTO_Buy_Vehicle_Detail_Return_List>
      <d2p1:city_price>22</d2p1:city_price>
      <d2p1:color_name>sample string 4</d2p1:color_name>
      <d2p1:countryside_price>21</d2p1:countryside_price>
      <d2p1:engine_number>sample string 9</d2p1:engine_number>
      <d2p1:frame_number>sample string 8</d2p1:frame_number>
      <d2p1:id>1</d2p1:id>
      <d2p1:id_buy_vehicle_return>2</d2p1:id_buy_vehicle_return>
      <d2p1:id_color>3</d2p1:id_color>
      <d2p1:id_unit>5</d2p1:id_unit>
      <d2p1:id_vehicle_type>7</d2p1:id_vehicle_type>
      <d2p1:input_price>18</d2p1:input_price>
      <d2p1:is_accessary_attached>true</d2p1:is_accessary_attached>
      <d2p1:is_license_plate>true</d2p1:is_license_plate>
      <d2p1:is_registration>true</d2p1:is_registration>
      <d2p1:old_car_parrot>sample string 17</d2p1:old_car_parrot>
      <d2p1:old_license_plate>sample string 16</d2p1:old_license_plate>
      <d2p1:pin_number>sample string 15</d2p1:pin_number>
      <d2p1:retail_price>20</d2p1:retail_price>
      <d2p1:smartkey>sample string 14</d2p1:smartkey>
      <d2p1:unit_name>sample string 6</d2p1:unit_name>
      <d2p1:vehicle_life>sample string 12</d2p1:vehicle_life>
      <d2p1:vehicle_model>sample string 13</d2p1:vehicle_model>
      <d2p1:vehicle_name>sample string 11</d2p1:vehicle_name>
      <d2p1:warranty_no>sample string 10</d2p1:warranty_no>
      <d2p1:wholesale_price>19</d2p1:wholesale_price>
    </d2p1:DTO_Buy_Vehicle_Detail_Return_List>
    <d2p1:DTO_Buy_Vehicle_Detail_Return_List>
      <d2p1:city_price>22</d2p1:city_price>
      <d2p1:color_name>sample string 4</d2p1:color_name>
      <d2p1:countryside_price>21</d2p1:countryside_price>
      <d2p1:engine_number>sample string 9</d2p1:engine_number>
      <d2p1:frame_number>sample string 8</d2p1:frame_number>
      <d2p1:id>1</d2p1:id>
      <d2p1:id_buy_vehicle_return>2</d2p1:id_buy_vehicle_return>
      <d2p1:id_color>3</d2p1:id_color>
      <d2p1:id_unit>5</d2p1:id_unit>
      <d2p1:id_vehicle_type>7</d2p1:id_vehicle_type>
      <d2p1:input_price>18</d2p1:input_price>
      <d2p1:is_accessary_attached>true</d2p1:is_accessary_attached>
      <d2p1:is_license_plate>true</d2p1:is_license_plate>
      <d2p1:is_registration>true</d2p1:is_registration>
      <d2p1:old_car_parrot>sample string 17</d2p1:old_car_parrot>
      <d2p1:old_license_plate>sample string 16</d2p1:old_license_plate>
      <d2p1:pin_number>sample string 15</d2p1:pin_number>
      <d2p1:retail_price>20</d2p1:retail_price>
      <d2p1:smartkey>sample string 14</d2p1:smartkey>
      <d2p1:unit_name>sample string 6</d2p1:unit_name>
      <d2p1:vehicle_life>sample string 12</d2p1:vehicle_life>
      <d2p1:vehicle_model>sample string 13</d2p1:vehicle_model>
      <d2p1:vehicle_name>sample string 11</d2p1:vehicle_name>
      <d2p1:warranty_no>sample string 10</d2p1:warranty_no>
      <d2p1:wholesale_price>19</d2p1:wholesale_price>
    </d2p1:DTO_Buy_Vehicle_Detail_Return_List>
  </list_vehicle_return>
  <provider_name>sample string 7</provider_name>
  <receipt_date>2026-01-22T12:29:05.7939856+07:00</receipt_date>
  <receipt_root>sample string 11</receipt_root>
  <warehouse_name>sample string 9</warehouse_name>
</Request_Buy_Vehicle_Return_CU>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Request_Buy_Vehicle_Return_CU'.

Response Information

Resource Description

Result
NameDescriptionTypeAdditional 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>