# Get a Variant By Get variant information by code or ID. This endpoint does not return OnHand inventory; use the Get Inventory By Code endpoint to retrieve inventory. Requires the "VIEW" role in the "Products" group. Endpoint: GET /api/v3/Variant/Detail Version: 3.1.0 Security: OAuth2_clientCredentials ## Header parameters: - `promotions_field_include` (boolean) Set to 'true' to include promotional fields in the response. Default is 'false'. Example: true ## Query parameters: - `Code` (string) Get from Code of variant that you want to get the detail. Example: "SW001" - `ID` (string) Get from ID of variant that you want to get the detail. Example: "f2296e61-e405-4884-9e54-55f14a91748b" ## Response 200 fields (application/json): - `ID` (string) Unique ID of the variant - `Category` (string) Category of the product - `Brand` (string) Brand of the product - `Product` (string) Name of the product variant - `Variant` (string) Name of the variant - `Name` (string) Name of the product - `Code` (string) Code of the product - `Weight` (integer) Weight of the product - `Type` (string) Type of the product Enum: "Standard", "NonInventory", "Composite", "Serialized", "Manufactured", "Complementary", "MultipleUOM", "PrepaidPoint", "PrepaidPackage" - `OrderPrice` (integer) Last order price of the product - `UnitCost` (integer) Unit cost of the product - `UnitPrice` (integer) Unit selling price of the product - `Taxable` (boolean) Taxable status of the product - `LoyaltyPoint` (boolean) Loyalty Point status of the product - `Discontinued` (boolean) Discontinue status of the product - `ImageURL` (string) Image URL of the product - `ThumbnailURL` (string) Thumbnail URL of the product - `Components` (array) - `Components.Name` (string) Component name of the product - `Components.Code` (string) Component code of the product - `Components.Qty` (integer) Qty of the component - `Description` (string) Description of variant - `OutletPrice` (array) - `OutletPrice.Outlet` (string) Selected outlet of the product - `OutletPrice.Price` (integer) Price of the selected outlet of the product - `OutletPrice.ExtraCost` (integer) Extra Cost of the selected outlet of the product - `Pricebook` (array) - `Pricebook.Name` (string) Pricebook name - `Pricebook.UnitPrice` (integer) Pricebook price - `Pricebook.MinimumQuantity` (integer) Pricebook minimum quantity - `Promotions` (array) - `Promotions.Name` (string) Promotion Event name - `Promotions.UnitPrice` (integer) Promotion unit price - `Promotions.ExtraCost` (integer) Promotion extra cost - `Promotions.Discount` (integer) Promotion discount - `Promotions.StartDate` (string) Promotion start date - `Promotions.ExpirationDate` (string) Promotion expiration date - `Promotions.StartTime` (string) Promotion start time - `Promotions.ExpirationTime` (string) Promotion expiration time - `Promotions.Type` (string) Promotion type - `Promotions.PromotionID` (string) Promotion ID