Activate Sync

This function is used enables a specific account to sync with their Salesforce and allow all changes to be reflected within Salesforce.

Path Parameters

customerIdIntegerThe Fusebill ID of the customer to sync with Salesforce.
curl -X POST "{customerId}" \
	-H "Content-Type: application/json" \
	-H "Content-Length: 0" \
	-H "Authorization: Basic {APIKey}"
//Json Payload
int customerId = {customerId};
//Setup API key
string apiKey = "{APIKey}";
//Configure URI
WebRequest request = WebRequest.Create("HTTPS://"+customerId);
//Set Content Length
request.ContentLength = 0;
//Add Content type
request.ContentType = "application/json";
//Add Api key authorization
request.Headers.Add(HttpRequestHeader.Authorization, "Basic " + apiKey);
//Set request method
request.Method = "POST";
//Perform the request
var httpResponse = (HttpWebResponse)request.GetResponse();
//Record the response from our request
var result = "";
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
  result = streamReader.ReadToEnd();
#Import library JSON
import json
#Import library Requests
import requests
#Pass in a dictionary to the Headers parameter
headers = {'Authorization' : 'Basic {APIKey}', 'Content-Type' : 'application/json'}
#Pass in a dictionary to the Payload parameter
#payload = {"fusebillID":{id},"salesforceId":'0014100000JJ3wt'}
#Pass in your URI, Payload and Headers
r ='{id}', headers=headers)
This request does not have a JSON payload
   "companyName":"Stolen Bikes",
   "primaryEmail":"[email protected]",
   "secondaryEmail":"[email protected]",

    "ErrorId": 0,
    "HttpStatusCode": 404,
    "Errors": [
            "Key": "Api Error",
            "Value": "Customer with id 12 not found."