createAssociate()


Creating Associates.

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

Parameters:

Name Type Description
distributorToken string No description
associateData object No description
-emailstring
-localestringDefines language and text formatting for the user. E.g. "en_US", "fr_FR"
-countrystring2-letter country code
-currencystringChoose one: USD, EUR, GBP, CAD, AUD, NZD, SEK, DKK, NOK, TRL, ZAR, XOF
-firstName string
-lastName string
-siteName stringput the name of associate website e.g. 'John's Blog'
-siteUrl stringput 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