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

Parameters: get_bill
NameTypeDescription
reference_nbr string required string Reference number of the document, from list_invoices or list_bills.

Request

cURL
curl "https://cotlet.dev/api/v1/acumatica/bill?reference_nbr=reference+nbr" \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("acumatica", "get_bill", {"reference_nbr":"reference nbr"})
Node.js
const result = await cotlet.call('acumatica', 'get_bill', {"reference_nbr":"reference nbr"});
CLI
cotlet call acumatica get_bill --data '{"reference_nbr":"reference nbr"}'

Example response

JSON

{
  "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
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.