This endpoint returns basic customer information. This request requires an access token in the Authorization HTTP header.

HTTP Request

GET /customer/account

Request Parameters

There are no request parameters, but you must include an access token.

Success Response

HTTP 200 OK
If successful, the API returns user info and user address info.

{
 "message": [],
 "user": {
   "email": "user@example.com",
   "first_name": "John",
   "last_name": "Doe",
   "phone": "5555555555",
   "delivery_points": 1000,
   "life_time_delivery_points": 6000,
   "user_id": 1234567,
   "customer_id": 1345678,
   "human_id": 1345678,
   "roles": [ "USER" ],
   "life_time_orders_count": 50,
   "sms_notify": true,
   "life_time_orders_count_per_vertical": {
     "alcohol": 2,
     "food": 40,
     "groceries": 3,
     "laundry": 5
    },
    "account_integrations": [],
    "pending_updates": {
      "to_email": null,
      "to_phone": null,
      "valid_until": false
    },
    "office_user": {
      "name": "example company",
      "role": "Staff"
    },
    "is_tax_exempt": false
  },
  "userAddress": {
    "location_id": 7654321,
    "label": "work",
    "street": "1600 Pennsylvania Ave NW",
    "city": "Washington",
    "state": "DC",
    "phone": "5555555555",
    "zip_code": "20500",
    "postal_code": "20500",
    "cross_streets": null,
    "unit_number": "",
    "instructions": "",
    "company": null,
    "company_id": 1,
    "longitude": -77.0371275,
    "latitude": 38.897804,
    "date_last_used": "2018-04-20T11:24:29+0000",
    "default": false,
    "editable_fields": [ "street", "city", "state" ]
  },
  "user_payments": {
    "credit_balance": {
      "id": 1065801,
      "value": 0
    },
    "gift_cards": [
      {
        "id": 4111111,
        "value": "10.00",
        "type": "S",
        "last_four": "ABCD"
      }
    ],
   "total_credit": 10
 },
 "third_party_auth": "",
 "uid": ""
}

Bad Address Response

You receive this response when all your input is valid, but we couldn’t verify your address against the USPS database.
HTTP 400 Bad Request

{
        "message": [],
	"user": {
		"human_id": "231212",
		"email": "grandmatillie@gmail.com",
		"first_name": "Grandma",
		"last_name": "Tillie"
	}
}
Property Type Description
user.human_id String Unique id of the user.
user.email String The user’s email.
user.first_name String User’s first name.
user.last_name String User’s last name.