1. Packages
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
    • Get Pickup id
      GET
  • Packages
    • Create Package
      POST
    • Get Packages
      GET
    • Package Details
      GET
    • Update Package
      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
    • Create warehouse
    • warehouse Details
  • Price Calculator
    • Price Calculator
  • Packaging Type
    • Packaging Types List
    • Packaging Type Details
  • Schemas
    • LoginRequest
    • CreateOrderRequest
    • UpdateOrderRequest
    • Price Calculator
    • VerifyItem
    • CreateWarehouseRequest
    • Shipment Package
    • Create Reverse Shipment
    • OrderPackages
    • OrderItem
    • Order
    • ErrorResponse
    • City
    • AutomationRuleCondition
    • Country
    • AutomationRule
    • User
    • PaginationMeta
    • OrderItem
    • PaginatedAutomationRules
    • SuccessResponse
    • CreateOrderItemRequest
    • CalculateRatesRequest
    • BoxDimensions
    • OrderShippingRate
    • RateCalculationParams
    • Warehouse
    • Box
    • CreateBoxRequest
    • UpdateBoxRequest
    • ValidationError
    • NotFoundError
    • UnauthorizedError
    • ForbiddenError
    • PaginationLinks
  1. Packages

Package Details

GET
https://api.gotreek.com/api/packages/{id}
Boxes
Last modified:2026-08-11 08:53:31
Retrieve a single package 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 packages accessible to the authenticated user should be requested.
💡
Behavior
If the package exists, the response includes:
the stored package data (type, dimensions, weight),
calculated metrics:
volume in cubic centimeters
volumetric weight
chargeable weight

Request

Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Path Params

Responses

🟢200
application/json
Box retrieved successfully
Bodyapplication/json

🟠404
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api.gotreek.com/api/packages/' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Success
{
    "data": {
        "id": 15,
        "organisation_id": 21,
        "type": "s",
        "length": 10,
        "width": 10,
        "height": 10,
        "packaging_type_id": 1,
        "created_at": "2025-03-04T22:58:04.000000Z",
        "updated_at": "2026-04-21T14:15:02.000000Z",
        "weight": 1
    },
    "calculated_metrics": {
        "volume_cm3": 1000,
        "volumetric_weight": 0,
        "chargeable_weight": 1
    }
}
Modified at 2026-08-11 08:53:31
Previous
Get Packages
Next
Update Package
Built with