ByteChef LogoByteChef
Components

WooCommerce

WooCommerce is a e-commerce plugin for WordPress that allows you to turn a standard WordPress website into a fully functional online store.

Categories: E-commerce

Type: woocommerce/v1


Connections

Version: 1

Basic Auth

Properties

NameLabelTypeDescriptionRequired
domainDomainSTRINGThe domain of your app.true
usernameConsumer KeySTRINGThe consumer key generated from your app.true
passwordConsumer SecretSTRINGThe consumer secret generated from your app.true

Actions

Create Coupon

Name: createCoupon

Create a new coupon.

Properties

NameLabelTypeDescriptionRequired
codeCodeSTRINGCoupon code.true
amountAmountSTRINGThe amount of discount. Should always be numeric, even if setting a percentage.true
discount_typeDiscount TypeSTRING
Options percent, fixed_cart, fixed_product
Determines the type of discount that will be applied.true
descriptionDescriptionSTRINGCoupon description.false
date_expiresDate ExpiresDATE_TIMEThe date the coupon expires, in the site's timezone.false
individual_useIndividual UseBOOLEAN
Options true, false
If true, the coupon can only be used individually. Other applied coupons will be removed from the cart.false
product_idsProduct IdsARRAY
Items [INTEGER]
List of product IDs the coupon can be used on.false
exclude_sale_itemsExclude Sale ItemsBOOLEAN
Options true, false
If true, this coupon will not be applied to items that have sale prices.false
minimum_amountMinimum AmountSTRINGMinimum order amount that needs to be in the cart before coupon applies.false
maximum_amountMaximum AmountSTRINGMaximum order amount allowed when using the coupon.false

Example JSON Structure

{
  "label" : "Create Coupon",
  "name" : "createCoupon",
  "parameters" : {
    "code" : "",
    "amount" : "",
    "discount_type" : "",
    "description" : "",
    "date_expires" : "2021-01-01T00:00:00",
    "individual_use" : false,
    "product_ids" : [ 1 ],
    "exclude_sale_items" : false,
    "minimum_amount" : "",
    "maximum_amount" : ""
  },
  "type" : "woocommerce/v1/createCoupon"
}

Output

Type: OBJECT

Properties

NameTypeDescription
idINTEGERUnique identifier for the object.
codeSTRINGCoupon code.
amountSTRINGThe amount of discount.
date_createdSTRINGThe date the coupon was created, in the site's timezone.
date_created_gmtSTRINGThe date the coupon was created, as GMT.
date_modifiedSTRINGThe date the coupon was last modified, in the site's timezone.
date_modified_gmtSTRINGThe date the coupon was last modified, as GMT.
discount_typeSTRINGDetermines the type of discount that will be applied.
descriptionSTRINGCoupon description.
date_expiresSTRINGThe date the coupon expires, in the site's timezone.
date_expires_gmtSTRINGThe date the coupon expires, as GMT.
usage_countINTEGERNumber of times the coupon has been used already.
individual_useBOOLEAN
Options true, false
If true, the coupon can only be used individually.
product_idsARRAY
Items [INTEGER]
List of product IDs the coupon can be used on.
excluded_product_idsARRAY
Items [INTEGER]
List of product IDs the coupon cannot be used on.
usage_limitINTEGERHow many times the coupon can be used in total.
usage_limit_per_userINTEGERHow many times the coupon can be used per customer.
limit_usage_to_x_itemsINTEGERMax number of items in the cart the coupon can be applied to.
free_shippingBOOLEAN
Options true, false
If true and if the free shipping method requires a coupon, this coupon will enable free shipping.
product_categoriesARRAY
Items [INTEGER]
List of category IDs the coupon applies to.
excluded_product_categoriesARRAY
Items [INTEGER]
List of category IDs the coupon does not apply to.
exclude_sale_itemsBOOLEAN
Options true, false
If true, this coupon will not be applied to items that have sale prices.
minimum_amountSTRINGMinimum order amount that needs to be in the cart before coupon applies.
maximum_amountSTRINGMaximum order amount allowed when using the coupon.
email_restrictionsARRAY
Items [STRING]
List of email addresses that can use this coupon.
used_byARRAY
Items [STRING]
List of user IDs (or guest email addresses) that have used the coupon.
meta_dataARRAY
Items [{INTEGER(id), STRING(key), STRING(value)}]
Meta data.
_linksOBJECT
Properties {[{STRING(href)}](self), [{STRING(href)}](collection)}

