Unlatch Customer

Use this call to remove the mapping from a customer to their corresponding Geotab Reseller Customer ID

Request Parameters

PropertyTypeDescriptionRequired
fusebillIdNumberThe Fusebill generated ID which uniquely identifies the customer you wish to unlatch.Yes
Examples
curl -X POST "https://secure.fusebill.com/v1/Geotab/UnlatchCustomer" \
	-H "Content-Type: application/json" \
	-H "Content-Length: 0" \
	-H "Authorization: Basic {APIKey}" \
  -d "{fusebillId:{customerId}}"
//Json Payload
string jsonData = "{fusebillId:{customerId}}";
//Setup API key
string apiKey = "{APIKey}";
//Configure URI
WebRequest request = WebRequest.Create("HTTPS://secure.fusebill.com/v1/Geotab/UnlatchCustomer");
//Add Content type
request.ContentType = "application/json";
//Add Api key authorization
request.Headers.Add(HttpRequestHeader.Authorization, "Basic " + apiKey);
//Set request method
request.Method = "POST";
//Add the json data to request
using (var streamWriter = new StreamWriter(request.GetRequestStream()))
{
  streamWriter.Write(jsonData);
  streamWriter.Flush();
  streamWriter.Close();
}
//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}}
#Pass in your URI, Payload and Headers
r = requests.post('https://secure.fusebill.com/v1/Geotab/UnlatchCustomer', data=json.dumps(payload), headers=headers)
print(r.content)
{
 "fusebillId": 1234 
}
Response
{    
   "firstName":"John",
   "middleName":null,
   "lastName":"Doe",
   "companyName":"Stolen Bikes",
   "suffix":null,
   "primaryEmail":"[email protected]",
   "primaryPhone":"613-555-5555",
   "secondaryEmail":"[email protected]",
   "secondaryPhone":null,
   "title":"Mr",
   "reference":"1337",
   "status":"Active",
   "customerAccountStatus":"Good",
   "currency":"USD",
   "customerReference":{  
      "reference1":null,
      "reference2":null,
      "reference3":null,
      "salesTrackingCodes":[  

      ],
      "id":671201,
      "uri":"/671201"
   },
   "customerAcquisition":{  
      "adContent":null,
      "campaign":null,
      "keyword":null,
      "landingPage":null,
      "medium":null,
      "source":null,
      "id":671201,
      "uri":"/671201"
   },
   "monthlyRecurringRevenue":25.9800,
   "netMonthlyRecurringRevenue":25.9800,
   "salesforceId":"0014100000JJ3wt",
   "salesforceAccountType":null,
   "salesforceSynchStatus":"Enabled",
   "netsuiteId": null,
   "netsuiteSynchStatus": "Enabled",
   "netsuiteCustomerType": "",
   "portalUserName": null,
   "parentId": null,
   "quickBooksLatchType": null,
   "quickBooksId": null,
   "quickBooksSyncToken": null,
   "hubSpotId": null,
   "hubSpotCompanyId": null,
   "geotabId": null,
   "modifiedTimestamp": "2020-07-07T14:42:12.8536714Z",
   "createdTimestamp": "2020-07-07T12:59:17.793",
   "id": 671201,
   "uri": "/customers/671201"
}
{
    "ErrorId": 0,
    "HttpStatusCode": 404,
    "Errors": [
        {
            "Key": "Api Error",
            "Value": "Customer with id 123 not found."
        }
    ]
}
Language
Authorization