GET
/api/v1/inventory/movementsعرض حركات المخزون
النطاق:
inventory:readBearer tokenالبيئات
- SANDBOX
- بيئة اختبار محلية أو مصرح بها؛ لا يوجد حاليًا Sandbox عام مستضاف.
- PRODUCTION
https://getsas.xyz/api/v1/inventory/movements
الطلب
Headers
| Header | Value | مطلوب |
|---|---|---|
| Authorization | Bearer <ACCESS_TOKEN> | نعم |
المعاملات
| الاسم | المكان | النوع | الوصف |
|---|---|---|---|
| limit | query | integer | Reject invalid, out-of-range or repeated values. |
| before | query | string · date-time | Pass with before_id from meta.next_cursor. Preserve the complete timestamp including microseconds. |
| before_id | query | string · uuid | Required together with before; stable ordering uses created_at and id descending. |
أمثلة الكود
curl --request GET 'https://getsas.xyz/api/v1/inventory/movements' \
--header 'Authorization: Bearer <ACCESS_TOKEN>'الاستجابة
200 A tenant-isolated page with the exact documented fields.
{
"description": "A tenant-isolated page with the exact documented fields.",
"headers": {
"RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitReset"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/InventoryMovementPage"
}
}
}
}الأخطاء
| 400 | Invalid request |
| 401 | Missing or invalid access token |
| 403 | Authenticated webhook subscription creation was not authorized by the exact installed version |
| 404 | Marketplace API feature is not enabled for this environment |
| 429 | Fixed-window request limit exceeded for this installation and route key |
| 500 | Internal API failure |
| 503 | Rate-limit service unavailable; request is rejected closed |