Skip to main content

Order Tracking

Track an order using its public tracking key without authentication.

HTTP Request

GET/api/shop/customers/me/orders/{order_key}/tracking

Authorization

Authorization

  • Required: No
  • Permission: Public
  • Authentication: None

Path Parameters

ParameterTypeRequiredDescription
order_keystringYesPublic tracking key of the order, obtainable from order details

Example Requests

1import requests
2
3# Track order by key
4response = requests.get('http://www.example.com/api/shop/customers/me/orders/ABCDEFG12345/tracking')
5print(response.json())

Response Fields (Order Details)

FieldTypeDescription
idintegerUnique ID of the order
keystringOrder tracking key
statusstringCurrent order status
customerobjectCustomer details
payment_methodobjectPayment method details
shipping_methodobjectShipping method details
shipping_costdecimalCost of shipping
notesstringOrder notes
created_atstring (ISO 8601)Order creation timestamp
updated_atstring (ISO 8601)Order last update timestamp
billing_countryobjectBilling country details
billing_stateobjectBilling state details
billing_cityobjectBilling city details
billing_addressstringBilling address
billing_postal_codestringBilling postal code
billing_national_codestringBilling national code
billing_mobile_numberstringBilling mobile number
billing_first_namestringBilling first name
billing_last_namestringBilling last name
countintegerNumber of different products
quantityintegerTotal quantity of items
items_subtotaldecimalSubtotal of all items
items_discountdecimalTotal discount on items
subtotaldecimalOrder subtotal
total_discountdecimalTotal discount amount
totaldecimalFinal order total
amount_paiddecimalAmount already paid
amount_outstandingdecimalOutstanding amount
is_paidbooleanWhether order is fully paid
is_payablebooleanWhether order can be paid
itemsarrayArray of order items with product details
paymentsarrayArray of payment transactions for this order

Order Items Structure

Each item in the items array contains:

FieldTypeDescription
idintegerUnique ID of the order item
product_dataobjectSnapshot of product data at time of order
unit_priceintegerPrice per unit (in smallest currency unit)
unit_discountintegerDiscount per unit (in smallest currency unit)
quantityintegerQuantity ordered
notesstringItem-specific notes
subtotalintegerCalculated subtotal (computed field)
discountintegerTotal discount for this item (computed field)
totalintegerFinal total for this item (computed field)
created_atstring (ISO 8601)Item creation timestamp
updated_atstring (ISO 8601)Item last update timestamp

Order Payments Structure

Each payment in the payments array contains:

FieldTypeDescription
idintegerUnique ID of the payment
payment_methodobjectPayment method details
approvedbooleanWhether payment is approved
amountintegerPayment amount (in smallest currency unit)
transaction_idstringExternal transaction identifier
notesstringPayment-specific notes
created_atstring (ISO 8601)Payment creation timestamp
updated_atstring (ISO 8601)Payment last update timestamp

Payment Method Structure

The payment_method object contains:

FieldTypeDescription
idintegerPayment method ID
namestringPayment method name
imageobjectPayment method icon/logo

Shipping Method Structure

FieldTypeDescription
idIntegerUnique ID of the shipping method
nameStringName of the shipping method
imageObjectImage details of the shipping method

Image Data Structure

FieldTypeDescription
idIntegerUnique ID of the image
typeStringFile type (e.g., image/jpeg)
nameStringOriginal file name
sizeIntegerFile size in bytes
human_readable_sizeStringHuman readable file size (e.g., 2.5 MB)
fStringURL to access the image file
widthIntegerImage width in pixels
heightIntegerImage height in pixels
modeStringColor mode (e.g., RGB, CMYK)
thumbnailsList of thumbnail objectsImgae thumbnails

Thumbnail Data Structure

FieldTypeDescription
idIntegerUnique ID of the thumbnail (unique)
fStringURL to access the thumbnail file
sizeIntegerFile size in bytes (nullable)

Customer Structure

The customer object contains:

FieldTypeDescription
idintegerCustomer ID
usernamestringCustomer username
full_namestringCustomer's full name

