Copy PageCreate bill line itemposthttps://api.wafeq.com/v1/bills/{bill_id}/line-items/Endpoint for creating a new bill line item.Path Paramsbill_idstringrequiredQuery ParamsexpandstringComma-separated related objects to return in full instead of as IDs. Accepted values: account, account.parent, cost_center, item, tax_rate. Nested relations are joined with a dot.Body Paramsapplication/jsonapplication/x-www-form-urlencodedmultipart/form-dataA line item of a bill.accountstringThe account associated with this line item. Left out, a line the request adds (each line of a document create, a line of an update that matches no stored line by its tax rate and item or by its description, or one added through the line endpoint; a line an update sends again for a stored line is written as sent, a field it leaves out staying empty) takes the expense account of its item, else the default expense account of the contact; a line of an item that tracks inventory takes none, and a bank account held in a currency other than the document's is skipped. A line that neither sends nor takes one is refused with code required. A bank account held in a currency other than the document's is refused.amortizationobjectOptional amortization configuration. When provided, an amortization is created for this line item.amortization objectcost_centerstring | nullThe cost center associated with this line item, if any. Left out, a line the request adds (each line of a document create, a line of an update that matches no stored line by its tax rate and item or by its description, or one added through the line endpoint; a line an update sends again for a stored line is written as sent, a field it leaves out staying empty) takes the default expense cost center of the contact. null leaves the line without one.custom_fieldsobjectA mapping of custom field IDs to their values.custom_fields objectdescriptionstringrequiredThe detailed description of the line item.discountdouble | nullThe discount as the percentage.itemstringThe item associated with this line item.item_unit_of_measurestring | nullThe item unit of measure for this line item.orderintegerThe position of the line item within the document.quantitydoublerequiredThe quantity of the item or service.tax_ratestring | nullThe tax rate applied to this line item, if any: the ID of the tax rate (tax_…). List the tax rates of the organization with GET /v1/tax-rates/. Add expand=line_items.tax_rate to get the full tax rate in the response. Left out, a line the request adds (each line of a document create, a line of an update that matches no stored line by its tax rate and item or by its description, or one added through the line endpoint; a line an update sends again for a stored line is written as sent, a field it leaves out staying empty) takes the purchase tax rate of its item, else the default purchase tax rate of the contact. null leaves the line without one.unit_amountdoublerequiredThe price per unit of the item or service.HeadersX-Wafeq-Idempotency-KeystringClient-provided UUID to uniquely identify a requestX-Wafeq-OrganizationstringThe id of the organization to act on, from GET /v1/organizations/. Required when the OAuth token or accounting partner API key grants access to several organizations; optional otherwise. With an organization API key, it must name the key's own organization.content-typestringenumDefaults to application/jsonGenerated from available request content typesapplication/jsonapplication/x-www-form-urlencodedmultipart/form-dataAllowed:application/jsonapplication/x-www-form-urlencodedmultipart/form-dataResponse201Updated about 2 months agoList bill line itemsDelete bill line item