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": "1773ada4-90e8-4ee8-ba63-72b7637f2662",
"RelatedProductId": "17a01237-e0fe-48e1-a2dc-e318a6fe2eae",
"CurrentPriceListId": "7cf1312d-7f0a-496a-b2ec-59310aa83bf9",
"CurrentProductId": "bfe7eb4f-a0a5-4c6f-9800-20f06f3f2d5a",
"FutureProductId": "8099f3ee-1d8f-4e25-b7ad-faddb56fab8e",
"TargetYear": 6,
"TargetMonth": 0,
"ProductUpgradeCodeId": "84645a35-1d67-46c3-8863-804689c49b54",
"DowngradeReasonId": "8919b451-2c5b-43db-bd08-3669cdf25264",
"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>1773ada4-90e8-4ee8-ba63-72b7637f2662</AccountId> <CurrentPriceListId>7cf1312d-7f0a-496a-b2ec-59310aa83bf9</CurrentPriceListId> <CurrentProductId>bfe7eb4f-a0a5-4c6f-9800-20f06f3f2d5a</CurrentProductId> <DowngradeDescription>sample string 9</DowngradeDescription> <DowngradeReasonId>8919b451-2c5b-43db-bd08-3669cdf25264</DowngradeReasonId> <FutureProductId>8099f3ee-1d8f-4e25-b7ad-faddb56fab8e</FutureProductId> <ProductUpgradeCodeId>84645a35-1d67-46c3-8863-804689c49b54</ProductUpgradeCodeId> <RelatedProductId>17a01237-e0fe-48e1-a2dc-e318a6fe2eae</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. |