MDRUGB

Line Item Object - API

API reference / invoicing / Line Item Object
Changed: 08.04.2023 02:56

Line Item Object (items)

PARAMETER TYPE DESCRIPTION
items object A collection of item objects that contain data about goods/services.


Product/Service Object (Item)

PARAMETER TYPE DESCRIPTION
product_id integer Unique product/service identifier from your accounting system.
product_sku string Text or digital code of goods/services from your accounting system.
For Goods often use the EAN-8/EAN-13 barcode or other standards.
product_name string Name of goods/services.
product_price decimal Unit price of a product/service in the account/order currency.
product_qnt integer Quantity of goods/services.
product_unit string A unit of measure for a product/service.
line_total decimal Total amount for the line (in invoice/order currency).


Example JSON representation of invoice/order lines:

  "items": {
    "984": {
      "product_id": 1728,
      "product_sku": "ADPT-EN",
      "product_name": "Adaptor priza UK, ADPT-EN",
      "product_price": "8",
      "product_qnt": 1,
      "line_total": "8"
    },
    "991": {
      "product_id": 2865,
      "product_sku": "T144D",
      "product_name": "Set de 5 panze de ferastrau, Alluse, T144D",
      "product_price": "30",
      "product_qnt": 2,
      "line_total": "60"
    }
  }

Comments:

in the items object, the index of each row is a unique "integer" representing a unique record number in your account. In the e-Cont.md system, it is ignored.