Tue. Jul 7th, 2026 16:42:25

Products

Order properties

Attribute Type Description
id integer Unique identifier for the resource.READ-ONLY
parent_id integer Parent order ID.
number string Order number.READ-ONLY
order_key string Order key.READ-ONLY
created_via string Shows where the order was created.READ-ONLY
version string Version of WooCommerce which last updated the order.READ-ONLY
status string Order status. Options: pendingprocessingon-holdcompletedcancelledrefundedfailed and trash. Default is pending.
currency string Currency the order was created with, in ISO format. Options: AEDAFNALLAMDANGAOAARSAUDAWGAZNBAMBBDBDTBGNBHDBIFBMDBNDBOBBRLBSDBTCBTNBWPBYRBZDCADCDFCHFCLPCNYCOPCRCCUCCUPCVECZKDJFDKKDOPDZDEGPERNETBEURFJDFKPGBPGELGGPGHSGIPGMDGNFGTQGYDHKDHNLHRKHTGHUFIDRILSIMPINRIQDIRRIRTISKJEPJMDJODJPYKESKGSKHRKMFKPWKRWKWDKYDKZTLAKLBPLKRLRDLSLLYDMADMDLMGAMKDMMKMNTMOPMROMURMVRMWKMXNMYRMZNNADNGNNIONOKNPRNZDOMRPABPENPGKPHPPKRPLNPRBPYGQARRONRSDRUBRWFSARSBDSCRSDGSEKSGDSHPSLLSOSSRDSSPSTDSYPSZLTHBTJSTMTTNDTOPTRYTTDTWDTZSUAHUGXUSDUYUUZSVEFVNDVUVWSTXAFXCDXOFXPFYERZAR and ZMW. Default is USD.
date_created date-time The date the order was created, in the site’s timezone.READ-ONLY
date_created_gmt date-time The date the order was created, as GMT.READ-ONLY
date_modified date-time The date the order was last modified, in the site’s timezone.READ-ONLY
date_modified_gmt date-time The date the order was last modified, as GMT.READ-ONLY
discount_total string Total discount amount for the order.READ-ONLY
discount_tax string Total discount tax amount for the order.READ-ONLY
shipping_total string Total shipping amount for the order.READ-ONLY
shipping_tax string Total shipping tax amount for the order.READ-ONLY
cart_tax string Sum of line item taxes only.READ-ONLY
total string Grand total.READ-ONLY
total_tax string Sum of all taxes.READ-ONLY
prices_include_tax boolean True the prices included tax during checkout.READ-ONLY
customer_id integer User ID who owns the order. 0 for guests. Default is 0.
customer_ip_address string Customer’s IP address.READ-ONLY
customer_user_agent string User agent of the customer.READ-ONLY
customer_note string Note left by customer during checkout.
billing object Billing address. See Order – Billing properties
shipping object Shipping address. See Order – Shipping properties
payment_method string Payment method ID.
payment_method_title string Payment method title.
transaction_id string Unique transaction ID.
date_paid date-time The date the order was paid, in the site’s timezone.READ-ONLY
date_paid_gmt date-time The date the order was paid, as GMT.READ-ONLY
date_completed date-time The date the order was completed, in the site’s timezone.READ-ONLY
date_completed_gmt date-time The date the order was completed, as GMT.READ-ONLY
cart_hash string MD5 hash of cart items to ensure orders are not modified.READ-ONLY
meta_data array Meta data. See Order – Meta data properties
line_items array Line items data. See Order – Line items properties
tax_lines array Tax lines data. See Order – Tax lines propertiesREAD-ONLY
shipping_lines array Shipping lines data. See Order – Shipping lines properties
fee_lines array Fee lines data. See Order – Fee lines properties
coupon_lines array Coupons line data. See Order – Coupon lines properties
refunds array List of refunds. See Order – Refunds propertiesREAD-ONLY
set_paid boolean Define if the order is paid. It will set the status to processing and reduce stock items. Default is false.WRITE-ONLY

Order – Billing properties

Attribute Type Description
first_name string First name.
last_name string Last name.
company string Company name.
address_1 string Address line 1
address_2 string Address line 2
city string City name.
state string ISO code or name of the state, province or district.
postcode string Postal code.
country string Country code in ISO 3166-1 alpha-2 format.
email string Email address.
phone string Phone number.

Order – Shipping properties

Attribute Type Description
first_name string First name.
last_name string Last name.
company string Company name.
address_1 string Address line 1
address_2 string Address line 2
city string City name.
state string ISO code or name of the state, province or district.
postcode string Postal code.
country string Country code in ISO 3166-1 alpha-2 format.

Order – Meta data properties

Attribute Type Description
id integer Meta ID.READ-ONLY
key string Meta key.
value string Meta value.

Order – Line items properties

Attribute Type Description
id integer Item ID.READ-ONLY
name string Product name.
product_id integer Product ID.
variation_id integer Variation ID, if applicable.
quantity integer Quantity ordered.
tax_class string Slug of the tax class of product.
subtotal string Line subtotal (before discounts).
subtotal_tax string Line subtotal tax (before discounts).READ-ONLY
total string Line total (after discounts).
total_tax string Line total tax (after discounts).READ-ONLY
taxes array Line taxes. See Order – Taxes propertiesREAD-ONLY
meta_data array Meta data. See Order – Meta data properties
sku string Product SKU.READ-ONLY
price string Product price.READ-ONLY

Order – Tax lines properties

Attribute Type Description
id integer Item ID.READ-ONLY
rate_code string Tax rate code.READ-ONLY
rate_id string Tax rate ID.READ-ONLY
label string Tax rate label.READ-ONLY
compound boolean Show if is a compound tax rate.READ-ONLY
tax_total string Tax total (not including shipping taxes).READ-ONLY
shipping_tax_total string Shipping tax total.READ-ONLY
meta_data array Meta data. See Order – Meta data properties

Order – Shipping lines properties

Attribute Type Description
id integer Item ID.READ-ONLY
method_title string Shipping method name.
method_id string Shipping method ID.
total string Line total (after discounts).
total_tax string Line total tax (after discounts).READ-ONLY
taxes array Line taxes. See Order – Taxes propertiesREAD-ONLY
meta_data array Meta data. See Order – Meta data properties

Order – Fee lines properties

Attribute Type Description
id integer Item ID.READ-ONLY
name string Fee name.
tax_class string Tax class of fee.
tax_status string Tax status of fee. Options: taxable and none.
total string Line total (after discounts).
total_tax string Line total tax (after discounts).READ-ONLY
taxes array Line taxes. See Order – Taxes propertiesREAD-ONLY
meta_data array Meta data. See Order – Meta data properties

Order – Coupon lines properties

Attribute Type Description
id integer Item ID.READ-ONLY
code string Coupon code.
discount string Discount total.READ-ONLY
discount_tax string Discount total tax.READ-ONLY
meta_data array Meta data. See Order – Meta data properties

Order – Refunds properties

Attribute Type Description
id integer Refund ID.READ-ONLY
reason string Refund reason.READ-ONLY
total string Refund total.READ-ONLY

Order – Taxes properties

Attribute Type Description
id integer Item ID.READ-ONLY
rate_code string Tax rate code.READ-ONLY
rate_id string Tax rate ID.READ-ONLY
label string Tax rate label.READ-ONLY
compound boolean Show if is a compound tax rate.READ-ONLY
tax_total string Tax total (not including shipping taxes).READ-ONLY
shipping_tax_total string Shipping tax total.READ-ONLY
meta_data array Meta data. See Order – Meta data properties