Get customer profile
Retrieve the authenticated customer's profile including addresses.
Authorization
cookieAuth wordpress_logged_in<token>
WordPress cookie authentication for same-origin requests. Requires a valid nonce passed via X-WP-Nonce header.
In: cookie
Response Body
application/json
application/json
curl -X GET "https://your-site.com/wp-json/fluent-cart/v2/customer-profile/profile"{
"message": "string",
"data": {
"email": "user@example.com",
"first_name": "string",
"last_name": "string",
"billing_address": [
{
"id": 0,
"customer_id": "string",
"is_primary": "string",
"type": "billing",
"status": "string",
"label": "string",
"name": "string",
"address_1": "string",
"address_2": "string",
"city": "string",
"state": "string",
"phone": "string",
"email": "user@example.com",
"postcode": "string",
"country": "string",
"meta": {},
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"formatted_address": {
"country": "string",
"state": "string",
"city": "string",
"postcode": "string",
"address_1": "string",
"address_2": "string",
"type": "string",
"name": "string",
"first_name": "string",
"last_name": "string",
"full_name": "string",
"email": "user@example.com",
"company_name": "string",
"label": "string",
"phone": "string",
"full_address": "string"
},
"company_name": "string"
}
],
"shipping_address": [
{
"id": 0,
"customer_id": "string",
"is_primary": "string",
"type": "billing",
"status": "string",
"label": "string",
"name": "string",
"address_1": "string",
"address_2": "string",
"city": "string",
"state": "string",
"phone": "string",
"email": "user@example.com",
"postcode": "string",
"country": "string",
"meta": {},
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"formatted_address": {
"country": "string",
"state": "string",
"city": "string",
"postcode": "string",
"address_1": "string",
"address_2": "string",
"type": "string",
"name": "string",
"first_name": "string",
"last_name": "string",
"full_name": "string",
"email": "user@example.com",
"company_name": "string",
"label": "string",
"phone": "string",
"full_address": "string"
},
"company_name": "string"
}
]
}
}{
"code": "rest_forbidden",
"message": "Sorry, you are not allowed to do that.",
"data": {
"status": 401
}
}