POST api/inventories/update/{locationId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
locationId

integer

Required

Body Parameters

InventoryEntity
NameDescriptionTypeAdditional information
LocationId

integer

None.

ProductId

integer

None.

ServiceFrequency

integer

None.

ProductName

string

None.

UnitOfMeasure

string

None.

ProductSKU

string

None.

TaxType

string

None.

InventoryType

string

None.

ReorderLevel

integer

None.

CurrentQuantity

integer

None.

Price

decimal number

None.

MembershipPrice

decimal number

None.

PurchaseAmount

decimal number

None.

Active

boolean

None.

CreatedTime

date

None.

UpdatedTime

date

None.

VendorId

integer

None.

CategoryId

integer

None.

BrandId

integer

None.

BrandName

string

None.

CategoryName

string

None.

ServiceCategoryName

string

None.

ServiceCategoryId

integer

None.

ProductDescription

string

None.

ValidationPassed

boolean

None.

ValidationMessage

string

None.

IsImported

boolean

None.

TaxPercentage

decimal number

None.

WholesalePrice

decimal number

None.

ServiceDuration

integer

None.

CustomFields

Collection of CustomFieldEntity

None.

LocationSpecific

Collection of LocationSpecificInventoryEntity

None.

PackageServices

Collection of PackageServiceMapEntity

None.

Request Formats

application/json, text/json

Sample:
{
  "LocationId": 1,
  "ProductId": 2,
  "ServiceFrequency": 1,
  "ProductName": "sample string 3",
  "UnitOfMeasure": "sample string 4",
  "ProductSKU": "sample string 5",
  "TaxType": "sample string 6",
  "InventoryType": "sample string 7",
  "ReorderLevel": 1,
  "CurrentQuantity": 1,
  "Price": 1.0,
  "MembershipPrice": 1.0,
  "PurchaseAmount": 1.0,
  "Active": true,
  "CreatedTime": "2025-12-31T16:39:34.252441+05:30",
  "UpdatedTime": "2025-12-31T16:39:34.252441+05:30",
  "VendorId": 9,
  "CategoryId": 1,
  "BrandId": 1,
  "BrandName": "sample string 10",
  "CategoryName": "sample string 11",
  "ServiceCategoryName": "sample string 12",
  "ServiceCategoryId": 1,
  "ProductDescription": "sample string 13",
  "ValidationPassed": true,
  "ValidationMessage": "sample string 15",
  "IsImported": true,
  "TaxPercentage": 1.0,
  "WholesalePrice": 1.0,
  "ServiceDuration": 1,
  "CustomFields": [
    {
      "CustomFieldId": 1,
      "FieldName": "sample string 2",
      "FieldType": "sample string 3",
      "FieldOptions": "sample string 4",
      "IsMandatory": true,
      "RequiredForBill": true,
      "FieldOrder": 7,
      "Module": "sample string 8",
      "Active": true,
      "CreatedTime": "2025-12-31T16:39:34.252441+05:30",
      "UpdatedTime": "2025-12-31T16:39:34.252441+05:30",
      "VendorId": 11,
      "CustomFieldValue": "sample string 12",
      "IncludeInInvoice": true,
      "AutoRemoveOnBill": true
    },
    {
      "CustomFieldId": 1,
      "FieldName": "sample string 2",
      "FieldType": "sample string 3",
      "FieldOptions": "sample string 4",
      "IsMandatory": true,
      "RequiredForBill": true,
      "FieldOrder": 7,
      "Module": "sample string 8",
      "Active": true,
      "CreatedTime": "2025-12-31T16:39:34.252441+05:30",
      "UpdatedTime": "2025-12-31T16:39:34.252441+05:30",
      "VendorId": 11,
      "CustomFieldValue": "sample string 12",
      "IncludeInInvoice": true,
      "AutoRemoveOnBill": true
    }
  ],
  "LocationSpecific": [
    {
      "LocationSpecificInventoryId": 1,
      "VendorId": 2,
      "LocationId": 3,
      "ProductId": 4,
      "ReorderLevel": 5,
      "CurrentQuantity": 6,
      "CreatedTime": "2025-12-31T16:39:34.252441+05:30",
      "Price": 1.0,
      "UpdatedTime": "2025-12-31T16:39:34.252441+05:30",
      "IsDeleted": true,
      "LocationName": "sample string 9",
      "TaxType": "sample string 10"
    },
    {
      "LocationSpecificInventoryId": 1,
      "VendorId": 2,
      "LocationId": 3,
      "ProductId": 4,
      "ReorderLevel": 5,
      "CurrentQuantity": 6,
      "CreatedTime": "2025-12-31T16:39:34.252441+05:30",
      "Price": 1.0,
      "UpdatedTime": "2025-12-31T16:39:34.252441+05:30",
      "IsDeleted": true,
      "LocationName": "sample string 9",
      "TaxType": "sample string 10"
    }
  ],
  "PackageServices": [
    {
      "PackageServiceMapId": 1,
      "ProductName": "sample string 2",
      "Price": 1.0,
      "ProductId": 3,
      "PackageId": 4
    },
    {
      "PackageServiceMapId": 1,
      "ProductName": "sample string 2",
      "Price": 1.0,
      "ProductId": 3,
      "PackageId": 4
    }
  ]
}

application/xml, text/xml

Sample:
<InventoryEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/pos_crm_api_DAL.Entities">
  <Active>true</Active>
  <BrandId>1</BrandId>
  <BrandName>sample string 10</BrandName>
  <CategoryId>1</CategoryId>
  <CategoryName>sample string 11</CategoryName>
  <CreatedTime>2025-12-31T16:39:34.252441+05:30</CreatedTime>
  <CurrentQuantity>1</CurrentQuantity>
  <CustomFields>
    <CustomFieldEntity>
      <Active>true</Active>
      <AutoRemoveOnBill>true</AutoRemoveOnBill>
      <CreatedTime>2025-12-31T16:39:34.252441+05:30</CreatedTime>
      <CustomFieldId>1</CustomFieldId>
      <CustomFieldValue>sample string 12</CustomFieldValue>
      <FieldName>sample string 2</FieldName>
      <FieldOptions>sample string 4</FieldOptions>
      <FieldOrder>7</FieldOrder>
      <FieldType>sample string 3</FieldType>
      <IncludeInInvoice>true</IncludeInInvoice>
      <IsMandatory>true</IsMandatory>
      <Module>sample string 8</Module>
      <RequiredForBill>true</RequiredForBill>
      <UpdatedTime>2025-12-31T16:39:34.252441+05:30</UpdatedTime>
      <VendorId>11</VendorId>
    </CustomFieldEntity>
    <CustomFieldEntity>
      <Active>true</Active>
      <AutoRemoveOnBill>true</AutoRemoveOnBill>
      <CreatedTime>2025-12-31T16:39:34.252441+05:30</CreatedTime>
      <CustomFieldId>1</CustomFieldId>
      <CustomFieldValue>sample string 12</CustomFieldValue>
      <FieldName>sample string 2</FieldName>
      <FieldOptions>sample string 4</FieldOptions>
      <FieldOrder>7</FieldOrder>
      <FieldType>sample string 3</FieldType>
      <IncludeInInvoice>true</IncludeInInvoice>
      <IsMandatory>true</IsMandatory>
      <Module>sample string 8</Module>
      <RequiredForBill>true</RequiredForBill>
      <UpdatedTime>2025-12-31T16:39:34.252441+05:30</UpdatedTime>
      <VendorId>11</VendorId>
    </CustomFieldEntity>
  </CustomFields>
  <InventoryType>sample string 7</InventoryType>
  <IsImported>true</IsImported>
  <LocationId>1</LocationId>
  <LocationSpecific>
    <LocationSpecificInventoryEntity>
      <CreatedTime>2025-12-31T16:39:34.252441+05:30</CreatedTime>
      <CurrentQuantity>6</CurrentQuantity>
      <IsDeleted>true</IsDeleted>
      <LocationId>3</LocationId>
      <LocationName>sample string 9</LocationName>
      <LocationSpecificInventoryId>1</LocationSpecificInventoryId>
      <Price>1</Price>
      <ProductId>4</ProductId>
      <ReorderLevel>5</ReorderLevel>
      <TaxType>sample string 10</TaxType>
      <UpdatedTime>2025-12-31T16:39:34.252441+05:30</UpdatedTime>
      <VendorId>2</VendorId>
    </LocationSpecificInventoryEntity>
    <LocationSpecificInventoryEntity>
      <CreatedTime>2025-12-31T16:39:34.252441+05:30</CreatedTime>
      <CurrentQuantity>6</CurrentQuantity>
      <IsDeleted>true</IsDeleted>
      <LocationId>3</LocationId>
      <LocationName>sample string 9</LocationName>
      <LocationSpecificInventoryId>1</LocationSpecificInventoryId>
      <Price>1</Price>
      <ProductId>4</ProductId>
      <ReorderLevel>5</ReorderLevel>
      <TaxType>sample string 10</TaxType>
      <UpdatedTime>2025-12-31T16:39:34.252441+05:30</UpdatedTime>
      <VendorId>2</VendorId>
    </LocationSpecificInventoryEntity>
  </LocationSpecific>
  <MembershipPrice>1</MembershipPrice>
  <PackageServices>
    <PackageServiceMapEntity>
      <PackageId>4</PackageId>
      <PackageServiceMapId>1</PackageServiceMapId>
      <Price>1</Price>
      <ProductId>3</ProductId>
      <ProductName>sample string 2</ProductName>
    </PackageServiceMapEntity>
    <PackageServiceMapEntity>
      <PackageId>4</PackageId>
      <PackageServiceMapId>1</PackageServiceMapId>
      <Price>1</Price>
      <ProductId>3</ProductId>
      <ProductName>sample string 2</ProductName>
    </PackageServiceMapEntity>
  </PackageServices>
  <Price>1</Price>
  <ProductDescription>sample string 13</ProductDescription>
  <ProductId>2</ProductId>
  <ProductName>sample string 3</ProductName>
  <ProductSKU>sample string 5</ProductSKU>
  <PurchaseAmount>1</PurchaseAmount>
  <ReorderLevel>1</ReorderLevel>
  <ServiceCategoryId>1</ServiceCategoryId>
  <ServiceCategoryName>sample string 12</ServiceCategoryName>
  <ServiceDuration>1</ServiceDuration>
  <ServiceFrequency>1</ServiceFrequency>
  <TaxPercentage>1</TaxPercentage>
  <TaxType>sample string 6</TaxType>
  <UnitOfMeasure>sample string 4</UnitOfMeasure>
  <UpdatedTime>2025-12-31T16:39:34.252441+05:30</UpdatedTime>
  <ValidationMessage>sample string 15</ValidationMessage>
  <ValidationPassed>true</ValidationPassed>
  <VendorId>9</VendorId>
  <WholesalePrice>1</WholesalePrice>
</InventoryEntity>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.