Unlatch Customer

Use this call to remove the mappings from a customer to their HubSpot IDs. This unlatches the customer from both the contact visitor ID (vid) and the company ID.

Path Parameters

customerIdNumberThe Fusebill generated ID which uniquely identifies the customer you wish to unlatch.
curl -X POST "https://secure.fusebill.com/v1/HubSpot/UnlatchCustomer/{customerId}" \
	-H "Content-Type: application/json" \
	-H "Content-Length: 0" \
	-H "Authorization: Basic {APIKey}"
int pathParameter = {customerId};
//Setup API key
string apiKey = "{APIKey}";
//Configure URI
WebRequest request = WebRequest.Create("HTTPS://secure.fusebill.com/v1/HubSpot/UnlatchCustomer/"+pathParameter);
//Add Content type
request.ContentType = "application/json";
request.ContentLength = 0;
//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 your URI and Headers
r = requests.post('https://secure.fusebill.com/v1/HubSpot/UnlatchCustomer/{customerId}', headers=headers)
   "companyName":"Stolen Bikes",
   "primaryEmail":"[email protected]",
   "secondaryEmail":"[email protected]",

    "portalUserName": null,
    "parentId": null,
    "quickBooksLatchType": null,
    "quickBooksId": null,
    "quickBooksSyncToken": null,
    "hubSpotId": null,
    "hubSpotCompanyId": null,
    "modifiedTimestamp": "2020-04-28T14:12:00.0301255Z",
    "id": 2554529,
    "uri": "/customers/2554529"
    "ErrorId": 0,
    "HttpStatusCode": 404,
    "Errors": [
            "Key": "Api Error",
            "Value": "Customer with id 123 not found."