# Create referral

This endpoint is used to create a referral within Tyro Connect.

Use the referralId that is returned in the response to identify the referral for subsequent events or retrieving the details.

Endpoint: POST /referrals
Version: 1.0

## Header parameters:

  - `Authorization` (string, required)

  - `Content-Type` (string, required)
    Enum: "application/json"

## Request fields (application/json):

  - `partnerId` (string, required)
    Your Tyro Connect partner identifier, issued during onboarding to the endpoint.

  - `partnerChannelAgreementId` (string, required)
    The ID of your channel agreement with Tyro. Determines the commercial terms applied to this referral.

  - `clientReference` (string)
    Your own reference for this referral (e.g. an internal CRM ID). Not stored by Tyro; returned in the Get Referral Status response.

  - `referralType` (string, required)
    The type of referral which determines how the merchant is priced and routed. See [Valid referral combinations](https://docs.connect.tyro.com/app/apis/referrals#valid-referral-combinations) for more information.
    Enum: "WHOLESALE", "ISO", "EFTPOS_REFERRAL", "ECOMM_ISV"

  - `merchantDetails` (object, required)
    Account object

  - `merchantDetails.abn` (string, required)
    The merchant's 11-digit Australian Business Number (ABN). Format: digits only, no spaces (e.g. 12345678901).

  - `merchantDetails.companyName` (string, required)
    The merchant's registered business or company name as it appears on the ABR.

  - `merchantDetails.tradingName` (string)
    The name the merchant trades under, if different from the company name.

  - `merchantDetails.merchantStatementValue` (number, required)
    The merchant's estimated average monthly card transaction value, in whole dollars.

  - `merchantDetails.industry` (string)
    The merchant's primary industry classification.

  - `merchantDetails.subIndustry` (string)
    The merchant's sub-industry classification.

  - `merchantContactDetails` (object, required)
    Contact object

  - `merchantContactDetails.firstName` (string, required)
    The merchant contact's first name.

  - `merchantContactDetails.lastName` (string, required)
    The merchant contact's last name.

  - `merchantContactDetails.email` (string, required)
    The merchant contact's email address. Used for onboarding communications.

  - `merchantContactDetails.phoneNumber` (string, required)
    The merchant contact's phone number in international format (e.g. +61412345678). Used for onboarding communications.

  - `productDetails` (object, required)
    Details of the products the merchant is interested in.

  - `productDetails.productsOfInterest` (array, required)
    The product the merchant is applying for.
    Enum: "TYRO_PRO_TOUCH", "TYRO_PRO_KEY", "TYRO_PRO_LITE", "BYO_PHONE", "EMBEDDED_PAYMENTS_SDK", "ECOMMERCE"

  - `pricingDetails` (object)
    In-store product pricing required for WHOLESALE and ISO referrals.

  - `pricingDetails.retailRate` (number)
    The rate applied to the merchant under your ISO agreement. Required for ISO referrals.

  - `pricingDetails.wholesaleRate` (number)
    The percentage rate applied for the merchant under your wholesale agreement. Required for WHOLESALE referrals.

  - `dollarPerTransaction` (object)
    eCommerce pricing required for ECOMM_ISV referrals.

  - `dollarPerTransaction.rate` (number)
    The eCommerce per-transaction percentage rate (e.g. 1.9).

  - `dollarPerTransaction.value` (number)
    The optional, fixed eCommerce per-transaction fee, in dollars (e.g. 0.25).

## Response 200 fields (application/json):

  - `referralId` (string, required)
    referralId

## Response 400 fields (application/json):

  - `error` (string)
    The validation error category.

  - `errorCode` (string)
    The validation error code.

  - `data` (array)
    A list of validation errors.

## Response 404 fields (application/json):

  - `error` (string)
    The validation error message.


## Response 403 fields
