1. Orders
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. Orders

Order Price

Developing
GET
https://app.gotreek.com/api/orders/{id}/order-price
Last modified:2026-01-04 14:10:02
Retrieve the calculated shipping price for a specific order, taking into account whether the order is COD or prepaid. This endpoint returns the current pricing result for the given order.
💡
Authentication
Bearer token authentication is required.
Only orders owned or accessible by the authenticated user should be used to retrieve pricing information.
💡
Behavior
Looks up the order by its ID. If the order is not found or not accessible, a 404 error is returned.
If the order’s payment_method is cod, calculates the rates with COD included.
For non‑COD orders, calculates the rates with COD charges ignored.
Returns the order ID and the computed price/rates object in the response body.

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

Header Params

Responses

🟢200
application/json
Body

🟠404
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://app.gotreek.com/api/orders//order-price' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Success
{
    "success": true,
    "data": {
        "order_id": 50542,
        "price": [
            {
                "service_id": 4,
                "courier_name": "ثابت",
                "service_name": "شحن إقتصادي",
                "identifier": "thabit",
                "price_cents": 48200,
                "price_sar": 482,
                "delivery_time": "من 1 إلى 3 أيام عمل",
                "logo": "https://www.gotreek.com/build/images/thabit.png",
                "logo_big": "https://www.gotreek.com/build/images/thabit.png"
            },
            {
                "service_id": 1,
                "courier_name": "أرامكس",
                "service_name": "الشحن الإعتيادي",
                "identifier": "aramex",
                "price_cents": 70150,
                "price_sar": 701.5,
                "delivery_time": "من 2 إلى 4 أيام عمل",
                "logo": "https://www.gotreek.com/build/images/aramex.png",
                "logo_big": "https://www.gotreek.com/build/images/aramex-big.png"
            },
            {
                "service_id": 10,
                "courier_name": "ديليفريست",
                "service_name": "شحن سريع + توصيل في نفس اليوم",
                "identifier": "deliverist",
                "price_cents": 92795,
                "price_sar": 927.95,
                "delivery_time": "أقل من 10 ساعات",
                "logo": "https://www.gotreek.com/build/images/deliverist.png",
                "logo_big": "https://www.gotreek.com/build/images/deliverist-big.png"
            },
            {
                "service_id": 12,
                "courier_name": "جي ان تي (وزن)",
                "service_name": "شحن ثقيل",
                "identifier": "jt_weight",
                "price_cents": 93100,
                "price_sar": 931,
                "delivery_time": "من 1 إلى 3 أيام عمل",
                "logo": "https://www.gotreek.com/build/images/jt.png",
                "logo_big": "https://www.gotreek.com/build/images/jt.png"
            },
            {
                "service_id": 8,
                "courier_name": "أر تي زاد",
                "service_name": "الشحن المبرد والمثلج",
                "identifier": "artz",
                "price_cents": 93300,
                "price_sar": 933,
                "delivery_time": "من ١ الى ٣ ايام",
                "logo": "https://www.gotreek.com/build/images/artz.jpg",
                "logo_big": "https://www.gotreek.com/build/images/artz-big.jpg"
            },
            {
                "service_id": 3,
                "courier_name": "ترانسكورب",
                "service_name": "الشحن المبرد و المثلج",
                "identifier": "transcorp",
                "price_cents": 95300,
                "price_sar": 953,
                "delivery_time": "من 1 إلى 3 أيام عمل",
                "logo": "https://www.gotreek.com/build/images/transcorp.png",
                "logo_big": "https://www.gotreek.com/build/images/transcorp.png"
            }
        ]
    }
}
Modified at 2026-01-04 14:10:02
Previous
Verify Order
Next
Create Shipment
Built with