POST V2/addvoucher/{COMcode}/{Category}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
COMcode | string |
Required |
|
Category | string |
Required |
Body Parameters
MIvoucherPostName | Description | Type | Additional information |
---|---|---|---|
hrows | MIVoucherHeadingDataModel |
None. |
|
erows | MIVoucherExtensionDataModel |
None. |
|
lrows | MIVoucherListingDataModel |
None. |
|
srows | MISerialLotDataModel |
None. |
Request Formats
application/json, text/json
Sample:
{ "hrows": { "MIHautoNo": 1, "MIHdateVC": "2025-07-18T05:55:28.8525737+07:00", "MIHtype": "sample string 3", "MIHvnos": "sample string 4", "MIHcus": "sample string 5", "MIHprocess": 6, "MIHdatePC": "2025-07-18T05:55:28.8525737+07:00", "MIHjob": "sample string 8", "MIHdep": "sample string 9", "MIHper": "sample string 10", "MIHdoc": "sample string 11", "MIHmec": "sample string 12", "MIHpacD": "sample string 13", "MIHcustomNo": "sample string 14", "MIHworkflow": 15, "MIHvatNo": "sample string 16", "MIHvatDate": "2025-07-18T05:55:28.8525737+07:00", "MIHdesc": "sample string 18", "MIHmemo": "sample string 19", "MIHnotes": "sample string 20", "MIHref1": "sample string 21", "MIHref2": "sample string 22", "MIHref3": "sample string 23", "MIHdelvSite": "sample string 24", "MIHdelvDate": "2025-07-18T05:55:28.8525737+07:00", "MIHstanding": 26, "MIHnoUPLINK": 27, "MIHnolist": 28, "MIHcurC": 29, "MIHvatInList": 30, "MIHlock": 31, "MIHprintN": 32, "MIHcheque": 33, "MIHcancel": 34, "MIHstatus": 35, "MIHclearUM": 36, "MIHctermNO": 37, "MIHcog": 38.0, "MIHtaxType": 39, "MIHvatPC": 40.1, "MIHvatSUM": 41.0, "MIHnetSUM": 42.0, "MIHdiscLST": 43.0, "MIHdiscHF1": 44.0, "MIHdiscHF2": 45.0, "MIHdiscHT1": "sample string 46", "MIHdiscHT2": "sample string 47", "MIHexchg": 48.1, "MIHload": 49, "MIHextraSUM": 50.0, "MIHextraVAT": 51.0, "MIHextraMEM": "sample string 52", "MIHrecNO": "sample string 53", "MIHrecDATE": "2025-07-18T05:55:28.8525737+07:00", "MIHdocRunNo": "sample string 55", "MIHduePO": "2025-07-18T05:55:28.8525737+07:00", "MIHopenCN": 57, "MIHtaxVnosDCN": "sample string 58", "MIHtaxDateDCN": "2025-07-18T05:55:28.8525737+07:00", "MIHtaxSumDCN": 60.0, "MIHtaxPaidDate": "2025-07-18T05:55:28.8525737+07:00", "MIHtaxRunNo": "sample string 62", "MIHtaxSendDate": "2025-07-18T05:55:28.8525737+07:00", "MIHetaxStatus": 64, "MIHetaxDate": "2025-07-18T05:55:28.8525737+07:00", "MIHlinkGLfno": 66, "MIHlinkGLdate": "2025-07-18T05:55:28.8525737+07:00", "MIHlinkGLno": "sample string 68", "MIHlinkGLbook": 69, "MIHpostGLdate": "2025-07-18T05:55:28.8525737+07:00", "MIHisCF": 71, "MIHbl": 72, "MIHrpv": 73, "MIHclearCUT": 74, "MIHsettleCUT": 75, "MIHisSP": 76, "MIHdateSD": "2025-07-18T05:55:28.8525737+07:00", "MIHnumSI": 78, "MIHnumSC": 79.0, "MIHflagAPV": true, "MIHapproved": 81, "MIHeditLog": "sample string 82", "MIHkeyUser": "sample string 83", "MIHkeyDate": "2025-07-18T05:55:28.8525737+07:00", "MIHconnect": 85, "MIHwct": "sample string 86", "MIHlinkWOid": 87, "MIHapNRV": 88, "MIHgenre": 89, "MIHetaxVnosPrev": "sample string 90", "MIHetaxVdatePrev": "2025-07-18T05:55:28.8681808+07:00", "MIHetaxVnetPrev": 92.0 }, "erows": { "MIEautoNo": 1, "MIEmihid": 2, "MIEdateVC": "2025-07-18T05:55:28.8681808+07:00", "MIEtype": "sample string 4", "MIEvnos": "sample string 5", "MIEcus": "sample string 6", "MIEctermCX": "sample string 7", "MIEctermPX": "sample string 8", "MIEctermAX": "sample string 9", "MIEctermDX": "sample string 10", "MIErecDT3": 11.0, "MIEbaseDT3": 12.0, "MIEconDT3": 13, "MIEdescDT3": "sample string 14", "MIEperDT3": 15.1, "MIErecDT53": 16.0, "MIEbaseDT53": 17.0, "MIEconDT53": 18, "MIEdescDT53": "sample string 19", "MIEperDT53": 20.1, "MIErecDT32": 21.0, "MIEbaseDT32": 22.0, "MIEconDT32": 23, "MIEdescDT32": "sample string 24", "MIEperDT32": 25.1, "MIErecDT532": 26.0, "MIEbaseDT532": 27.0, "MIEconDT532": 28, "MIEdescDT532": "sample string 29", "MIEperDT532": 30.1, "MIErecDRND": 31.0, "MIErecDEXG": 32.0, "MIErecDCSH": 33.0, "MIErecDOTH": 34.0, "MIErecDETC": 35.0, "MIErecPLUS": 36.0, "MIErecPOTH": 37.0, "MIErecPETC": 38.0, "MIErecCASH": 39.0, "MIErecCQRD": 40.0, "MIErecFC": "sample string 41", "MIEtaxPayNo": "sample string 42", "MIEtag": 43, "MIEcollectDT": "2025-07-18T05:55:28.8681808+07:00" }, "lrows": { "MILautoNo": 1, "MILmihid": 2, "MILdateVC": "2025-07-18T05:55:28.8681808+07:00", "MILtype": "sample string 4", "MILvnos": "sample string 5", "MILcus": "sample string 6", "MILstk": "sample string 7", "MILjob": "sample string 8", "MILdep": "sample string 9", "MILper": "sample string 10", "MILdoc": "sample string 11", "MILmec": "sample string 12", "MILsto": "sample string 13", "MILstoMT": "sample string 14", "MILlistNo": 15, "MILquan": 16.1, "MILquanP2": 17.1, "MILadisc": 18.0, "MILcog": 19.0, "MILconv": 20.1, "MILdiscA": 21.0, "MILdiscT": "sample string 22", "MILvat": 23.0, "MILsum": 24.0, "MILcut": 25, "MILstype": 26, "MILuname": "sample string 27", "MILdescM": 28, "MILdescX": "sample string 29", "MILvCol1": "sample string 30", "MILvCol2": "sample string 31", "MILvCol3": "sample string 32", "MILvCol4": "sample string 33", "MILvCol5": "sample string 34", "MILcurC": 35, "MILexchg": 36.1, "MILacost": 37.0, "MILpqm": 38, "MILpmFrom": 39, "MILpmTo": 40, "MILnotKL": 41, "MILtag": 42, "MILlinkVCno": "sample string 43", "MILlinkVCdate": "2025-07-18T05:55:28.8681808+07:00", "MILlinkVCtype": "sample string 45", "MILlinkVCdeposit": "sample string 46", "MILlinkVCid": 47, "MILlinkMILid": 48, "MILclearUM": 49, "MILexpDATE": "2025-07-18T05:55:28.8681808+07:00", "MILnotes": "sample string 51", "MILdelvDT": "2025-07-18T05:55:28.8681808+07:00", "MILdateSP": "2025-07-18T05:55:28.8681808+07:00", "MILnumCSP": 54.0, "MILnumISP": 55, "MILcost": 56.0, "MILucost": 57.0, "MILuprice": 58.0, "MILuseQuanP": 59, "MILfitem": 60, "MILmrpLinkID": 61, "MILupriceP": 62.0, "MILprintMPU": 63 }, "srows": { "MISautoNo": 1, "MISmiLid": 2, "MISdateVC": "2025-07-18T05:55:28.8681808+07:00", "MIStype": "sample string 4", "MISvnos": "sample string 5", "MIScus": "sample string 6", "MISstk": "sample string 7", "MISdep": "sample string 8", "MISjob": "sample string 9", "MISsto": "sample string 10", "MISper": "sample string 11", "MISmec": "sample string 12", "MISserialM": "sample string 13", "MISserialS": "sample string 14", "MIScost": 15.0, "MIScurC": 16, "MISexchg": 17.1, "MISnotes": "sample string 18", "MISio": 19, "MIStag": 20, "MISstoMT": 21, "MISquan": 22.1, "MISsnsv": 23, "MISline": 24, "MIScostSU": 25.1, "MISmfgDATE": "2025-07-18T05:55:28.8681808+07:00", "MISexpDATE": "2025-07-18T05:55:28.8681808+07:00", "MISdoc": "sample string 28" } }
application/xml, text/xml
Sample:
<MIvoucherPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/M5L_WebAPI.Models"> <erows> <MIEautoNo>1</MIEautoNo> <MIEbaseDT3>12</MIEbaseDT3> <MIEbaseDT32>22</MIEbaseDT32> <MIEbaseDT53>17</MIEbaseDT53> <MIEbaseDT532>27</MIEbaseDT532> <MIEcollectDT>2025-07-18T05:55:28.8681808+07:00</MIEcollectDT> <MIEconDT3>13</MIEconDT3> <MIEconDT32>23</MIEconDT32> <MIEconDT53>18</MIEconDT53> <MIEconDT532>28</MIEconDT532> <MIEctermAX>sample string 9</MIEctermAX> <MIEctermCX>sample string 7</MIEctermCX> <MIEctermDX>sample string 10</MIEctermDX> <MIEctermPX>sample string 8</MIEctermPX> <MIEcus>sample string 6</MIEcus> <MIEdateVC>2025-07-18T05:55:28.8681808+07:00</MIEdateVC> <MIEdescDT3>sample string 14</MIEdescDT3> <MIEdescDT32>sample string 24</MIEdescDT32> <MIEdescDT53>sample string 19</MIEdescDT53> <MIEdescDT532>sample string 29</MIEdescDT532> <MIEmihid>2</MIEmihid> <MIEperDT3>15.1</MIEperDT3> <MIEperDT32>25.1</MIEperDT32> <MIEperDT53>20.1</MIEperDT53> <MIEperDT532>30.1</MIEperDT532> <MIErecCASH>39</MIErecCASH> <MIErecCQRD>40</MIErecCQRD> <MIErecDCSH>33</MIErecDCSH> <MIErecDETC>35</MIErecDETC> <MIErecDEXG>32</MIErecDEXG> <MIErecDOTH>34</MIErecDOTH> <MIErecDRND>31</MIErecDRND> <MIErecDT3>11</MIErecDT3> <MIErecDT32>21</MIErecDT32> <MIErecDT53>16</MIErecDT53> <MIErecDT532>26</MIErecDT532> <MIErecFC>sample string 41</MIErecFC> <MIErecPETC>38</MIErecPETC> <MIErecPLUS>36</MIErecPLUS> <MIErecPOTH>37</MIErecPOTH> <MIEtag>43</MIEtag> <MIEtaxPayNo>sample string 42</MIEtaxPayNo> <MIEtype>sample string 4</MIEtype> <MIEvnos>sample string 5</MIEvnos> </erows> <hrows> <MIHapNRV>88</MIHapNRV> <MIHapproved>81</MIHapproved> <MIHautoNo>1</MIHautoNo> <MIHbl>72</MIHbl> <MIHcancel>34</MIHcancel> <MIHcheque>33</MIHcheque> <MIHclearCUT>74</MIHclearCUT> <MIHclearUM>36</MIHclearUM> <MIHcog>38</MIHcog> <MIHconnect>85</MIHconnect> <MIHctermNO>37</MIHctermNO> <MIHcurC>29</MIHcurC> <MIHcus>sample string 5</MIHcus> <MIHcustomNo>sample string 14</MIHcustomNo> <MIHdatePC>2025-07-18T05:55:28.8525737+07:00</MIHdatePC> <MIHdateSD>2025-07-18T05:55:28.8525737+07:00</MIHdateSD> <MIHdateVC>2025-07-18T05:55:28.8525737+07:00</MIHdateVC> <MIHdelvDate>2025-07-18T05:55:28.8525737+07:00</MIHdelvDate> <MIHdelvSite>sample string 24</MIHdelvSite> <MIHdep>sample string 9</MIHdep> <MIHdesc>sample string 18</MIHdesc> <MIHdiscHF1>44</MIHdiscHF1> <MIHdiscHF2>45</MIHdiscHF2> <MIHdiscHT1>sample string 46</MIHdiscHT1> <MIHdiscHT2>sample string 47</MIHdiscHT2> <MIHdiscLST>43</MIHdiscLST> <MIHdoc>sample string 11</MIHdoc> <MIHdocRunNo>sample string 55</MIHdocRunNo> <MIHduePO>2025-07-18T05:55:28.8525737+07:00</MIHduePO> <MIHeditLog>sample string 82</MIHeditLog> <MIHetaxDate>2025-07-18T05:55:28.8525737+07:00</MIHetaxDate> <MIHetaxStatus>64</MIHetaxStatus> <MIHetaxVdatePrev>2025-07-18T05:55:28.8681808+07:00</MIHetaxVdatePrev> <MIHetaxVnetPrev>92</MIHetaxVnetPrev> <MIHetaxVnosPrev>sample string 90</MIHetaxVnosPrev> <MIHexchg>48.1</MIHexchg> <MIHextraMEM>sample string 52</MIHextraMEM> <MIHextraSUM>50</MIHextraSUM> <MIHextraVAT>51</MIHextraVAT> <MIHflagAPV>true</MIHflagAPV> <MIHgenre>89</MIHgenre> <MIHisCF>71</MIHisCF> <MIHisSP>76</MIHisSP> <MIHjob>sample string 8</MIHjob> <MIHkeyDate>2025-07-18T05:55:28.8525737+07:00</MIHkeyDate> <MIHkeyUser>sample string 83</MIHkeyUser> <MIHlinkGLbook>69</MIHlinkGLbook> <MIHlinkGLdate>2025-07-18T05:55:28.8525737+07:00</MIHlinkGLdate> <MIHlinkGLfno>66</MIHlinkGLfno> <MIHlinkGLno>sample string 68</MIHlinkGLno> <MIHlinkWOid>87</MIHlinkWOid> <MIHload>49</MIHload> <MIHlock>31</MIHlock> <MIHmec>sample string 12</MIHmec> <MIHmemo>sample string 19</MIHmemo> <MIHnetSUM>42</MIHnetSUM> <MIHnoUPLINK>27</MIHnoUPLINK> <MIHnolist>28</MIHnolist> <MIHnotes>sample string 20</MIHnotes> <MIHnumSC>79</MIHnumSC> <MIHnumSI>78</MIHnumSI> <MIHopenCN>57</MIHopenCN> <MIHpacD>sample string 13</MIHpacD> <MIHper>sample string 10</MIHper> <MIHpostGLdate>2025-07-18T05:55:28.8525737+07:00</MIHpostGLdate> <MIHprintN>32</MIHprintN> <MIHprocess>6</MIHprocess> <MIHrecDATE>2025-07-18T05:55:28.8525737+07:00</MIHrecDATE> <MIHrecNO>sample string 53</MIHrecNO> <MIHref1>sample string 21</MIHref1> <MIHref2>sample string 22</MIHref2> <MIHref3>sample string 23</MIHref3> <MIHrpv>73</MIHrpv> <MIHsettleCUT>75</MIHsettleCUT> <MIHstanding>26</MIHstanding> <MIHstatus>35</MIHstatus> <MIHtaxDateDCN>2025-07-18T05:55:28.8525737+07:00</MIHtaxDateDCN> <MIHtaxPaidDate>2025-07-18T05:55:28.8525737+07:00</MIHtaxPaidDate> <MIHtaxRunNo>sample string 62</MIHtaxRunNo> <MIHtaxSendDate>2025-07-18T05:55:28.8525737+07:00</MIHtaxSendDate> <MIHtaxSumDCN>60</MIHtaxSumDCN> <MIHtaxType>39</MIHtaxType> <MIHtaxVnosDCN>sample string 58</MIHtaxVnosDCN> <MIHtype>sample string 3</MIHtype> <MIHvatDate>2025-07-18T05:55:28.8525737+07:00</MIHvatDate> <MIHvatInList>30</MIHvatInList> <MIHvatNo>sample string 16</MIHvatNo> <MIHvatPC>40.1</MIHvatPC> <MIHvatSUM>41</MIHvatSUM> <MIHvnos>sample string 4</MIHvnos> <MIHwct>sample string 86</MIHwct> <MIHworkflow>15</MIHworkflow> </hrows> <lrows> <MILacost>37</MILacost> <MILadisc>18</MILadisc> <MILautoNo>1</MILautoNo> <MILclearUM>49</MILclearUM> <MILcog>19</MILcog> <MILconv>20.1</MILconv> <MILcost>56</MILcost> <MILcurC>35</MILcurC> <MILcus>sample string 6</MILcus> <MILcut>25</MILcut> <MILdateSP>2025-07-18T05:55:28.8681808+07:00</MILdateSP> <MILdateVC>2025-07-18T05:55:28.8681808+07:00</MILdateVC> <MILdelvDT>2025-07-18T05:55:28.8681808+07:00</MILdelvDT> <MILdep>sample string 9</MILdep> <MILdescM>28</MILdescM> <MILdescX>sample string 29</MILdescX> <MILdiscA>21</MILdiscA> <MILdiscT>sample string 22</MILdiscT> <MILdoc>sample string 11</MILdoc> <MILexchg>36.1</MILexchg> <MILexpDATE>2025-07-18T05:55:28.8681808+07:00</MILexpDATE> <MILfitem>60</MILfitem> <MILjob>sample string 8</MILjob> <MILlinkMILid>48</MILlinkMILid> <MILlinkVCdate>2025-07-18T05:55:28.8681808+07:00</MILlinkVCdate> <MILlinkVCdeposit>sample string 46</MILlinkVCdeposit> <MILlinkVCid>47</MILlinkVCid> <MILlinkVCno>sample string 43</MILlinkVCno> <MILlinkVCtype>sample string 45</MILlinkVCtype> <MILlistNo>15</MILlistNo> <MILmec>sample string 12</MILmec> <MILmihid>2</MILmihid> <MILmrpLinkID>61</MILmrpLinkID> <MILnotKL>41</MILnotKL> <MILnotes>sample string 51</MILnotes> <MILnumCSP>54</MILnumCSP> <MILnumISP>55</MILnumISP> <MILper>sample string 10</MILper> <MILpmFrom>39</MILpmFrom> <MILpmTo>40</MILpmTo> <MILpqm>38</MILpqm> <MILprintMPU>63</MILprintMPU> <MILquan>16.1</MILquan> <MILquanP2>17.1</MILquanP2> <MILstk>sample string 7</MILstk> <MILsto>sample string 13</MILsto> <MILstoMT>sample string 14</MILstoMT> <MILstype>26</MILstype> <MILsum>24</MILsum> <MILtag>42</MILtag> <MILtype>sample string 4</MILtype> <MILucost>57</MILucost> <MILuname>sample string 27</MILuname> <MILuprice>58</MILuprice> <MILupriceP>62</MILupriceP> <MILuseQuanP>59</MILuseQuanP> <MILvCol1>sample string 30</MILvCol1> <MILvCol2>sample string 31</MILvCol2> <MILvCol3>sample string 32</MILvCol3> <MILvCol4>sample string 33</MILvCol4> <MILvCol5>sample string 34</MILvCol5> <MILvat>23</MILvat> <MILvnos>sample string 5</MILvnos> </lrows> <srows> <MISautoNo>1</MISautoNo> <MIScost>15</MIScost> <MIScostSU>25.1</MIScostSU> <MIScurC>16</MIScurC> <MIScus>sample string 6</MIScus> <MISdateVC>2025-07-18T05:55:28.8681808+07:00</MISdateVC> <MISdep>sample string 8</MISdep> <MISdoc>sample string 28</MISdoc> <MISexchg>17.1</MISexchg> <MISexpDATE>2025-07-18T05:55:28.8681808+07:00</MISexpDATE> <MISio>19</MISio> <MISjob>sample string 9</MISjob> <MISline>24</MISline> <MISmec>sample string 12</MISmec> <MISmfgDATE>2025-07-18T05:55:28.8681808+07:00</MISmfgDATE> <MISmiLid>2</MISmiLid> <MISnotes>sample string 18</MISnotes> <MISper>sample string 11</MISper> <MISquan>22.1</MISquan> <MISserialM>sample string 13</MISserialM> <MISserialS>sample string 14</MISserialS> <MISsnsv>23</MISsnsv> <MISstk>sample string 7</MISstk> <MISsto>sample string 10</MISsto> <MISstoMT>21</MISstoMT> <MIStag>20</MIStag> <MIStype>sample string 4</MIStype> <MISvnos>sample string 5</MISvnos> </srows> </MIvoucherPost>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.