Output Example

{
  "id" : 1,
  "code" : "",
  "amount" : "",
  "date_created" : "",
  "date_created_gmt" : "",
  "date_modified" : "",
  "date_modified_gmt" : "",
  "discount_type" : "",
  "description" : "",
  "date_expires" : "",
  "date_expires_gmt" : "",
  "usage_count" : 1,
  "individual_use" : false,
  "product_ids" : [ 1 ],
  "excluded_product_ids" : [ 1 ],
  "usage_limit" : 1,
  "usage_limit_per_user" : 1,
  "limit_usage_to_x_items" : 1,
  "free_shipping" : false,
  "product_categories" : [ 1 ],
  "excluded_product_categories" : [ 1 ],
  "exclude_sale_items" : false,
  "minimum_amount" : "",
  "maximum_amount" : "",
  "email_restrictions" : [ "" ],
  "used_by" : [ "" ],
  "meta_data" : [ {
    "id" : 1,
    "key" : "",
    "value" : ""
  } ],
  "_links" : {
    "self" : [ {
      "href" : ""
    } ],
    "collection" : [ {
      "href" : ""
    } ]
  }
}

Create Customer

Name: createCustomer

Create a new customer.

Properties

NameLabelTypeDescriptionRequired
emailEmailSTRINGThe email address for the customer.true
first_nameFirst NameSTRINGCustomer first name.true
last_nameLast NameSTRINGCustomer last name.true
usernameUsernameSTRINGCustomer login name.true
billingBillingOBJECT
Properties {STRING(first_name), STRING(last_name), STRING(company), STRING(address_1), STRING(address_2), STRING(city), STRING(state), STRING(postcode), STRING(country), STRING(email), STRING(phone)}
List of billing address data.false
shippingShippingOBJECT
Properties {STRING(first_name), STRING(last_name), STRING(company), STRING(address_1), STRING(address_2), STRING(city), STRING(state), STRING(postcode), STRING(country), STRING(phone)}
List of shipping address data.false

Example JSON Structure

{
  "label" : "Create Customer",
  "name" : "createCustomer",
  "parameters" : {
    "email" : "",
    "first_name" : "",
    "last_name" : "",
    "username" : "",
    "billing" : {
      "first_name" : "",
      "last_name" : "",
      "company" : "",
      "address_1" : "",
      "address_2" : "",
      "city" : "",
      "state" : "",
      "postcode" : "",
      "country" : "",
      "email" : "",
      "phone" : ""
    },
    "shipping" : {
      "first_name" : "",
      "last_name" : "",
      "company" : "",
      "address_1" : "",
      "address_2" : "",
      "city" : "",
      "state" : "",
      "postcode" : "",
      "country" : "",
      "phone" : ""
    }
  },
  "type" : "woocommerce/v1/createCustomer"
}

Output

Type: OBJECT

Properties

NameTypeDescription
idINTEGERUnique identifier for the resource.
date_createdSTRINGThe date the customer was created, in the site's timezone.
date_created_gmtSTRINGThe date the customer was created, as GMT.
date_modifiedSTRINGThe date the customer was last modified, in the site's timezone.
date_modified_gmtSTRINGThe date the customer was last modified, as GMT.
emailSTRINGThe email address for the customer.
first_nameSTRINGCustomer first name.
last_nameSTRINGCustomer last name.
roleSTRINGCustomer role.
usernameSTRINGCustomer login name.
billingOBJECT
Properties {STRING(first_name), STRING(last_name), STRING(company), STRING(address_1), STRING(address_2), STRING(city), STRING(state), STRING(postcode), STRING(country), STRING(email), STRING(phone)}
List of billing address data.
shippingOBJECT
Properties {STRING(first_name), STRING(last_name), STRING(company), STRING(address_1), STRING(address_2), STRING(city), STRING(state), STRING(postcode), STRING(country)}
List of shipping address data.
is_paying_customerBOOLEAN
Options true, false
Is the customer a paying customer?
avatar_urlSTRINGAvatar URL.
meta_dataARRAY
Items [{INTEGER(id), STRING(key), STRING(value)}]
Meta data.
_linksOBJECT
Properties {[{STRING(href)}](self), [{STRING(href)}](collection)}

Output Example

