Alladdin

Work in progress

Site en construction

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

Alladdin
GET

List sales order attachments

Scope: inventory:sales-orders.read https://api.alladdin.com/api/v2/sales-orders/{salesOrderId}/attachments

Returns the list of files attached to a sales order.
Each attachment includes its identifier, file name, and size.

Parameters

Path parameters

salesOrderId string required

Sales Order ID (24-char hex ObjectId)

Request

python
import requests

url = "https://api.alladdin.com/api/v2/sales-orders/{salesOrderId}/attachments"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

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

Responses

Response

json
{
  "items": [
    {}
  ]
}

Success responses

200 List of attachments application/json object items[] object[]

Error responses

401 Invalid or missing API key application/json 403 Insufficient permissions application/json 404 Sales order not found application/json

← PreviousUpdate sales order tracking information →

Next →List sales orders →