Documentation
Difficulty level:
API - Customer - GET customer/{id}
GET customer/{id}
Used for
Getting the customer
Authentication
Needs to be logged in with admin rights
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/2
Response:
{
"customer_id":"2",
"email":"info@i-reserve.nl",
"initials":"D",
"lastname":"Demoklant",
"postal":"1200AA",
"tel_mob":""
}




