Skip to main content

Detail Order

Overview

The Detail Order Endpoint is designed to retrieve detailed information about a specific order, allowing users to access real-time data on their order status, shipping details, and payment information. This endpoint enhances transparency by ensuring users have a clear view of their orders at any given time.

By using this endpoint, users can efficiently track their order progress, verify order details, and resolve any discrepancies before the shipping process is affected.

Key Feature

✅ Real-time Order Tracking → Users can instantly check their order status and monitor its progress.
✅ Enhanced Transparency → Provides full visibility into shipping, payment, and order details.
✅ Error Prevention → Users can verify order accuracy before shipping, reducing potential issues.
✅ Improved Customer Support → Customer service teams can quickly retrieve order details for assistance.
✅ Automated System Integration → Businesses can integrate this endpoint to streamline order management workflows.

How it Works

  1. Initiate Request: The user sends a GET request to the endpoint, providing the unique Order ID as a parameter.
  2. Data Retrieval: The system searches its database for the corresponding Order ID. If found, it compiles all relevant order information.
  3. Response Delivery: The system returns a structured response containing detailed information, including:
    • Order Information: Order ID, status, creation and last update timestamps.
    • Shipping Details: Courier name, shipping method, cost, and estimated delivery time.
    • Origin and Destination: Addresses, region IDs, and city names for both sender and recipient.
    • Recipient Information: Name, phone number, and full address of the recipient.
    • Payment Details: Payment status, method, and total amount paid.

Use Cases for Detail Order EndPoint

  1. Order Tracking : Users can check whether their order is still being processed, has been packed, or is already shipped.
  2. Address Verification : If a user notices incorrect destination details, they can update the address (if the order is still eligible for modification).
  3. Shipping Cost Confirmation : Businesses can confirm whether the correct shipping fee was applied to an
  4. Payment Verification : Users can check if their payment has been received successfully or if further action is needed.
  5. Customer Support Assistance : Support agents can use the Order ID to retrieve all relevant order details when assisting customers with inquiries.
Important Notes
  • A valid Order ID is required to retrieve order details.
  • Orders cannot be modified through this endpoint—only order details can be viewed.
  • Real-time updates ensure that users always receive the most up-to-date order status.
  • If an order is canceled, the response will indicate the cancellation status and refund details (if applicable).

By utilizing the Detail Order Endpoint, users and businesses can efficiently monitor and manage orders, ensuring a smooth and transparent order processing experience.

Request Body

curl --location 'https://api-sandbox.collaborator.komerce.id/order/api/v1/orders/detail?order_no=KOMXXXXXXXXXXXXXXXXX' \
--header 'x-api-key: inputapikey'

Query Parameter

Headers

KeyTypeDescription
x-api-key*stringthis Value contain an secret APIKEY identic for Shipping API.

Query Parameters

KeyTypeDescription
order_no*stringValue is filled with the order number that has been created.
danger

For each header and parameter that has a * sign, it is a parameter that must be Required when making a request, otherwise there will be a system error that will warn the user regarding the request made.

Response

Response Structure

