POST api/form/AddFormConnectedItem

Request Information

URI Parameters

None.

Body Parameters

Collection of MainFormItem
NameDescriptionTypeAdditional information
form_num

integer

None.

item_code

integer

None.

oper_code

integer

None.

debit_line_code

integer

None.

for_debit

string

Matching regular expression pattern: ^[yn]{1}$

String length: inclusive between 0 and 1

reduce_from_inventory

string

Matching regular expression pattern: ^[yn]{1}$

String length: inclusive between 0 and 1

price

decimal number

None.

standard_amount

integer

None.

real_amount

integer

None.

moved_to_debit_amount

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "form_num": 1,
    "item_code": 2,
    "oper_code": 1,
    "debit_line_code": 1,
    "for_debit": "sample string 3",
    "reduce_from_inventory": "sample string 4",
    "price": 1.0,
    "standard_amount": 1,
    "real_amount": 1,
    "moved_to_debit_amount": 1
  },
  {
    "form_num": 1,
    "item_code": 2,
    "oper_code": 1,
    "debit_line_code": 1,
    "for_debit": "sample string 3",
    "reduce_from_inventory": "sample string 4",
    "price": 1.0,
    "standard_amount": 1,
    "real_amount": 1,
    "moved_to_debit_amount": 1
  }
]

application/xml, text/xml

Sample:
<ArrayOfMainFormItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustDemog">
  <MainFormItem>
    <debit_line_code>1</debit_line_code>
    <for_debit>sample string 3</for_debit>
    <form_num>1</form_num>
    <item_code>2</item_code>
    <moved_to_debit_amount>1</moved_to_debit_amount>
    <oper_code>1</oper_code>
    <price>1</price>
    <real_amount>1</real_amount>
    <reduce_from_inventory>sample string 4</reduce_from_inventory>
    <standard_amount>1</standard_amount>
  </MainFormItem>
  <MainFormItem>
    <debit_line_code>1</debit_line_code>
    <for_debit>sample string 3</for_debit>
    <form_num>1</form_num>
    <item_code>2</item_code>
    <moved_to_debit_amount>1</moved_to_debit_amount>
    <oper_code>1</oper_code>
    <price>1</price>
    <real_amount>1</real_amount>
    <reduce_from_inventory>sample string 4</reduce_from_inventory>
    <standard_amount>1</standard_amount>
  </MainFormItem>
</ArrayOfMainFormItem>

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

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

Collection of MainFormItem
NameDescriptionTypeAdditional information
form_num

integer

None.

item_code

integer

None.

oper_code

integer

None.

debit_line_code

integer

None.

for_debit

string

Matching regular expression pattern: ^[yn]{1}$

String length: inclusive between 0 and 1

reduce_from_inventory

string

Matching regular expression pattern: ^[yn]{1}$

String length: inclusive between 0 and 1

price

decimal number

None.

standard_amount

integer

None.

real_amount

integer

None.

moved_to_debit_amount

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "form_num": 1,
    "item_code": 2,
    "oper_code": 1,
    "debit_line_code": 1,
    "for_debit": "sample string 3",
    "reduce_from_inventory": "sample string 4",
    "price": 1.0,
    "standard_amount": 1,
    "real_amount": 1,
    "moved_to_debit_amount": 1
  },
  {
    "form_num": 1,
    "item_code": 2,
    "oper_code": 1,
    "debit_line_code": 1,
    "for_debit": "sample string 3",
    "reduce_from_inventory": "sample string 4",
    "price": 1.0,
    "standard_amount": 1,
    "real_amount": 1,
    "moved_to_debit_amount": 1
  }
]

application/xml, text/xml

Sample:
<ArrayOfMainFormItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustDemog">
  <MainFormItem>
    <debit_line_code>1</debit_line_code>
    <for_debit>sample string 3</for_debit>
    <form_num>1</form_num>
    <item_code>2</item_code>
    <moved_to_debit_amount>1</moved_to_debit_amount>
    <oper_code>1</oper_code>
    <price>1</price>
    <real_amount>1</real_amount>
    <reduce_from_inventory>sample string 4</reduce_from_inventory>
    <standard_amount>1</standard_amount>
  </MainFormItem>
  <MainFormItem>
    <debit_line_code>1</debit_line_code>
    <for_debit>sample string 3</for_debit>
    <form_num>1</form_num>
    <item_code>2</item_code>
    <moved_to_debit_amount>1</moved_to_debit_amount>
    <oper_code>1</oper_code>
    <price>1</price>
    <real_amount>1</real_amount>
    <reduce_from_inventory>sample string 4</reduce_from_inventory>
    <standard_amount>1</standard_amount>
  </MainFormItem>
</ArrayOfMainFormItem>

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.