# validateVariantPricesStep - Medusa Core Workflows Reference

This documentation provides a reference to the `validateVariantPricesStep`. It belongs to the `@medusajs/medusa/core-flows` package.

This step validates the specified variant objects to ensure they have prices.
If not valid, the step throws an error.

## Example

```ts
const data = validateVariantPricesStep({
  variants: [
    {
      id: "variant_123",
    },
    {
      id: "variant_321",
      calculated_price: {
        calculated_amount: 10,
      }
    }
  ]
})
```

## Input

- ValidateVariantPricesStepInput: (\[ValidateVariantPricesStepInput]\(../../../../interfaces/core\_flows.ValidateVariantPricesStepInput/page.mdx)) The details of the variants to validate.

  - variants: (\`object\`\[]) The variants to validate.

    - id: (\`string\`) The ID of the variant.

    - calculated\_price: (\`object\`) The calculated price of the variant.

      - calculated\_amount: (\`null\` \\| \[BigNumberInput]\(../../../../../types/types/types.BigNumberInput/page.mdx)) The calculated amount of the price.


---

The best way to deploy Medusa is through Medusa Cloud where you get autoscaling production infrastructure fine tuned for Medusa. Create an account by signing up at cloud.medusajs.com/signup.
