PUT api/ProductTransitions/PutProductTransitions
D365 API: Out Prodct Transition in CRM
Request Information
URI Parameters
None.
Body Parameters
ProductTransitionRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| AccountId | globally unique identifier |
None. |
|
| RelatedProductId | globally unique identifier |
None. |
|
| CurrentPriceListId | globally unique identifier |
None. |
|
| CurrentProductId | globally unique identifier |
None. |
|
| FutureProductId | globally unique identifier |
None. |
|
| TargetYear |
Target Year. |
integer |
None. |
| TargetMonth |
Target Month. |
Month |
None. |
| ProductUpgradeCodeId |
Product Upgrade Code. |
globally unique identifier |
None. |
| DowngradeReasonId |
Downgrade Reason Id. |
globally unique identifier |
None. |
| DowngradeDescription |
Downgrade Description. |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"AccountId": "c03832b7-9d15-4613-b9a1-41ac1348baf1",
"RelatedProductId": "4328416e-a881-43f2-b449-0160e01ee427",
"CurrentPriceListId": "bdd4e0c3-2b06-4162-874a-2135f3abdd08",
"CurrentProductId": "00e2e55f-e827-4a74-b2d6-21aad8f9c27c",
"FutureProductId": "bc028a90-be00-403e-8a2f-9eec8256985c",
"TargetYear": 6,
"TargetMonth": 0,
"ProductUpgradeCodeId": "d132a719-5e68-4306-a463-3967c1b1565d",
"DowngradeReasonId": "8de0e6ed-f860-457b-b77c-dd50aa1fd400",
"DowngradeDescription": "sample string 9"
}
application/xml, text/xml
Sample:
<ProductTransitionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SmartPayroll.Crm.WebApi.Models.RequestClasses"> <AccountId>c03832b7-9d15-4613-b9a1-41ac1348baf1</AccountId> <CurrentPriceListId>bdd4e0c3-2b06-4162-874a-2135f3abdd08</CurrentPriceListId> <CurrentProductId>00e2e55f-e827-4a74-b2d6-21aad8f9c27c</CurrentProductId> <DowngradeDescription>sample string 9</DowngradeDescription> <DowngradeReasonId>8de0e6ed-f860-457b-b77c-dd50aa1fd400</DowngradeReasonId> <FutureProductId>bc028a90-be00-403e-8a2f-9eec8256985c</FutureProductId> <ProductUpgradeCodeId>d132a719-5e68-4306-a463-3967c1b1565d</ProductUpgradeCodeId> <RelatedProductId>4328416e-a881-43f2-b449-0160e01ee427</RelatedProductId> <TargetMonth>Invalid</TargetMonth> <TargetYear>6</TargetYear> </ProductTransitionRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |