updateAssociate()


Update Associate.

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

Parameters:

Name Type Description
distributorToken string No description
associateEmail integer No description
associateData object No description
-email string
-locale stringDefines language and text formatting for the user. E.g. "en_US", "fr_FR"
-country string2-letter country code
-currency stringChoose 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": "updateAssociate",
    "params": {
        "distributorToken": "Xlrx-SjTLVMCsaRsOf2q2hvWKOlrF57yHknDRRRMX-13Fz-x",
        "associateEmail": "old@associate.com",
        "associateData": {
            "email": "john@associate.com",
            "locale": "fr_FR",
            "country": "FR",
            "currency": "EUR",
            "firstName": "John",
            "lastName": "Associate",
            "siteName": "John's Blog",
            "siteUrl": "http:\/\/blog.john.com",
            "publisherData": ""
        }
    },
    "jsonrpc": "2.0",
    "id": 1
}

Response:

{
    "result": {
        "id": "132013808",
        "email": "john@associate.com",
        "currency": "EUR",
        "locale": "fr_FR",
        "country": "FR",
        "firstName": "John",
        "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 - updateAssociate()

Back to Associates