post https://secure.fusebill.com/v1/NetSuite/LatchCustomer
This function is used to latch a customer entity to a particular NetSuite account ID.
Request Parameters
Property | Description | Type | Required |
---|---|---|---|
fusebillId | This is the ID value which uniquely identifies this customer record in the Fusebill system. | Integer | Yes |
netsuiteId | The NetSuite Account ID associated with this customer. | String | Yes |
netsuiteSyncStartDate | Date | Optional |
Examples
curl -X POST "https://secure.fusebill.com/v1/NetSuite/LatchCustomer" \
-H "Content-Type: application/json" \
-H "Authorization: Basic {APIKey}" \
-d "{fusebillId:{customerId},netSuiteId:'{NetSuiteId}'}"
#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},"NetSuiteId":'0014100000JJ3wtAAD'}
#Pass in your URI, Payload and Headers
r = requests.post('https://secure.fusebill.com/v1/NetSuite/LatchCustomer', data=json.dumps(payload), headers=headers)
print(r.content)
{
"fusebillId":12717595,
"netsuiteId":"0014100000JJ3wt",
"netsuiteSyncStartDate":"
}
Response
{
"ErrorId": 0,
"HttpStatusCode": 400,
"Errors": [
{
"Key": "Api Error",
"Value": "NetSuite Account 1 does not exist."
}
]
}