API Documentation

AccountsEdit Account

Method: /customers/[id].[format]
Fields:
NameData TypeDescription
nameStringBusiness Name
office_emailStringOffice Email Address
office_numberStringOffice Phone Number
office_faxStringOffice Fax
urlStringCompany Website Address
billing_address_1StringBilling Address Line 1
billing_address_2StringBilling Address Line 2
billing_cityStringBilling City
billing_regionStringBilling Region (Province or State)
billing_countryStringBilling Country
billing_postal_codeStringBilling Postal Code or Zip Code
shipping_address_1StringShipping Address Line 1
shipping_address_2StringShipping Address Line 2
shipping_cityStringShipping City
shipping_regionStringShipping Region (Province or State)
shipping_countryStringShipping Country
shipping_postal_codeStringShipping Postal Code or Zip Code
Permissions Required:
  • View Customers and/or Prospects and/or Suppliers
  • Modify Customers and/or Prospects and/or Suppliers
Syntax:
https://[subdomain].salesbinder.com/api/2.0/customers/[id].json
HTTP Request Type: PUT
Example JSON Data to Submit
{
  "customer":{
    "name":"API Renamed Customer"
  }
}
Example XML Data to Submit
<?xml version="1.0" encoding="UTF-8" ?>
<customer>
  <name>API Renamed Customer</name>
</customer>
Success:

If you have been successful in updating an account, the response will return the updated data object along with a “message” value of “Saved” as seen below.

Example JSON Returned Response
{
    "message": "Saved",
    "customer": {
        "id": "19d367c8-97c7-409f-bf67-2ad543493648",
        "name": "API Renamed Customer",
        "customer_number": 641,
        "office_email": "sales@acme-company.com",
        "office_phone": "(604) 555-5555",
        "office_fax": "",
        "url": "acme-company.com",
        "billing_address_1": "Suite 100 - 1234 West 4th Avenue",
        "billing_address_2": "",
        "billing_city": "Vancouver",
        "billing_region_id": null,
        "billing_region": "BC",
        "billing_postal_code": "V6P 6W5",
        "billing_country_id": null,
        "billing_country": "Canada",
        "shipping_address_1": "Suite 100 - 1234 West 4th Avenue",
        "shipping_address_2": "",
        "shipping_city": "Vancouver",
        "shipping_region_id": null,
        "shipping_region": "BC",
        "shipping_postal_code": "V6P 6W5",
        "shipping_country_id": null,
        "shipping_country": "Canada",
        "vat_number": "",
        "context_id": 2,
        "document_count": null,
        "tax_rate1": null,
        "tax_rate2": null,
        "customer_date": null,
        "archived": false,
        "customer_label_id": null,
        "pricing_tier_id": "",
        "user_id": "",
        "modified": "2016-11-11T01:16:55+00:00",
        "created": "2016-11-11T01:13:09+00:00"
    }
}

Updated on February 7th, 2022

Network Status:
100% Global Availability