"Deal Api" is used to send the deal details to any desired App with the help of "Zapier". By calling the deal Api, the deal details are sent to the "webhook url" provided by Zapier. Once the data is sent to the webhook url , the data is stored/synced in the app that you selected when creating a Zap.
Endpoints
POST /api/v1/zapier/deal
Generic
Request Details
Request URL
{{api-domain}}/api/{{version}}/zapier/deal
Generic
Request Parameters
Fields
1.) Deal Name:
Possible values | Default Value | Required |
String | Not specified | Yes |
2.) Amount:
possible values | Default Value | Required |
Number | Not specified | Yes |
3.) Close Date:
possible values | Default Value | Required |
Date | Not specified | No |
4.) Priority:
possible values | Default Value | Required |
String | Not specified | No |
Sample Request
const request = {
data: {Deal details},
method: "POST",
action: "create deal",
url: https://dev.app.assistro.co/api/v1/zapier/deal,
}
JavaScript
Sample Response
Success
{
"deal_name": "Sales Deal",
"amount": "2000",
"priority": "Medium",
"close_date": "2023-06-17"
}
JavaScript
Error
{
"message": "Looks like there is no active Zap for this action",
"success": false,
"status": 0
}
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article