Deals

get_deals

Get list of deals for the authenticated user's organization

Parameters

pagenumber1

Page number for pagination

limitnumber10

Number of items per page

searchstring

Search term for deal title

relationsArray<string>

Relations to include (e.g., ["client", "createdByUser"])

stagestringLEADQUALIFIED_LEADPROPOSAL_MADENEGOTIATIONCLOSED_WONCLOSED_LOST

Filter by deal stage

clientIdstring<uuid>

Filter by client ID

createdByUserIdstring<uuid>

Filter by creator user ID

get_deal_count

Get deal count in the authenticated user's organization

Parameters

stagestringLEADQUALIFIED_LEADPROPOSAL_MADENEGOTIATIONCLOSED_WONCLOSED_LOST

Filter by deal stage

clientIdstring<uuid>

Filter by client ID

createdByUserIdstring<uuid>

Filter by creator user ID

get_deal

Get a specific deal by ID

Parameters

idstring<uuid>required

The deal ID

relationsArray<string>

Relations to include (e.g., ["client", "createdByUser", "properties"])

create_deal

Create a new deal in the authenticated user's organization

Body

application/json
deal_dataobjectrequired

The data for creating the deal

Show child attributes
titlestringrequired

The title (required)

[key: string]any

update_deal

Update an existing deal

Parameters

idstring<uuid>required

The deal ID

deal_dataobjectrequired

The data for updating the deal

update_deal_stage

Update the stage of a deal

Parameters

idstring<uuid>required

The deal ID

stagestringLEADQUALIFIED_LEADPROPOSAL_MADENEGOTIATIONCLOSED_WONCLOSED_LOSTrequired

The new stage for the deal

delete_deal

Delete a deal

Parameters

idstring<uuid>required

The deal ID

get_deals_by_client

Get deals for a specific client

Parameters

clientIdstring<uuid>required

The client ID

pagenumber1

Page number for pagination

limitnumber10

Number of items per page

stagestringLEADQUALIFIED_LEADPROPOSAL_MADENEGOTIATIONCLOSED_WONCLOSED_LOST

Filter by deal stage

relationsArray<string>

Relations to include

get_my_deals

Get deals created by the current authenticated user

Parameters

pagenumber1

Page number for pagination

limitnumber10

Number of items per page

stagestringLEADQUALIFIED_LEADPROPOSAL_MADENEGOTIATIONCLOSED_WONCLOSED_LOST

Filter by deal stage

relationsArray<string>

Relations to include

get_deal_statistics

Get deal statistics for the authenticated user's organization

Parameters

clientIdstring<uuid>

Filter by specific client ID

createdByUserIdstring<uuid>

Filter by creator user ID

startDatestring

Start date for statistics (ISO format)

endDatestring

End date for statistics (ISO format)

add_deal_property

Add a custom property to a deal

Body

application/json
dealIdstring<uuid>required

The deal ID

propertyobjectrequired

The property to add

Show child attributes
namestringrequired

Property name

valuestringrequired

Property value

update_deal_property

Update a custom property of a deal

Parameters

dealIdstring<uuid>required

The deal ID

propertyNamestringrequired

The property name to update

valuestringrequired

The new property value

remove_deal_property

Remove a custom property from a deal

Parameters

dealIdstring<uuid>required

The deal ID

propertyNamestringrequired

The property name to remove

get_deals_pipeline

Get deals organized by pipeline stages for the authenticated user's organization

Parameters

clientIdstring<uuid>

Filter by client ID

createdByUserIdstring<uuid>

Filter by creator user ID

search_deals

Search deals by title or properties

Parameters

querystringrequired

Search query

limitnumber20

Maximum number of results

stagestringLEADQUALIFIED_LEADPROPOSAL_MADENEGOTIATIONCLOSED_WONCLOSED_LOST

Filter by deal stage

clientIdstring<uuid>

Filter by client ID

Copyright © 2023-Present Ever Co. LTD.Docs by Sourcey