The product variations API allows you to view individual or a batch of products.
Returns products variations back from WooCommerce, include parameters to query data.
int productId,
int page,
int perPage,
String search,
String after,
String before,
List<int> exclude,
List<int> include,
int offset,
String order,
String orderBy,
List<int> parent,
List<int> parentExclude,
String slug,
String status,
String sku,
String taxClass,
bool onSale,
String minPrice,
String maxPrice,
String stockStatus
// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");
// Call API
List<ProductVariation> productVariations = await WooSignal.instance.getProductVariations();
List<ProductVariation> instance
Represents the following object - WooCommerce list all product variations
Returns a product back from WooCommerce, include parameters to query data.
int id
// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");
// Call API
ProductVariation productVariation = await WooSignal.instance.getProductVariations(id: "product variation id");
ProductVariation instance
Represents the following object - WooCommerce retrieve a product variation