POST api/Invoices/Post_iteminvo?db_name={db_name}&moazana={moazana}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
db_name

string

Required

moazana

integer

Required

Body Parameters

Collection of list_for_save_item_invo
NameDescriptionTypeAdditional information
Item_code

integer

None.

Item_name

string

None.

Item_price_iqd

decimal number

None.

Item_price_doll

decimal number

None.

Item_price_iqd_mb

decimal number

None.

Item_price_doll_mb

decimal number

None.

Item_amount

decimal number

None.

Item_less_required

integer

None.

Item_nots

string

None.

Item_price_iqd_mb_m

decimal number

None.

Item_price_doll_mb_m

decimal number

None.

cuntaint_id_1

integer

None.

cuntaint1_name

string

None.

Item_nu

decimal number

None.

cuntaint_id_2

integer

None.

cuntaint2_name

string

None.

isnaf_id

integer

None.

item_expir

string

None.

item_befor

integer

None.

Item_price_iqd_mb_s

decimal number

None.

Item_price_doll_mb_s

decimal number

None.

mo

string

None.

type_1

integer

None.

item_invo_id

integer

None.

stor_id

integer

None.

current_shera_doll

decimal number

None.

current_shera_iqd

decimal number

None.

Item_price_all_doll

decimal number

None.

Item_price_all_iqd

decimal number

None.

state_order

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Item_code": 1,
    "Item_name": "sample string 2",
    "Item_price_iqd": 3.1,
    "Item_price_doll": 4.1,
    "Item_price_iqd_mb": 5.1,
    "Item_price_doll_mb": 6.1,
    "Item_amount": 7.1,
    "Item_less_required": 8,
    "Item_nots": "sample string 9",
    "Item_price_iqd_mb_m": 10.1,
    "Item_price_doll_mb_m": 11.1,
    "cuntaint_id_1": 12,
    "cuntaint1_name": "sample string 13",
    "Item_nu": 14.1,
    "cuntaint_id_2": 15,
    "cuntaint2_name": "sample string 16",
    "isnaf_id": 17,
    "item_expir": "sample string 18",
    "item_befor": 19,
    "Item_price_iqd_mb_s": 20.1,
    "Item_price_doll_mb_s": 21.1,
    "mo": "sample string 22",
    "type_1": 23,
    "item_invo_id": 24,
    "stor_id": 25,
    "current_shera_doll": 26.1,
    "current_shera_iqd": 27.1,
    "Item_price_all_doll": 28.1,
    "Item_price_all_iqd": 29.1,
    "state_order": "sample string 30"
  },
  {
    "Item_code": 1,
    "Item_name": "sample string 2",
    "Item_price_iqd": 3.1,
    "Item_price_doll": 4.1,
    "Item_price_iqd_mb": 5.1,
    "Item_price_doll_mb": 6.1,
    "Item_amount": 7.1,
    "Item_less_required": 8,
    "Item_nots": "sample string 9",
    "Item_price_iqd_mb_m": 10.1,
    "Item_price_doll_mb_m": 11.1,
    "cuntaint_id_1": 12,
    "cuntaint1_name": "sample string 13",
    "Item_nu": 14.1,
    "cuntaint_id_2": 15,
    "cuntaint2_name": "sample string 16",
    "isnaf_id": 17,
    "item_expir": "sample string 18",
    "item_befor": 19,
    "Item_price_iqd_mb_s": 20.1,
    "Item_price_doll_mb_s": 21.1,
    "mo": "sample string 22",
    "type_1": 23,
    "item_invo_id": 24,
    "stor_id": 25,
    "current_shera_doll": 26.1,
    "current_shera_iqd": 27.1,
    "Item_price_all_doll": 28.1,
    "Item_price_all_iqd": 29.1,
    "state_order": "sample string 30"
  }
]

application/xml, text/xml

Sample:
<ArrayOflist_for_save_item_invo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/meraApi.Models">
  <list_for_save_item_invo>
    <Item_amount>7.1</Item_amount>
    <Item_code>1</Item_code>
    <Item_less_required>8</Item_less_required>
    <Item_name>sample string 2</Item_name>
    <Item_nots>sample string 9</Item_nots>
    <Item_nu>14.1</Item_nu>
    <Item_price_all_doll>28.1</Item_price_all_doll>
    <Item_price_all_iqd>29.1</Item_price_all_iqd>
    <Item_price_doll>4.1</Item_price_doll>
    <Item_price_doll_mb>6.1</Item_price_doll_mb>
    <Item_price_doll_mb_m>11.1</Item_price_doll_mb_m>
    <Item_price_doll_mb_s>21.1</Item_price_doll_mb_s>
    <Item_price_iqd>3.1</Item_price_iqd>
    <Item_price_iqd_mb>5.1</Item_price_iqd_mb>
    <Item_price_iqd_mb_m>10.1</Item_price_iqd_mb_m>
    <Item_price_iqd_mb_s>20.1</Item_price_iqd_mb_s>
    <cuntaint1_name>sample string 13</cuntaint1_name>
    <cuntaint2_name>sample string 16</cuntaint2_name>
    <cuntaint_id_1>12</cuntaint_id_1>
    <cuntaint_id_2>15</cuntaint_id_2>
    <current_shera_doll>26.1</current_shera_doll>
    <current_shera_iqd>27.1</current_shera_iqd>
    <isnaf_id>17</isnaf_id>
    <item_befor>19</item_befor>
    <item_expir>sample string 18</item_expir>
    <item_invo_id>24</item_invo_id>
    <mo>sample string 22</mo>
    <state_order>sample string 30</state_order>
    <stor_id>25</stor_id>
    <type_1>23</type_1>
  </list_for_save_item_invo>
  <list_for_save_item_invo>
    <Item_amount>7.1</Item_amount>
    <Item_code>1</Item_code>
    <Item_less_required>8</Item_less_required>
    <Item_name>sample string 2</Item_name>
    <Item_nots>sample string 9</Item_nots>
    <Item_nu>14.1</Item_nu>
    <Item_price_all_doll>28.1</Item_price_all_doll>
    <Item_price_all_iqd>29.1</Item_price_all_iqd>
    <Item_price_doll>4.1</Item_price_doll>
    <Item_price_doll_mb>6.1</Item_price_doll_mb>
    <Item_price_doll_mb_m>11.1</Item_price_doll_mb_m>
    <Item_price_doll_mb_s>21.1</Item_price_doll_mb_s>
    <Item_price_iqd>3.1</Item_price_iqd>
    <Item_price_iqd_mb>5.1</Item_price_iqd_mb>
    <Item_price_iqd_mb_m>10.1</Item_price_iqd_mb_m>
    <Item_price_iqd_mb_s>20.1</Item_price_iqd_mb_s>
    <cuntaint1_name>sample string 13</cuntaint1_name>
    <cuntaint2_name>sample string 16</cuntaint2_name>
    <cuntaint_id_1>12</cuntaint_id_1>
    <cuntaint_id_2>15</cuntaint_id_2>
    <current_shera_doll>26.1</current_shera_doll>
    <current_shera_iqd>27.1</current_shera_iqd>
    <isnaf_id>17</isnaf_id>
    <item_befor>19</item_befor>
    <item_expir>sample string 18</item_expir>
    <item_invo_id>24</item_invo_id>
    <mo>sample string 22</mo>
    <state_order>sample string 30</state_order>
    <stor_id>25</stor_id>
    <type_1>23</type_1>
  </list_for_save_item_invo>
</ArrayOflist_for_save_item_invo>

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

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>