createAssociate()

Creating Associates.

Info: Enterprise account required. Contact us if you're interested about opening Enterprise account.

Parameters:

Name Type Description
distributorToken string
associateData object
-   email string
-   locale string Defines language and text formatting for the user. E.g. "en_US", "fr_FR"
-   country string 2-letter country code
-   currency string Choose one: USD, EUR, GBP, CAD, AUD, NZD, SEK, DKK, NOK, TRL, ZAR, XOF
-   firstName string
-   lastName string
-   siteName string put the name of associate website e.g. 'John's Blog'
-   siteUrl string put the url of associate website e.g. 'http://blog.john.com'
-   publisherData string
- required parameter

Request:

    {
    "method": "createAssociate",
    "params": {
    "distributorToken": "Xlrx-SjTLVMCsaRsOf2q2hvWKOlrF57yHknDRRRMX-13Fz-x",
    "associateData": {
    "email": "new@associate.com",
    "locale": "en_US",
    "country": "Poland",
    "currency": "EUR",
    "firstName": "New",
    "lastName": "Associate",
    "siteName": "John's Blog",
    "siteUrl": "http://blog.john.com",
    "publisherData": ""
    }
    },
    "jsonrpc": "2.0",
    "id": 1
    }

Response:

    {
    "result": {
    "id": 132013808,
    "email": "new@associate.com",
    "currency": "EUR",
    "locale": "en_US",
    "country": "Poland",
    "firstName": "New",
    "lastName": "Associate",
    "siteName": "John's Blog",
    "siteUrl": "http://blog.john.com",
    "publisherData": "",
    "licenseType": "plug_and_go"
    },
    "id": "1",
    "error": null,
    "jsonrpc": "2.0"
    }

Remember! you can always check it by yourself using API Console - createAssociate()

Back to Associates