Error codes, live invite amendment webhooks and bond document links
New features
- Error codes on the invite amendment endpoints.
PATCH /v1/invites/{id},POST /v1/invites/{id}/invite-recipients,PATCH /v1/invite-recipients/{id}andDELETE /v1/invite-recipients/{id}now return a machine-readableerror_codein their error responses, except for errors raised while authenticating your request. Avalidation_erroralso includesfield_errors, with the path,codeandmessageof each rejected field. See Error codes. - Invite amendment webhooks for live invites.
invite.updated,invite_recipient.added,invite_recipient.updatedandinvite_recipient.removedare now sent for live invites. See Webhooks.
Updates
- Bond document links. A bond’s
document_linknow returns the bond’s PDF with a plainGET, and no API key is needed. Links are long-lived. If one stops working, fetch the bond again for a fresh link. See Bond. not_startedapplicant status. An applicant’sstatusisnot_starteduntil they start their application. Make sure your integration accepts this value. See Applicant.- Unknown fields are rejected. Request bodies may only contain the fields documented for that endpoint. Any other field, at any level, returns a
400that lists each one by its path, and nothing is created or modified.metadataobjects still accept any keys. See Unknown fields. - Property access checks. Requests for an invite or application on a property your API key can’t access now return
404, the same as for one that doesn’t exist.
Invite amendments and application cancelation
New features
- Invite amendments. You can now change an invite after creating it, as long as it hasn’t been canceled, expired or converted into an application. Each change sends the matching webhook. See Amending an Invite.
- Application cancelation. Cancel an application at any point before a bond is issued, with an optional
reasonof up to 1,000 characters. You receive anapplication.status.canceledwebhook when an application is canceled, either by you or by TheGuarantors. See Canceling an Application.
Updates
expiredinvite status. An invite’sstatuscan now beexpired. See Invite.
Invite cancelation and invite status
New features
- Invite cancelation. Cancel an invite that hasn’t converted into an application. You receive an
invite.status.canceledwebhook when an invite is canceled. Canceling an invite that’s already canceled returns200and doesn’t send another webhook. See Canceling an Invite. - Invite status. Invites now include a
statusofcreated,acceptedorcanceled. See Invite.
Applicant endpoint and webhooks
New features
- Applicants. Retrieve an applicant by ID, and follow each applicant’s progress with the
applicant.status.startedandapplicant.status.submittedwebhooks. In the sandbox, trigger them throughPOST /v1/webhooks/triggerwith aninvite_recipient_id. See Triggering Events in Sandbox.