> ## Documentation Index
> Fetch the complete documentation index at: https://dev.ownright.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Refinance Referral Create

> Creates a new refinance referral.

```graphql Request [expandable] theme={null}
mutation RefinanceReferralCreate($input: RefinanceReferralInput!) {
  refinanceReferralCreate(input: $input) {
    referral {
      createdAt
      id
      status
      type
      updatedAt
      contacts {
        email
        firstName
        id
        isPrimary
        lastName
        phoneNumber
      }
      customAttributes {
        id
        key
        type
        value
      }
      mortgageAmount {
        amount
        currencyCode
      }
      primaryContact {
        email
        firstName
        id
        isPrimary
        lastName
        phoneNumber
      }
      propertyAddress {
        city
        country
        latitude
        longitude
        mapImageUrl
        postalCode
        province
        shortTitle
        street
        title
        unitNumber
      }
    }
    userErrors {
      code
      field
      message
    }
  }
}
```

```graphql Variables theme={null}
{
  "input": {
    "contacts": [
      {
        "email": "jane@example.com",
        "firstName": "Jane",
        "lastName": "Doe",
        "phoneNumber": "+14165551234",
        "primary": true
      }
    ],
    "customAttributes": [
      {
        "key": "example-key",
        "type": "BOOLEAN",
        "value": "example-value"
      }
    ],
    "files": [
      {
        "fileRecordId": "gid://ownright/FileRecord/1",
        "tags": [
          "example-tags"
        ]
      }
    ],
    "intentLevel": "HIGH",
    "mortgageAmount": {
      "amount": "100.00",
      "currencyCode": "CAD"
    },
    "propertyAddress": {
      "city": "Toronto",
      "country": "CANADA",
      "postalCode": "M5V 1A1",
      "province": "ALBERTA",
      "street": "123 Main St",
      "unitNumber": "Suite 100"
    }
  }
}
```

```json Response theme={null}
{
  "data": {
    "refinanceReferralCreate": {
      "referral": {
        "createdAt": "2025-01-15T10:30:00Z",
        "id": "gid://ownright/Object/1",
        "status": "CONVERTED",
        "type": "PURCHASE_PROPERTY_CLOSING",
        "updatedAt": "2025-01-15T10:30:00Z",
        "contacts": [
          {
            "email": "jane@example.com",
            "firstName": "Jane",
            "id": "gid://ownright/Object/1",
            "isPrimary": true,
            "lastName": "Doe",
            "phoneNumber": "+14165551234"
          }
        ],
        "customAttributes": [
          {
            "id": "gid://ownright/Object/1",
            "key": "example-key",
            "type": "BOOLEAN",
            "value": "example-value"
          }
        ],
        "mortgageAmount": {
          "amount": "100.00",
          "currencyCode": "CAD"
        },
        "primaryContact": {
          "email": "jane@example.com",
          "firstName": "Jane",
          "id": "gid://ownright/Object/1",
          "isPrimary": true,
          "lastName": "Doe",
          "phoneNumber": "+14165551234"
        },
        "propertyAddress": {
          "city": "Toronto",
          "country": "CANADA",
          "latitude": 1,
          "longitude": 1,
          "mapImageUrl": "https://example.com",
          "postalCode": "M5V 1A1",
          "province": "ALBERTA",
          "shortTitle": "123 Main St, Toronto",
          "street": "123 Main St",
          "title": "123 Main St, Toronto",
          "unitNumber": "Suite 100"
        }
      },
      "userErrors": []
    }
  }
}
```

## Mutation field

`refinanceReferralCreate`

### Arguments

**input** `RefinanceReferralInput!` *required*

Input required to create a refinance referral.

**properties**

**contacts** `[ReferralContactCreateInput!]`

Contacts to be associated with the referral.

**properties**

**email** `String!` *required*

The email for the referral contact.

**firstName** `String!` *required*

The first name for the referral contact.

**lastName** `String`

The last name for the referral contact.

**phoneNumber** `String`

The phone number for the referral contact.

**primary** `Boolean!` *required*

Whether this contact is the primary contact for the referral.

**customAttributes** `[CustomAttributeCreateInput!]`

