POST api/ProductVariant/GetByID

Request Information

URI Parameters

None.

Body Parameters

RequestIDModel
NameDescriptionTypeAdditional information
ID

integer

Required

RequestedUserID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "RequestedUserID": 1
}

application/xml, text/xml

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

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ProductVariantResponse
NameDescriptionTypeAdditional information
ProductVariantModel

ProductVariantModel

None.

ResponseCode

integer

None.

ResponseText

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ProductVariantModel": {
    "ID": 1,
    "ProductImage": "sample string 2",
    "ProductID": 1,
    "Product": "sample string 3",
    "SizeID": 1,
    "Size": "sample string 4",
    "ColorID": 1,
    "Color": "sample string 5",
    "Price": 1.0,
    "PurchasePrice": 1.0,
    "SalePrice": 1.0,
    "PriceString": "sample string 6",
    "RemainingStock": 7,
    "HoldStock": 1,
    "CreatedAt": "2025-01-22T21:07:04.4626461-06:00",
    "UpdatedAt": "2025-01-22T21:07:04.4626461-06:00",
    "CreatedByUserID": 1,
    "IsActive": true,
    "IsAddedToShop": true,
    "IsTrackable": true,
    "Barcode": "sample string 8",
    "BLabel": "sample string 9",
    "ArticalNo": "sample string 10",
    "MeasuringUnit": "sample string 11",
    "Keenland": "sample string 12",
    "ShopSalePrice": 1.0,
    "ManufacturerCode": "sample string 13"
  },
  "ResponseCode": 1,
  "ResponseText": "sample string 2"
}

application/xml, text/xml

Sample:
<ProductVariantResponse 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>
  <ProductVariantModel xmlns:d2p1="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">
    <d2p1:ArticalNo>sample string 10</d2p1:ArticalNo>
    <d2p1:BLabel>sample string 9</d2p1:BLabel>
    <d2p1:Barcode>sample string 8</d2p1:Barcode>
    <d2p1:Color>sample string 5</d2p1:Color>
    <d2p1:ColorID>1</d2p1:ColorID>
    <d2p1:CreatedAt>2025-01-22T21:07:04.4626461-06:00</d2p1:CreatedAt>
    <d2p1:CreatedByUserID>1</d2p1:CreatedByUserID>
    <d2p1:HoldStock>1</d2p1:HoldStock>
    <d2p1:ID>1</d2p1:ID>
    <d2p1:IsActive>true</d2p1:IsActive>
    <d2p1:IsAddedToShop>true</d2p1:IsAddedToShop>
    <d2p1:IsTrackable>true</d2p1:IsTrackable>
    <d2p1:Keenland>sample string 12</d2p1:Keenland>
    <d2p1:ManufacturerCode>sample string 13</d2p1:ManufacturerCode>
    <d2p1:MeasuringUnit>sample string 11</d2p1:MeasuringUnit>
    <d2p1:Price>1</d2p1:Price>
    <d2p1:PriceString>sample string 6</d2p1:PriceString>
    <d2p1:Product>sample string 3</d2p1:Product>
    <d2p1:ProductID>1</d2p1:ProductID>
    <d2p1:ProductImage>sample string 2</d2p1:ProductImage>
    <d2p1:PurchasePrice>1</d2p1:PurchasePrice>
    <d2p1:RemainingStock>7</d2p1:RemainingStock>
    <d2p1:SalePrice>1</d2p1:SalePrice>
    <d2p1:ShopSalePrice>1</d2p1:ShopSalePrice>
    <d2p1:Size>sample string 4</d2p1:Size>
    <d2p1:SizeID>1</d2p1:SizeID>
    <d2p1:UpdatedAt>2025-01-22T21:07:04.4626461-06:00</d2p1:UpdatedAt>
  </ProductVariantModel>
</ProductVariantResponse>