GET api/{area}/Voucher?access_token={access_token}&asid={asid}&period={period}&vid={vid}
获取单张凭证
Request Information
Body Parameters
None.
Response Information
Resource Description
获取单张凭证
VoucherSearchModel| Name | Description | Type | Additional information |
|---|---|---|---|
| period |
期间信息 |
string |
None. |
| v_id |
凭证ID |
integer |
None. |
| vg_name |
凭证字 |
string |
None. |
| v_num |
凭证号 |
integer |
None. |
| v_date |
凭证日期 |
date |
None. |
| prepared_by |
制单人 |
string |
None. |
| attachments |
附件数量 |
integer |
None. |
| approved_by |
审核人 |
string |
None. |
| approve_status |
审核信息(1表示被审核) |
integer |
None. |
| fileid |
凭证附件Id |
string |
None. |
| note |
备注信息 |
string |
None. |
| created_way |
创建途径 |
integer |
None. |
| created_date |
创建时间 |
date |
None. |
| modified_date |
修改时间 |
date |
None. |
| lines |
凭证行 |
Collection of VoucherSearchEntry |
None. |
Response Formats
application/json, text/json
Sample:
{
"period": "sample string 1",
"v_id": 2,
"vg_name": "sample string 3",
"v_num": 4,
"v_date": "2025-12-16T07:27:39.7368051+08:00",
"prepared_by": "sample string 6",
"attachments": 1,
"approved_by": "sample string 7",
"approve_status": 8,
"fileid": "sample string 9",
"note": "sample string 10",
"created_way": 11,
"created_date": "2025-12-16T07:27:39.7368051+08:00",
"modified_date": "2025-12-16T07:27:39.7368051+08:00",
"lines": [
{
"description": "sample string 1",
"asub_code": "sample string 2",
"asub_name": "sample string 3",
"debit": 4.0,
"credit": 5.0,
"quantity": 6.0,
"price": 7.0,
"fc_code": "sample string 8",
"fc_rate": 9.0,
"fc_amount": 10.0,
"aa_code": "sample string 11"
},
{
"description": "sample string 1",
"asub_code": "sample string 2",
"asub_name": "sample string 3",
"debit": 4.0,
"credit": 5.0,
"quantity": 6.0,
"price": 7.0,
"fc_code": "sample string 8",
"fc_rate": 9.0,
"fc_amount": 10.0,
"aa_code": "sample string 11"
}
]
}
application/xml, text/xml
Sample:
<VoucherSearchModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonAcc.Open.Areas.Voucher.Models">
<approve_status>8</approve_status>
<approved_by>sample string 7</approved_by>
<attachments>1</attachments>
<created_date>2025-12-16T07:27:39.7368051+08:00</created_date>
<created_way>11</created_way>
<fileid>sample string 9</fileid>
<lines>
<VoucherSearchEntry>
<aa_code>sample string 11</aa_code>
<asub_code>sample string 2</asub_code>
<asub_name>sample string 3</asub_name>
<credit>5</credit>
<debit>4</debit>
<description>sample string 1</description>
<fc_amount>10</fc_amount>
<fc_code>sample string 8</fc_code>
<fc_rate>9</fc_rate>
<price>7</price>
<quantity>6</quantity>
</VoucherSearchEntry>
<VoucherSearchEntry>
<aa_code>sample string 11</aa_code>
<asub_code>sample string 2</asub_code>
<asub_name>sample string 3</asub_name>
<credit>5</credit>
<debit>4</debit>
<description>sample string 1</description>
<fc_amount>10</fc_amount>
<fc_code>sample string 8</fc_code>
<fc_rate>9</fc_rate>
<price>7</price>
<quantity>6</quantity>
</VoucherSearchEntry>
</lines>
<modified_date>2025-12-16T07:27:39.7368051+08:00</modified_date>
<note>sample string 10</note>
<period>sample string 1</period>
<prepared_by>sample string 6</prepared_by>
<v_date>2025-12-16T07:27:39.7368051+08:00</v_date>
<v_id>2</v_id>
<v_num>4</v_num>
<vg_name>sample string 3</vg_name>
</VoucherSearchModel>