add_order_note | Add a note to an order. Required: note (string, the note content). Optional: customer_note (boolean, if true the note is visible to the customer). |
create_coupon | Create a coupon. Required: code (string, the coupon code). Optional: discount_type (string: percent|fixed_cart|fixed_product), amount (string, the discount amount), individual_use (boolean), exclude_sale_items (boolean), minimum_amount (string, decimal minimum cart total), date_expires (string, ISO 8601 date), usage_limit (integer). |
create_customer | Create a customer. Required: email (string). Optional: first_name (string), last_name (string), username (string), billing (object with first_name, last_name, address_1, city, postcode, country, email, phone), shipping (object with first_name, last_name, address_1, city, postcode, country). |
create_order | Create an order. Required: payment_method (string, e.g. “bacs”), line_items (array of {product_id: integer, quantity: integer, variation_id?: integer}). Optional: payment_method_title (string), set_paid (boolean), status (string: pending|processing|on-hold|completed|cancelled|refunded|failed), customer_id (integer), billing (object with first_name, last_name, address_1, city, postcode, country, email, phone), shipping (object with first_name, last_name, address_1, city, postcode, country), shipping_lines (array of {method_id: string, method_title: string, total: string}), customer_note (string). |
create_product | Create a product. Required: name (string). Optional: type (string: simple|grouped|external|variable), regular_price (string, decimal price), description (string, HTML), short_description (string, HTML), sku (string), categories (array of {id: integer}), manage_stock (boolean), stock_quantity (integer), status (string: draft|pending|private|publish). |
update_order | Update an order by ID. Modifiable fields: status (string: pending|processing|on-hold|completed|cancelled|refunded|failed), customer_note (string), set_paid (boolean). |
update_product | Update a product by ID. Modifiable fields: regular_price (string, decimal price), sale_price (string, decimal price), status (string: draft|pending|private|publish), stock_quantity (integer), manage_stock (boolean), stock_status (string: instock|outofstock|onbackorder), description (string, HTML), short_description (string, HTML). |