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. |
|
| EditDate | 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": "fa9f506b-fdae-467e-83d6-81fb013df4bb",
"ProductID": "2b38f49d-f760-47d4-a807-0576bbc114af",
"OpportunityProductID": "57a93704-7964-4cc2-9d2f-b33a5cd07927",
"CreateDate": "2026-02-28T23:51:11Z",
"EditDate": "2026-02-28T23:51:11Z",
"Discount": 7.0,
"Price": 8.0,
"ItemNumber": "sample string 9",
"Name": "sample string 10",
"Cost": 11.0,
"DiscountPrice": 12.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:
"c7d76221-55a8-4b30-8b51-65c8a8a9d3a5"