POST api/{area}/Voucher?access_token={access_token}&asid={asid}
提交凭证
Request Information
Body Parameters
凭证信息
Collection of VoucherModel| Name | Description | Type | Additional information |
|---|---|---|---|
| period |
期间信息(201608) |
string |
None. |
| vg_name |
凭证字(记、收、付、转) |
string |
None. |
| v_num |
凭证号(1、2、3、4) |
integer |
None. |
| v_date |
凭证日期 |
date |
None. |
| attachements |
附件个数 |
integer |
None. |
| fileid |
凭证附件Id |
string |
None. |
| note |
凭证备注 |
string |
None. |
| lines |
凭证行 |
Collection of VoucherLineModel |
None. |
| current_period |
所编辑凭证期间信息(201608) |
string |
None. |
| vid |
所编辑凭证id |
integer |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"period": "sample string 1",
"vg_name": "sample string 2",
"v_num": 1,
"v_date": "2025-12-16T07:26:36.8934573+08:00",
"attachements": 4,
"fileid": "sample string 5",
"note": "sample string 6",
"lines": [
{
"description": "sample string 1",
"asub_code": "sample string 2",
"debit": 3.0,
"credit": 4.0,
"quantity": 5.0,
"price": 6.0,
"fc_code": "sample string 7",
"fc_rate": 8.0,
"fc_amount": 9.0,
"aa_code": "sample string 10"
},
{
"description": "sample string 1",
"asub_code": "sample string 2",
"debit": 3.0,
"credit": 4.0,
"quantity": 5.0,
"price": 6.0,
"fc_code": "sample string 7",
"fc_rate": 8.0,
"fc_amount": 9.0,
"aa_code": "sample string 10"
}
],
"current_period": "sample string 7",
"vid": 8
},
{
"period": "sample string 1",
"vg_name": "sample string 2",
"v_num": 1,
"v_date": "2025-12-16T07:26:36.8934573+08:00",
"attachements": 4,
"fileid": "sample string 5",
"note": "sample string 6",
"lines": [
{
"description": "sample string 1",
"asub_code": "sample string 2",
"debit": 3.0,
"credit": 4.0,
"quantity": 5.0,
"price": 6.0,
"fc_code": "sample string 7",
"fc_rate": 8.0,
"fc_amount": 9.0,
"aa_code": "sample string 10"
},
{
"description": "sample string 1",
"asub_code": "sample string 2",
"debit": 3.0,
"credit": 4.0,
"quantity": 5.0,
"price": 6.0,
"fc_code": "sample string 7",
"fc_rate": 8.0,
"fc_amount": 9.0,
"aa_code": "sample string 10"
}
],
"current_period": "sample string 7",
"vid": 8
}
]
application/xml, text/xml
Sample:
<ArrayOfVoucherModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonAcc.Open.Areas.Voucher.Models">
<VoucherModel>
<attachements>4</attachements>
<current_period>sample string 7</current_period>
<fileid>sample string 5</fileid>
<lines>
<VoucherLineModel>
<aa_code>sample string 10</aa_code>
<asub_code>sample string 2</asub_code>
<credit>4</credit>
<debit>3</debit>
<description>sample string 1</description>
<fc_amount>9</fc_amount>
<fc_code>sample string 7</fc_code>
<fc_rate>8</fc_rate>
<price>6</price>
<quantity>5</quantity>
</VoucherLineModel>
<VoucherLineModel>
<aa_code>sample string 10</aa_code>
<asub_code>sample string 2</asub_code>
<credit>4</credit>
<debit>3</debit>
<description>sample string 1</description>
<fc_amount>9</fc_amount>
<fc_code>sample string 7</fc_code>
<fc_rate>8</fc_rate>
<price>6</price>
<quantity>5</quantity>
</VoucherLineModel>
</lines>
<note>sample string 6</note>
<period>sample string 1</period>
<v_date>2025-12-16T07:26:36.8934573+08:00</v_date>
<v_num>1</v_num>
<vg_name>sample string 2</vg_name>
<vid>8</vid>
</VoucherModel>
<VoucherModel>
<attachements>4</attachements>
<current_period>sample string 7</current_period>
<fileid>sample string 5</fileid>
<lines>
<VoucherLineModel>
<aa_code>sample string 10</aa_code>
<asub_code>sample string 2</asub_code>
<credit>4</credit>
<debit>3</debit>
<description>sample string 1</description>
<fc_amount>9</fc_amount>
<fc_code>sample string 7</fc_code>
<fc_rate>8</fc_rate>
<price>6</price>
<quantity>5</quantity>
</VoucherLineModel>
<VoucherLineModel>
<aa_code>sample string 10</aa_code>
<asub_code>sample string 2</asub_code>
<credit>4</credit>
<debit>3</debit>
<description>sample string 1</description>
<fc_amount>9</fc_amount>
<fc_code>sample string 7</fc_code>
<fc_rate>8</fc_rate>
<price>6</price>
<quantity>5</quantity>
</VoucherLineModel>
</lines>
<note>sample string 6</note>
<period>sample string 1</period>
<v_date>2025-12-16T07:26:36.8934573+08:00</v_date>
<v_num>1</v_num>
<vg_name>sample string 2</vg_name>
<vid>8</vid>
</VoucherModel>
</ArrayOfVoucherModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
提交凭证
Collection of VoucherAddResult| Name | Description | Type | Additional information |
|---|---|---|---|
| period |
期间信息 |
string |
None. |
| vg |
凭证字 |
string |
None. |
| v_num |
凭证号 |
string |
None. |
| v_id |
凭证id |
integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"period": "sample string 1",
"vg": "sample string 2",
"v_num": "sample string 3",
"v_id": 4
},
{
"period": "sample string 1",
"vg": "sample string 2",
"v_num": "sample string 3",
"v_id": 4
}
]
application/xml, text/xml
Sample:
<ArrayOfVoucherAddResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonAcc.Open.Areas.Voucher.Models">
<VoucherAddResult>
<period>sample string 1</period>
<v_id>4</v_id>
<v_num>sample string 3</v_num>
<vg>sample string 2</vg>
</VoucherAddResult>
<VoucherAddResult>
<period>sample string 1</period>
<v_id>4</v_id>
<v_num>sample string 3</v_num>
<vg>sample string 2</vg>
</VoucherAddResult>
</ArrayOfVoucherAddResult>