Custom attributes to be associated with the referral.

**properties**

**key** `String!` *required*

The key of the custom attribute.

**type** `CustomAttributeType!` *required*

The type of the custom attribute.

**value** `String!` *required*

The value of the custom attribute.

**files** `[FileBulkCommitInput!]!` *required*

The files to be associated with the referral.

**properties**

**fileRecordId** `FileRecordGID!` *required*

The identifier of a staged file record to commit.

**tags** `[String!]!` *required*

Tags to add to the committed versioned file.

**intentLevel** `ReferralIntentLevel`

The intent level of the referral.

**mortgageAmount** `MoneyInput`

The amount of the new mortgage.

**properties**

**amount** `Decimal!` *required*

The amount of money.

**currencyCode** `CurrencyCode!` *required*

The currency of the money.

**propertyAddress** `AddressInput!` *required*

The address of the property being refinanced.

**properties**

**city** `String`

The city of the address.

**country** `Country`

The country of the address.

**postalCode** `String`

The postal code of the address.

**province** `Province`

The province of the address.

**street** `String`

The street name and number of the address.

**unitNumber** `String`

The unit number, suite number, apartment number, etc. of the address.

### Return fields

**referral** `RefinanceReferral`

The created referral.

**properties**

**contacts** `[ReferralContact!]!` *required*

The contacts for the referral.

**properties**

**email** `String!` *required*

The email of the contact.

**firstName** `String!` *required*

The first name of the contact.

**id** `GID!` *required*

ID of the object.

**isPrimary** `Boolean!` *required*

Whether the contact is the primary contact.

**lastName** `String`

The last name of the contact.

**phoneNumber** `String`

The phone number of the contact.

**createdAt** `ISO8601DateTime!` *required*

The time the referral was created.

**customAttributes** `[CustomAttribute!]!` *required*

The custom attributes for the referral.

**properties**

**id** `GID!` *required*

ID of the object.

**key** `String!` *required*

The key of the custom attribute.

**type** `CustomAttributeType!` *required*

The type of the custom attribute.

**value** `String!` *required*

The value of the custom attribute.

**id** `GID!` *required*

ID of the object.

**mortgageAmount** `Money`

The amount of the new mortgage involved in the refinance.

**properties**

**amount** `Decimal!` *required*

The amount of money.

**currencyCode** `CurrencyCode!` *required*

The currency of the money.

**primaryContact** `ReferralContact!` *required*

The primary contact for the referral.

**properties**

**email** `String!` *required*

The email of the contact.

**firstName** `String!` *required*

The first name of the contact.

**id** `GID!` *required*

ID of the object.

**isPrimary** `Boolean!` *required*

Whether the contact is the primary contact.

**lastName** `String`

The last name of the contact.

**phoneNumber** `String`

The phone number of the contact.

**propertyAddress** `Address`

The address of the property that is involved in the refinance.

**properties**

**city** `String!` *required*

The city of the address.

**country** `Country!` *required*

The country of the address.

**latitude** `Float`

The latitude of the address.

**longitude** `Float`

The longitude of the address.

**mapImageUrl** `Url`

A link to a map with a pointer on the address's location.

**postalCode** `String!` *required*

The postal code of the address.

**province** `Province!` *required*

The province of the address.

**shortTitle** `String!` *required*

The shortened title for the address.

**street** `String!` *required*

The street name and number of the address.

**title** `String!` *required*

The full title for the address.

**unitNumber** `String`

The unit number, apartment number, suite number etc.

**status** `ReferralStatus!` *required*

The current status of the referral.

**type** `ReferralType!` *required*

The type of the referral.

**updatedAt** `ISO8601DateTime!` *required*

The time the referral was updated.

**userErrors** `[RefinanceReferralCreateUserError!]!` *required*

List of errors that occurred while executing the mutation.

**properties**

**code** `RefinanceReferralCreateUserErrorCode`

Error code associated with the error.

**field** `[String!]`

The path to the input field that caused the error.

**message** `String!` *required*

A description of the error.

### Types

