Read the endpoint documentation below for information on the data available through the API.
Returns an array of Publish Point category objects that define the general topic of an affiliate's Publish Point. The selected category ID is required as the PublishPointCategory in the New Affiliate call.
The endpoint applies to the organisation identified by the {OrganisationID} parameter.
| Environment | Verb | Example URL |
|---|---|---|
| Staging | GET | https://api-gatencp.netrefer.com/v3/org/{OrganisationID}/categories |
| Production | GET | https://api-gate.netrefer.com/v3/org/{OrganisationID}/categories |
A successful call returns an array of Category items:
| Field | Type | Usage | Example |
|---|---|---|---|
| ID | Number | Unique ID for the category. Used as the PublishPointCategory in the SignUp call when the category is selected. | 4 |
| Name | String | Name of the category. | “Sports - Soccer” |
{
"ID": 4,
"Name": "Sports - Soccer"
}
Returns an array of SubscriptionDetails objects representing the organisations available to the current user.
| Environment | Verb | Example URL |
|---|---|---|
| Staging | GET | https://api-gatencp.netrefer.com/v3/subscriptions |
| Production | GET | https://api-gate.netrefer.com/v3/subscriptions |
A successful call returns an array of SubscriptionDetails objects:
| Field | Type | Usage | Example |
|---|---|---|---|
| SubscriptionID | string (GUID) | The OrganisationID required to use the API. | d937648e-6fd7-45b3-a38d-be5fe4f88ec |
| SubscriptionName | string | Name of the subscription. Used for reference only and not required by the API. | Subscription 1 |
{
"subscriptionID": "d937648e-6fd7-45b3-a38d-be5fe4f88ec",
"SubscriptionName": "Subscription 1"
}
Returns an array of Brand objects representing the brands supported by the organisation.
| Environment | Verb | Example URL |
|---|---|---|
| Staging | GET | https://api-gatencp.netrefer.com/v3/org/{OrganisationID}/brands |
| Production | GET | https://api-gate.netrefer.com/v3/org/{OrganisationID}/brands |
A successful call returns an array of Brand items:
| Field | Type | Usage | Example |
|---|---|---|---|
| ID | Number | Unique ID for the brand. Used as the BrandID in the SignUp call when the brand is selected. | 2 |
| Name | String | Name of the brand, which can be displayed to the registrant during registration. | “LlamaCasino” |
{
"ID": 2,
"Name": "LlamaCasino"
}
Returns a list of Reward Plans that are visible and available during registration. The registrant can select a Reward Plan, which is passed in the main SignUp call as the CommissionPlanID property.
| Environment | Verb | Example URL |
|---|---|---|
| Staging | GET | https://api-gatencp.netrefer.com/v3/org/{OrganisationID}/rewardplans |
| Production | GET | https://api-gate.netrefer.com/v3/org/{OrganisationID}/rewardplans |
A successful call returns a list of Reward Plans.
| Field | Type | Usage | Example |
|---|---|---|---|
| ID | Number | Unique ID for the Reward Plan. Used as the CommissionPlanID in the SignUp call when the plan is selected. | 75 |
| Name | String | Name of the Reward Plan, which can be displayed to the registrant. | “Rev Share 25%” |
{
"ID": 75,
"Name": "Rev Share 25%"
}
Returns a list of available payment methods. The selected payment method is passed in the main SignUp call as the PaymentMethodID property.
Each payment method may include additional required fields. These are passed in the main SignUp call as the PaymentMethodDetails object.
| Environment | Verb | Example URL |
|---|---|---|
| Staging | GET | https://api-gatencp.netrefer.com/v3/org/{OrganisationID}/paymentmethods |
| Production | GET | https://api-gate.netrefer.com/v3/org/{OrganisationID}/paymentmethods |
A successful call returns an array of Payment Method items:
| Field | Type | Usage | Example |
|---|---|---|---|
| ID | Number | Unique ID for the payment method. | 7 |
| Name | String | Name of the payment method. | “Bank Wire Transfer” |
| Code | String | Payment method code. | “dd” |
| Fields | Array | Additional fields required by the payment method. | See JSON example |
{
"ID": 7,
"Name": "Bank Wire Transfer",
"Code": "dd",
"Fields": [
{
"ID": 1,
"Name": "Bank Name",
"Required": true
},
{
"ID": 2,
"Name": "Other Bank Name",
"Required": false
}
]
}
IDs and field requirements may differ depending on your system.
In this example, the registrant selects “Skrill (Money Bookers)” as their payment method. The payment method has an ID of 6 and requires the following field:
| ID | Name | Required |
|---|---|---|
| 10 | Skrill (MoneyBookers) Email | Yes |
The required field is completed by the registrant and included in the SignUp API call using the following structure:
{
...
"PaymentMethodID": 6, //This is the ID of the chosen Payment Method
"PaymentMethodDetails": [
{
"ID": 10,
"Value": "test.affiliate@example.com" //This is the value of the field that the registrant filled in
}
//If we had any more fields, we would insert them here
]
}
The New Affiliate endpoint registers a new affiliate. Depending on the system configuration, it may also send confirmation or welcome emails.
The POST method accepts the affiliate details in JSON format within the request body. Some fields require IDs retrieved from the other endpoints described above.
| Environment | Verb | Example URL |
|---|---|---|
| Staging | POST | https://api-gatencp.netrefer.com/v3/org/{OrganisationID}/signup/newAffiliate |
| Production | POST | https://api-gate.netrefer.com/v3/org/{OrganisationID}/signup/newAffiliate |
| Field | Type | Usage | Example |
|---|---|---|---|
| SecurityAnswer | String | Answer to the selected security question. | “daisy” |
| SecurityQuestionID | Number | ID of the selected security question. Leave null if not required. | 10 |
| Name | String * | Name of the affiliate company. | “Llama Affiliates” |
| Title | String | Affiliate title. | “HRH” |
| FirstName | String | Affiliate first name. | “David” |
| Surname | String | Affiliate surname. | “Tenant” |
| UserName | String * | Username used by the affiliate to log in to the portal. | “laff_user” |
| Password | String * | Password used by the affiliate to log in. May be subject to length and composition requirements. | “secretPassword1123!” |
| UserTypeID | Number | Defaults to 1. | 1 |
| IDNumber | String | Affiliate ID number. | “42601F” |
| Address1 | String | First address field. | “NetRefer” |
| Address2 | String | Second address field. | “High Street” |
| City | String | City. | “Valletta” |
| Country | String * | Three-letter ISO country code for the affiliate's country. | “MLT” |
| State | String | State or region. | “Malta” |
| Zip | String | ZIP or postal code for the affiliate's address. | “ADD 0123” |
| Currency | String | Affiliate currency in ISO 4217 format. | “EUR” |
| Messenger | String | Messenger address. | “tr.dis@example.com” |
| Skype | String | Skype handle. | “tr.dis@example.com” |
| String * | Affiliate email address. | “llamaffiliates@example.com” | |
| Telephone | String * | Affiliate telephone number. | “123456789” |
| TelephoneDialCode | String * | Three-letter ISO country code used to determine the dialling code prepended to the telephone number. | “GBR” |
| Fax | String | Affiliate fax number. | “123456789” |
| FaxDialCode | String | Three-letter ISO country code used to determine the dialling code preceding the fax number. | “GBR” |
| UserLanguage | String * | Two-letter ISO language code for the affiliate's language. | “en” |
| PublishPointName | String * | Name of the Publish Point, such as the affiliate's website. | “Camelid Racing Secrets” |
| PublishPointLanguage | String * | Two-letter ISO language code for the Publish Point. | “en” |
| PublishPointCategory | Number * | Publish Point Category ID retrieved from GET /categories. | 5 |
| PublishPointType | Number | Publish Point Type, such as website or blog post. Defaults to Website if not supplied. | 1 |
| URL | String * | URL of the affiliate's website. | “www.example.com/sports” |
| ParentAffiliateID | Number | ||
| ReceivePromotions | Boolean | Indicates whether the affiliate has consented to receive promotional messages. | true |
| BrandID | Number * | Brand ID under which the affiliate will be registered. Retrieve available IDs using GET /brands. | 5 |
| CommissionPlanID | Number | Reward Plan ID for the affiliate. If not supplied, the default plan configured in the system is used. Retrieve available IDs using GET /rewardPlans. | 2 |
| PaymentMethodID | Number * | Payment Method ID retrieved from GET /paymentMethods. | 10 |
| PayeeName | String * | Name of the entity receiving payments. | “D. Tenant” |
| PaymentMethodDetails | Object * | Additional fields required by the selected Payment Method. Retrieve the required fields using GET /paymentMethods. | |
| TaxRegistrationNumber | String | Affiliate tax registration number. | “C12345618232” |
| CompanyRegistrationNumber | String | Affiliate company registration number. | “C123456” |
| RegisteredForTax | Boolean | Indicates whether the affiliate is registered for tax. | true |
| TaxCountry | String * | Country where the affiliate is registered for tax, in ISO ALPHA-3 format. Required if the affiliate is registered for tax. | “GBR” |
| TosDocumentGuid | String | Unique identifier for the Terms of Service accepted by the affiliate. Retrieve this using the /TermsOfService endpoint. | “b1296ad7-a57b-41a8-9f35-1098bf7477c4” |
| AcceptTos | Boolean | Indicates whether the affiliate has accepted the Terms of Service identified by TosDocumentGuid. If TosDocumentGuid is supplied, this value must be true. | true |
| Field | Type | Usage | Example |
|---|---|---|---|
| ID | Number * | Payment Method Detail ID retrieved from GET /paymentMethods. | 57 |
| Value | String * | Value of the Payment Method Detail. | “test.affiliate@example.com” |
{
"SecurityAnswer": "daisy",
"SecurityQuestionID": 10,
"Address1": "NetRefer",
"Address2": "High Street",
"BrandID": 5,
"City": "Valletta",
"CommissionPlanID": 2,
"Country": "MLT",
"Currency": "EUR",
"Email": "llamaffiliates@example.com",
"Fax": "string",
"FaxDialCode": "string",
"FirstName": "David",
"HasAdminFees": false,
"IDNumber": "42601F",
"Messenger": "tr.dis@example.com",
"Name": "llamAffiliates",
"ReceivePromotions": true,
"Skype": "tr.dis@example.com",
"State": "Malta",
"Surname": "Tenant",
"Telephone": "123456789",
"TelephoneDialCode": "GBP",
"Title": "HRH",
"Zip": "ADD123",
"PublishPointLanguage": "en",
"PublishPointName": "Camelid Racing Secrets",
"PublishPointCategory": 5,
"PublishPointType": 1,
"URL": "www.example.com/sports",
"UserLanguage": "en",
"Password": "secretPassword1123!",
"Position": "string",
"UserName": "laff",
"UserTypeID": 1,
"PaymentMethodID": 10,
"PayeeName": "D. Tennant",
"PaymentMethodDetails": [
{
"ID": 57,
"Value": "test.affiliate@example.com"
}
],
"TaxRegistrationNumber": "C12345618232",
"CompanyRegistrationNumber": "C123456",
"RegisteredForTax": true,
"TaxCountry": "GBR",
"TosDocumentGuid": "b1296ad7-a57b-41a8-9f35-1098bf7477c4",
"AcceptTos": true
}
The Terms of Service endpoint returns the Terms of Service that the registrant must accept. The BrandID and LanguageCode must be supplied to retrieve the applicable Terms of Service.
If Terms of Service are not available for the specified language, the default Terms of Service are returned
If Terms of Service have not been configured, the endpoint returns a 404 Not Found response.
When the registrant accepts the Terms of Service, the Terms of Service identifier must be included in the New Affiliate call as TosDocumentGuid.
| Environment | Verb | Example URL |
|---|---|---|
| Staging | GET | https://api-gatencp.netrefer.com/v3/org/{OrganisationID}/TermsOfService/{BrandID}/{LanguageCode} |
| Production | GET | https://api-gate.netrefer.com/v3/org/{OrganisationID}/TermsOfService/{BrandID}/{LanguageCode} |
A successful call returns the Terms of Service to display to the registrant and the identifier required for the New Affiliate call.
| Field | Type | Usage | Example |
|---|---|---|---|
| ToSID | String (GUID) | Unique ID for the Terms of Service. Used as the TosDocumentGuid in the SignUp call. | b1296ad7-a57b-41a8-9f35-1098bf7477c4 |
| Content | String | Terms of Service content that the registrant must accept. | “Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua [...]” |
{
"ToSID": "b1296ad7-a57b-41a8-9f35-1098bf7477c4",
"Content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua [...]"
}