Type alias CreateProductPayload

CreateProductPayload: {
    description?: string;
    hsn?: string;
    metadata?: string;
    name: string;
    price: number;
    units?: string;
}

Type declaration

  • Optional description?: string

    description of the product

  • Optional hsn?: string

    HSN of the product

  • Optional metadata?: string

    Metadata allows you to attach arbitrary bits of information to the product. This metadata is searchable. For example: {tags: ["clothing", "male"]}

  • name: string

    Name of the product is required

  • price: number

    Price of the product

  • Optional units?: string

    Unit of the product