This API endpoint allows you to retrieve detailed information about a specific order, including the order ID, customer name, customer address, order status, payment information, and order items.
Endpoint #
The Voomerr Order Details endpoint is POST https://admin.voomerr.com/api/order_detail.php
Request Parameters #
Parameter | Required | Description |
---|---|---|
user_id | Yes | The ID of the user who placed the order. |
currency | No | The currency to be used for pricing. If not specified, the default currency will be used. |
Response Parameters #
Parameter | Description |
---|---|
status | A boolean value indicating whether the request was successful or not. True if successful, false otherwise. |
message | A string containing a message regarding the status of the request. If the request was successful, this parameter will contain a success message, otherwise, an error message. |
order | A JSON object containing information about the retrieved order, including its ID, customer name, customer address, order status, payment information, and order items. |
Request Example #
json
{
"user_id": "1234",
"currency": "USD"
}
Response Example #
json
{
"status": true,
"message": "Order details retrieved successfully.",
"order": {
"order_id": "5678",
"customer_name": "John Doe",
"customer_address": "123 Main St, Anytown USA",
"order_status": "Delivered",
"payment_info": {
"payment_method": "Credit Card",
"payment_status": "Paid",
"payment_total": "50.00"
},
"order_items": [
{
"item_name": "Pizza",
"item_quantity": "2",
"item_price": "10.00",
"item_subtotal": "20.00"
},
{
"item_name": "Burger",
"item_quantity": "1",
"item_price": "15.00",
"item_subtotal": "15.00"
},
{
"item_name": "Drink",
"item_quantity": "2",
"item_price": "2.50",
"item_subtotal": "5.00"
}
]
}
}