iFirma API
14 endpoints for iFirma, each at its own method and path, called with your API key. Open an endpoint for its inputs, examples and response.
- Base URL
- https://cotlet.dev/api/v1/ifirma
- Connects with
- Your own iFirma account (the account holder; sales, KSeF and expenses must be part of your package)
- Integration page
- iFirma
Read (5)
Return data and change nothing in the account.
| Endpoint | Description |
|---|---|
| GET | Sales invoices for a date range, with totals, payment and KSeF status. |
| GET | One invoice with its lines, buyer, payments and KSeF status. |
| GET | The invoice as a PDF file, base64 encoded. |
| GET | Contractors from your list, searchable by name or tax number. |
| GET | Invoices that suppliers sent to you in KSeF and you have not booked yet. |
Write (9)
Change the account. Calls marked Confirm wait for the user to approve them.
| Endpoint | Description |
|---|---|
| POST | Add a contractor to your iFirma list. |
| POST | Save an invoice as a draft without a number, to review and issue in the app. |
| POST | Issue a domestic invoice for a contractor with one or more lines. |
| POST | Send one issued invoice to the Polish KSeF e-invoicing system. |
| POST | Email an issued invoice to the buyer, with the invoice attached. |
| POST | Record a payment received on an invoice. |
| POST | Book a purchase invoice from KSeF as a cost. |
| POST | Add a cost document by hand: goods purchase, business cost or phone and internet bill. |
| POST | Email a Ponaglenie, Monit or Wezwanie do zapłaty for an unpaid invoice. |