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": "9a92dbad-ea4e-4f3d-8fd7-795a8b4130f7", "ProductID": "1c31b445-b413-4119-af45-9b60b8675a25", "OpportunityProductID": "9ae12622-6013-4e0b-920f-dad1bd63c2b7", "CreateDate": "2024-12-05T02:16:06Z", "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:
"8aeb940c-94ef-473f-b218-9b6dde90742c"