1. Warehouses
Treek-Public
  • Authentication
    • User login with email and password
      POST
  • Orders
    • Create Order
      POST
    • List Orders
      GET
    • Order Details
      GET
    • Update Order
      PUT
    • Cancel Order
      POST
    • Reset Order
      POST
    • Get Statuses
      GET
    • Verify Item
      POST
    • Verify Order
      POST
    • Order Price
      GET
  • Shipments
    • Create Shipment
      POST
    • Return Shipment
      POST
    • Print Invoice
      GET
  • Boxes
    • Create Box
      POST
    • Get Boxes
      GET
    • Box Details
      GET
    • Update Box
      PUT
  • Merchants
    • Merchants Details
      GET
  • Profile
    • User Details
      GET
    • Update User
      PUT
    • Change Password
      PUT
  • Utilities
    • Countries List
    • Cities List
    • Couriers List
  • Warehouses
    • Warehouses List
      GET
    • Create warehouse
      POST
    • warehouse Details
      GET
  • Price Calculator
    • Price Calculator
  • Packaging Type
    • Packaging Types List
    • Packaging Type Details
  • statistics
    • Statistics
  • Schemas
    • LoginRequest
    • CreateOrderRequest
    • UpdateOrderRequest
    • Price Calculator
    • VerifyItem
    • CreateWarehouseRequest
    • Shipment Package
    • Create Reverse Shipment
    • OrderPackages
    • OrderItem
    • Order
    • City
    • Country
    • User
    • OrderItem
    • CreateOrderItemRequest
    • CalculateRatesRequest
    • BoxDimensions
    • OrderShippingRate
    • RateCalculationParams
    • Warehouse
    • Box
    • CreateBoxRequest
    • UpdateBoxRequest
    • ValidationError
    • NotFoundError
    • UnauthorizedError
    • ForbiddenError
    • PaginationMeta
    • PaginationLinks
  1. Warehouses

warehouse Details

GET
https://app.gotreek.com/api/warehouses/{id}
Warehouses
Last modified:2025-12-25 15:40:34
Retrieve a single warehouse by its ID, including its city, owner user information and the number of related orders.
💡
Authentication
Bearer token authentication is required.
💡
Behavior
If the warehouse exists, the response includes:
Warehouse data (name, code, status, address, sender details, city ID).
City information (id, name, name_ar, country_id).
Owner user information (id, first_name, last_name, email, phone).
orders_count: total number of orders linked to this warehouse.
If the warehouse does not exist, a 404 error with "Warehouse not found" is returned.

Request

Authorization
OAuth 2.0
Client Credentials
Add the parameter
Authorization
to Headers
,whose value is to concatenate the Token after the Bearer.
Example:
Authorization: Bearer ********************
Token URL: https://app.gotreek.com/api/auth/login
or
Path Params

Responses

🟢200
application/json
Warehouse retrieved successfully
Body

🟠404
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://app.gotreek.com/api/warehouses/' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Example 1
{
    "data": {
        "id": 1,
        "name": "مجمع لوجستي الشرق",
        "code": "PDF995",
        "address": "طريق الأمير محمد بن سلمان، حي الشفا",
        "sender_name": "خالد المطيري",
        "sender_email": "janelle07@mueller.com",
        "sender_phone": "966574187212",
        "status": 1,
        "city_id": 234,
        "district": "حي الملز",
        "street_name": "طريق الملك عبدالعزيز",
        "building_no_name": "مبنى رقم 445",
        "zip_code": "51283",
        "user_id": 26,
        "created_at": "2025-07-21T13:05:26Z",
        "updated_at": "2025-07-21T13:05:26Z",
        "city": {
            "id": 328,
            "name": "Riyadh",
            "name_ar": "الرياض",
            "country_id": 1
        },
        "user": {
            "id": 50,
            "first_name": "أحمد",
            "last_name": "محمد",
            "email": "ahmed.mohammed@example.com",
            "phone": "+966501234567"
        }
    }
}
Modified at 2025-12-25 15:40:34
Previous
Create warehouse
Next
Price Calculator
Built with