Dokumentacijav1
Invoices

Invoices

Webhook įvykis

invoice.created

Sent when a finalized invoice is created, whether through the API, the app or a recurring invoice. The PDF is rendered asynchronously, so it may not exist yet when this event arrives; GET /invoices/{invoice}/download waits up to 20 seconds for it.

POSTPasirašyta HMAC-SHA2562xx per 10 s3 bandymaiWebhook pranešimų gidas

Turinio laukai

{ event, data } · 60 laukų

  • eventstring
    Visada"invoice.created"
  • dataInvoice
    • idstring (uuid)pvz., "9c1e2d3f-4a5b-4c6d-8e7f-0a1b2c3d4e5f"
    • business_idstring (uuid)pvz., "3f7a1c2e-5b6d-4e8f-9a0b-1c2d3e4f5a6b"
    • invoice_typeInvoiceTypepvz., "vat_invoice"

      The three *vat_invoice types require vat_percentage on every line and, when seller is sent, seller.vat_code.

      Viena išregular_invoicevat_invoicepreliminary_invoicepreliminary_vat_invoicecredit_invoicecredit_vat_invoice
    • seriesstringpvz., "PVZ"
    • invoice_numberstringpvz., "012"

      Zero-padded to three digits, e.g. "007". Send it back padded or unpadded on update; both are accepted.

    • invoice_datestring (date)pvz., "2026-03-02"

      Issue date, Y-m-d.

    • pay_until_datestring (date)gali būti nullpvz., "2026-03-16"

      Due date, Y-m-d.

    • languageInvoiceLanguagepvz., "lt"

      Language of the PDF and the public share page.

      Viena išenltesdefrpl
    • subtotalnumberpvz., 200

      Sum of the lines excluding VAT.

    • vatnumberpvz., 42
    • total_incl_vatnumberpvz., 242
    • currencystringpvz., "EUR"
    • payment_statusPaymentStatuspvz., "not_paid"
      Viena išnot_paidpaid
    • notesstringgali būti nullpvz., "Apmokėti per 14 dienų."
    • share_linkstring (uri)pvz., "https://beta.fsaskaita.lt/invoice/share/7e4a9b2c-3d1f-4a5e-b6c7-d8e9f0a1b2c3"

      Public link to the invoice; anyone with the link can view it.

    • sellerobject
    • buyerobject
    • itemsarray of InvoiceItem
    • payment_optionsarray of PaymentOption
    • created_atintegerpvz., 1772435700

      Unix timestamp, seconds.

    • updated_atintegerpvz., 1772435700

      Unix timestamp, seconds.

F-sąskaita / DevelopersKas naujo