POST api/Product/UpdateStatus

Request Information

URI Parameters

None.

Body Parameters

UpdateStatus
NameDescriptionTypeAdditional information
ID

integer

Required

Status

boolean

Required

UpdatedByUserID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "Status": true,
  "UpdatedByUserID": 1
}

application/xml, text/xml

Sample:
<UpdateStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.Request">
  <ID>1</ID>
  <Status>true</Status>
  <UpdatedByUserID>1</UpdatedByUserID>
</UpdateStatus>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ProductResponse
NameDescriptionTypeAdditional information
ProductModel

ProductModel

None.

ResponseCode

integer

None.

ResponseText

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ProductModel": {
    "ID": 1,
    "Name": "sample string 2",
    "Description": "sample string 3",
    "ClassificationID": 1,
    "DepartmentID": 1,
    "CategoryID": 1,
    "SubCategoryID": 1,
    "SubCategory": "sample string 4",
    "Barcode": "sample string 5",
    "BLabel": "sample string 6",
    "ArticalNo": "sample string 7",
    "PurchasePrice": 1.0,
    "SalePrice": 1.0,
    "ShopSalePrice": 1.0,
    "ShopAdvicePrice": 1.0,
    "bShopAllowDiscount": true,
    "MaxDiscPer": 1.0,
    "MinDiscPer": 1.0,
    "Image": "sample string 8",
    "ImageStatus": 1,
    "DisplayOrder": 1,
    "bShowInShop": true,
    "nMaxShop": 1,
    "Tags": "sample string 9",
    "IsTrackable": true,
    "IsActive": true,
    "TaxTypeID": 1,
    "TaxType": "sample string 10",
    "SeriesID": 1,
    "Series": "sample string 11",
    "ConnecterTypeID": 1,
    "ConnecterType": "sample string 12",
    "PackagingID": 1,
    "Packaging": "sample string 13",
    "SizeID": 1,
    "Size": "sample string 14",
    "PowerID": 1,
    "Power": "sample string 15",
    "CapacityID": 1,
    "Capacity": "sample string 16",
    "PrintID": 1,
    "Print": "sample string 17",
    "QRCode": "sample string 18",
    "QualityID": 1,
    "Quality": "sample string 19",
    "StandardTaxPercentage": 1.0,
    "IsLuxuryTax": true,
    "IsObselete": true,
    "LuxuryTaxValue": 1.0,
    "ActiveFrom": "2025-01-22T20:57:59.2222693-06:00",
    "ActiveTo": "2025-01-22T20:57:59.2222693-06:00",
    "ReorderPoint": 1,
    "ReorderQuantity": 1,
    "IsAutoAddToWishlist": true,
    "MaximumStock": 1,
    "CreatedAt": "2025-01-22T20:57:59.2222693-06:00",
    "UpdatedAt": "2025-01-22T20:57:59.2222693-06:00",
    "CreatedByUserID": 1,
    "UpdatePermission": "sample string 20",
    "PurchasePriceString": "sample string 21",
    "SalePriceString": "sample string 22",
    "ShopAdvicePriceString": "sample string 23",
    "MeasuringUnitID": 1,
    "MeasuringUnit": "sample string 24",
    "ColorID": 1,
    "Color": "sample string 25",
    "BrandID": 1,
    "Brand": "sample string 26",
    "ModelID": 1,
    "Model": "sample string 27",
    "BrandTypeID": 1,
    "BrandType": "sample string 28",
    "TypeID": 1,
    "Type": "sample string 29",
    "ProductCategoryDetails": [
      {
        "ID": 1,
        "Type": 2,
        "CategoryID": 3,
        "ShopCategoryID": "sample string 4",
        "Name": "sample string 5"
      },
      {
        "ID": 1,
        "Type": 2,
        "CategoryID": 3,
        "ShopCategoryID": "sample string 4",
        "Name": "sample string 5"
      }
    ],
    "AssignLocation": "sample string 30",
    "AvailibleQuantity": 1,
    "ReservedQuantity": 1,
    "bShowForReseller": true,
    "LTAveragPurchasePrice": 1.0,
    "AveragePurchasePrice": 1.0,
    "RemainingStock": 1.0,
    "HoldStock": 1.0,
    "VariantID": 1,
    "ProductGroupID": 1,
    "ProductTypeID": 1,
    "ProductGroup": "sample string 31",
    "ProductType": "sample string 32",
    "ModelCode": "sample string 33",
    "ManufacturerCode": "sample string 34",
    "Keenland": "sample string 35",
    "ProductAttributeDetails": [
      {
        "ID": 1,
        "ProductID": 1,
        "ProductVariantID": 1,
        "ProductAttributeNameID": 1,
        "AttributeValueID": 1,
        "AttributeValueName": "sample string 2",
        "IsActive": true
      },
      {
        "ID": 1,
        "ProductID": 1,
        "ProductVariantID": 1,
        "ProductAttributeNameID": 1,
        "AttributeValueID": 1,
        "AttributeValueName": "sample string 2",
        "IsActive": true
      }
    ]
  },
  "ResponseCode": 1,
  "ResponseText": "sample string 2"
}

