Product Variations


Overview

The product variations API allows you to view individual or a batch of products.


List all product variations

Returns products variations back from WooCommerce, include parameters to query data.

getProductVariations()

Parameters

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

API Call

// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");

// Call API
List<ProductVariation> productVariations = await WooSignal.instance.getProductVariations();

Response

List<ProductVariation> instance

Represents the following object - WooCommerce list all product variations


Retrive a product

Returns a product back from WooCommerce, include parameters to query data.

getProductVariations({id:"product id"})

Parameters

    int id

API Call

// Initialize WooSignal
await WooSignal.instance.init(appKey: "your app key");

// Call API
ProductVariation productVariation = await WooSignal.instance.getProductVariations(id: "product variation id");

Response

ProductVariation instance

Represents the following object - WooCommerce retrieve a product variation