@base = https://api.example.com @token = PASTE_TOKEN_HERE ### Health GET {{base}}/health Accept: application/json ### Login POST {{base}}/api/v1/auth/login Content-Type: application/json { "identifier": "01000000000", "password": "CHANGE_PASSWORD", "device_name": "Windows API test" } ### Current user GET {{base}}/api/v1/me Authorization: Bearer {{token}} Accept: application/json ### Dashboard GET {{base}}/api/v1/dashboard Authorization: Bearer {{token}} Accept: application/json ### Create employee — manager POST {{base}}/api/v1/users Authorization: Bearer {{token}} Content-Type: application/json { "name": "أحمد", "phone": "01011111111", "temporary_password": "TempPass-2026", "role": "employee" } ### Create deal — manager POST {{base}}/api/v1/deals Authorization: Bearer {{token}} Content-Type: application/json { "name": "بيعة بنك", "source": "مزاد البنك الأهلي", "purchase_cost": 100000, "transport_cost": 5000, "items": [ {"name": "لابتوبات"}, {"name": "مكاتب"}, {"name": "كراسي"} ] } ### Add another batch to item 1 POST {{base}}/api/v1/deal-items/1/batches Authorization: Bearer {{token}} Content-Type: application/json { "expected_quantity": 50, "purchase_cost": 250000, "transport_cost": 3500 } ### Assign batch to employee 2 POST {{base}}/api/v1/assignments Authorization: Bearer {{token}} Content-Type: application/json { "deal_id": 1, "deal_item_id": 1, "batch_id": 1, "employee_ids": [2], "is_shared": false }