{
  "id" : 1,
  "date_created" : "",
  "date_created_gmt" : "",
  "date_modified" : "",
  "date_modified_gmt" : "",
  "email" : "",
  "first_name" : "",
  "last_name" : "",
  "role" : "",
  "username" : "",
  "billing" : {
    "first_name" : "",
    "last_name" : "",
    "company" : "",
    "address_1" : "",
    "address_2" : "",
    "city" : "",
    "state" : "",
    "postcode" : "",
    "country" : "",
    "email" : "",
    "phone" : ""
  },
  "shipping" : {
    "first_name" : "",
    "last_name" : "",
    "company" : "",
    "address_1" : "",
    "address_2" : "",
    "city" : "",
    "state" : "",
    "postcode" : "",
    "country" : ""
  },
  "is_paying_customer" : false,
  "avatar_url" : "",
  "meta_data" : [ {
    "id" : 1,
    "key" : "",
    "value" : ""
  } ],
  "_links" : {
    "self" : [ {
      "href" : ""
    } ],
    "collection" : [ {
      "href" : ""
    } ]
  }
}

Create Order

Name: createOrder

Create a new order.

Properties

NameLabelTypeDescriptionRequired
customer_idCustomer IdSTRINGUser ID who owns the order. 0 for guests.true
line_itemsLine ItemsARRAY
Items [{STRING(product_id), INTEGER(quantity)}]
Line items data.true
statusStatusSTRING
Options pending, processing, on-hold, completed, cancelled, refunded, failed
Order status.false
customer_noteCustomer NoteSTRINGNote left by customer during checkout.false
billingBillingOBJECT
Properties {STRING(first_name), STRING(last_name), STRING(company), STRING(address_1), STRING(address_2), STRING(city), STRING(state), STRING(postcode), STRING(country), STRING(email), STRING(phone)}
List of billing address data.false
shippingShippingOBJECT
Properties {STRING(first_name), STRING(last_name), STRING(company), STRING(address_1), STRING(address_2), STRING(city), STRING(state), STRING(postcode), STRING(country), STRING(phone)}
List of shipping address data.false
payment_methodPayment MethodSTRINGPayment method ID.false
set_paidSet PaidBOOLEAN
Options true, false
Define if the order is paid. It will set the status to processing and reduce stock items.false

Example JSON Structure

{
  "label" : "Create Order",
  "name" : "createOrder",
  "parameters" : {
    "customer_id" : "",
    "line_items" : [ {
      "product_id" : "",
      "quantity" : 1
    } ],
    "status" : "",
    "customer_note" : "",
    "billing" : {
      "first_name" : "",
      "last_name" : "",
      "company" : "",
      "address_1" : "",
      "address_2" : "",
      "city" : "",
      "state" : "",
      "postcode" : "",
      "country" : "",
      "email" : "",
      "phone" : ""
    },
    "shipping" : {
      "first_name" : "",
      "last_name" : "",
      "company" : "",
      "address_1" : "",
      "address_2" : "",
      "city" : "",
      "state" : "",
      "postcode" : "",
      "country" : "",
      "phone" : ""
    },
    "payment_method" : "",
    "set_paid" : false
  },
  "type" : "woocommerce/v1/createOrder"
}

Output

Type: OBJECT

Properties

