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": "387ab60c-0eae-4cae-a656-c3dd1d69a5bc", "ProductID": "4ee05b2c-6301-4dbd-8229-17e523127657", "OpportunityProductID": "33a0152a-362b-4814-89d8-73552384e112", "CreateDate": "2024-05-04T13:39:05Z", "EditDate": "2024-05-04T13:39:05Z", "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:
"1d2cf741-3e35-4b56-95e7-42e801440788"