Alladdin

Work in progress

Site en construction

الموقع قيد الإنشاء

Alladdin
POST

Approve a credit note

Scope: sales:invoices.write https://api.alladdin.com/api/v2/credit-notes/{creditNoteId}/approve

Approves 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 string required

Credit Note ID (24-char hex ObjectId)

Request

python
import requests

url = "https://api.alladdin.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

200 Credit note approved

Error responses

401 Invalid or missing API key application/json 403 Insufficient permissions application/json 404 Credit note not found application/json 429 Rate limit exceeded application/json

← PreviousCreate a payment for a credit note →

Next →Attach a file to a credit note →