NameTypeDescription
idINTEGERUnique identifier for the resource.
parent_idSTRINGParent order ID.
numberSTRINGOrder number.
order_keySTRINGOrder key.
created_viaSTRINGShows where the order was created.
versionSTRINGVersion of WooCommerce which last updated the order.
statusSTRINGOrder status.
currencySTRINGCurrency the order was created with, in ISO format.
date_createdSTRINGThe date the order was created, in the site's timezone.
date_created_gmtSTRINGThe date the order was created, as GMT.
date_modifiedSTRINGThe date the order was last modified, in the site's timezone.
date_modified_gmtSTRINGThe date the order was last modified, as GMT.
discount_totalSTRINGTotal discount amount for the order.
discount_taxSTRINGTotal discount tax amount for the order.
shipping_totalSTRINGTotal shipping amount for the order.
shipping_taxSTRINGTotal shipping tax amount for the order.
cart_taxSTRINGSum of line item taxes only.
totalSTRINGGrand total.
total_taxSTRINGSum of all taxes.
prices_include_taxBOOLEAN
Options true, false
True the prices included tax during checkout.
customer_idINTEGERUser ID who owns the order. 0 for guests. Default is 0.
customer_ip_addressSTRINGCustomer's IP address.
customer_user_agentSTRINGUser agent of the customer.
customer_noteSTRINGNote left by customer during checkout.
billingOBJECT
Properties {STRING(first_name), STRING(last_name), STRING(company), STRING(address_1), STRING(address_2), STRING(city), STRING(state), STRING(postcode), STRING(country), STRING(email), STRING(phone)}
Billing address.
shippingOBJECT
Properties {STRING(first_name), STRING(last_name), STRING(company), STRING(address_1), STRING(address_2), STRING(city), STRING(state), STRING(postcode), STRING(country)}
Shipping address.
payment_methodsSTRINGPayment method ID.
payment_method_titleSTRINGPayment method title.
transaction_idSTRINGUnique transaction ID.
date_paidSTRINGThe date the order was paid, in the site's timezone.
date_paid_gmtSTRINGThe date the order was paid, as GMT.
date_completedSTRINGThe date the order was completed, in the site's timezone.
date_completed_gmtSTRINGThe date the order was completed, as GMT.
cart_hashSTRINGSum of line item taxes only.
meta_dataARRAY
Items [{INTEGER(id), STRING(key), STRING(value)}]
Meta data.
line_itemsARRAY
Items [{INTEGER(id), STRING(name), INTEGER(product_id), INTEGER(variation_id), INTEGER(quantity), STRING(tax_class), STRING(subtotal), STRING(subtotal_tax), STRING(total), STRING(total_tax), [](taxes), [](meta_data), STRING(sku), STRING(price)}]
Line items data.
tax_linesARRAY
Items [{INTEGER(id), STRING(rate_code), INTEGER(rate_id), STRING(label), BOOLEAN(compound), STRING(tax_total), STRING(shipping_tax_total), [](mata_data)}]
Tax lines data.
shipping_linesARRAY
Items [{INTEGER(id), STRING(method_title), STRING(method_id), STRING(total), STRING(total_tax), [](taxes), [](meta_data)}]
Shipping lines data.
fee_linesARRAY
Items [{INTEGER(id), STRING(name), STRING(tax_class), STRING(tax_status), STRING(total), STRING(total_tax), [](taxes), [](mata_data)}]
Fee lines data.
coupon_linesARRAY
Items [{INTEGER(id), STRING(code), STRING(discount), STRING(discount_tax), [](meta_data)}]
Coupons line data.
refundsARRAY
Items [{INTEGER(id), STRING(reason), STRING(total)}]
List of refunds.
_linksOBJECT
Properties {[{STRING(href)}](self), [{STRING(href)}](collection)}

Output Example

{
  "id" : 1,
  "parent_id" : "",
  "number" : "",
  "order_key" : "",
  "created_via" : "",
  "version" : "",
  "status" : "",
  "currency" : "",
  "date_created" : "",
  "date_created_gmt" : "",
  "date_modified" : "",
  "date_modified_gmt" : "",
  "discount_total" : "",
  "discount_tax" : "",
  "shipping_total" : "",
  "shipping_tax" : "",
  "cart_tax" : "",
  "total" : "",
  "total_tax" : "",
  "prices_include_tax" : false,
  "customer_id" : 1,
  "customer_ip_address" : "",
  "customer_user_agent" : "",
  "customer_note" : "",
  "billing" : {
    "first_name" : "",
    "last_name" : "",
    "company" : "",
    "address_1" : "",
    "address_2" : "",
    "city" : "",
    "state" : "",
    "postcode" : "",
    "country" : "",
    "email" : "",
    "phone" : ""
  },
  "shipping" : {
    "first_name" : "",
    "last_name" : "",
    "company" : "",
    "address_1" : "",
    "address_2" : "",
    "city" : "",
    "state" : "",
    "postcode" : "",
    "country" : ""
  },
  "payment_methods" : "",
  "payment_method_title" : "",
  "transaction_id" : "",
  "date_paid" : "",
  "date_paid_gmt" : "",
  "date_completed" : "",
  "date_completed_gmt" : "",
  "cart_hash" : "",
  "meta_data" : [ {
    "id" : 1,
    "key" : "",
    "value" : ""
  } ],
  "line_items" : [ {
    "id" : 1,
    "name" : "",
    "product_id" : 1,
    "variation_id" : 1,
    "quantity" : 1,
    "tax_class" : "",
    "subtotal" : "",
    "subtotal_tax" : "",
    "total" : "",
    "total_tax" : "",
    "taxes" : [ ],
    "meta_data" : [ ],
    "sku" : "",
    "price" : ""
  } ],
  "tax_lines" : [ {
    "id" : 1,
    "rate_code" : "",
    "rate_id" : 1,
    "label" : "",
    "compound" : false,
    "tax_total" : "",
    "shipping_tax_total" : "",
    "mata_data" : [ ]
  } ],
  "shipping_lines" : [ {
    "id" : 1,
    "method_title" : "",
    "method_id" : "",
    "total" : "",
    "total_tax" : "",
    "taxes" : [ ],
    "meta_data" : [ ]
  } ],
  "fee_lines" : [ {
    "id" : 1,
    "name" : "",
    "tax_class" : "",
    "tax_status" : "",
    "total" : "",
    "total_tax" : "",
    "taxes" : [ ],
    "mata_data" : [ ]
  } ],
  "coupon_lines" : [ {
    "id" : 1,
    "code" : "",
    "discount" : "",
    "discount_tax" : "",
    "meta_data" : [ ]
  } ],
  "refunds" : [ {
    "id" : 1,
    "reason" : "",
    "total" : ""
  } ],
  "_links" : {
    "self" : [ {
      "href" : ""
    } ],
    "collection" : [ {
      "href" : ""
    } ]
  }
}

