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": "1a8904fb-9ca7-4f1e-a35a-acf2c823d1bb",
"RelatedProductId": "67792664-2dae-46e2-a7df-86029ff68574",
"CurrentPriceListId": "a43206cc-4a16-4e1c-97bb-39e03c75163d",
"CurrentProductId": "acd4bdb6-b622-4f97-a007-a63682297e11",
"FutureProductId": "1a48609f-a7a8-423c-bb99-2f3a45019aa3",
"TargetYear": 6,
"TargetMonth": 0,
"ProductUpgradeCodeId": "fd596059-7565-4fe9-9541-51770697d908",
"DowngradeReasonId": "393088dc-1008-4ffc-ab12-ffb8e5e0cc54",
"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>1a8904fb-9ca7-4f1e-a35a-acf2c823d1bb</AccountId> <CurrentPriceListId>a43206cc-4a16-4e1c-97bb-39e03c75163d</CurrentPriceListId> <CurrentProductId>acd4bdb6-b622-4f97-a007-a63682297e11</CurrentProductId> <DowngradeDescription>sample string 9</DowngradeDescription> <DowngradeReasonId>393088dc-1008-4ffc-ab12-ffb8e5e0cc54</DowngradeReasonId> <FutureProductId>1a48609f-a7a8-423c-bb99-2f3a45019aa3</FutureProductId> <ProductUpgradeCodeId>fd596059-7565-4fe9-9541-51770697d908</ProductUpgradeCodeId> <RelatedProductId>67792664-2dae-46e2-a7df-86029ff68574</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. |