Get client
Clients can be retrieved by uuid
or external_id
.
Organizations and individuals have different sets of fields, see the table below. |
uuid
$ curl -H "Authorization: Bearer api-key" https://api.planadoapp.com/v2/clients/50c773b3-a4f8-5619-be47-cb6a0edb22cc | jq { "client": { "uuid": "50c773b3-a4f8-5619-be47-cb6a0edb22cc", "external_id": "423430387320568-acme", "name": "ACME Corporation", "organization": true, "organization_name": "ACME Corporation", "site_address": { "formatted": "Passeig de Gràcia, 92, 08008 Barcelona, Spain", "entrance_no": "1", "apartment": null, "floor": "1", "description": "Entrance via Carrer de Procença", "geolocation": { "longitude": 37.6785237278356, "latitude": 55.7862807707096 } }, "contacts": [ { "name": "Pedro", "value": "(834) 362-5246", "type": "phone" } ], "version": 1 } }
external_id
$ curl -H "Authorization: Bearer api-key" https://api.planadoapp.com/v2/clients/423430387320568-acme | jq { "client": { "uuid": "50c773b3-a4f8-5619-be47-cb6a0edb22cc", "external_id": "423430387320568-acme", "name": "ACME Corporation", ... } }
uuid
$ curl -H "Authorization: Bearer api-key" https://api.planadoapp.com/v2/clients/b2584e3c-25dd-4773-ab8b-0a018fd58d2b | jq { "client": { "uuid": "b2584e3c-25dd-4773-ab8b-0a018fd58d2b", "external_id": "22451458596510-john-doe-the-second", "name": "John Doe the Second", "organization": false, "first_name": "John", "last_name": "Doe", "middle_name": "the second", "site_address": { "formatted": "VFWH+25 Rome, Metropolitan City of Rome, Italy", "entrance_no": "3", "apartment": "11", "floor": "2", "description": "Knock hard", "geolocation": { "longitude": 12.4772501, "latitude": 41.8950619 } }, "contacts": [ { "name": "John", "value": "(923) 820-5063", "type": "phone" } ], "version": 3, "created_at": "2016-05-29T17:31:01.419601Z", "updated_at": "2016-06-07T10:57:19.529209Z" } }
Field | Type | JSON type | Can be null |
Description |
---|---|---|---|---|
|
UUID |
String |
No |
Unique identifier |
|
String |
String |
Yes |
|
|
String |
String |
No |
Client name. This is either |
|
String |
String |
No |
Organization name. Limited to 5000 characters, some organizations have very long names |
|
Boolean |
Boolean |
No |
Whether the client is an organization |
|
String |
String |
Yes |
First name |
|
String |
String |
Yes |
Last name |
|
String |
String |
Yes |
Middle name |
|
[Contact] |
Array |
No |
List of site contacts |
|
Object |
Yes |
Site address |
|
|
Integer |
Number |
No |
|
|
String |
No |
Timestamp of creation |
|
|
String |
No |
Timestamp of last update |
*
These fields are only present when organization
is true
**
These fields are only present when organization
is false