Adds a new variant to the specified product.
Requires the stores.products.update permission.
Your API key goes here
The store’s unique identifier.
The product’s unique identifier.
The form containing the variant’s initial data.
The form used to create a product variant.
The display name of the variant.
3 - 128The cost of the variant (non-negative).
0 <= x <= 100000Minimum quantity allowed per order (at least 1).
1 <= x <= 2147483647Maximum quantity allowed per order. Set to -1 for unlimited.
-1 <= x <= 2147483647Sort order for display (at least 1).
1 <= x <= 2147483647The type of product that is being sold
0, 1 Stock quantity available (non-negative).
0 <= x <= 2147483647Enabled delivery types. Valid values: license_keys, dynamic, keyauth, instructions, files.
The stock calculation modes that are used
0, 1, 2 URL for dynamic fulfillment (when using the "dynamic" delivery type).
2048Optional message shown on delivery.
4096Subscription billing period. Null for one-time products.
The object was successfully created.
Represents a default generic response for API endpoints.
Indicates whether the operation or response was successful.
A descriptive message providing additional context or information about the response.
The error code (if there was an error) to use when referencing the error
Represents a configurable variant associated with a product, containing various properties such as pricing, stock, delivery options, and custom fields.