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": "cb8cb3dd-9624-4dc2-8e0b-f66a573563ed",
"RelatedProductId": "6cbedcdc-8250-4015-b0f6-a9d4ff7f7cd7",
"CurrentPriceListId": "0927ea61-bc70-4db5-91af-7c5dfa68be41",
"CurrentProductId": "9eca7346-1c0f-47c0-9826-eef0b57c764e",
"FutureProductId": "d188efca-79a2-4e22-8524-62437f1c61bf",
"TargetYear": 6,
"TargetMonth": 0,
"ProductUpgradeCodeId": "f8b3b7e9-80d3-4f9b-a8c3-5b23c7c61c95",
"DowngradeReasonId": "e7d2433e-3241-4a38-bcd1-9e759341ca61",
"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>cb8cb3dd-9624-4dc2-8e0b-f66a573563ed</AccountId> <CurrentPriceListId>0927ea61-bc70-4db5-91af-7c5dfa68be41</CurrentPriceListId> <CurrentProductId>9eca7346-1c0f-47c0-9826-eef0b57c764e</CurrentProductId> <DowngradeDescription>sample string 9</DowngradeDescription> <DowngradeReasonId>e7d2433e-3241-4a38-bcd1-9e759341ca61</DowngradeReasonId> <FutureProductId>d188efca-79a2-4e22-8524-62437f1c61bf</FutureProductId> <ProductUpgradeCodeId>f8b3b7e9-80d3-4f9b-a8c3-5b23c7c61c95</ProductUpgradeCodeId> <RelatedProductId>6cbedcdc-8250-4015-b0f6-a9d4ff7f7cd7</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. |