Get bill
One AP bill with its lines, total and status.
GET https://cotlet.dev/api/v1/acumatica/bill
read
Returns one AP bill with every line (description, amount, account), the total and the status. Use it before approving or releasing a bill. The total is the sum of the lines.
Parameters
| Name | Type | Description |
|---|---|---|
| reference_nbr string required | string | Reference number of the document, from list_invoices or list_bills. |
Request
curl "https://cotlet.dev/api/v1/acumatica/bill?reference_nbr=reference+nbr" \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("acumatica", "get_bill", {"reference_nbr":"reference nbr"}) const result = await cotlet.call('acumatica', 'get_bill', {"reference_nbr":"reference nbr"}); cotlet call acumatica get_bill --data '{"reference_nbr":"reference nbr"}' Example response
{
"reference_nbr": "004812",
"vendor_id": "V000123",
"vendor_ref": "INV-20418",
"status": "On Hold",
"lines": [
{
"description": "Printer paper, 40 boxes",
"amount": 960,
"account": "60100"
},
{
"description": "Toner cartridges",
"amount": 280,
"account": "60100"
}
],
"total": 1240
}