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": "e504fcb2-b952-4bf9-9386-f8c977839525",
"RelatedProductId": "53dd197f-272a-45c1-9b75-a03758f7d735",
"CurrentPriceListId": "5ca569b0-8c2c-4342-9142-657df2b82911",
"CurrentProductId": "ac6a0c6d-e75b-4ff5-83b0-48dd2696da34",
"FutureProductId": "5a80a1fb-bbbe-4cb7-bbb3-fb3a823e2f00",
"TargetYear": 6,
"TargetMonth": 0,
"ProductUpgradeCodeId": "09c1bd1e-3069-4635-8884-d3d35b9cd6d8",
"DowngradeReasonId": "c76a89e2-2abb-441d-a26f-b82f66397c45",
"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>e504fcb2-b952-4bf9-9386-f8c977839525</AccountId> <CurrentPriceListId>5ca569b0-8c2c-4342-9142-657df2b82911</CurrentPriceListId> <CurrentProductId>ac6a0c6d-e75b-4ff5-83b0-48dd2696da34</CurrentProductId> <DowngradeDescription>sample string 9</DowngradeDescription> <DowngradeReasonId>c76a89e2-2abb-441d-a26f-b82f66397c45</DowngradeReasonId> <FutureProductId>5a80a1fb-bbbe-4cb7-bbb3-fb3a823e2f00</FutureProductId> <ProductUpgradeCodeId>09c1bd1e-3069-4635-8884-d3d35b9cd6d8</ProductUpgradeCodeId> <RelatedProductId>53dd197f-272a-45c1-9b75-a03758f7d735</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. |