Creating invoices
Create contacts
Create contacts on postV1Contacts.
Create debtors
Create debtors on postV1Debtors.
Upload files
Upload invoice documents before creating invoices. See file for details.
- To unassign a file, provide
destroy: trueon the file parameter. - If
destroy: trueis combined withchecksum, only the file matching that checksum is removed.
Create invoices
Create invoices on postV1Invoices.PaymentsIf payments are provided, all payments for the invoice must be included and ordered chronologically (oldest first). If
open_amount changes but no payments are provided, Payt creates a payment matching the change in amount.Sent atThe sent_at field sets the date when the invoice was sent to the debtor. If not provided, Payt sends the invoice to the debtor. This field can only be set if the invoice has not yet been published to the debtor.