wOow Global

Get Order Details

Get detailed information about a specific order

Get Order Details

This endpoint retrieves the details of a specific order using the provided tracking number. It allows users to access information related to their order status, items, and other relevant details.

API Tester - Get Order Details

Retrieve detailed information about a specific order by its tracking number

Environment:
GET
https://dev-api.woowbd.com/api/v1/developer/orders/{tracking_number}

Get your token from: http://dev-app.woowbd.com/dashboard/developer

Request Parameters

  • tracking_number (path parameter): The unique identifier for the order you wish to retrieve. This parameter is required and should be a valid tracking number associated with an existing order.

Response Structure

Upon a successful request, the response will contain the following information:

  • status: A boolean indicating the success of the request.
  • message: A message providing additional context about the request (if any).
  • data: An object containing detailed information about the order:
    • order_id: The unique identifier for the order.
    • status: The current status of the order (e.g., pending, shipped, delivered).
    • items: An array of items included in the order, each containing:
      • item_id: The unique identifier for the item.
      • quantity: The quantity of the item ordered.
      • price: The price of the item.
    • customer_details: Information about the customer who placed the order, including:
      • name: The name of the customer.
      • email: The email address of the customer.
    • shipping_info: Details regarding the shipping of the order, including:
      • address: The shipping address.
      • estimated_delivery: The estimated delivery date.
  • errors: An array containing any errors encountered during the request (if applicable).
  • response_code: A code representing the response status.

Example Request

curl -X GET "https://api.woowbd.com/orders/WOOW123456789" \
  -H "Authorization: Bearer YOUR_API_KEY"

Example Response

{
  "status": true,
  "message": "",
  "data": {
    "order_id": "12345",
    "status": "shipped",
    "items": [
      {
        "item_id": "abc123",
        "quantity": 2,
        "price": 19.99
      }
    ],
    "customer_details": {
      "name": "John Doe",
      "email": "john.doe@example.com"
    },
    "shipping_info": {
      "address": "123 Main St, Anytown, USA",
      "estimated_delivery": "2023-10-10"
    }
  },
  "errors": [],
  "response_code": ""
}

Ensure that the tracking number is valid to receive the correct order details.

Code Examples

JavaScript

const response = await fetch('https://api.woowbd.com/orders/WOOW123456789', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  }
});

const data = await response.json();
console.log(data.data); // Order details

Python

import requests

headers = {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
}

response = requests.get(
    'https://api.woowbd.com/orders/WOOW123456789',
    headers=headers
)

data = response.json()
order_details = data['data']  // Order details

PHP

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.woowbd.com/orders/WOOW123456789');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Bearer YOUR_API_KEY',
    'Content-Type: application/json'
]);

$response = curl_exec($ch);
curl_close($ch);

$data = json_decode($response, true);
$order_details = $data['data'];  // Order details