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": "d0d91f48-bfe8-4d53-973e-bed8bc769363", "RelatedProductId": "04a9a3f0-1335-4c6f-ad75-db9c90c72e3a", "CurrentPriceListId": "7699d02c-99fc-41ad-9631-04c8cb0a4774", "CurrentProductId": "14c348c5-03a6-4797-bacd-79ee3a0265fe", "FutureProductId": "21fd967d-631c-4f93-8791-76418de5ffbc", "TargetYear": 6, "TargetMonth": 0, "ProductUpgradeCodeId": "f88c263e-a8a0-475a-b6cf-4f378d679c55", "DowngradeReasonId": "ffd56692-ffd3-4aa7-ba6c-68d65c7a670a", "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>d0d91f48-bfe8-4d53-973e-bed8bc769363</AccountId> <CurrentPriceListId>7699d02c-99fc-41ad-9631-04c8cb0a4774</CurrentPriceListId> <CurrentProductId>14c348c5-03a6-4797-bacd-79ee3a0265fe</CurrentProductId> <DowngradeDescription>sample string 9</DowngradeDescription> <DowngradeReasonId>ffd56692-ffd3-4aa7-ba6c-68d65c7a670a</DowngradeReasonId> <FutureProductId>21fd967d-631c-4f93-8791-76418de5ffbc</FutureProductId> <ProductUpgradeCodeId>f88c263e-a8a0-475a-b6cf-4f378d679c55</ProductUpgradeCodeId> <RelatedProductId>04a9a3f0-1335-4c6f-ad75-db9c90c72e3a</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. |