🔐 Required role:
ENG_C📖 Data dictionary: Engagement
Create a single engagement letter
Creates an engagement letter for a specific client. The engagement letter will be associated with the specified client, fiscal year, and assigned staff.
Required fields:
clientId— the client for whom the engagement is being createdfiscalYear— the fiscal year of the engagementpartnerStaffId— the partner staff member assigned to the engagementmanagerStaffId— the manager staff member assigned to the engagementprimaryContactId— the primary client contactengagementLetterTemplateIdordocumentTemplateId— the template to use. At least one of the two must be provided; a request with neither is rejected.
Optional fields:
engagementNameTemplate— override the firm's default naming templatestartDate/endDate— engagement date rangebillingContactId— contact responsible for billingsecondaryContactId— secondary client contactccStaffIds— additional staff members to CC on the engagementadditionalClientIds— additional clients to associate with the engagementjobIds— jobs/projects to link to the engagementadditionalDocuments— extra documents to attach to the engagement, each requiring adocumentTemplateIdand adocumentType(CONSENTorADD_ON)
Unique identifier of the secondary client contact
Unique identifier of the engagement letter template to use. Required unless documentTemplateId is provided.
Unique identifier of the document template to use. Required unless engagementLetterTemplateId is provided.
Template string used to generate the engagement name. Overrides the firm's default naming template.
List of staff member IDs to CC on the engagement
[ 20, 21 ]
IDs of additional clients to associate with the engagement
[ 790, 791 ]
IDs of jobs (projects) to link to this engagement
[ 101, 102 ]
- Sandbox (requires Cloudflare Access headers)https://api.sandbox.aiwyn.app/api/v1/engagements/create
- Staging (requires Cloudflare Access headers)https://api.staging.aiwyn.app/api/v1/engagements/create
- Production (your live firm data; no Cloudflare Access headers)https://api.aiwyn.ai/api/v1/engagements/create
curl -i -X POST \
https://api.sandbox.aiwyn.app/api/v1/engagements/create \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'CF-Access-Client-Id: YOUR_API_KEY_HERE' \
-H 'CF-Access-Client-Secret: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"clientId": 420,
"fiscalYear": 2024,
"partnerStaffId": 53,
"managerStaffId": 15,
"primaryContactId": 101,
"engagementLetterTemplateId": 5
}'{ "id": 34567 }