1. Home
  2. API v2.0
  3. Accounts
  4. View Account

View Account

Method: /customers/[id].[format]

SalesBinder Accounts have 3 different “context” values to determine what type of account you want to create:

Customers Context ID: 2 Prospects Context ID: 8 Suppliers Context ID: 10

Note:
  – although the method used is named “/customers/[id].[format]”, this works for any of the 3 context types
  – all three contexts share the same fields and data types outlined below

Permissions Required:

  • View Customers and/or Prospects and/or Suppliers

Syntax

https://[subdomain].salesbinder.com/api/2.0/customers/[id].json

HTTP Request Type: GET

Sample Returned JSON Data

{
    "customer": {
        "name": "Widgets Emporium",
        "customer_number": 516,
        "office_email": "widgets@testing.com",
        "office_phone": "604-968-9588",
        "office_fax": "",
        "url": "www.widgets.com",
        "billing_address_1": "4567 Testing Avenue",
        "billing_address_2": "",
        "billing_city": "Montreal",
        "billing_region": "British Columbia",
        "billing_postal_code": "M5H 2G5",
        "billing_country": "",
        "shipping_address_1": "4567 Testing Avenue",
        "shipping_address_2": "",
        "shipping_city": "Montreal",
        "shipping_region": "British Columbia",
        "shipping_postal_code": "M5H 2G5",
        "shipping_country": "",
        "id": "549490bc-e910-41a4-b83f-03d8a2d10228",
        "created": "2014-12-19T20:55:24+00:00",
        "modified": "2016-11-11T00:13:12+00:00"
    }
}

Sample Returned XML Data

<?xml version="1.0" encoding="UTF-8" ?>
<response>
    <customer>
        <name>Widgets Emporium</name>
        <customer_number>516</customer_number>
        <office_email>widgets@testing.com</office_email>
        <office_phone>604-968-9588</office_phone>
        <office_fax/>
        <url>www.widgets.com</url>
        <billing_address_1>4567 Testing Avenue</billing_address_1>
        <billing_address_2/>
        <billing_city>Montreal</billing_city>
        <billing_region>British Columbia</billing_region>
        <billing_postal_code>M5H 2G5</billing_postal_code>
        <billing_country/>
        <shipping_address_1>4567 Testing Avenue</shipping_address_1>
        <shipping_address_2/>
        <shipping_city>Montreal</shipping_city>
        <shipping_region>British Columbia</shipping_region>
        <shipping_postal_code>M5H 2G5</shipping_postal_code>
        <shipping_country/>
        <id>549490bc-e910-41a4-b83f-03d8a2d10228</id>
        <created>12/19/14, 8:55 PM</created>
        <modified>11/11/16, 12:13 AM</modified>
    </customer>
</response>
Was this article helpful to you? Yes No