Create Product

Name: createProduct

Create a new product.

Properties

NameLabelTypeDescriptionRequired
nameNameSTRINGProduct name.true
regular_priceRegular PriceSTRINGProduct regular price.true
typeTypeSTRING
Options simple, grouped, external, variable
Product type.false
descriptionDescriptionSTRINGProduct description.false
manage_stockManage StockBOOLEAN
Options true, false
Stock management at product level.false
stock_quantityStock QuantityINTEGERStock quantity.false
stock_statusStock StatusSTRING
Options instock, outofstock, onbackorder
Controls the stock status of the product.false
weightWeightSTRINGProduct weight (kg).false
dimensionsDimensionsOBJECT
Properties {STRING(length), STRING(width), STRING(height)}
Product dimensions.false
categoriesCategoriesARRAY
Items [STRING]
List of categories.false
tagsTagsARRAY
Items [STRING]
List of tags.false
imagesImagesARRAY
Items [{STRING(src), STRING(name)}]
List of images.false

Example JSON Structure

{
  "label" : "Create Product",
  "name" : "createProduct",
  "parameters" : {
    "name" : "",
    "regular_price" : "",
    "type" : "",
    "description" : "",
    "manage_stock" : false,
    "stock_quantity" : 1,
    "stock_status" : "",
    "weight" : "",
    "dimensions" : {
      "length" : "",
      "width" : "",
      "height" : ""
    },
    "categories" : [ "" ],
    "tags" : [ "" ],
    "images" : [ {
      "src" : "",
      "name" : ""
    } ]
  },
  "type" : "woocommerce/v1/createProduct"
}

Output

Type: OBJECT

Properties

