-
-
Notifications
You must be signed in to change notification settings - Fork 150
example invoice api response
Erik Huelsmann edited this page Jan 30, 2021
·
8 revisions
exchangerate
defaults to 1.00; not included when it is (i.e. when the currency is equal to the functional currency)
{
"type": "invoice",
"id": "create",
"invnumber": "create",
"salesperson": 10,
"ordernumber": "2034A",
"created": "2021-01-16T12:23:23Z",
"date": "2021-01-16T12:23:23Z",
"due": "2021-01-16T12:23:23Z",
"ponumber": "222",
"customerno": "226",
"customerid": 252,
"customername": "override name from custno",
"ar_account": "22",
"currency": "USD",
"exchangerate": 1.1208,
"customerdescription": "",
"shippingpoint": "",
"shipvia": "",
"notes": "",
"internalnotes": "",
"items": [
{
"item": 1,
"part": {
"number": "MH-1-H",
"description": "Description of part",
"unit": "hour",
"price": 145.5
},
"description": "overruled description (not in the resource unless set--while the resource is in SAVED state; filled when POSTED)",
"price": "overruled price (not in the resource unless explicitly set--while the resource is in SAVED state; filled when POSTED)",
"unit": "overruled unit (not in the resource unless explicitly set--while the resource is in SAVED state; filled when POSTED)",
"qty": 1.5,
"discount": "10",
"discount_type": "%",
"taxform": 0,
"delivery_date": "",
"note": "",
"serialnumber": "",
"group": null
},
{
"item": 2,
"part": {
"number": "BB-1-H",
"description": "Taxable item",
},
"qty": 1,
"unit": "month",
"price": 15
}
],
"taxes": [
{
"taxnumber": "2155",
"taxname": "Washington Sales Tax",
"source": "1720",
"basis": 15,
"rate": 10.0,
"amount": 1.5
}
],
"payments": [
],
"totals": {
"item_total": 160.5,
"tax_total": 1.5,
"order_total": 162
}
}