POST api/OpportunityProducts
Create a new Product
Request Information
URI Parameters
None.
Body Parameters
OpportunityProductName | 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": "f429f280-e914-4fc2-af3b-03585674f1f9", "ProductID": "32b6a5a5-4023-4b0d-bdb8-401a5e96babb", "OpportunityProductID": "dcd4d85e-cb3e-4c76-a413-9ce3f51530d6", "CreateDate": "2024-05-19T00:02:20Z", "EditDate": "2024-05-19T00:02:20Z", "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:
"25ecefa7-26d4-45b9-a200-0382b66299c1"