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": "86ea3573-529d-4b8b-9a7b-df87b6a6f2ad", "ProductID": "fe3c1c7f-5fe1-4454-ba12-d88aa212974f", "OpportunityProductID": "9c9749e3-dfa5-4c7e-b5d9-94d6e221727e", "CreateDate": "2024-05-15T15:33:44Z", "EditDate": "2024-05-15T15:33:44Z", "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:
"67557d75-adbe-49fc-a5fc-687597a3ce0a"