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. |
|
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": "7d4cd13f-550f-46e7-a737-9978c7b6e5d4", "ProductID": "3b68a2ad-3759-4890-a381-bbdba20c4599", "OpportunityProductID": "38f92d39-d66a-45f7-8972-ee010be9449c", "CreateDate": "2024-05-08T01:40:14Z", "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:
"b51f26e5-3720-42a5-aee2-8a92b5459f5f"