Making referrals
A quick how-to guide on sending client referrals to Ownright
To create a referral, make a GraphQL mutation request to our API using one of the
available referral create mutations (e.g. propertyClosingReferralCreate
). This allows
you to refer a client for a specific type of real estate transaction.
🛠️ Steps to create a referral
Choose a referral type and mutation
You’ll need to specify the type of referral you’d like to make. Once you know what kind of referral, choose to use the appropriate GraphQL mutation:
Referral type | Mutation | Notes |
---|---|---|
Purchase | propertyClosingReferralCreate | Supply the PURCHASE_PROPERTY_CLOSING type. |
Sale | propertyClosingReferralCreate | Supply the SALE_PROPERTY_CLOSING type. |
Refinance | refinanceReferralCreate | |
Status Certificate Review | statusCertificateReviewCreate |
Read our Partner API reference for all of the details on each mutation.
Construct the GraphQL mutation with all of the inputs
Once you know what type of referral you want to make, you need to construct the request with your desired inputs, for example:
Handle the response
On success, the response will include the newly created referral and any fields you have queried for.
If something goes wrong, check the userErrors
array for the error code and message (read more about
errors in our Errors and response codes documentation)
✅ Example response
❌ Error response
🧠 Tips
- Ensure the email is valid and unique for each contact.
You can include multiple contacts, but only one should be marked primary: true.