POST api/OpportunityProducts
Create a new Product
Request Information
URI Parameters
None.
Body Parameters
OpportunityProduct| Name | Description | Type | Additional information |
|---|---|---|---|
| Total | decimal number |
None. |
|
| Quantity | decimal number |
None. |
|
| OpportunityID | globally unique identifier |
None. |
|
| ProductID | globally unique identifier |
None. |
|
| OpportunityProductID | globally unique identifier |
None. |
|
| CreateDate | date |
None. |
|
| Discount | decimal number |
None. |
|
| Price | decimal number |
None. |
|
| ItemNumber | string |
None. |
|
| Name | string |
None. |
|
| Cost | decimal number |
None. |
|
| DiscountPrice | decimal number |
None. |
|
| CustomFields | Dictionary of string [key] and Object [value] |
None. |
Request Formats
application/json, text/json
Sample:
{
"Total": 1.0,
"Quantity": 2.0,
"OpportunityID": "24ca12ea-373f-401a-b77e-af264db399e7",
"ProductID": "c4341c64-f4cf-48d8-a310-309234336017",
"OpportunityProductID": "755919e2-40f2-4420-90f8-c0de8d904cba",
"CreateDate": "2026-01-01T22:53:25Z",
"Discount": 6.0,
"Price": 7.0,
"ItemNumber": "sample string 8",
"Name": "sample string 9",
"Cost": 10.0,
"DiscountPrice": 11.0,
"CustomFields": {
"sample string 1": {},
"sample string 3": {}
}
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
globally unique identifierResponse Formats
application/json, text/json
Sample:
"80579083-4631-47ce-bf4c-aacc6be497c2"