Nexlogiq WooCommerce icon

Nexlogiq WooCommerce

Consume WooCommerce API (Nexlogiq Edition)

Order → Create

AI-generated

Summary

Create a new order in a WooCommerce store by specifying required API credentials and the store URL, with optional details such as billing address, line items, and additional order fields.

Inputs

  • Store URL (required) — The URL of the WooCommerce store to connect to.
  • Consumer Key (required) — The consumer key for authenticating with the WooCommerce API.
  • Consumer Secret (required) — The consumer secret for authenticating with the WooCommerce API.
  • Additional Fields — Optional fields for the order, including currency, customer ID, customer note, parent order ID, payment method ID and title, paid status, order status, and transaction ID.
  • Billing — Billing address details including first name, last name, company, address lines, city, postal code, country, email, and phone.
  • Line Items — List of line items to include in the order, each with product ID, variation ID, and quantity.

Output shape

a list with a single item representing the newly created order's data as returned by the WooCommerce API

The response includes all details of the created order. Additional optional nested fields like shipping, coupon lines, fee lines, shipping lines, and meta data may be included if provided in the input.

Examples

Example 1: Create an order with basic billing and one line item

Set Store URL, Consumer Key, Consumer Secret, add billing address with customer details, add one line item with product ID and quantity, and optionally set currency and status in additional fields.

Links

Discussion