/api/2.0/opportunities/
POST https://developer.salesfusion.com/api/2.0/opportunities/
Description:
Creates a new opportunity in the Salesfusion database.
Sample Response:
{
"opportunity_id": 824,
"opportunity": "https://developer.salesfusion.com/api/2.0/opportunities/824/",
"owner_id": 2,
"owner_name": "Michael North",
"owner": "https://developer.salesfusion.com/api/2.0/users/2/",
"account": null,
"updated_date": "2018-12-19T14:31:00.193336",
"updated_by_id": 2,
"updated_by": "https://developer.salesfusion.com/api/2.0/users/2/",
"created_date": "2018-12-19T14:31:00.193326",
"created_by_id": 2,
"created_by": "https://developer.salesfusion.com/api/2.0/users/2/",
"closing_date": null,
"contact": null,
"name": "Example Opp",
"stage": "",
"amount": "0.00",
"probability": "",
"won": null,
"custom_mapping": {}
}
Request Body
{"name"=>"Example Opp"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |