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": "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": {}
}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": "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": {}
}WordPress username and password
Was this page helpful?