GET Single Client
Production
https://{{subdomain}}.daftra.com/api2
Production
https://{{subdomain}}.daftra.com/api2
GET
https://{{subdomain}}.daftra.com/api2
Clients
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://.daftra.com/api2/clients/' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--header 'apikey: ' \
--header 'Content-Type: application/json'
Response Response Example
200 - Example 1
{
"code": 200,
"result": "successful",
"data": {
"Client": {
"id": 512,
"is_offline": true,
"client_number": "0000715",
"staff_id": 0,
"business_name": "John Smith",
"first_name": "",
"last_name": "",
"email": "user@example.com",
"address1": "string",
"address2": "string",
"city": "string",
"state": "string",
"postal_code": "string",
"phone1": "string",
"phone2": "string",
"country_code": "str",
"notes": "string",
"active_secondary_address": true,
"secondary_name": "string",
"secondary_address1": "string",
"secondary_address2": "string",
"secondary_city": "string",
"secondary_state": "string",
"secondary_postal_code": "string",
"secondary_country_code": "string",
"default_currency_code": "strin",
"last_login": "2018-05-10 00:42:00",
"suspend": true,
"last_ip": "127.0.0.1",
"created": "2018-05-10 00:42:00",
"modified": "2018-05-12 13:05:06",
"follow_up_status": null,
"category": "string",
"group_price_id": 0,
"timezone": 0,
"bn1": "string",
"bn1_label": "string",
"bn2_label": "string",
"bn2": "string",
"starting_balance": null,
"type": null,
"birth_date": "2018-05-10",
"gender": null,
"map_location": null,
"credit_limit": 0,
"credit_period": 0
}
},
"pagination": {
"prev": "/api2/clients/?page=1",
"next": "/api2/clients/?page=3",
"page": 2,
"page_count": 5,
"total_results": 98
}
}
Request
Path Params
id
stringÂ
required
format
stringÂ
required
Header Params
Accept
stringÂ
optional
Default:
application/json
Content-Type
stringÂ
optional
Default:
application/json
Authorization
stringÂ
optional
Default:
Bearer {{access_token}}
apikey
stringÂ
deprecated
Default:
{{apikey}}