---
updatedAt: 2026-10-22T05:50:23.000Z
agentTools:
  projectIndex: https://developer.xentral.com/llms.txt
---

# 🔒 Create supplier invoice line item V3

This endpoint is currently in Beta and available for testing. It may contain bugs, and breaking changes can occur at any time without prior notice. We do not recommend using Beta endpoints in production environments. Should you choose to use it in production, you assume full responsibility for any resulting issues.

This endpoint requires the following scopes: `supplierInvoice:update`.

Create a line item on a supplier invoice. Name, description, unit, product number and tax category are taken from the product, the cost center from the invoice, unless the request provides them. Line items are documentation of what was invoiced: they never change the totals of the invoice.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Xentral Business Documents API v3",
    "description": "The Xentral Business Documents API v3 for working with sales orders, offers, invoices, credit notes, delivery notes, return orders, purchase orders, proforma invoices and productions.\n\nIndividual endpoints marked as *Beta* may still change without prior notice — see the respective endpoint descriptions.\n\nRequest payloads may contain properties that an endpoint does not define; these are ignored rather than rejected. Nothing is stored for them and no error is returned, so check the response body to confirm which values were actually applied.",
    "contact": {
      "name": "API Support",
      "url": "https://xentral.com",
      "email": "api@xentral.com"
    },
    "version": "0.2.0"
  },
  "servers": [
    {
      "url": "https://{xentralId}.xentral.biz",
      "description": "Your xentral instance",
      "variables": {
        "xentralId": {
          "default": "my-company",
          "description": "Your Xentral instance ID"
        }
      }
    },
    {
      "url": "https://{domain}",
      "description": "Xentral with a custom domain",
      "variables": {
        "domain": {
          "default": "demo.xentral.com",
          "description": "Your Xentral custom domain"
        }
      }
    }
  ],
  "components": {
    "schemas": {
      "CreateSupplierInvoiceLineItemRequest": {
        "required": [
          "product",
          "quantity",
          "price"
        ],
        "properties": {
          "product": {
            "description": "The product this line item invoices.",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "description": "The product ID.",
                "type": "string",
                "example": "13"
              }
            },
            "type": "object"
          },
          "quantity": {
            "description": "Invoiced quantity.",
            "type": "number",
            "format": "float",
            "maximum": 99999999.99,
            "exclusiveMinimum": 0,
            "example": 10.5
          },
          "price": {
            "description": "Price information of the line item.",
            "required": [
              "net"
            ],
            "properties": {
              "net": {
                "$ref": "#/components/schemas/Money",
                "description": "Net unit price. The currency must match the currency of the invoice."
              }
            },
            "type": "object"
          },
          "taxRate": {
            "description": "The tax rate applied to this line item. Either one of the predefined tax categories - `standard` and `reduced` use the corresponding tax rate of the invoice (see `taxes.normalTax.rate` and `taxes.reducedTax.rate`), `exempt` uses 0% - or an explicit percentage that replaces the category. Stored with two decimals. When omitted, the tax category of the product applies.",
            "oneOf": [
              {
                "type": "string",
                "enum": [
                  "standard",
                  "reduced",
                  "exempt"
                ],
                "example": "reduced"
              },
              {
                "type": "number",
                "format": "float",
                "maximum": 999.99,
                "minimum": 0,
                "example": 12.5
              }
            ]
          },
          "taxLegalNotice": {
            "description": "Legal notice regarding the taxation of this line item.",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 1024,
            "example": "Reverse charge according to §13b UStG"
          },
          "name": {
            "description": "Line item name. Defaults to the name of the product.",
            "type": "string",
            "maxLength": 255,
            "example": "Cable drum 50m"
          },
          "description": {
            "description": "Line item description. Defaults to the description of the product.",
            "type": "string",
            "example": "Halogen-free, 3 x 1.5 mm²"
          },
          "unit": {
            "description": "Unit of the line item (e.g. \"kg\", \"pcs\"). Defaults to the unit of the product.",
            "type": "string",
            "maxLength": 255,
            "example": "pcs"
          },
          "packagingUnit": {
            "description": "Packaging unit of the line item - how many units one package contains. Stored for information only; quantity and price are never derived from it.",
            "type": "string",
            "maxLength": 255,
            "example": "12"
          },
          "supplierProductNumber": {
            "description": "The number this product carries in the supplier's catalogue.",
            "type": "string",
            "maxLength": 255,
            "example": "SUP-10077"
          },
          "deliveryDate": {
            "description": "Date the invoiced goods or services were delivered.",
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "example": "2026-09-01"
          },
          "purchaseOrder": {
            "description": "The purchase order this line item was ordered with.",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "description": "The purchase order ID.",
                "type": "string",
                "example": "5"
              }
            },
            "type": "object"
          },
          "costCenter": {
            "description": "Cost center number the line item is booked to. Defaults to the cost center of the invoice.",
            "type": [
              "string",
              "null"
            ],
            "maxLength": 10,
            "example": "1000"
          },
          "generalLedgerAccount": {
            "description": "G/L account number the line item is booked to. Creates the account assignment of the line item.",
            "type": [
              "string",
              "null"
            ],
            "example": "3400"
          }
        },
        "type": "object"
      },
      "Money": {
        "description": "Money",
        "properties": {
          "amount": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              }
            ]
          },
          "currency": {
            "description": "Currency",
            "type": "string",
            "example": "EUR"
          }
        },
        "type": "object",
        "example": {
          "amount": "13.37",
          "currency": "EUR"
        },
        "additionalProperties": false
      },
      "SupplierInvoiceLineItem": {
        "description": "A line item of a supplier invoice.",
        "required": [
          "id",
          "supplierInvoice",
          "product",
          "number",
          "name",
          "description",
          "quantity",
          "price",
          "taxRate",
          "taxLegalNotice",
          "unit",
          "packagingUnit",
          "supplierProductNumber",
          "deliveryDate",
          "purchaseOrder",
          "costCenter",
          "generalLedgerAccount"
        ],
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/TimestampsResource"
          },
          {
            "properties": {
              "id": {
                "description": "The line item ID.",
                "type": "string",
                "example": "1"
              },
              "supplierInvoice": {
                "description": "The supplier invoice this line item belongs to.",
                "properties": {
                  "id": {
                    "description": "The supplier invoice ID.",
                    "type": "string",
                    "example": "1"
                  }
                },
                "type": "object"
              },
              "product": {
                "description": "The invoiced product.",
                "properties": {
                  "id": {
                    "description": "The product ID.",
                    "type": "string",
                    "example": "13"
                  }
                },
                "type": "object"
              },
              "number": {
                "description": "Product number taken from the product when the line item was created.",
                "type": [
                  "string",
                  "null"
                ],
                "example": "ART-10077"
              },
              "name": {
                "description": "Line item name.",
                "type": [
                  "string",
                  "null"
                ],
                "example": "Cable drum 50m"
              },
              "description": {
                "description": "Line item description.",
                "type": [
                  "string",
                  "null"
                ],
                "example": "Halogen-free, 3 x 1.5 mm²"
              },
              "quantity": {
                "description": "Invoiced quantity.",
                "type": "number",
                "format": "float",
                "example": 10.5
              },
              "price": {
                "description": "Price information of the line item.",
                "properties": {
                  "net": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/Money",
                        "description": "Net unit price. Null when the line item carries no currency."
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Net unit price. Null when the line item carries no currency."
                  }
                },
                "type": "object"
              },
              "taxRate": {
                "description": "The tax rate applied to this line item: either a predefined tax category, whose rate the invoice defines, or the explicit percentage stored on the line item.",
                "oneOf": [
                  {
                    "type": "string",
                    "enum": [
                      "standard",
                      "reduced",
                      "exempt"
                    ],
                    "example": "reduced"
                  },
                  {
                    "type": "number",
                    "format": "float",
                    "example": 12.5
                  }
                ]
              },
              "taxLegalNotice": {
                "description": "Legal notice regarding the taxation of this line item.",
                "type": [
                  "string",
                  "null"
                ],
                "example": "Reverse charge according to §13b UStG"
              },
              "unit": {
                "description": "Unit of the line item.",
                "type": [
                  "string",
                  "null"
                ],
                "example": "pcs"
              },
              "packagingUnit": {
                "description": "Packaging unit of the line item - how many units one package contains.",
                "type": [
                  "string",
                  "null"
                ],
                "example": "12"
              },
              "supplierProductNumber": {
                "description": "The number this product carries in the supplier's catalogue.",
                "type": [
                  "string",
                  "null"
                ],
                "example": "SUP-10077"
              },
              "deliveryDate": {
                "description": "Date the invoiced goods or services were delivered.",
                "type": [
                  "string",
                  "null"
                ],
                "format": "date",
                "example": "2026-09-01"
              },
              "purchaseOrder": {
                "description": "The purchase order this line item was ordered with. This is the most precise of the three places a purchase order is stated, because it belongs to this position alone, while `purchaseOrders` on the invoice states an assigned share and `purchaseOrder` on the invoice states the one purchase order a whole invoice belongs to. Null when the line item is not assigned to one.",
                "required": [
                  "id",
                  "documentNumber"
                ],
                "properties": {
                  "id": {
                    "description": "The purchase order ID.",
                    "type": "string",
                    "example": "5"
                  },
                  "documentNumber": {
                    "description": "Document number of the purchase order. Null while the purchase order is still a draft and has not been assigned one.",
                    "type": [
                      "string",
                      "null"
                    ],
                    "example": "B-2026-0042"
                  }
                },
                "type": [
                  "object",
                  "null"
                ]
              },
              "costCenter": {
                "description": "Cost center number the line item is booked to.",
                "type": [
                  "string",
                  "null"
                ],
                "example": "1000"
              },
              "generalLedgerAccount": {
                "description": "G/L account number the line item is booked to.",
                "type": [
                  "string",
                  "null"
                ],
                "example": "3400"
              },
              "order": {
                "description": "The ordering sequence of the line item within the invoice. This value is calculated across all line items of the invoice, so it is only returned when line items are embedded in the invoice payload - the line item endpoint does not return it.",
                "type": "integer",
                "example": 1
              }
            },
            "type": "object"
          }
        ]
      },
      "TimestampsResource": {
        "properties": {
          "createdAt": {
            "description": "The date and time when the resource was created.",
            "type": "string",
            "format": "date-time",
            "example": "2023-10-01T12:00:00Z"
          },
          "updatedAt": {
            "description": "The date and time when the resource was last updated.",
            "type": "string",
            "format": "date-time",
            "example": "2023-10-01T12:00:00Z"
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "SupplierInvoice",
      "description": "SupplierInvoice"
    }
  ],
  "paths": {
    "/api/v3/supplierInvoices/{id}/lineItems": {
      "post": {
        "tags": [
          "SupplierInvoice"
        ],
        "summary": "🔒 Create supplier invoice line item V3",
        "description": "This endpoint is currently in Beta and available for testing. It may contain bugs, and breaking changes can occur at any time without prior notice. We do not recommend using Beta endpoints in production environments. Should you choose to use it in production, you assume full responsibility for any resulting issues.\n\nThis endpoint requires the following scopes: `supplierInvoice:update`.\n\nCreate a line item on a supplier invoice. Name, description, unit, product number and tax category are taken from the product, the cost center from the invoice, unless the request provides them. Line items are documentation of what was invoiced: they never change the totals of the invoice.",
        "operationId": "POST::api-v3-supplierinvoices-id-lineitems",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSupplierInvoiceLineItemRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Create a line item on a supplier invoice. Name, description, unit, product number and tax category are taken from the product, the cost center from the invoice, unless the request provides them. Line items are documentation of what was invoiced: they never change the totals of the invoice.",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SupplierInvoiceLineItem"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Failed validation",
            "content": {
              "application/problem+json": {
                "schema": {
                  "properties": {
                    "type": {
                      "description": "Error messages",
                      "type": "string",
                      "example": "https://api.xentral.biz/problems/request-validation"
                    },
                    "title": {
                      "description": "Error messages",
                      "type": "string",
                      "example": "Request payload validation failed."
                    },
                    "violations": {
                      "description": "Error messages",
                      "type": "object",
                      "example": {
                        "product": [
                          "The product field is required."
                        ],
                        "quantity": [
                          "The quantity field is required."
                        ],
                        "price.net": [
                          "The price.net field is required."
                        ]
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          },
          "409": {
            "description": "Problem occurred",
            "content": {
              "application/problem+json": {
                "schema": {
                  "properties": {
                    "type": {
                      "description": "A URI reference that identifies the problem type.",
                      "type": "string",
                      "example": "https://api.xentral.biz/problems/write-protected"
                    },
                    "title": {
                      "description": "A short, human-readable summary of the problem type.",
                      "type": "string",
                      "example": "The resource is write-protected."
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "message": {
                      "description": "Too Many Requests",
                      "type": "string",
                      "example": "Too Many Requests"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "x-beta": true,
        "x-scopes": [
          "supplierInvoice:update"
        ]
      }
    }
  }
}
```