1. Shipments
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
  • 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
    • Create warehouse
    • warehouse Details
  • Price Calculator
    • Price Calculator
  • Packaging Type
    • Packaging Types List
    • Packaging Type Details
  • Automation
  • 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. Shipments

Get Pickup id

Developing
GET
https://api.gotreek.com/api/shipments/{shipmentReference}/pickup-id
Last modified:2026-07-17 17:47:11
Returns the Aramex pickup information associated with a shipment.
:::
Authentication
Requires Bearer token.
Only the owner of the shipment can access its pickup information.
The shipment must belong to the authenticated merchant.
:::
:::
Behavior
This endpoint is available only for Aramex shipments.
Retrieves the pickup information associated with the specified shipment reference.
Returns the shipment ID, shipment reference, Aramex pickup ID, and pickup GUID.
Indicates whether a pickup has already been scheduled through the has_pickup_id field.
If no pickup has been created yet, pickup_id and pickup_guid will be null, and has_pickup_id will be false.
:::

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
Bodyapplication/json

🟠403Forbidden
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api.gotreek.com/api/shipments/50823520565/pickup-id' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Example 1
{
    "success": true,
    "data": {
        "shipment_id": 146039,
        "shipment_reference": "50823723834",
        "pickup_id": 1236,
        "pickup_guid": 12345,
        "has_pickup_id": false
    }
}
Modified at 2026-07-17 17:47:11
Previous
Print Invoice
Next
Create Box
Built with