Рахунки та платежі

Рахунки, позиції, платежі, нагадування та електронне фактурування (KSeF) — автоматизуйте виставлення рахунків від початку до кінця.

Рахунок

Endpoints

POST/e-invoices/send
GET/invoices
POST/invoices
GET/invoices/{id}
PATCH/invoices/{id}
DELETE/invoices/{id}
GET/invoices/{id}/send
POST/invoices/{id}/send
GET/invoices/draft
GET/invoices/name/{date}
POST/invoices/send

Рядок рахунку

Endpoints

GET/invoice-rows
POST/invoice-rows
GET/invoice-rows/{id}
PATCH/invoice-rows/{id}

Поля схеми

ПолеТип
classificationNumberstringnull
unit*stringnull
quantity*number
vatRate*string
netPrice*string
netDiscountAmountstring
productName*string
projectstring,null (iri-reference)
parentInvoiceRowmixed
invoiceChildrenRowsarray

Транзакція рахунку

Endpoints

GET/invoice-transactions
POST/invoice-transactions
GET/invoice-transactions/{id}
PATCH/invoice-transactions/{id}
DELETE/invoice-transactions/{id}

Поля схеми

ПолеТип
idinteger
invoice*string (iri-reference)
transactionstring,null (iri-reference)
amountnumbernull
date*string (date-time)
createdAtstring (date-time)
updatedAtstring (date-time)

Спосіб оплати

Endpoints

GET/payment-methods
GET/payment-methods/{id}
PATCH/payment-methods/{id}
DELETE/payment-methods/{id}
POST/payment-methods/create-setup-intent

Поля схеми

ПолеТип
idstring
organizationstring,null (iri-reference)
typestring
ccBrandstring
ccLastDigitsstring
ccExpMonth*integer
ccExpYear*integer
externalIdstring
createdAtstring (date-time)
updatedAtstring (date-time)
deletedAtstring,null (date-time)
deletedboolean

Завантаження рахунку

Endpoints

GET/e-invoicing/invoices/{id}/download/pdf
GET/e-invoicing/invoices/{id}/download/preview/pdf
GET/e-invoicing/invoices/{id}/download/upo
GET/e-invoicing/invoices/{id}/download/xml
GET/e-invoicing/invoices/download/xml

Нагадування про рахунок

Endpoints

GET/invoice-reminders
POST/invoice-reminders/{id}/approve
POST/invoice-reminders/{id}/dismiss
GET/invoice-reminders/{id}/send
POST/invoice-reminders/{id}/send

Поля схеми

ПолеТип
idinteger
invoicestring (iri-reference)
levelinteger
statusstring
dueAtstring (date-time)
createdAtstring (date-time)
sentAtstring,null (date-time)
dismissedAtstring,null (date-time)
failedAtstring,null (date-time)
recipientEmailstringnull
failureReasonstringnull
sentBodystringnull
sentCcsarraynull
pendingboolean
failedboolean
sendableboolean
invoiceIdintegernull
invoiceNamestringnull
clientNamestringnull
amountDuenumbernull
currencyCodestringnull
invoiceDueDatestring (date-time)
daysOverdueinteger

Журнал рахунку

Endpoints

GET/invoice-logs
GET/invoice-logs/{id}

Поля схеми

ПолеТип
idinteger
invoicestring (iri-reference)
employeestring (iri-reference)
statusNamestring
descriptionstringnull

Надсилання рахунку

Endpoints

POST/e-invoicing/invoices/{id}/send

Надсилання коригування рахунку

Endpoints

POST/e-invoicing/invoices/{id}/correction

Платіж

Endpoints

GET/payments

Поля схеми

ПолеТип
idstring
paymentMethodstring,null (iri-reference)
typestring
currencystring
statusstring

Завантаження вхідного рахунку

Endpoints

GET/e-invoicing/invoices/inbound/{id}/download/upo
GET/e-invoicing/invoices/inbound/{id}/download/xml
GET/e-invoicing/invoices/inbound/download/xml

Черга вхідних рахунків

Endpoints

POST/e-invoicing/invoices/inbound/queue

Синхронізація вхідних рахунків

Endpoints

POST/e-invoicing/invoices/inbound/sync

Черга імпорту вихідних рахунків

Endpoints

POST/v1/pl/invoices/outbound/import/queue

Синхронізація імпорту вихідних рахунків

Endpoints

POST/v1/pl/invoices/outbound/import/sync

Сеанс KSeF

Endpoints

POST/e-invoicing/ksef/session