1. Product
VasyOpenAPI
  • Branch
    • Branch List
      GET
  • Department
    • department
      GET
  • Category
    • category
      GET
    • subCategory
      GET
  • Brand
    • Brand
      GET
    • SubBrand
      GET
  • Contact
    • Get Customer List W Branch Id
      GET
    • Get Contact By Id
      GET
    • Get Contact By Mobile No
      GET
    • contactSave
      POST
    • Supplier(Party)
      GET
  • GST
    • Verify GST
      POST
  • Master
    • Get Country List
      GET
    • Get State List
      GET
    • Get City List
      GET
    • Get Tax List
      GET
    • Get Additional Charge List
      GET
  • Product
    • Get Product List
      GET
    • Get Product By ID
      GET
    • products with inventory
      GET
    • product details with Inventory By Product ID
      GET
    • Product Variant List ID & Name
      GET
    • Variant Details By Variant ID
      GET
  • Recipe
    • Get All Recipe
  • User
    • Created By
  • Report
    • Get Sales Item Register Data
    • Purchase Item Register Report
    • Stock Summary Report
    • Stock Transfer Item Register Report
    • Consumption Production Report
  • Sales
    • Get All Sales Data
    • Get Sales Data By Id
    • Order Create
    • Order Status
    • Shipping Details
    • Update Due Date
    • Update Order Status
  1. Product

Variant Details By Variant ID

GET
/api/v1/product/variant-details/20847918

Product Variant Details#

Purpose#

Retrieve detailed information for a specific product variant, including pricing, tax information, stock quantity, and product mapping.

Why would you use this?#

Use this API when your system needs complete information for a specific product variant before creating transactions or synchronizing inventory.

Information Required#

FieldRequiredDescription
api-tokenYesAuthentication token provided by VasyERP
productVariantIdYesUnique identifier of the product variant
branch_idYesBranch ID for retrieving stock quantity

Information Returned#

Product Variant Details
Product Mapping
Pricing Information
Tax Information
Available Stock
Product Status

Important Notes#

Stock quantity is branch-specific.
Product Variant ID can be obtained from Product & Variant List API.
Use Product Variant ID in transaction APIs wherever variant-level information is required.
Product stock is returned in the stockQuantity field.

Request

Query Params

Header Params

Responses

🟢200
application/json
Bodyapplication/json

🟠403Unauthorized
🟠429Too Many Request
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/api/v1/product/variant-details/20847918?branch_id=24448' \
--header 'api-token: {{.in-api-token}}' \
--header 'Content-Type: application/json'
Response Response Example
200 - Example
{
    "status": true,
    "message": "Success",
    "code": "200",
    "response": {
        "productVariantId": 20847918,
        "productId": 18313750,
        "variantName": "Oppo Reno 14 Pro 32GB Green",
        "itemCode": "BAR073",
        "minQty": 3.0,
        "netWeight": 30.0,
        "sellingPrice": 40999.55,
        "sellingDiscount": 4.65,
        "mrp": 42999.0,
        "onlinePrice": 0.0,
        "taxId": 65605,
        "taxRate": 18.0,
        "stockQuantity": 160.0,
        "isActive": true
    }
}
Previous
Product Variant List ID & Name
Next
Get All Recipe
Built with