GET Customer Order
Developing
GET
{{url}}api/v1/ecommerce/customer/{customer_id}/orders/{order_id}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'http://ecompulse.test/api/v1/ecommerce/customer/5/orders/9' \
--header 'Accept: application/json' \
--header 'X-API-Key: exzbLclGAzBCyL0k1Yv29Evu6mwoYOATBF0lWPyT'
Response Response Example
{
"status": "success",
"message": "Order retrieved successfully",
"data": {
"id": 9,
"reference_no": "ECOM1105262",
"date": "2024-05-19 13:10:33",
"note": "Ecommerce sale",
"order_tax": "0.00",
"order_shipping": "250.00",
"order_discount": "702.00",
"grand_total": "6,568.00",
"paid": "6,568.00",
"balance": "0.00",
"customer_payment": {
"paid": "6,568.00",
"change": "0.00",
"paying_by": "Card"
},
"paid_status": {
"value": 1,
"text": "Paid"
},
"warehouse": {
"id": 1,
"name": "Warehouse 1"
},
"customer": {
"id": 5,
"name": "Gore"
},
"biller": {
"id": 2,
"name": "William"
},
"sale_by": "Ecommerce",
"status": {
"value": 1,
"text": "Completed"
},
"products": [
{
"id": 10,
"sku": "P10",
"name": "Girl Summer bracelets",
"total_qty": 30,
"qty": 1,
"price": "119.00",
"product_net_price": "119.00",
"discount": "0.00",
"weight_based_price": "0.00",
"product_price_tax": "0.00",
"subtotal": "119.00",
"tax_method_id": null,
"tax_id": null,
"option_id": null,
"option_values": null
},
...
...
...
],
"payments": [
{
"id": 14,
"paid_date": "2024-05-19 13:10:33",
"amount": "6,568.00",
"note": "customer ecommerce payment",
"paying_by": {
"value": 1,
"text": "Card"
}
}
]
}
}
Request
Path Params
customer_id
integerÂ
required
Example:
5
order_id
integerÂ
required
Example:
9
Header Params
Accept
stringÂ
required
Example:
application/json
X-API-Key
stringÂ
required
Example:
{{key}}
Responses
Modified at 2024-05-27 18:24:14