PUT api/ProductTransitions/PutProductTransitions
D365 API: Out Prodct Transition in CRM
Request Information
URI Parameters
None.
Body Parameters
ProductTransitionRequestName | 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": "e4a72690-a0d0-4b39-a6fc-7f3f583f3042", "RelatedProductId": "bba9d7a3-5c5d-4e17-9ca9-092c2e82cb04", "CurrentPriceListId": "26434c34-41ff-4917-b2a0-6a276647ecf0", "CurrentProductId": "57320aeb-e943-4c2e-86ce-ce6b70b3d01b", "FutureProductId": "60da3c02-8773-416d-99ba-7054e0965f59", "TargetYear": 6, "TargetMonth": 0, "ProductUpgradeCodeId": "e6a8b611-75e8-48b8-8ed3-6fee5977537a", "DowngradeReasonId": "a30d34c1-cc57-4f5f-a8f8-7461e279bd28", "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>e4a72690-a0d0-4b39-a6fc-7f3f583f3042</AccountId> <CurrentPriceListId>26434c34-41ff-4917-b2a0-6a276647ecf0</CurrentPriceListId> <CurrentProductId>57320aeb-e943-4c2e-86ce-ce6b70b3d01b</CurrentProductId> <DowngradeDescription>sample string 9</DowngradeDescription> <DowngradeReasonId>a30d34c1-cc57-4f5f-a8f8-7461e279bd28</DowngradeReasonId> <FutureProductId>60da3c02-8773-416d-99ba-7054e0965f59</FutureProductId> <ProductUpgradeCodeId>e6a8b611-75e8-48b8-8ed3-6fee5977537a</ProductUpgradeCodeId> <RelatedProductId>bba9d7a3-5c5d-4e17-9ca9-092c2e82cb04</RelatedProductId> <TargetMonth>Invalid</TargetMonth> <TargetYear>6</TargetYear> </ProductTransitionRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | 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. |