* [`Address`](https://dev.ownright.com/partner-api/reference/members/objects/address) (object) — Represents an address.
* [`AddressInput`](https://dev.ownright.com/partner-api/reference/members/inputs/address-input) (input) — Input to create or update an address.
* [`Country`](https://dev.ownright.com/partner-api/reference/members/enums/country) (enum) — Possible countries.
* [`CurrencyCode`](https://dev.ownright.com/partner-api/reference/members/enums/currency-code) (enum) — Possible currency codes.
* [`CustomAttribute`](https://dev.ownright.com/partner-api/reference/members/objects/custom-attribute) (object) — A custom attribute.
* [`CustomAttributeCreateInput`](https://dev.ownright.com/partner-api/reference/members/inputs/custom-attribute-create-input) (input) — Input to create a custom attribute.
* [`CustomAttributeType`](https://dev.ownright.com/partner-api/reference/members/enums/custom-attribute-type) (enum) — Possible custom attribute types.
* [`Decimal`](https://dev.ownright.com/partner-api/reference/members/scalars/decimal) (scalar) — A signed decimal number, which supports arbitrary precision and is serialized as a string.
* [`FileBulkCommitInput`](https://dev.ownright.com/partner-api/reference/members/inputs/file-bulk-commit-input) (input) — Input for a file to committed as part of a bulk file commit.
* [`FileRecordGID`](https://dev.ownright.com/partner-api/reference/members/scalars/file-record-gid) (scalar) — A global identifier for a FileRecord object in format of 'gid://ownright/FileRecord/ID'.
* [`GID`](https://dev.ownright.com/partner-api/reference/members/scalars/gid) (scalar) — A global identifier for an object in the format of 'gid://ownright/ObjectType/ID'.
* [`ISO8601DateTime`](https://dev.ownright.com/partner-api/reference/members/scalars/iso8601-date-time) (scalar) — An ISO 8601-encoded datetime
* [`ImageTransformInput`](https://dev.ownright.com/partner-api/reference/members/inputs/image-transform-input) (input) — Input to transform an image.
* [`Money`](https://dev.ownright.com/partner-api/reference/members/objects/money) (object) — Represents money.
* [`MoneyInput`](https://dev.ownright.com/partner-api/reference/members/inputs/money-input) (input) — Input that represents money.
* [`Province`](https://dev.ownright.com/partner-api/reference/members/enums/province) (enum) — Possible provinces.
* [`ReferralContact`](https://dev.ownright.com/partner-api/reference/members/objects/referral-contact) (object) — A contact for a referral.
* [`ReferralContactCreateInput`](https://dev.ownright.com/partner-api/reference/members/inputs/referral-contact-create-input) (input) — The input to create a referral contact.
* [`ReferralIntentLevel`](https://dev.ownright.com/partner-api/reference/members/enums/referral-intent-level) (enum) — Possible levels of intent for a referral.
* [`ReferralStatus`](https://dev.ownright.com/partner-api/reference/members/enums/referral-status) (enum) — Possible statuses for referrals.
* [`ReferralType`](https://dev.ownright.com/partner-api/reference/members/enums/referral-type) (enum) — Possible types of referrals.
* [`RefinanceReferral`](https://dev.ownright.com/partner-api/reference/members/objects/refinance-referral) (object) — A referral for a refinance.
* [`RefinanceReferralCreatePayload`](https://dev.ownright.com/partner-api/reference/members/objects/refinance-referral-create-payload) (object) — Return type for the `refinanceReferralCreate` mutation.
* [`RefinanceReferralCreateUserError`](https://dev.ownright.com/partner-api/reference/members/objects/refinance-referral-create-user-error) (object) — An error that could occur during the execution of the `refinanceReferralCreate` mutation.
* [`RefinanceReferralCreateUserErrorCode`](https://dev.ownright.com/partner-api/reference/members/enums/refinance-referral-create-user-error-code) (enum) — Possible error codes that can be returned by RefinanceReferralCreateUserError.
* [`RefinanceReferralInput`](https://dev.ownright.com/partner-api/reference/members/inputs/refinance-referral-input) (input) — Input to create a refinance referral.
* [`Url`](https://dev.ownright.com/partner-api/reference/members/scalars/url) (scalar) — A valid URL, transported as a string.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.