Legal Verification
Reject a partnership invite
PATCH
Access: Bearer token required. Roles: LAWYER. Also requires: Caller must be the lawyer the invite is addressed to.
The invited lawyer declines: the invite moves invite_pending -> rejected and rejectedAt is set. The inviter is not emailed or notified. A rejected invite no longer blocks the inviter from sending a new one to the same lawyer. No request body. A malformed inviteId 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.
bearerAuthheader
AuthorizationBearer <JWT>Access token returned by sign-in. Send it as Authorization: Bearer <token>.
inviteId*stringObjectId of the partnership invite.
Invite rejected
application/json- response
status*integersuccess*booleanmessage*stringdata*curl -X PATCH 'http://localhost:4000/api/v1/legal/partnership-invites/string/reject'Example Response
{ "status": 200, "success": true, "message": "Invite rejected successfully", "data": { "_id": "6660a7d49b1d4a0012ab3510", "inviterId": "665f1c2e9b1d4a0012ab34c1", "lawyerId": "665f1c2e9b1d4a0012ab34c3", "email": "folake.adeyemi@example.com", "status": "rejected", "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, "rejectedAt": "2026-06-05T14:02:10.107Z" }}
HomeLink Hub