KeyValue (Description)
meta.messageMessage indicating the result of the API request.
meta.codeHTTP status code representing the request status.
meta.statusStatus of the API response (e.g., success or error).
data.order_noUnique identifier for the order within the system.
data.awbAir Waybill number used for package tracking (if available).
data.order_statusCurrent status of the order (e.g., Diajukan = Submitted).
data.order_dateDate the order was created.
data.brand_nameBrand name displayed on the shipping label.
data.shipper_nameName of the sender or shipper.
data.shipper_phonePhone number of the sender.
data.shipper_destination_idID representing the pickup address region.
data.shipper_addressFull address of the sender (pickup location).
data.receiver_nameName of the person receiving the package.
data.receiver_phonePhone number of the receiver.
data.receiver_destination_idID representing the delivery address region.
data.receiver_addressFull address of the receiver (delivery location).
data.shippingName of the selected shipping courier.
data.shipping_typeType of shipping service chosen (e.g., Standard, Express).
data.payment_methodMethod of payment used by the customer.
data.shipping_costCost charged for the shipping service.
data.shipping_cashbackDiscount applied to the shipping cost.
data.service_feeAdditional fee charged for COD (if applicable).
data.additional_costAny other cost added to the order.
data.grand_totalFinal total amount (product + shipping + additional cost - cashback).
data.cod_valueTotal amount to be collected if using COD. Should match grand_total.
data.notesOptional notes or remarks related to the order.
data.insurance_valueValue of insurance applied to the shipment (if any).
data.origin_pin_pointLatitude and longitude of the sender's location.
data.destination_pin_pointLatitude and longitude of the receiver's location (if available).
data.booking_idID from the courier or third-party booking system (if available).
data.driver_nameName of the courier driver handling the delivery.
data.driver_phoneContact number of the assigned courier driver.
data.cancelation_reasonReason for the order cancellation (if any).
data.live_tracking_urlURL to track the shipment in real time.
data.commodity_codeCode representing the type of goods or commodity.
data.order_details[].product_nameName of the product in the order.
data.order_details[].product_variant_nameSpecific variant or configuration of the product.
data.order_details[].product_weightWeight of the product in grams.
data.order_details[].product_heightHeight of the product in centimeters.
data.order_details[].product_widthWidth of the product in centimeters.
data.order_details[].product_lengthLength of the product in centimeters.
data.order_details[].product_priceUnit price of the product.
data.order_details[].qtyQuantity of the product ordered.
data.order_details[].subtotalTotal price for this item (product_price × qty).

Success Respons for Getting Detail Order

{
"meta": {
"message": "Success get order detail",
"code": 200,
"status": "success"
},
"data": {
"order_no": "KOMXXXXXXXXXXXXXXXXX",
"awb": "{{ awb.number }}",
"order_status": "{{ status }}",
"order_date": "{{ order.date }}",
"brand_name": "{{ brand_name }}",
"shipper_name": "{{ shipper_name }}",
"shipper_phone": "{{ shipper_phone_number }}",
"shipper_destination_id": {{ shipper_destination_id }},
"shipper_address": "{{ shipper_detail_address }}",
"receiver_name": "{{ receiver_name }}",
"receiver_phone": "{{ receiver_phone_number }}",
"receiver_destination_id": {{ receiver_destination_id }},
"receiver_address": "{{ receiver_detail_address }}",
"shipping": "{{ courier }}",
"shipping_type": "{{ courier.service }}",
"payment_method": "{{ payment_method }}",
"shipping_cost": {{ Shipping_cost }},
"shipping_cashback": {{ shipping_cashback }},
"service_fee": {{ service_fee, 2.8% }},
"additional_cost": {{ additional_cost }},
"grand_total": {{ grand_total }},
"cod_value": {{ cod_value }},
"notes": "{{ Order_notes }}",
"insurance_value": {{ insurance_value }},
"origin_pin_point": "{{ longitude }}, {{ latitude }}",
"destination_pin_point": "{{ longitude }}, {{ latitude }}",
"booking_id": "{{ booking_id }}",
"driver_name": "{{ driver_name }}",
"driver_phone": "{{ driver_phone }}",
"cancelation_reason": "{{ reason }}",
"live_tracking_url": "{{ track_url }}",
"commodity_code": "{{ commodity }}",
"order_details": [
{
"product_name": "{{ product_name }}",
"product_variant_name": "{{ product_variant }}",
"product_weight": {{ product_weight }},
"product_height": {{ product_height }},
"product_width": {{ product_width }},
"product_length": {{ product_length }},
"product_price": {{ product_price }},
"qty": {{ qty }},
"subtotal": {{ subtotal }}
}
]
}
}

Error Respons for Getting Detail Order

{
"meta": {
"message": "Get Order detail failed",
"code": 400,
"status": "error"
},
"data": {
"errors": "Data not found"
}
}

Error Code

CodeStatusDescriptionHow to Fix
400Not Foundorder_no not foundCheck the order_no again, whether it matches the order number that was previously created.
401UnauthorizedAPI key invalid or missing from parameterMake sure your API key is valid using your Account
422Unprocessable EntityKeywoard parameter is missingAdd an valid keywoard parameter in your requested query. Parameter Request can't be null or missing
500---

Tips to Avoid Error

  1. Always include the Authorization header with a valid apikey.
  2. Do not leave the order_no parameter empty — it’s required.
  3. Use the correct endpoint and query structure.