POST staff/accessary_inventory/import

Request Information

URI Parameters

None.

Body Parameters

Request_Accessary_Inventory_Import
NameDescriptionTypeAdditional information
company_name

string

Required

store_name

string

Required

qr_code

string

Required

accessary_name

string

Required

vehicle_life

string

Required

accessary_type_name

string

Required

unit_name

string

Required

warehouse_name

string

Required

position_name

string

Required

min_inventory

integer

Required

max_inventory

integer

Required

vat

decimal number

Required

quantity

decimal number

Required

input_price

decimal number

Required

retail_price

decimal number

Required

wholesale_price

decimal number

Required

service_price

decimal number

Required

token

string

Required

secret_key

string

Required

id_staff_action

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "company_name": "sample string 1",
  "store_name": "sample string 2",
  "qr_code": "sample string 3",
  "accessary_name": "sample string 4",
  "vehicle_life": "sample string 5",
  "accessary_type_name": "sample string 6",
  "unit_name": "sample string 7",
  "warehouse_name": "sample string 8",
  "position_name": "sample string 9",
  "min_inventory": 10,
  "max_inventory": 11,
  "vat": 12.0,
  "quantity": 13.0,
  "input_price": 14.0,
  "retail_price": 15.0,
  "wholesale_price": 16.0,
  "service_price": 17.0,
  "token": "sample string 18",
  "secret_key": "sample string 19",
  "id_staff_action": 20
}

application/xml, text/xml

Sample:
<Request_Accessary_Inventory_Import xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code.Directory.Models.Accessary.Request">
  <id_staff_action xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">20</id_staff_action>
  <secret_key xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">sample string 19</secret_key>
  <token xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">sample string 18</token>
  <accessary_name>sample string 4</accessary_name>
  <accessary_type_name>sample string 6</accessary_type_name>
  <company_name>sample string 1</company_name>
  <input_price>14</input_price>
  <max_inventory>11</max_inventory>
  <min_inventory>10</min_inventory>
  <position_name>sample string 9</position_name>
  <qr_code>sample string 3</qr_code>
  <quantity>13</quantity>
  <retail_price>15</retail_price>
  <service_price>17</service_price>
  <store_name>sample string 2</store_name>
  <unit_name>sample string 7</unit_name>
  <vat>12</vat>
  <vehicle_life>sample string 5</vehicle_life>
  <warehouse_name>sample string 8</warehouse_name>
  <wholesale_price>16</wholesale_price>
</Request_Accessary_Inventory_Import>

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_Accessary_Inventory_Import'.

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>