NameTypeDescription
idINTEGERUnique identifier for the resource.
nameSTRINGProduct name.
slugSTRINGProduct slug.
permalinkSTRINGProduct URL.
date_createdSTRINGThe date the product was created, in the site's timezone.
date_created_gmtSTRINGThe date the product was created, as GMT.
date_modifiedSTRINGThe date the product was last modified, in the site's timezone.
date_modified_gmtSTRINGThe date the product was last modified, as GMT.
typeSTRINGProduct type.
statusSTRINGProduct status.
featuredBOOLEAN
Options true, false
Featured product.
catalog_visibilitySTRINGCatalog visibility.
descriptionSTRINGProduct description.
short_descriptionSTRINGProduct short description.
skuSTRINGUnique identifier.
priceSTRINGCurrent product price.
regular_priceSTRINGProduct regular price.
sale_priceSTRINGProduct sale price.
date_on_sale_fromSTRINGStart date of sale price, in the site's timezone.
date_on_sale_from_gmtSTRINGStart date of sale price, as GMT.
date_on_sale_toSTRINGEnd date of sale price, in the site's timezone.
date_on_sale_to_gmtSTRINGEnd date of sale price, as GMT.
price_htmlSTRINGPrice formatted in HTML.
on_saleBOOLEAN
Options true, false
Shows if the product is on sale.
purchasableBOOLEAN
Options true, false
Shows if the product can be bought.
total_salesINTEGERAmount of sales.
virtualBOOLEAN
Options true, false
If the product is virtual. Default is false.
downloadableBOOLEAN
Options true, false
If the product is downloadable. Default is false.
downloadsARRAY
Items [{STRING(id), STRING(name), STRING(file)}]
List of downloadable files.
download_limitINTEGERNumber of times downloadable files can be downloaded after purchase.
download_expiryINTEGERNumber of days until access to downloadable files expires.
external_urlSTRINGProduct external URL. Only for external products.
button_textSTRINGProduct external button text. Only for external products.
tax_statusSTRINGTax status
tax_classSTRINGTax class.
manage_stockBOOLEAN
Options true, false
Stock management at product level.
stock_quantityINTEGERStock quantity.
stock_statusSTRINGControls the stock status of the product.
backordersSTRINGIf managing stock, this controls if backorders are allowed.
backorders_allowedBOOLEAN
Options true, false
Shows if backorders are allowed.
backorderedBOOLEAN
Options true, false
Shows if the product is on backordered.
sold_individuallyBOOLEAN
Options true, false
Allow one item to be bought in a single order.
weightSTRINGProduct weight.
dimensionsOBJECT
Properties {STRING(length), STRING(width), STRING(height)}
Product dimensions.
shipping_requiredBOOLEAN
Options true, false
Shows if the product need to be shipped.
shipping_taxableBOOLEAN
Options true, false
Shows whether or not the product shipping is taxable.
shipping_classSTRINGShipping class slug.
shipping_class_idINTEGERShipping class ID.
reviews_allowedBOOLEAN
Options true, false
Allow reviews.
average_ratingSTRINGReviews average rating.
rating_countINTEGERAmount of reviews that the product have.
related_idsARRAY
Items [INTEGER]
List of related products IDs.
upsell_idsARRAY
Items [INTEGER]
List of up-sell products IDs.
cross_sell_idsARRAY
Items [INTEGER]
List of cross-sell products IDs.
parent_idINTEGERProduct parent ID.
purchase_noteSTRINGOptional note to send the customer after purchase.
categoriesARRAY
Items [{INTEGER(id), STRING(name), STRING(slug)}]
List of categories.
tagsARRAY
Items [{INTEGER(id), STRING(name), STRING(slug)}]
List of tags.
imagesARRAY
Items [{INTEGER(id), STRING(date_created), STRING(date_created_gmt), STRING(date_modified), STRING(date_modified_gmt), STRING(src), STRING(name), STRING(alt)}]
List of images.
attributesARRAY
Items [{INTEGER(id), STRING(name), INTEGER(position), BOOLEAN(visible), BOOLEAN(variation), [](options)}]
List of attributes.
default_attributesARRAY
Items [{INTEGER(id), STRING(name), STRING(option)}]
Defaults variation attributes.
variationsARRAY
Items []
List of variations IDs.
grouped_productsARRAY
Items []
List of grouped products ID.
menu_orderINTEGERMenu order, used to custom sort products.
meta_dataARRAY
Items [{INTEGER(id), STRING(key), STRING(value)}]
Meta data.
_linksOBJECT
Properties {[{STRING(href)}](self), [{STRING(href)}](collection)}

Output Example

