/
Create a single engagemen...
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 contact
Optional fields:
engagementLetterTemplateId/documentTemplateId— which template to useengagementNameTemplate— 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
Real Example:
curl --location 'https://{{host}}/api/v1/engagements/create' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data '{
"clientId": 420,
"fiscalYear": 2024,
"partnerStaffId": 53,
"managerStaffId": 15,
"primaryContactId": 101
}'Security
BearerAuth
Unique identifier of the secondary client contact
Example:102
Unique identifier of the engagement letter template to use
Example:5
Unique identifier of the document template to use
Example:7
Template string used to generate the engagement name. Overrides the firm's default naming template.
Example:"{{fiscal_year.year}} {{letter_template.name}} {{client.number}}"
List of staff member IDs to CC on the engagement
Example:
[ 20, 21 ]
IDs of additional clients to associate with the engagement
Example:
[ 790, 791 ]
IDs of jobs (projects) to link to this engagement
Example:
[ 101, 102 ]
- Mock serverhttps://api.doc.aiwyn.ai/_mock/bundle/api/v1/engagements/create
- Sandboxhttps://demo.api.aiwyn.ai/api/v1/engagements/create
- Staginghttps://staging.api.aiwyn.app/api/v1/engagements/create
- Minimal required fields
- All fields provided
curl -i -X POST \
https://api.doc.aiwyn.ai/_mock/bundle/api/v1/engagements/create \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"clientId": 420,
"fiscalYear": 2024,
"partnerStaffId": 53,
"managerStaffId": 15,
"primaryContactId": 101
}'Response
{ "id": 34567 }