API reference
Complete Fakturnia REST API reference, generated from OpenAPI: endpoints, parameters, request bodies, responses and schemas.
Base URL: https://prod.api.fakturnia.pl/external/v1
documents
GET /documents/Get list of documentsPOST /documents/Create a new documentGET /documents/{id}Get document detailsPUT /documents/{id}Full update of an existing documentPATCH /documents/{id}Partial update of a document field(s)DELETE /documents/{id}Delete a documentGET /documents/{id}/downloadDownload documentPOST /documents/validateDry-run validation of a document payload (no DB writes)PATCH /documents/{id}/payment-statusUpdate document payment statusPATCH /documents/{id}/external-referenceLink document with external order referenceDELETE /documents/{id}/external-referenceRemove external order reference from a documentPATCH /documents/{id}/margin-purchasesSet purchase amounts of margin-scheme linesPOST /documents/{id}/send-to-ksefSend document to KSeFGET /documents/{id}/ksef-statusGet document KSeF send statusGET /documents/{id}/historyGet the history of a document
clients
GET /clients/Get list of clientsPOST /clients/Create a new clientGET /clients/{id}Get client detailsPUT /clients/{id}Update an existing clientDELETE /clients/{id}Delete a client
products
GET /products/Get list of productsPOST /products/Create a new productGET /products/{id}Get product detailsPUT /products/{id}Update an existing productDELETE /products/{id}Delete a product
dictionaries
GET /dictionaries/Get static dictionaries (document types, payment methods, etc.)
ksef
GET /ksef/connectionGet KSeF connection statusPOST /ksef/connectionCreate or update KSeF connection (token or certificate)DELETE /ksef/connectionDeactivate KSeF connectionPOST /ksef/connection/testTest KSeF connection authorization and permissions
webhooks
GET /webhooks/List webhooksPOST /webhooks/Create a webhookPOST /webhooks/initialCreate the initial webhook of a plugin (all events)GET /webhooks/{id}Get a webhookPATCH /webhooks/{id}Update a webhookDELETE /webhooks/{id}Delete a webhookPOST /webhooks/{id}/rotate-secretRotate the signing secret of a webhookGET /webhooks/{id}/deliveriesList recent deliveries of a webhookPOST /webhooks/{id}/testSend a test delivery to a webhook
settings
GET /settings/Get general and numbering settingsPATCH /settings/generalUpdate general settings (date format, newsletter)PATCH /settings/numberingUpdate numbering settings (type, format, symbols)
company
GET /company/nip-lookupLookup company data in GUS by NIP
warehouse
GET /warehouse/Get list of warehousesPOST /warehouse/Create a warehouse (requires the MAX plan)GET /warehouse/stockGet stock levels report (sum of movements per product/warehouse)GET /warehouse/movementsList stock movementsPOST /warehouse/adjustmentsCreate a manual stock adjustment (INW movement)POST /warehouse/wz-from-invoice/{id}Create a WZ document from a sales invoice (goods lines only)POST /warehouse/documents/validateValidate a warehouse document without saving itPOST /warehouse/documentsIssue a warehouse document (WZ, PZ, PW, RW, MM)GET /warehouse/{id}Get a warehousePUT /warehouse/{id}Update a warehouseDELETE /warehouse/{id}Delete a warehouse (blocked when it has stock movements)
employees
GET /employees/permissionsGet the registry of available employee permissionsGET /employees/Get list of employee accountsPOST /employees/Create an employee accountGET /employees/{id}Get an employee accountPUT /employees/{id}Update an employee account (data, permissions, activation, password)DELETE /employees/{id}Delete an employee account (soft delete; its email becomes available again)GET /employees/{id}/activityGet the activity feed of an employee
recurring-rules
GET /recurring-rules/Get list of recurring document rulesGET /recurring-rules/{id}/historyGet generation history of a recurring ruleGET /recurring-rules/{id}Get recurring rule detailsPATCH /recurring-rules/{id}/togglePause or resume a recurring rule
email-accounts
GET /email-accounts/List connected email accountsGET /email-accounts/{id}Get a connected email account
activity
GET /activity/Get the account activity feed
auth
GET /auth/meGet information about the current account