Skip to Content
HomeLink Hub
Legal Verification

Accept a partnership invite

PATCH
/api/v1/legal/partnership-invites/{inviteId}/accept

Access: Bearer token required. Roles: LAWYER. Also requires: Caller must be the lawyer the invite is addressed to.

The invited lawyer accepts: the invite moves invite_pending -> contracted and acceptedAt is set. From then on the inviter can assign this lawyer to their properties. The inviter is emailed ("Your Legal Partnership Invite Was Accepted", fire-and-forget); no in-app notification or socket event is emitted. No request body. data is the updated invite with unpopulated ids. A malformed inviteId is not validated up front and surfaces as a 500. Any unexpected error inside the legal service (including a Mongoose cast or validation failure) is re-thrown as a 500 carrying the underlying error's message plus an errorData field holding the serialized underlying error.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

Access token returned by sign-in. Send it as Authorization: Bearer <token>.

Path Parameters

inviteId*string

ObjectId of the partnership invite.

Response Body

Invite accepted

application/json
  1. response
status*integer
success*boolean
message*string
data*
Example Request
curl -X PATCH 'http://localhost:4000/api/v1/legal/partnership-invites/string/accept'
Example Response
{  "status": 200,  "success": true,  "message": "Invite accepted successfully",  "data": {    "_id": "6660a7d49b1d4a0012ab3510",    "inviterId": "665f1c2e9b1d4a0012ab34c1",    "lawyerId": "665f1c2e9b1d4a0012ab34c3",    "email": "folake.adeyemi@example.com",    "status": "contracted",    "inviteNote": "We list 10-15 Lekki properties a month and need title verification.",    "invitedAt": "2026-06-04T09:15:22.481Z",    "createdAt": "2026-06-04T09:15:22.481Z",    "updatedAt": "2026-06-05T14:02:10.107Z",    "__v": 0,    "acceptedAt": "2026-06-05T14:02:10.107Z"  }}