curl --request PATCH \
--url https://app.aiinsurance.io/api/external/companies/{companyId}/payees/{payeeId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Smith & Partners Law Firm"
}
'
{
"id": "550e8400-e29b-41d4-a716-446655440001",
"companyId": "660e8400-e29b-41d4-a716-446655440000",
"name": "Smith & Partners Law Firm",
"payeeType": "lawFirm",
"email": "newcontact@smithlaw.com",
"alternateEmails": [
"billing@smithlaw.com",
"legal@smithlaw.com"
],
"phoneNumber": "+1-555-999-8888",
"description": "Defense law firm specializing in insurance litigation",
"address": "123 Legal Plaza, Suite 500, New York, NY 10001",
"addressStructured": {
"streetNumber": "123",
"streetName": "Legal Plaza",
"city": "New York",
"state": {
"short": "NY",
"long": "New York"
},
"postalCode": "10001",
"country": "US"
},
"lawFirmType": "defense",
"bankInfo": {
"bankAccountNumber": "****4321",
"bankRoutingNumber": "****6789"
},
"taxIdNumber": "12-3456789",
"externalPayee": null,
"createdAt": "2025-01-15T10:30:00.000Z",
"createdBy": "880e8400-e29b-41d4-a716-446655440000",
"updatedAt": "2025-01-20T09:00:00.000Z",
"updatedBy": "880e8400-e29b-41d4-a716-446655440000"
}
Payees
Update Payee
Updates an existing payee. Only send fields you want to change.
Optional update fields:
name- Update payee namepayeeType- Update payee typeemail- Update email address (send null to clear)alternateEmails- Update alternate emailsphoneNumber- Update phone numberdescription- Update descriptionaddress- Update unstructured addressaddressStructured- Update structured addresslawFirmType- Update law firm typebankInfo- Update bank informationtaxIdNumber- Update tax ID numberexternalPayee- Update external payee referencecreatedAt- Update creation timestamp (for imports)
Required permission: company.payee:create
PATCH
/
api
/
external
/
companies
/
{companyId}
/
payees
/
{payeeId}
curl --request PATCH \
--url https://app.aiinsurance.io/api/external/companies/{companyId}/payees/{payeeId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Smith & Partners Law Firm"
}
'
{
"id": "550e8400-e29b-41d4-a716-446655440001",
"companyId": "660e8400-e29b-41d4-a716-446655440000",
"name": "Smith & Partners Law Firm",
"payeeType": "lawFirm",
"email": "newcontact@smithlaw.com",
"alternateEmails": [
"billing@smithlaw.com",
"legal@smithlaw.com"
],
"phoneNumber": "+1-555-999-8888",
"description": "Defense law firm specializing in insurance litigation",
"address": "123 Legal Plaza, Suite 500, New York, NY 10001",
"addressStructured": {
"streetNumber": "123",
"streetName": "Legal Plaza",
"city": "New York",
"state": {
"short": "NY",
"long": "New York"
},
"postalCode": "10001",
"country": "US"
},
"lawFirmType": "defense",
"bankInfo": {
"bankAccountNumber": "****4321",
"bankRoutingNumber": "****6789"
},
"taxIdNumber": "12-3456789",
"externalPayee": null,
"createdAt": "2025-01-15T10:30:00.000Z",
"createdBy": "880e8400-e29b-41d4-a716-446655440000",
"updatedAt": "2025-01-20T09:00:00.000Z",
"updatedBy": "880e8400-e29b-41d4-a716-446655440000"
}
Authorizations
Path Parameters
Body
application/json
Request body for updating a payee. Only include fields you want to change.
Response
Payee updated successfully
A payee entity (law firm, expert, vendor, etc.)
Was this page helpful?
