Skip to main content
GET
/
my-account
/
orders
/
{id}
Error
A valid request URL is required to generate request examples
{
  "order_id": 789,
  "order_number": "789",
  "order_parent": 0,
  "order_date": "December 15, 2024, 2:20 pm",
  "order_status": "Completed",
  "order_currency": "USD",
  "billing_address": "John Doe, 123 Main St, Apt 4B, Anytown, CA, 12345, US",
  "shipping_address": "John Doe, 123 Main St, Apt 4B, Anytown, CA, 12345, US",
  "phone": "+1234567890",
  "email": "[email protected]",
  "ship_to_billing": false,
  "items": [
    {
      "item_id": 1,
      "product_id": 456,
      "variation_id": 0,
      "product_image": "https://example.com/wp-content/uploads/product.jpg",
      "product_name": "Premium T-Shirt",
      "product_title": "Premium T-Shirt",
      "product_type": "simple",
      "sku": "TSHIRT-001",
      "quantity": "2",
      "subtotal": "$39.98",
      "purchase_note": "",
      "refunded_qty": "0",
      "meta": {},
      "link": "https://example.com/wp-json/cocart/preview/products/456"
    }
  ],
  "totals": {
    "subtotal": {
      "label": "Subtotal",
      "value": "$39.98"
    },
    "shipping": {
      "label": "Shipping",
      "value": "$5.00"
    },
    "total": {
      "label": "Total",
      "value": "$44.98"
    }
  },
  "order_note": "Please leave at the door",
  "order_notes": [
    {
      "date": "December 15, 2024, 2:25 pm",
      "note": "Your order has been shipped"
    }
  ],
  "downloads": [],
  "order_actions": {
    "view": {
      "url": "https://example.com/wp-json/cocart/preview/my-account/orders/789",
      "name": "View"
    }
  }
}
This endpoint is currently shown as a preview of what’s currently in development and is subject to change.
As WooCommerce sends customers an email of the order review, you could use this endpoint to allow customers to return and view their full order without authorization so long as the order ID and order billing email address match. This is useful for guest checkouts.
If the endpoint is accessed with authentication, the order ID must belong to the authenticated user. The billing email address is not required in this case.

Path Parameters

id
integer
required

Unique identifier for the order

Query Parameters

email
string<email>

The orders billing email address

Response

Order details retrieved successfully

order_id
integer

Order ID

order_number
string

Order number

order_parent
integer

Parent order ID

order_date
string

Order date

order_status
string

Order status

order_currency
string

Order currency

billing_address
string

Formatted billing address as comma-separated string (br tags replaced with commas)

shipping_address
string

Formatted shipping address as comma-separated string (br tags replaced with commas)

phone
string

Phone number

email
string<email>

Email address

ship_to_billing
boolean

Whether shipping to billing address

items
object[]

List of order items (converted from object to array)

totals
object

Order totals with renamed keys (cart_subtotal→subtotal, order_subtotal→total)

order_note
string

Customer order note

order_notes
object[]
downloads
object[]
order_actions
object