SellCRM Core API > Deals > What resources can be included | Community
Skip to main content

SellCRM Core API > Deals > What resources can be included

  • October 13, 2023
  • 1 reply
  • 0 views

Jacob27

Im using the Sell CRM to grab deals

GET https://api.getbase.com/v2/deals

The api shows the parameter

When I make a call using this parameter, It returns the following error

GET https://api.getbase.com/v2/deals?includes=contacts
GET https://api.getbase.com/v2/deals/1?includes=contacts
"error": {
"code":"invalid_param",
     "message":"invalid request query parameter",
     "details":"The request query parameter 'includes/0' is malformed, missing, or has an invalid value (is not included in the list)"
}

It would be nice to see an example of this parameter and how it should be used.
It would also be nice to see a list of available resources that can be included with deals

Ive had no luck finding an explanation or example of this parameter being used. 

1 reply

Dane13
  • December 3, 2023
Hi Jacob,

Please try this format https://api.getbase.com/v2/contacts/<id>?includes=name
 
The ?includes query parameter will take a comma-separated list of one or more resources related to the primary resource and return those resources as well.
 
The values that can be used are the ones under the deal parameters. Contacts is not included under the parameters of deals.