Documentation
Difficulty level:
API - Customer - GET customer/current
GET customer/current
Used for
Getting the customer record for the user which is currently logged in.
Authentication
Authenticated user.
Parameters
Parameter | Description | Required | Example |
---|---|---|---|
id | Customer ID | Yes | 2 |
admin | If set, the fields returned are based on the admin form | ?admin=1 | |
raw | If set, also the raw values of the data is returned | ?raw=1 |
Output
Fields are depending on the configuration of the customer fields.
Response codes
- 200 OK
- 401 Unauthorized for current customer
Example
Login as user admin.
GET api/rest/customer/current
Response:
{ "customer_id":"972", "email":"info@pietje.nl", "initials":"A.A.", "lastname":"Pietje Puk", "postal":"", "tel_mob":"0654222779" }