{
  "id" : 1,
  "name" : "",
  "slug" : "",
  "permalink" : "",
  "date_created" : "",
  "date_created_gmt" : "",
  "date_modified" : "",
  "date_modified_gmt" : "",
  "type" : "",
  "status" : "",
  "featured" : false,
  "catalog_visibility" : "",
  "description" : "",
  "short_description" : "",
  "sku" : "",
  "price" : "",
  "regular_price" : "",
  "sale_price" : "",
  "date_on_sale_from" : "",
  "date_on_sale_from_gmt" : "",
  "date_on_sale_to" : "",
  "date_on_sale_to_gmt" : "",
  "price_html" : "",
  "on_sale" : false,
  "purchasable" : false,
  "total_sales" : 1,
  "virtual" : false,
  "downloadable" : false,
  "downloads" : [ {
    "id" : "",
    "name" : "",
    "file" : ""
  } ],
  "download_limit" : 1,
  "download_expiry" : 1,
  "external_url" : "",
  "button_text" : "",
  "tax_status" : "",
  "tax_class" : "",
  "manage_stock" : false,
  "stock_quantity" : 1,
  "stock_status" : "",
  "backorders" : "",
  "backorders_allowed" : false,
  "backordered" : false,
  "sold_individually" : false,
  "weight" : "",
  "dimensions" : {
    "length" : "",
    "width" : "",
    "height" : ""
  },
  "shipping_required" : false,
  "shipping_taxable" : false,
  "shipping_class" : "",
  "shipping_class_id" : 1,
  "reviews_allowed" : false,
  "average_rating" : "",
  "rating_count" : 1,
  "related_ids" : [ 1 ],
  "upsell_ids" : [ 1 ],
  "cross_sell_ids" : [ 1 ],
  "parent_id" : 1,
  "purchase_note" : "",
  "categories" : [ {
    "id" : 1,
    "name" : "",
    "slug" : ""
  } ],
  "tags" : [ {
    "id" : 1,
    "name" : "",
    "slug" : ""
  } ],
  "images" : [ {
    "id" : 1,
    "date_created" : "",
    "date_created_gmt" : "",
    "date_modified" : "",
    "date_modified_gmt" : "",
    "src" : "",
    "name" : "",
    "alt" : ""
  } ],
  "attributes" : [ {
    "id" : 1,
    "name" : "",
    "position" : 1,
    "visible" : false,
    "variation" : false,
    "options" : [ ]
  } ],
  "default_attributes" : [ {
    "id" : 1,
    "name" : "",
    "option" : ""
  } ],
  "variations" : [ ],
  "grouped_products" : [ ],
  "menu_order" : 1,
  "meta_data" : [ {
    "id" : 1,
    "key" : "",
    "value" : ""
  } ],
  "_links" : {
    "self" : [ {
      "href" : ""
    } ],
    "collection" : [ {
      "href" : ""
    } ]
  }
}

Triggers

New Order

Name: newOrder

Triggers when any order is created.

Type: DYNAMIC_WEBHOOK

Output

Type: OBJECT

Properties

NameTypeDescription
idINTEGERUnique identifier for the resource.
nameSTRINGA friendly name for the webhook.
statusSTRINGWebhook status.
topicSTRINGWebhook topic.
resourceSTRINGWebhook resource.
eventSTRINGWebhook event.
hooksARRAY
Items [STRING]
WooCommerce action names associated with the webhook.
delivery_urlSTRINGThe URL where the webhook payload is delivered.
date_createdSTRINGThe date the webhook was created, in the site's timezone.
date_created_gmtSTRINGThe date the webhook was created, as GMT.
date_modifiedSTRINGThe date the webhook was last modified, in the site's timezone.
date_modified_gmtSTRINGThe date the webhook was last modified, as GMT.
_linksOBJECT
Properties {[{STRING(href)}](self), [{STRING(href)}](collection)}

JSON Example

{
  "label" : "New Order",
  "name" : "newOrder",
  "type" : "woocommerce/v1/newOrder"
}

New Coupon

Name: newCoupon

Triggers when any coupon is created.

Type: DYNAMIC_WEBHOOK

Output

Type: OBJECT

Properties

NameTypeDescription
idINTEGERUnique identifier for the resource.
nameSTRINGA friendly name for the webhook.
statusSTRINGWebhook status.
topicSTRINGWebhook topic.
resourceSTRINGWebhook resource.
eventSTRINGWebhook event.
hooksARRAY
Items [STRING]
WooCommerce action names associated with the webhook.
delivery_urlSTRINGThe URL where the webhook payload is delivered.
date_createdSTRINGThe date the webhook was created, in the site's timezone.
date_created_gmtSTRINGThe date the webhook was created, as GMT.
date_modifiedSTRINGThe date the webhook was last modified, in the site's timezone.
date_modified_gmtSTRINGThe date the webhook was last modified, as GMT.
_linksOBJECT
Properties {[{STRING(href)}](self), [{STRING(href)}](collection)}

JSON Example

{
  "label" : "New Coupon",
  "name" : "newCoupon",
  "type" : "woocommerce/v1/newCoupon"
}

What to do if your action is not listed here?

If this component doesn't have the action you need, you can use Custom Action to create your own. Custom Actions empower you to define HTTP requests tailored to your specific requirements, allowing for greater flexibility in integrating with external services or APIs.

To create a Custom Action, simply specify the desired HTTP method, path, and any necessary parameters. This way, you can extend the functionality of your component beyond the predefined actions, ensuring that you can meet all your integration needs effectively.