1. Boxes
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
      GET
    • Cities List
      GET
    • Couriers List
      GET
  • Warehouses
    • Warehouses List
    • Create warehouse
    • warehouse Details
  • 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. Boxes

Box Details

GET
https://app.gotreek.com/api/boxes/{id}
Boxes
Last modified:2025-12-25 15:04:47
Retrieve a single box by its ID and return both its raw attributes and calculated shipping metrics (volume, volumetric weight, chargeable weight).
💡
Authentication
Bearer token authentication is required.
Only boxes accessible to the authenticated user should be requested.
💡
Behavior
If the box exists, the response includes:
the stored box data (type, dimensions, weight),
calculated metrics:
volume in cubic centimeters
volumetric weight
chargeable weight

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
Box retrieved successfully
Body

🟠404
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://app.gotreek.com/api/boxes/' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Example 1
{
    "data": {
        "id": 1,
        "type": "Small Box",
        "length": 33,
        "width": 14,
        "height": 8,
        "weight": 31,
        "user_id": 94,
        "created_at": "2025-07-21T13:05:41Z",
        "updated_at": "2025-07-21T13:05:41Z"
    },
    "calculated_metrics": {
        "volume_cm3": 1000,
        "volumetric_weight": 200,
        "chargeable_weight": 500
    }
}
Modified at 2025-12-25 15:04:47
Previous
Get Boxes
Next
Update Box
Built with