Dokumenty - Faktury

Dodaje pozycję do faktury

Tworzenie nowej pozycji na fakturze

post/invoices_lines

Request

  • Base URL
    https://demo.sellasist.pl/api/v1
  • URL
    https://demo.sellasist.pl/api/v1/invoices_lines
  • Auth
    API key in header apiKey

Request body

cart_idinteger

Identyfikator koszyka w zamówieniu Sellasist

discountinteger

Rabat

invoice_idinteger

Identyfikator faktury

namestring

Nazwa pozycji

price_grossnumber

Cena jednostkowa brutto

price_netnumber

Cena jednostkowa netto

product_idinteger

Identyfikator produktu w Sellasist

quantityinteger

Ilość sztuk

vatinteger

Stawka VAT

Example request

{
  "cart_id": 55,
  "discount": 15,
  "invoice_id": 1,
  "name": "Szafka",
  "price_gross": 12.3,
  "price_net": 10,
  "product_id": 123,
  "quantity": 3,
  "vat": 23
}

Response

Sukces

idinteger

Example response

{
  "id": 20
}

Changes

No recorded changes to this operation across all 5 revisions of this API.