Geographic Data Structures

Country, state, and city objects contain:

Country/State:

FieldTypeDescription
idintegerUnique ID of the country/state
activebooleanWhether the country/state is active
namestringName of the country/state
codestringCode of the country/state (e.g., ISO code)

City:

FieldTypeDescription
idintegerCity ID
activebooleanWhether city is active
namestringCity name

Example Response

{
"id": 2,
"key": "0c86ab758d3e236cb5a4",
"status": "shipped",
"customer": {
"id": 1,
"username": "behrooz3500",
"full_name": "behrooz ghorbanie"
},
"payment_method": {
"id": 1,
"name": "پرداخت در مخل",
"image": null
},
"shipping_method": {
"id": 1,
"name": "پیک موتور",
"image": {
"id": 8,
"type": "image",
"name": "پیک موتوری",
"size": 808754,
"human_readable_size": "789.80 KB",
"f": "http://127.0.0.1:8000/media/core_media/2025/12/20/Fantasticheskie_kartinki_dlja_monitora_68_63.jpg",
"width": 1920,
"height": 1080,
"mode": "RGB",
"thumbnails": [
{
"id": 213,
"f": "http://127.0.0.1:8000/media/core_media/2026/02/02/thumbnails/test2_ecH0zVV_thumbnail_64x64.jpg",
"size": 64
},
{
"id": 214,
"f": "http://127.0.0.1:8000/media/core_media/2026/02/02/thumbnails/test2_ecH0zVV_thumbnail_128x128.jpg",
"size": 128
},
{
"id": 215,
"f": "http://127.0.0.1:8000/media/core_media/2026/02/02/thumbnails/test2_ecH0zVV_thumbnail_512x512.jpg",
"size": 512
},
{
"id": 216,
"f": "http://127.0.0.1:8000/media/core_media/2026/02/02/thumbnails/test2_ecH0zVV_thumbnail_1080x1080.jpg",
"size": 1080
}
]
}
},
"shipping_cost": 75000,
"notes": "Facilis sequi alias optio. Alias ipsam deserunt. At veniam nam et. Et aut id id aut quae non animi. Sed tempora aut ut ipsa dicta vel eveniet et aspernatur.",
"created_at": "2025-12-27T18:17:09.771123Z",
"updated_at": "2025-12-28T11:28:47.290350Z",
"billing_country": {
"id": 1,
"name": "ایران",
"code": "IR"
},
"billing_state": {
"id": 1,
"name": "آذربایجان شرقی",
"code": "EA"
},
"billing_city": {
"id": 1,
"name": "اسکو"
},
"billing_address": "5411 Stokes Grove",
"billing_postal_code": "1234567890",
"billing_national_code": null,
"billing_mobile_number": "09523296536",
"billing_first_name": "پدرام",
"billing_last_name": "زمانی",
"count": 0,
"quantity": 0,
"items_subtotal": 0,
"items_discount": 0,
"subtotal": 0,
"total_discount": 0,
"total": 75000,
"amount_paid": 1100000,
"amount_outstanding": -1025000,
"is_paid": true,
"is_payable": true,
"items": [],
"payments": [
{
"id": 1,
"payment_method": {
"id": 1,
"name": "پرداخت در مخل",
"image": null
},
"approved": true,
"amount": 100000,
"transaction_id": "1589800",
"notes": "",
"created_at": "2025-12-28T10:43:38.509103Z",
"updated_at": "2025-12-30T11:19:16.265863Z"
},
{
"id": 3,
"payment_method": {
"id": 1,
"name": "پرداخت در مخل",
"image": null
},
"approved": true,
"amount": 1000000,
"transaction_id": "12345678910111213",
"notes": "by zarinpal",
"created_at": "2025-12-30T11:22:46.032030Z",
"updated_at": "2025-12-30T11:22:46.032039Z"
}
]
}

Notes

    • Order Tracking: Public tracking allows customers to check order status without logging in.
    • If is_payable is false, the order cannot be paid (e.g., canceled or refunded)
    • If is_paid is true, amount_outstanding will be zero