WooCommerce · Example Payload

Woocommerce Rest Api Line Item Example

eCommerceOpen SourceOrdersProductsWordPress

Woocommerce Rest Api Line Item Example is an example object payload from WooCommerce, with 13 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

idnameproduct_idvariation_idquantitytax_classsubtotalsubtotal_taxtotaltotal_taxskupricemeta_data

Example Payload

Raw ↑
{
  "id": 1,
  "name": "Example Name",
  "product_id": 1,
  "variation_id": 1,
  "quantity": 1,
  "tax_class": "string-value",
  "subtotal": "string-value",
  "subtotal_tax": "string-value",
  "total": "string-value",
  "total_tax": "string-value",
  "sku": "string-value",
  "price": 10.5,
  "meta_data": [
    "string-value"
  ]
}