Profiles

The profile contains all pertinent information regarding an account.

Retrieve a Profile

Will retrieve the profile object

GET /v1/{access-token}/profile
                            
use \FormSynergy\Init as FS;

$api = FS::Api();

$api->Get('profile')
    ->Where([
        'profileid' => $profileid
    ])
    ->As('GetProfile');
 
 
                            
                            
{
    "profileid": "profile-3be1fa342a520cbdf28aa43ab8edefee",
    "email": "myemail@demo.interactionapi.com",
    "address": "333 Example Street",
    "city": "Los Angeles",
    "companyname": "Company Name",
    "state": "CA",
    "zip": "90000",
    "phone": "000 000 0000",
    "lname": "Polo",
    "fname": "Marco",
    "resellerid": "reseller-3be1fa342a520cbdf28aa43ab8edefee",
    "country": "United States"
}
                            

Update a Profile

GET /v1/{access-token}/profile
                            
use \FormSynergy\Init as FS;

$api = FS::Api();

$api->Get('profile')
    ->Where([
        'profileid' => $profileid
    ])->Update([
        'companyname' => 'XYZ Company'
    ])
    ->As('UpdateProfile');
 
 
                            
                            
{
    "companyname": "XYZ Company"
}