Shipping Zones


Overview

The shipping zones API allows you to view individual or a batch of products.


List all shipping zones

Returns products back from WooCommerce, include parementers to query data.

getShippingZones()

API Call

// CONFIG FOR WOOSIGNAL
var wsConfig = {
"appKey":"your app key",
"debugMode":true
};

// CREATING AN INSTANCE
WooSignal.getInstance(config: wsConfig).then( (wcStore) {

    wcStore.getShippingZones().then( (shippingZones) {
        print(shippingZones[0].name); // e.g. first shippingZone name
    });

});

Response

List<ShippingZone> instance

Represents the following object - WooCommerce list all shipping zones


Retrive a shipping zone

Returns a shipping zone back from WooCommerce, include parementers to query data.

getShippingZone(id:"product id")

Parameters

    int id

API Call

// CONFIG FOR WOOSIGNAL
var wsConfig = {
"appKey":"your app key",
"debugMode":true
};

// CREATING AN INSTANCE
WooSignal.getInstance(config: wsConfig).then( (wcStore) {

    wcStore.retrieveShippingZone().then( (shippingZone) {
        print(shippingZone);
    });

});

Response

ShippingZone instance

Represents the following object - WooCommerce retrieve a shipping zone