---
title: "Dodaje pozycję do faktury"
method: POST
path: "/invoices_lines"
tags: ["Dokumenty - Faktury"]
---

# Dodaje pozycję do faktury

`POST /invoices_lines`

Tworzenie nowej pozycji na fakturze

## Request body

- InvoiceLineRequest — Struktura pozycji na fakturze
  - `cart_id` integer — Identyfikator koszyka w zamówieniu Sellasist
  - `discount` integer — Rabat
  - `invoice_id` integer — Identyfikator faktury
  - `name` string — Nazwa pozycji
  - `price_gross` number — Cena jednostkowa brutto
  - `price_net` number — Cena jednostkowa netto
  - `product_id` integer — Identyfikator produktu w Sellasist
  - `quantity` integer — Ilość sztuk
  - `vat` integer — Stawka VAT

## Response `200`

Sukces

- object
  - `id` integer

## Other responses

- `401` — Błąd autoryzacji

---

[API](https://skmtc.dev/sellasist/apis/sellasist-api.md) · [All operations](https://skmtc.dev/sellasist/apis/sellasist-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sellasist/sellasist-api/revisions/084dece82d7c/schema)
