Alladdin

Work in progress

Site en construction

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

Alladdin
POST

Approve a purchase order

Scope: inventory:purchase-orders.write https://api.alladdin.com/api/v2/purchase-orders/{purchaseOrderId}/approve

Approves the purchase order by setting the approval date.

Parameters

Path parameters

purchaseOrderId string required

Purchase Order ID (24-char hex ObjectId)

Request

python
import requests

url = "https://api.alladdin.com/api/v2/purchase-orders/{purchaseOrderId}/approve"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

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

Responses

Success responses

200 Purchase order approved

Error responses

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

← PreviousCreate a purchase order →

Next →Attach a file to a purchase order →