Alladdin

Work in progress

Site en construction

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

Alladdin
POST

Approve an invoice

Scope: sales:invoices.write https://api.alladdin.com/api/v2/invoices/{invoiceId}/approve

Approves the invoice by setting the approval date.

Parameters

Path parameters

invoiceId string required

Invoice ID (24-char hex ObjectId)

Request

python
import requests

url = "https://api.alladdin.com/api/v2/invoices/{invoiceId}/approve"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

response = requests.post(url, headers=headers)
print(response.json())

Responses

Success responses

200 Invoice approved

Error responses

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

← PreviousCreate a payment for an invoice →

Next →Attach a file to an invoice →