Get all contacts managed by the user
GET
https://api.lws.net/v1/
operationIdget0List
Retrieve an associative array [ID => {data}] of all contacts managed by the user.
Responses
200
Contact list retrieved successfully
{
"code": 200,
"info": "Customer list fetched",
"data": [
[
{
"company": "My Company",
"lastname": "Doe",
"firstname": "John",
"address": "1 rue de la Paix",
"postal": "75000",
"city": "Paris",
"country": "France",
"phone": "0033612345678",
"email": "[email protected]",
"is_company": true,
"credit": 0
}
]
]
}
Response fields 3
-
codeinteger -
infostring -
dataobject[][]Associative array $key=>$value where $key is the ID and $value is the contact informations
401
Unauthorized - Missing authentication headers
{
"code": 401,
"info": "Unauthorized access to the API. Please specify X-Auth-Pass and X-Auth-Login to proceed."
}
Response fields 2
-
codeinteger -
infostring
404
No contacts found. Either an error occured or there are no contacts managed by the user
{
"code": 404,
"info": "No contacts could be fetched",
"data": []
}
Response fields 3
-
codeinteger -
infostring -
dataany[]
429
Rate limit exceeded
{
"code": 429,
"info": "Rate limit exceeded. Please try again later."
}
Response fields 2
-
codeinteger -
infostring
500
Internal Server Error
{
"code": 500,
"info": "Internal Server Error",
"data": "Details on the error"
}
Response fields 3
-
codeinteger -
infostring -
datastring
502
Invalid response returned. Generally means returned data was not expected.
{
"code": 502,
"info": "Invalid response from upstream server",
"data": {
"status": 500,
"error": "Internal Server Error"
}
}
Response fields 3
-
codeinteger -
infostring -
dataany[]