Get client
/v2/clients/{client_id}Returns the client with the given ID.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
client_idrequired | path | integer (int32) | Client ID |
Responses
200A client
- clientobjectobject
Client model
- idinteger required
Client ID
- organization_idinteger required
Organization ID
- namestring required
Client Name
- emailsarray required
Emails to default send invoices to
array<string>Emails to default send invoices to
itemsstring - phonestring required
Phone Number
- addressstring required
Address
- project_idsarray required
List of projects
array<integer>List of projects
itemsinteger(int64) - inherit_invoice_notesboolean
True if the organizations invoice notes will be used
- invoice_notesstring
Notes (Shown on invoices)
- inherit_net_termsboolean
True if the organizations net terms will be used
- net_termsstring
Amount of days the invoice must be paid once created
- statusstring required
Client status
- created_atstring required
When the record was created
- updated_atstring required
When the record was last updated
- budgetobjectobject
- typestring required
The budget type
- ratestring
The budget rate type
- costnumber
The budget cost limit
- hoursnumber
The budget hours limit
- start_datestring
The budget start date
- alertsobject requiredobject
- near_limitinteger required
The budget near limit percentage
- notify_enabledboolean required
Whether budget notifications are enabled
- notify_all_membersboolean required
Whether to notify all project members
- notify_groupstring
The group to notify
- recurrencestring
The budget recurrence frequency
- recurrence_startinteger
Day of week (0-6, 0=Sunday) for weekly recurrence, or day of month (1-31) for monthly recurrence
- include_non_billableboolean required
Whether the budget includes non-billable time
- stop_timer_when_budget_reachedboolean required
Whether to stop timers when budget is reached
- stop_atinteger
The budget percentage at which timers stop
- metadataobject required
Metadata attached to the client
objectMetadata attached to the client
{
"client": {
"id": 0,
"organization_id": 0,
"name": "string",
"emails": [
"string"
],
"phone": "string",
"address": "string",
"project_ids": [
0
],
"inherit_invoice_notes": false,
"invoice_notes": "string",
"inherit_net_terms": false,
"net_terms": "string",
"status": "string",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z",
"budget": {
"type": "string",
"rate": "string",
"cost": 0,
"hours": 0,
"start_date": "2024-01-15",
"alerts": {
"near_limit": 0,
"notify_enabled": false,
"notify_all_members": false,
"notify_group": "string"
},
"recurrence": "string",
"recurrence_start": 0,
"include_non_billable": false,
"stop_timer_when_budget_reached": false,
"stop_at": 0
},
"metadata": {}
}
}400Invalid parameters
Hubstaff_Public_V2_Entities_Error model
- codestring required
Legacy string error code for backward compatibility
- error_codeinteger
Numeric error code for i18n/programmatic handling. Ranges: 10000-10999 (Auth), 11000-11999 (Validation), 12000-12999 (Resource), 13000-13999 (Rate Limit), 14000-14999 (Time Entry/Activity), 15000-15999 (System). See GET /v2/error_codes for full reference.
- errorstring required
Human-readable error message
- detailsarray
Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
array<string>Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
itemsstring
{
"code": "string",
"error_code": 0,
"error": "string",
"details": [
"string"
]
}401Unauthorized
Hubstaff_Public_V2_Entities_Error model
- codestring required
Legacy string error code for backward compatibility
- error_codeinteger
Numeric error code for i18n/programmatic handling. Ranges: 10000-10999 (Auth), 11000-11999 (Validation), 12000-12999 (Resource), 13000-13999 (Rate Limit), 14000-14999 (Time Entry/Activity), 15000-15999 (System). See GET /v2/error_codes for full reference.
- errorstring required
Human-readable error message
- detailsarray
Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
array<string>Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
itemsstring
{
"code": "string",
"error_code": 0,
"error": "string",
"details": [
"string"
]
}403API access is only for organizations on an active plan
Hubstaff_Public_V2_Entities_Error model
- codestring required
Legacy string error code for backward compatibility
- error_codeinteger
Numeric error code for i18n/programmatic handling. Ranges: 10000-10999 (Auth), 11000-11999 (Validation), 12000-12999 (Resource), 13000-13999 (Rate Limit), 14000-14999 (Time Entry/Activity), 15000-15999 (System). See GET /v2/error_codes for full reference.
- errorstring required
Human-readable error message
- detailsarray
Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
array<string>Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
itemsstring
{
"code": "string",
"error_code": 0,
"error": "string",
"details": [
"string"
]
}404Could not find record
Hubstaff_Public_V2_Entities_Error model
- codestring required
Legacy string error code for backward compatibility
- error_codeinteger
Numeric error code for i18n/programmatic handling. Ranges: 10000-10999 (Auth), 11000-11999 (Validation), 12000-12999 (Resource), 13000-13999 (Rate Limit), 14000-14999 (Time Entry/Activity), 15000-15999 (System). See GET /v2/error_codes for full reference.
- errorstring required
Human-readable error message
- detailsarray
Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
array<string>Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
itemsstring
{
"code": "string",
"error_code": 0,
"error": "string",
"details": [
"string"
]
}429Rate limit exceeded
Hubstaff_Public_V2_Entities_Error model
- codestring required
Legacy string error code for backward compatibility
- error_codeinteger
Numeric error code for i18n/programmatic handling. Ranges: 10000-10999 (Auth), 11000-11999 (Validation), 12000-12999 (Resource), 13000-13999 (Rate Limit), 14000-14999 (Time Entry/Activity), 15000-15999 (System). See GET /v2/error_codes for full reference.
- errorstring required
Human-readable error message
- detailsarray
Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
array<string>Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
itemsstring
{
"code": "string",
"error_code": 0,
"error": "string",
"details": [
"string"
]
}