Invoices and notes
Debit note
https://your-business.qaydtech.com/api/v1/invoices/{id}/debit-notes
A debit note on an issued invoice for what it charged too little, such as a price difference. Issued at once with issue: true.
The user the key acts as also needs: Sales returns
Request
Path parameters
-
idinteger requiredThe record’s number.
Example:
42
Headers
-
Authorizationstring requiredBearer followed by the API key.
Example:
Bearer qayd_… -
Accept-Languagestring optionalen for English error messages. Arabic by default.
Example:
en -
Content-Typestring requiredapplication/json with every request that has a body.
Example:
application/json -
Idempotency-Keystring optionalA unique value so a request sent again creates nothing twice.
Example:
order-10045
Request body application/json
-
reasonstring requiredThe reason for the note.
Example:
مرتجع جزئي -
issue_datedate optionalIssue date; today when not sent.
Example:
2026-11-10 -
referencestring optionalYour reference, such as your store’s order number, up to 60 characters. Searchable later.
Example:
RET-1001 -
notesstring optionalNotes, up to 500 characters.
-
issueboolean optionaltrue to issue at once; otherwise saved as a draft.
Example:
true -
linesarray[] requiredThe lines, 1 to 500.
-
item_idinteger optionalThe item number: the line takes its name, price, tax and sales account.
Example:
7 -
unit_idinteger optionalThe selling unit when the item has more than one.
-
descriptionstring optionalDescription, required when no item is given. Up to 255 characters.
Example:
استشارة -
quantitynumber requiredQuantity, above zero, up to 3 decimals.
Example:
2 -
unit_pricenumber optionalUnit price in riyals; required when the item has no sale price.
Example:
100.00 -
discount_percentnumber optionalLine discount as a percentage, 0 to 100.
Example:
0 -
discount_amountnumber optionalLine discount as an amount (instead of a percentage).
-
taxstring optionalTax code from GET /taxes. Defaults to the item’s tax or the business’s usual one.
Example:
standard -
account_idinteger optionalRevenue account. Defaults to the item’s or the sales account.
Responses
- 201 Created
- Errors · 401 · 403 · 429