POST api/Inventory/ChangeSkuLayer

Request Information

URI Parameters

None.

Body Parameters

InventoryUpdateRequest
NameDescriptionTypeAdditional information
InternalProductId

string

None.

WarehouseId

integer

None.

InventoryAvailable

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "InternalProductId": "sample string 1",
  "WarehouseId": 2,
  "InventoryAvailable": 3
}

application/xml, text/xml

Sample:
<InventoryUpdateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SND.SNDIntegrator.APIExternalGateway.Models">
  <InternalProductId>sample string 1</InternalProductId>
  <InventoryAvailable>3</InventoryAvailable>
  <WarehouseId>2</WarehouseId>
</InventoryUpdateRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ChangeSkuInventoryResponse
NameDescriptionTypeAdditional information
ProductID

integer

None.

InternalProductID

string

None.

Quantity

integer

None.

IsValid

boolean

None.

Errors

Collection of Error

None.

Response Formats

application/json, text/json

Sample:
{
  "ProductID": 1,
  "InternalProductID": "sample string 2",
  "Quantity": 3,
  "IsValid": true,
  "Errors": [
    {
      "Key": "sample string 1",
      "ErrorMessage": "sample string 2",
      "ErrorCode": "sample string 3",
      "HelpEntry": "sample string 4",
      "TechnicalMessage": "sample string 5"
    },
    {
      "Key": "sample string 1",
      "ErrorMessage": "sample string 2",
      "ErrorCode": "sample string 3",
      "HelpEntry": "sample string 4",
      "TechnicalMessage": "sample string 5"
    }
  ]
}

application/xml, text/xml

Sample:
<ChangeSkuInventoryResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SND.SNDIntegrator.Entity.Layer.SKU">
  <Errors>
    <Error>
      <ErrorCode>sample string 3</ErrorCode>
      <ErrorMessage>sample string 2</ErrorMessage>
      <HelpEntry>sample string 4</HelpEntry>
      <Key>sample string 1</Key>
      <TechnicalMessage>sample string 5</TechnicalMessage>
    </Error>
    <Error>
      <ErrorCode>sample string 3</ErrorCode>
      <ErrorMessage>sample string 2</ErrorMessage>
      <HelpEntry>sample string 4</HelpEntry>
      <Key>sample string 1</Key>
      <TechnicalMessage>sample string 5</TechnicalMessage>
    </Error>
  </Errors>
  <InternalProductID>sample string 2</InternalProductID>
  <IsValid>true</IsValid>
  <ProductID>1</ProductID>
  <Quantity>3</Quantity>
</ChangeSkuInventoryResponse>