application/xml, text/xml

Sample:
<ProductResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.Response">
  <ResponseCode xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">1</ResponseCode>
  <ResponseText xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">sample string 2</ResponseText>
  <ProductModel xmlns:d2p1="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">
    <d2p1:ActiveFrom>2025-01-22T20:57:59.2222693-06:00</d2p1:ActiveFrom>
    <d2p1:ActiveTo>2025-01-22T20:57:59.2222693-06:00</d2p1:ActiveTo>
    <d2p1:ArticalNo>sample string 7</d2p1:ArticalNo>
    <d2p1:AssignLocation>sample string 30</d2p1:AssignLocation>
    <d2p1:AvailibleQuantity>1</d2p1:AvailibleQuantity>
    <d2p1:AveragePurchasePrice>1</d2p1:AveragePurchasePrice>
    <d2p1:BLabel>sample string 6</d2p1:BLabel>
    <d2p1:Barcode>sample string 5</d2p1:Barcode>
    <d2p1:Brand>sample string 26</d2p1:Brand>
    <d2p1:BrandID>1</d2p1:BrandID>
    <d2p1:BrandType>sample string 28</d2p1:BrandType>
    <d2p1:BrandTypeID>1</d2p1:BrandTypeID>
    <d2p1:Capacity>sample string 16</d2p1:Capacity>
    <d2p1:CapacityID>1</d2p1:CapacityID>
    <d2p1:CategoryID>1</d2p1:CategoryID>
    <d2p1:ClassificationID>1</d2p1:ClassificationID>
    <d2p1:Color>sample string 25</d2p1:Color>
    <d2p1:ColorID>1</d2p1:ColorID>
    <d2p1:ConnecterType>sample string 12</d2p1:ConnecterType>
    <d2p1:ConnecterTypeID>1</d2p1:ConnecterTypeID>
    <d2p1:CreatedAt>2025-01-22T20:57:59.2222693-06:00</d2p1:CreatedAt>
    <d2p1:CreatedByUserID>1</d2p1:CreatedByUserID>
    <d2p1:DepartmentID>1</d2p1:DepartmentID>
    <d2p1:Description>sample string 3</d2p1:Description>
    <d2p1:DisplayOrder>1</d2p1:DisplayOrder>
    <d2p1:HoldStock>1</d2p1:HoldStock>
    <d2p1:ID>1</d2p1:ID>
    <d2p1:Image>sample string 8</d2p1:Image>
    <d2p1:ImageStatus>1</d2p1:ImageStatus>
    <d2p1:IsActive>true</d2p1:IsActive>
    <d2p1:IsAutoAddToWishlist>true</d2p1:IsAutoAddToWishlist>
    <d2p1:IsLuxuryTax>true</d2p1:IsLuxuryTax>
    <d2p1:IsObselete>true</d2p1:IsObselete>
    <d2p1:IsTrackable>true</d2p1:IsTrackable>
    <d2p1:Keenland>sample string 35</d2p1:Keenland>
    <d2p1:LTAveragPurchasePrice>1</d2p1:LTAveragPurchasePrice>
    <d2p1:LuxuryTaxValue>1</d2p1:LuxuryTaxValue>
    <d2p1:ManufacturerCode>sample string 34</d2p1:ManufacturerCode>
    <d2p1:MaxDiscPer>1</d2p1:MaxDiscPer>
    <d2p1:MaximumStock>1</d2p1:MaximumStock>
    <d2p1:MeasuringUnit>sample string 24</d2p1:MeasuringUnit>
    <d2p1:MeasuringUnitID>1</d2p1:MeasuringUnitID>
    <d2p1:MinDiscPer>1</d2p1:MinDiscPer>
    <d2p1:Model>sample string 27</d2p1:Model>
    <d2p1:ModelCode>sample string 33</d2p1:ModelCode>
    <d2p1:ModelID>1</d2p1:ModelID>
    <d2p1:Name>sample string 2</d2p1:Name>
    <d2p1:Packaging>sample string 13</d2p1:Packaging>
    <d2p1:PackagingID>1</d2p1:PackagingID>
    <d2p1:Power>sample string 15</d2p1:Power>
    <d2p1:PowerID>1</d2p1:PowerID>
    <d2p1:Print>sample string 17</d2p1:Print>
    <d2p1:PrintID>1</d2p1:PrintID>
    <d2p1:ProductAttributeDetails>
      <d2p1:ProductAttributeDetailModel>
        <d2p1:AttributeValueID>1</d2p1:AttributeValueID>
        <d2p1:AttributeValueName>sample string 2</d2p1:AttributeValueName>
        <d2p1:ID>1</d2p1:ID>
        <d2p1:IsActive>true</d2p1:IsActive>
        <d2p1:ProductAttributeNameID>1</d2p1:ProductAttributeNameID>
        <d2p1:ProductID>1</d2p1:ProductID>
        <d2p1:ProductVariantID>1</d2p1:ProductVariantID>
      </d2p1:ProductAttributeDetailModel>
      <d2p1:ProductAttributeDetailModel>
        <d2p1:AttributeValueID>1</d2p1:AttributeValueID>
        <d2p1:AttributeValueName>sample string 2</d2p1:AttributeValueName>
        <d2p1:ID>1</d2p1:ID>
        <d2p1:IsActive>true</d2p1:IsActive>
        <d2p1:ProductAttributeNameID>1</d2p1:ProductAttributeNameID>
        <d2p1:ProductID>1</d2p1:ProductID>
        <d2p1:ProductVariantID>1</d2p1:ProductVariantID>
      </d2p1:ProductAttributeDetailModel>
    </d2p1:ProductAttributeDetails>
    <d2p1:ProductCategoryDetails>
      <d2p1:ProductCategoryDetailModel>
        <d2p1:CategoryID>3</d2p1:CategoryID>
        <d2p1:ID>1</d2p1:ID>
        <d2p1:Name>sample string 5</d2p1:Name>
        <d2p1:ShopCategoryID>sample string 4</d2p1:ShopCategoryID>
        <d2p1:Type>2</d2p1:Type>
      </d2p1:ProductCategoryDetailModel>
      <d2p1:ProductCategoryDetailModel>
        <d2p1:CategoryID>3</d2p1:CategoryID>
        <d2p1:ID>1</d2p1:ID>
        <d2p1:Name>sample string 5</d2p1:Name>
        <d2p1:ShopCategoryID>sample string 4</d2p1:ShopCategoryID>
        <d2p1:Type>2</d2p1:Type>
      </d2p1:ProductCategoryDetailModel>
    </d2p1:ProductCategoryDetails>
    <d2p1:ProductGroup>sample string 31</d2p1:ProductGroup>
    <d2p1:ProductGroupID>1</d2p1:ProductGroupID>
    <d2p1:ProductType>sample string 32</d2p1:ProductType>
    <d2p1:ProductTypeID>1</d2p1:ProductTypeID>
    <d2p1:PurchasePrice>1</d2p1:PurchasePrice>
    <d2p1:PurchasePriceString>sample string 21</d2p1:PurchasePriceString>
    <d2p1:QRCode>sample string 18</d2p1:QRCode>
    <d2p1:Quality>sample string 19</d2p1:Quality>
    <d2p1:QualityID>1</d2p1:QualityID>
    <d2p1:RemainingStock>1</d2p1:RemainingStock>
    <d2p1:ReorderPoint>1</d2p1:ReorderPoint>
    <d2p1:ReorderQuantity>1</d2p1:ReorderQuantity>
    <d2p1:ReservedQuantity>1</d2p1:ReservedQuantity>
    <d2p1:SalePrice>1</d2p1:SalePrice>
    <d2p1:SalePriceString>sample string 22</d2p1:SalePriceString>
    <d2p1:Series>sample string 11</d2p1:Series>
    <d2p1:SeriesID>1</d2p1:SeriesID>
    <d2p1:ShopAdvicePrice>1</d2p1:ShopAdvicePrice>
    <d2p1:ShopAdvicePriceString>sample string 23</d2p1:ShopAdvicePriceString>
    <d2p1:ShopSalePrice>1</d2p1:ShopSalePrice>
    <d2p1:Size>sample string 14</d2p1:Size>
    <d2p1:SizeID>1</d2p1:SizeID>
    <d2p1:StandardTaxPercentage>1</d2p1:StandardTaxPercentage>
    <d2p1:SubCategory>sample string 4</d2p1:SubCategory>
    <d2p1:SubCategoryID>1</d2p1:SubCategoryID>
    <d2p1:Tags>sample string 9</d2p1:Tags>
    <d2p1:TaxType>sample string 10</d2p1:TaxType>
    <d2p1:TaxTypeID>1</d2p1:TaxTypeID>
    <d2p1:Type>sample string 29</d2p1:Type>
    <d2p1:TypeID>1</d2p1:TypeID>
    <d2p1:UpdatePermission>sample string 20</d2p1:UpdatePermission>
    <d2p1:UpdatedAt>2025-01-22T20:57:59.2222693-06:00</d2p1:UpdatedAt>
    <d2p1:VariantID>1</d2p1:VariantID>
    <d2p1:bShopAllowDiscount>true</d2p1:bShopAllowDiscount>
    <d2p1:bShowForReseller>true</d2p1:bShowForReseller>
    <d2p1:bShowInShop>true</d2p1:bShowInShop>
    <d2p1:nMaxShop>1</d2p1:nMaxShop>
  </ProductModel>
</ProductResponse>