POST api/Inventory/AddInventory

Request Information

URI Parameters

None.

Body Parameters

Collection of Inventory
NameDescriptionTypeAdditional information
inventory_id

globally unique identifier

None.

reference_id

globally unique identifier

None.

referenceType

integer

None.

name

string

None.

qty

decimal number

None.

unit_id

integer

None.

unit

string

None.

in_out

integer

None.

description

string

None.

createBy

globally unique identifier

None.

createDate

date

None.

isActive

boolean

None.

updateBy

globally unique identifier

None.

updateDate

date

None.

business_id

globally unique identifier

None.

datetime

date

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "inventory_id": "a0b881f5-8dc4-4ed6-a1c6-ea275fa463c4",
    "reference_id": "3d7c56cd-f293-43c2-8bd6-c3a0abae8b82",
    "referenceType": 3,
    "name": "sample string 4",
    "qty": 5.1,
    "unit_id": 6,
    "unit": "sample string 7",
    "in_out": 8,
    "description": "sample string 9",
    "createBy": "f1ad2f38-eae4-40a8-b874-110ce8a7a5f5",
    "createDate": "1788985708000",
    "isActive": true,
    "updateBy": "2e8873f3-210f-4a57-a20c-fb0431b893c9",
    "updateDate": "1788985708000",
    "business_id": "1f6eddc1-64f3-46e8-9bda-e98a85b180a5",
    "datetime": "1788985708000"
  },
  {
    "inventory_id": "a0b881f5-8dc4-4ed6-a1c6-ea275fa463c4",
    "reference_id": "3d7c56cd-f293-43c2-8bd6-c3a0abae8b82",
    "referenceType": 3,
    "name": "sample string 4",
    "qty": 5.1,
    "unit_id": 6,
    "unit": "sample string 7",
    "in_out": 8,
    "description": "sample string 9",
    "createBy": "f1ad2f38-eae4-40a8-b874-110ce8a7a5f5",
    "createDate": "1788985708000",
    "isActive": true,
    "updateBy": "2e8873f3-210f-4a57-a20c-fb0431b893c9",
    "updateDate": "1788985708000",
    "business_id": "1f6eddc1-64f3-46e8-9bda-e98a85b180a5",
    "datetime": "1788985708000"
  }
]

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 'List`1'.

Response Information

Resource Description

Response
NameDescriptionTypeAdditional information
status

boolean

None.

error

string

None.

data

Object

None.

Response Formats

application/json, text/json

Sample:

Sample not available.