POST
Approve a credit note
Scope:
sales:invoices.writehttps://api.holded.com/api/v2/credit-notes/{creditNoteId}/approveApproves a single credit note by setting its approval date. To approve multiple credit notes, use the bulk endpoint (bulk_approve_credit_notes) rather than calling this once per document.
Parameters
Path parameters
creditNoteId
stringrequiredCredit Note ID (24-char hex ObjectId)
Request
python
import requests
url = "https://api.holded.com/api/v2/credit-notes/{creditNoteId}/approve"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.post(url, headers=headers)
print(response.json())Responses
Success responses
200Credit note approvedError responses
401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json404Credit note not foundapplication/json429Rate limit exceededapplication/json