WooCommerce · Example Payload

Woocommerce Rest Api Order Input Example

eCommerceOpen SourceOrdersProductsWordPress

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

Top-level fields

statuscustomer_idcustomer_notebillingshippingpayment_methodpayment_method_titleline_itemsmeta_data

Example Payload

Raw ↑
{
  "status": "pending",
  "customer_id": 1,
  "customer_note": "string-value",
  "billing": {
    "first_name": "Example Name",
    "last_name": "Example Name",
    "company": "string-value",
    "address_1": "string-value",
    "address_2": "string-value",
    "city": "string-value",
    "state": "string-value",
    "postcode": "string-value",
    "country": "string-value",
    "email": "user@example.com",
    "phone": "string-value"
  },
  "shipping": {
    "first_name": "Example Name",
    "last_name": "Example Name",
    "company": "string-value",
    "address_1": "string-value",
    "address_2": "string-value",
    "city": "string-value",
    "state": "string-value",
    "postcode": "string-value",
    "country": "string-value",
    "email": "user@example.com",
    "phone": "string-value"
  },
  "payment_method": "string-value",
  "payment_method_title": "Example Name",
  "line_items": [
    "string-value"
  ],
  "meta_data": [
    "string-value"
  ]
}