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": "af83ecf5-9334-4c29-ae09-88feec9e18ee", "RelatedProductId": "90be3d00-8e18-4a60-b2ad-6dec7e3199e7", "CurrentPriceListId": "e22ddf24-d981-44c2-a956-907a60a9acd9", "CurrentProductId": "c417b1a4-c3f8-4096-a9d9-a3816762d7d9", "FutureProductId": "7d796c7e-b462-4962-bef2-32fece46dbec", "TargetYear": 6, "TargetMonth": 0, "ProductUpgradeCodeId": "f99769a7-0090-4e6c-845d-cb3ae817d5ee", "DowngradeReasonId": "fc696637-9cf6-4188-bea4-9822b7fae971", "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>af83ecf5-9334-4c29-ae09-88feec9e18ee</AccountId> <CurrentPriceListId>e22ddf24-d981-44c2-a956-907a60a9acd9</CurrentPriceListId> <CurrentProductId>c417b1a4-c3f8-4096-a9d9-a3816762d7d9</CurrentProductId> <DowngradeDescription>sample string 9</DowngradeDescription> <DowngradeReasonId>fc696637-9cf6-4188-bea4-9822b7fae971</DowngradeReasonId> <FutureProductId>7d796c7e-b462-4962-bef2-32fece46dbec</FutureProductId> <ProductUpgradeCodeId>f99769a7-0090-4e6c-845d-cb3ae817d5ee</ProductUpgradeCodeId> <RelatedProductId>90be3d00-8e18-4a60-b2ad-6dec7e3199e7</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. |