Source selection algorithm result

inventory Source Selection Api Source Selection Service V1Execute Post

post
Header parameters
Content-TypestringOptionalExample: application/json
Body
objectOptionalExample: {"inventoryRequest":{"stock_id":"<integer>","items":[{"sku":"<string>","qty":"<number>","extension_attributes":"<object>"},{"sku":"<string>","qty":"<number>","extension_attributes":"<object>"}],"extension_attributes":{"destination_address":{"country":"<string>","postcode":"<string>","street":"<string>","region":"<string>","city":"<string>"}}},"algorithmCode":"<string>"}
Responses
200

OK

application/json
Responseobject
post
POST /V1/inventory/source-selection-algorithm-result HTTP/1.1
Host: {{baseurl}}
Content-Type: application/json
Accept: */*
Content-Length: 372

{
  "inventoryRequest": {
    "stock_id": "<integer>",
    "items": [
      {
        "sku": "<string>",
        "qty": "<number>",
        "extension_attributes": "<object>"
      },
      {
        "sku": "<string>",
        "qty": "<number>",
        "extension_attributes": "<object>"
      }
    ],
    "extension_attributes": {
      "destination_address": {
        "country": "<string>",
        "postcode": "<string>",
        "street": "<string>",
        "region": "<string>",
        "city": "<string>"
      }
    }
  },
  "algorithmCode": "<string>"
}
{
  "source_selection_items": [
    {
      "source_code": "eu in",
      "sku": "Excepteur sed id cupidatat",
      "qty_to_deduct": -89375359.5180256,
      "qty_available": 4332816.931413591,
      "extension_attributes": {}
    },
    {
      "source_code": "magna labore",
      "sku": "anim labore est nostrud",
      "qty_to_deduct": -69171195.14011335,
      "qty_available": -8449641.534970447,
      "extension_attributes": {}
    }
  ],
  "shippable": true,
  "extension_attributes": {}
}