Module billecta::invoice

source ·
Expand description

§Invoice

The following endpoints describes the invoice api calls. It is a self-standing section/ feature but has tight integrations with debt collection if you have access to those modules.

Functions§

  • Attesting an invoice means that it will be book kept and locked for editing. Invoice is automatically sent if any distribution is set.
  • The autogiro withdrawal can be cancelled using this endpoint. Note that this can’t be done up to the day before the autogiro withdrawal date (day before due date)
  • The credit card payment can be cancelled if payment has not been completed yet.
  • Removed the invoice dispute flag which reenables all automatic events on the invoice again
  • Canceling the reminder invoice will also remove any added reminder fees to the invoice
  • If invoice has not been accepted by purchaser the invoice sales can be cancelled and reverted.
  • Writes a comment to the self invoice events log.
  • A verification invoice is a pure bookkeeping event. You create the verification to write to the bookkeeping and have a ‘receipt’ on the invoice for tracking. It is automatically closed after creation.
  • All created invoices are saved and not attested. To make it permanent and bookkeep it, the invoice action must be attested.
  • Creates an autogiro withdrawal on the latest of todays date or the invoice due date
  • Creates a card withdrawal on the latest of specified date (optional) or todays date or the invoice due date
  • Make an credit card payment intent with the amount on the invoice.
  • According to law an invoice sender has the right to invoice the lost interest on a due invoice. By calling this endpoint an interest invoice will be sent with only the interest generated between the from and to date. Note that Billecta doesn’t take consideration on the from and to date overlap with another reminder invoice with the same from and to date.
  • A debit and credit invoice can be connected and balance each other out by this endpoint. If both have the same amount (the other one negative), then both will be closed. If one invoice has more amount than the other one, one of them will be closed and the other will have a current amount equal to the difference.
  • Delete the overridden debtor address and uses the address from the debtor/customer card
  • Only non-attested invoices can be deleted. Once attested it is locked and deletion is not allowed any more.
  • According to law a debtor/customer has the right to dispute an invoice (regardless reason). If such a knowledge is known to the customer no more automatic events are allowed to perform on the invoice (like sending it to debt collection)
  • Finance the invoice to a specified sales contract. If no contract is specified and only one exists that invoice sale contract will be used.
  • Retrieves all invoices that have a closed/full payment date between the specified from and to dates.
  • Retrieves all invoices for a specific debtor that have a closed/full payment date between the specified from and to dates.
  • Retrieves all closed invoices by invoice period.
  • Gets all credit card payment intents for a given invoice
  • Retrieves all drafts/attested and unpaid invoices.
  • Retrieves all open invoices for a specific debtor.
  • Retrieves all open invoices by invoice period.
  • Get all open reminder invoices. Use this endpoint to see which invoices have an active reminder
  • Returns an invoice based on the ActionPublicId. All invoices have a unique ActionPublicId that is generated on creation.
  • Returns an invoice based on the invoice number.
  • Invoice reminders can be sent using the Invoice/SendReminderInvoice endpoint. Call this endpoint to retrieve metadata about the reminder.
  • Invoice events gets archived after one year. This reloads archived events to enable the events to be retrieved again. Observe that these events will be archived again after one day.
  • Invoices where XML has been generated can be marked as processed and filtered/hidden when exporting XML for other invoices
  • Invoices where XML has been generated can be marked as processed and filtered/hidden when exporting XML for other invoices
  • Pauses the invoice from any more automatic events.
  • Postpones the next automatic event of an invoice. Note that it is only possible to postpone forward and not backwards
  • Postpones the next automatic event of an invoice. Note that it is only possible to postpone forward and not backwards
  • Preview an invoice to view how it will be generated. This endpoint previews data already stored in API/database. This endpoint returns a PDF data stream in the content
  • Preview an invoice to view how it will be generated. This endpoint previews data sent in the request and ignores data stored in the API/ database. This endpoint returns a PDF data stream in the content
  • The credit card payment can be refunded if payment has been completed.
  • The swish payment can be refunded if payment has been completed.
  • Register an already received payment on the invoice that was not received through Billecta.
  • Resumes the self invoice to automatically process events.
  • Sells the invoice to a purchaser according to specified sales contract. If no contract is specified and only one exists that invoice sale contract will be used.
  • Sends the invoice with the preferred delivery method. Note that omitting optional parameters will use pre-stored values on the invoice.
  • Creates and sends a reminder invoice for the invoice. Reminder fees and PDF:s will be added to the invoice.
  • Uses a already reminder PDF generated by you and sends it. Reminder fees and PDF:s will be added to the invoice.
  • Overrides the customer/debtor address and sets a temporary address for this invoice only
  • Note that only non-attested invoices can be updated. Once attested it is locked and update is not possible any more.