Menu
Create inventory/source-selection-algorithm-result
Create inventory/source-selection-algorithm-result
POST
/V1/inventory/source-selection-algorithm-resultUse it in a workflow
- Add a step and choose the Adobe Commerce connector.
- Pick the Create inventory/source-selection-algorithm-result action (under Inventory).
- Fill in the fields below, then reference the result from later steps as
{{createInventorySourceSelectionAlgorithmResult.response.data}}.
Request
Request body
Enter the body as JSON in the step's Body field.
{
"inventoryRequest": {
"stock_id": 0,
"items": [
{
"sku": "string",
"qty": 0,
"extension_attributes": {}
}
],
"extension_attributes": {
"destination_address": {
"country": "string",
"postcode": "string",
"street": "string",
"region": "string",
"city": "string"
}
}
},
"algorithmCode": "string"
}
Response
Returns 200 with an object. Read it in later steps with {{createInventorySourceSelectionAlgorithmResult.response.data.<field>}}.
{
"source_selection_items": [
{
"source_code": "string",
"sku": "string",
"qty_to_deduct": 0,
"qty_available": 0,
"extension_attributes": {}
}
],
"shippable": false,
"extension_attributes": {}
}
Need more? See the Adobe Commerce guide for connection setup and behaviour shared by every action.
Was this page helpful?