v1

latestOpenAPI 3.0.22026-07-223907721.1 MB
invoice

Query Invoice Line Items

Query all line items for a specific invoice

get/v2/invoices/{invoiceId}/lineitems

Path parameters

invoiceIdstring uuid required
Example:b45f6432-2462-4c6f-b00f-1d9d01000000

The ID of the invoice that the line items belong to.

Headers

x-tenant-idstring uuid required

The tenant ID for the target ERP instance.

x-runasstring

The User-Id (int or uuid) on whose behalf the request is executed. Requires scope 'Application.RunAs'.

x-companyidstring

The Company-Id (int or uuid) of the company on whose behalf the request is executed.

Response

The requested line items.

idstring uuid
invoiceIdstring uuid
salesOrderIdstring uuid
salesOrderLineItemIdstring uuid
itemIdstring uuid
namestring

Name of the item.

sKUstring

SKU of the sales invoice item.

type0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21

0 = CustomLineItem, 1 = Item, 2 = Shipping, 3 = Coupon, 4 = Voucher, 5 = Payment, 6 = ShippingSurcharge, 7 = NewCustomerCoupon, 8 = CashOnDelivery, 9 = ShippingSurchargeItem, 10 = GiftWrapping, 11 = GiftForFree, 12 = TrustedShops, 13 = InterestPremium, 14 = ProcessingFee, 15 = Carton, 16 = ReturnDelivery, 17 = MultiPurposeVoucher, 18 = MultiPurposeVoucherDigital, 19 = SinglePurposeVoucher, 20 = SinglePurposeVoucherDigital, 21 = SinglePurposeVoucherRedemption

quantitynumber

The quantity of the line item.

salesUnitstring

The measurement unit in which the line item is sold.

salesPriceNetnumber

The net sales price of the line item.

salesPriceGrossnumber

The gross sales price of the line item.

discountnumber

The discount applied to the line item.

purchasePriceNetnumber

The price for which the merchant has bought the item.

taxRatenumber

The tax rate of the line item.

Example response

[
  {
    "id": "b45f6432-2462-4c6f-b00f-1d9d01000000",
    "invoiceId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
    "salesOrderId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
    "salesOrderLineItemId": "b45f6432-2462-4c6f-b00f-1d9d01000000",
    "itemId": "b45f6432-2462-4c6f-b00f-1d9d01000000"
  }
]