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": "33b41ef7-9417-452f-af2a-363a532d80bf",
"RelatedProductId": "af724541-7425-47c2-9465-ba924f214363",
"CurrentPriceListId": "e4fa7d42-12f3-4986-bf04-1df45a87a544",
"CurrentProductId": "073e96f1-4305-4ab3-bd05-2d0337340008",
"FutureProductId": "9775047c-e010-4fd2-b8d7-1322d26cfcac",
"TargetYear": 6,
"TargetMonth": 0,
"ProductUpgradeCodeId": "70e8d7c2-1b58-4ed1-a274-8a06447ad47d",
"DowngradeReasonId": "e789ae12-a755-40de-a9bf-d4705dff9415",
"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>33b41ef7-9417-452f-af2a-363a532d80bf</AccountId> <CurrentPriceListId>e4fa7d42-12f3-4986-bf04-1df45a87a544</CurrentPriceListId> <CurrentProductId>073e96f1-4305-4ab3-bd05-2d0337340008</CurrentProductId> <DowngradeDescription>sample string 9</DowngradeDescription> <DowngradeReasonId>e789ae12-a755-40de-a9bf-d4705dff9415</DowngradeReasonId> <FutureProductId>9775047c-e010-4fd2-b8d7-1322d26cfcac</FutureProductId> <ProductUpgradeCodeId>70e8d7c2-1b58-4ed1-a274-8a06447ad47d</ProductUpgradeCodeId> <RelatedProductId>af724541-7425-47c2-9465-ba924f214363</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. |