WooCommerce · Example Payload

Woocommerce Store Api Cart Totals Example

eCommerceOpen SourceOrdersProductsWordPress

Woocommerce Store Api Cart Totals Example is an example object payload from WooCommerce, with 11 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

total_itemstotal_items_taxtotal_feestotal_fees_taxtotal_discounttotal_discount_taxtotal_shippingtotal_shipping_taxtotal_pricetotal_taxtax_lines

Example Payload

Raw ↑
{
  "total_items": "string-value",
  "total_items_tax": "string-value",
  "total_fees": "string-value",
  "total_fees_tax": "string-value",
  "total_discount": "string-value",
  "total_discount_tax": "string-value",
  "total_shipping": "string-value",
  "total_shipping_tax": "string-value",
  "total_price": "string-value",
  "total_tax": "string-value",
  "tax_lines": [
    {
      "name": "Example Name",
      "price": "string-value",
      "rate": "string-value"
    }
  ]
}