Skip to main content
GET
/
my-account
Error
A valid request URL is required to generate request examples
{
  "user": {
    "id": 123,
    "date_registered": "2024-01-15T10:30:00",
    "email": "john@example.com",
    "first_name": "John",
    "last_name": "Doe",
    "display_name": "John Doe",
    "addresses": {
      "billing": {
        "first_name": "John",
        "last_name": "Doe",
        "company": "",
        "address_1": "123 Main St",
        "address_2": "Apt 4B",
        "city": "Anytown",
        "state": "CA",
        "postcode": "12345",
        "country": "US",
        "phone": "+1234567890",
        "email": "john@example.com"
      },
      "shipping": {
        "first_name": "John",
        "last_name": "Doe",
        "company": "",
        "address_1": "123 Main St",
        "address_2": "Apt 4B",
        "city": "Anytown",
        "state": "CA",
        "postcode": "12345",
        "country": "US"
      }
    },
    "orders_count": 15,
    "total_spent": "$1,234.56",
    "is_paying_customer": true,
    "avatar_url": "https://secure.gravatar.com/avatar/abc123?s=96&d=mm&r=g"
  },
  "recent_order": {
    "order_id": 789,
    "order_date": "2024-12-15T14:20:00",
    "order_data": "https://example.com/wp-json/cocart/preview/my-account/orders/789"
  },
  "meta": {
    "is_customer_outside_base": false,
    "is_vat_exempt": false
  },
  "extensions": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.cocartapi.com/llms.txt

Use this file to discover all available pages before exploring further.

This endpoint is currently shown as a preview of what’s currently in development and is subject to change.

Authorizations

Authorization
string
header
required

WordPress username and password

Response

Account details retrieved successfully

user
object

User account information

recent_order
object
read-only

Most recent order information

meta
object
read-only

Additional customer metadata

extensions
object
read-only

Extension data