Debit Note Applications

Apply debit note to bill

Changed on

Apply an amount of a debit note to a bill of the same supplier and currency. Both documents must be posted. The application posts a journal entry on its date, which defaults to the debit note's date and must fall in an open period, and lowers the balance of both documents. A debit note can be applied to the same bill more than once.

post/bill-debit-notes/

Request

  • Base URL
    https://api.wafeq.com/v1
  • URL
    https://api.wafeq.com/v1/bill-debit-notes/
  • Auth
    API key in header Authorization

Headers

X-Wafeq-Idempotency-Keystring

Client-provided UUID to uniquely identify a request

Request body

amountnumber double required

The amount to apply. It must be positive.

billstring required

The ID of the bill to apply the debit note to.

datestring date

The date the application is posted on. Defaults to the debit note's date and must fall in an open period.

debit_notestring required

The ID of the debit note to apply.

Response

amountnumber double required

The amount of the debit note applied to the bill.

billstring required

The ID of the bill the debit note is applied to.

created_tsstring date-time required

The timestamp in UTC when the debit note was applied.

datestring date required

The date the application is posted on.

debit_notestring required

The ID of the debit note applied.

idstring required

The ID of the application.

journalstring nullable required

The ID of the journal entry the application posted, or null while either document is a draft. Use GET /v1/journal-line-items/?journal={journal_id} to retrieve the accounting entries.

modified_tsstring date-time required

The timestamp in UTC when the application last changed.

Changes