Stock Rotation Execution (POST)

Performs a stock rotation action for the specified line items and filters.

Resource 

1/connect/stock-rotation-execution

Resource Example 

1https://YOUR_INSTANCE.salesforce.com/services/data/v{{ variables.platform.version_api }}/connect/stock-rotation-execution

Where YOUR_INSTANCE is a variable.

Available Version 

66.0

HTTP Methods 

POST

Request Body for POST 

JSON Example 

1{
2  "actionType": "GenerateClaim",
3  "stockRotationExecutionId": "1Ft1234567890abcdef",
4  "sourceObjectIds": [
5    "obj-1",
6    "obj-2",
7    "obj-3"
8  ],
9  "filterCriteria": {
10    "fieldCriteria": [
11      {
12        "fieldApiName": "AccepedQuantity",
13        "operator": "GreaterThan",
14        "filterValues": [
15          "100"
16        ]
17      },
18      {
19        "fieldApiName": "Status",
20        "operator": "In",
21        "filterValues": [
22          "ReadyForClaim"
23        ]
24      }
25    ]
26  }
27}

Properties 

NameTypeDescriptionRequired or OptionalAvailable Version
actionTypeStringThe action to perform on the stock rotation execution. Valid values are:
  • GenerateClaim — Generate claims for scrapped items and returns.
  • CalculateClaimAmount — Calculate the claim amount for the stock rotation line items that are filtered.
Required66.0
filterCriteriaStock Rotation Filter Criteria InputThe filter criteria for selecting stock rotation line items.Optional. Either sourceObjectIds or filterCriteria must be provided.66.0
sourceObjectIdsString[]The IDs of stock rotation line items to include in the action.Optional. Either sourceObjectIds or filterCriteria must be provided.66.0
stockRotationExecutionIdStringThe ID of the stock rotation execution to run the action on.Required.66.0

Response Body for POST 

Stock Rotation Execution