Skip to main content

Create SKU Orders from WooCommerce

POST 

/api/woo-commerce/:integration_instance/orders/create-sku-orders

Create SKU.io sales orders from selected WooCommerce orders.

Authorization

Any valid API token can call this endpoint — no specific scope required. Manage tokens.

Authentication: Requires Bearer token.

Request Body:

  • ids (array of integers, optional) — WooCommerce order local DB IDs to convert. Omit if create_all_orders is true or filters are provided.
  • create_all_orders (boolean, optional) — If true, creates SKU orders for all eligible WooCommerce orders
  • filters (object, optional) — list view filters to determine which orders to process

Bulk selection contract:

  • {"ids": [1, 2]} — create for the given channel order IDs
  • {"create_all_orders": true} — create for all eligible orders on the integration instance
  • {"create_all_orders": true, "filters": {...}} — create only for orders matching the filters. The filters object accepts the same filter keys as the corresponding orders list endpoint (bare column keys, e.g. {"order_status": "pending"}) and/or a "filter_groups" tree (base64-encoded JSON, same format as the list endpoint). When filters match no orders, nothing is created and the response message is "No orders to create".
  • Legacy {"conjunction", "filterSet"} filter payloads are rejected with 422.

Request

Responses

OK

Response Headers
    Content-Type