Skip to content

Get client by ID

Request

🔐 Required role: API_ADMIN

📖 Data dictionary: Client

Retrieve a specific client by its unique identifier

Returns the client wrapped in a client key, with its department, office, industry, client type, business entity, contact info and staff assignments. Relationships and optional foreign keys are null when unset.

Not found: an id that matches no client returns 200 with {"client": null} (not 404). A non-numeric id returns 400.

Security
(BearerAuth and CfAccessClientId and CfAccessClientSecret) or BearerAuth
Path
idinteger, >= 1required

Unique identifier of the client

Example:122
curl -i -X GET \
  https://api.sandbox.aiwyn.app/gql/v1/client/122 \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'CF-Access-Client-Id: YOUR_API_KEY_HERE' \
  -H 'CF-Access-Client-Secret: YOUR_API_KEY_HERE'

Responses

Client found (client is the record) or not found (client is null)

Bodyapplication/json
clientClientDetail (object) or nullrequired
Any of:

Client record as returned by GET /gql/v1/client/{id}: every Client property plus the client's own contact info.

Response
{ "client": { "id": 122, "pmsRef": "1155", "clientRef": "41664", "name": "Acme Bread Co.", "active": true, "ebilling": true, "emailStatement": true, "chargeAdminFee": false, "clientContactInfoId": 9957, "excludeFromCollections": false, "default_billing_day": null, "prefContactId": 601, "billingContactId": null, "billingClientId": null, "departmentId": 3, "officeId": 1, "industryId": null, "clientGroupId": null, "partnerStaffId": 53, "managerStaffId": null, "staffBillingManagerId": null, "clientTypeId": 7, "clientBusinessEntityId": null, "fiscalYearEndMonth": 12, "fiscalYearEndDay": 31, "createdAt": "2023-05-12T22:43:55.488054+00:00", "updatedAt": "2023-06-09T21:34:28.817274+00:00", "customFieldValues": { … }, "orgId": null, "clientKey": null, "updateByStaffId": 53, "exclusionStatusUpdatedAt": "2023-05-12T22:43:55.488054+00:00", "isManagedByAiwyn": false, "isCreatedByAiwyn": false, "originatingPartnerStaffId": null, "billingNotes": null, "description": null, "notes": null, "noticePeriod": null, "secondaryContactId": null, "fein": null, "status": "ACTIVE", "invoiceDeliveryMethod": "EMAIL", "mergedInto": null, "inactivateMergedRecord": false, "department": { … }, "office": { … }, "industry": null, "clientType": { … }, "clientBusinessEntity": null, "entityType": null, "partnerStaff": { … }, "managerStaff": null, "billManager": null, "relationshipOwner": { … }, "clientContactInfo": { … } } }