Accounts Methods
Updated: Nov 25th, 2013 | | Categories: General
Accounts List (GET) – /customers.[format] (page, contextId)
The Accounts list is paginated. You can pass the “page” query string parameter followed by a number to access the other pages. The pagination limit is set to 16 per page. You also need to pass a contextId parameter to select which type of account your want to list (customers, prospects, suppliers).
Syntax:
http://[subdomain].salesbinder.com/api/customers.[format]
Example:
http://demo.salesbinder.com/api/customers.json?page=2&contextId=2
HTTP Request Type: GET
View Account Details (GET) – /customers/[id].[format]
To get the details of a specific Account (customer, prospect, or supplier), you simply need to pass their “id”.
Syntax:
http://[subdomain].salesbinder.com/api/customers/[id].json
Example:
http://demo.salesbinder.com/api/customers/5487185e-b83f-46c2-bb91-2416ae304d03.json
HTTP Request Type: GET
Create New Account (POST) – /customers.[format]
Syntax
http://[subdomain].salesbinder.com/api/customers.json
HTTP Request Type: POST
Edit Account (PUT) – /customers/[id].[format]
Syntax
http://[subdomain].salesbinder.com/api/customers/[id].json
HTTP Request Type: PUT
Delete Account (DELETE) – /customers/[id].[format]
To delete a specific Account (customer, prospect, or supplier), you simply need to pass their “id”.
Syntax:
http://[subdomain].salesbinder.com/api/customers/[id].json
Example:
http://demo.salesbinder.com/api/customers/5487185e-b83f-46c2-bb91-2416ae304d03.json
HTTP Request Type: DELETE
