Documentation is still being updated. Some content maybe unfinished.
A valid request URL is required to generate request examples{
"user": {
"id": 123,
"date_registered": "2024-01-15T10:30:00",
"email": "[email protected]",
"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": "[email protected]"
},
"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": {}
}Retrieve customer account information including profile data and order statistics
A valid request URL is required to generate request examples{
"user": {
"id": 123,
"date_registered": "2024-01-15T10:30:00",
"email": "[email protected]",
"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": "[email protected]"
},
"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": {}
}WordPress username and password
Account details retrieved successfully
User account information
Show child attributes
Unique identifier for the user
User registration date
Email address
First name
Last name
Display name
Customer addresses
Show child attributes
Show child attributes
First name
Last name
Company name
Address line 1
Address line 2
City name
State/County
Postal code
Country code
Phone number
Email address
Show child attributes
First name
Last name
Company name
Address line 1
Address line 2
City name
State/County
Postal code
Country code
Total number of orders
Total amount spent
Whether the customer has made any purchase
Avatar URL
Extension data
Was this page helpful?