GetDeals

Overview

Lists Deals for an account based on information sent via an http
form post.

URL

POST/api/2/GetDeals.aspx

Parameters

FieldMax LengthRequiredNotes
response_typefalseDefault results will be returned in XML.
Set this field value to json to return results in
JSON format
accountidtrueMust be numeric. Account ID for this account.
Found in Settings > API Settings or for White
Label CRM in the Admin control panel
apikeytrueAPI Key for this account.
Found in Settings > API Settings or for White
Label CRM in the Admin control panel
dealidfalseFilters query based on a specific deal (Optional)
teammemberidfalseMust be numeric. ID of Team Member database
that deal record belongs to. Leave blank for all
account contacts.
status1falseFilters query based on the deal status (Optional)

Possible Values:
1=Active, 2=Won, 3=Lost, 4=Back Burner
dealidfalseFilters query based on a specific deal (Optional)
dealtypeidfalseFilters query based on the dealtypeid (Optional)
dealtypenamefalseFilters query based on the name of the deal type
(Optional)
adddateafterfalseEnter a date is US Date / Time Format
example: 4/24/2013 2:01PM
Only deals added after the date given will be
returned.
4/24/2013 assumes midnight, so anything added
on or after 4/24/2013 would be included.
Time Zone for Add Date is US Central Time
closeddateafterfalseEnter a date is US Date
example: 4/24/2013
Only deals with a CLOSED DATE on or after the
date given will be returned.
closeddatebeforefalseEnter a date is US Date
example: 4/24/2013
Only deals with a CLOSED DATE on or before
the date given will be returned.
customfieldsfalseSet value to 1 to include each deal's custom
fields in the results (new Feb 2015)
relatedcontactsfalseSet value to 1 to include each deal's related
contacts in the results