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

Warehouses List

GET
https://app.gotreek.com/api/warehouses
Warehouses
Last modified:2025-12-25 15:41:26
List warehouses for the authenticated user with pagination, including basic location and owner information.
💡
Authentication
Bearer token authentication is required.
Only warehouses visible to the authenticated user are returned, according to your access control rules.
💡
Listing & pagination
Returns a paginated list of warehouses, ordered by creation date (newest first).
Each warehouse includes its basic fields (name, code, status, address, city ID) and related city and user information.
Use ?page= and ?per_page= to control pagination (maximum per_page is 100).

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
Query Params

Responses

🟢200
application/json
Warehouses retrieved successfully
Body

🟠422
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://app.gotreek.com/api/warehouses?page&per_page' \
--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"
            }
        }
    ],
    "meta": {
        "current_page": 1,
        "last_page": 5,
        "per_page": 15,
        "total": 75,
        "from": 1,
        "to": 15
    },
    "links": {
        "first": "http://localhost/api/boxes?page=1",
        "last": "http://localhost/api/boxes?page=5",
        "prev": null,
        "next": "http://localhost/api/boxes?page=2"
    }
}
Modified at 2025-12-25 15:41:26
Previous
Couriers List
Next
Create warehouse
Built with