WooCommerce · Arazzo Workflow

WooCommerce Create Customer and Order

Version 1.0.0

Create a customer account and place an order on their behalf, then read the order back.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub E-CommerceOpen-SourceOrderProductWordPressArazzoWorkflows

Provider

woocommerce

Workflows

create-customer-and-order
Create a customer, place an order for them, and confirm the order.
Creates a customer account, creates an order referencing that customer and a product line item, and reads the order back to verify it persisted.
3 steps inputs: email, firstName, lastName, paymentMethod, productId, quantity outputs: customerId, orderId, orderStatus
1
createCustomer
Create the customer account that the order will be placed against.
2
createOrder
Create an order tied to the new customer with a single product line item.
3
getOrder
Retrieve the created order to confirm it was recorded against the customer.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: WooCommerce Create Customer and Order
  summary: Create a customer account and place an order on their behalf, then read the order back.
  description: >-
    Onboards a buyer and immediately places their first order. The workflow
    creates a customer account, creates an order tied to that customer with a
    line item, and finally retrieves the order to confirm it was recorded
    against the customer. Every step spells out its request inline so the flow
    can be read and executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: customersApi
  url: ../openapi/woocommerce-customers-api-openapi.yml
  type: openapi
- name: ordersApi
  url: ../openapi/woocommerce-orders-api-openapi.yml
  type: openapi
workflows:
- workflowId: create-customer-and-order
  summary: Create a customer, place an order for them, and confirm the order.
  description: >-
    Creates a customer account, creates an order referencing that customer and
    a product line item, and reads the order back to verify it persisted.
  inputs:
    type: object
    required:
    - email
    - productId
    - quantity
    properties:
      email:
        type: string
        description: Email address for the new customer account.
      firstName:
        type: string
        description: Customer first name.
      lastName:
        type: string
        description: Customer last name.
      productId:
        type: integer
        description: ID of the product to add as a line item on the order.
      quantity:
        type: integer
        description: Quantity of the product to order.
      paymentMethod:
        type: string
        description: Optional payment method ID for the order.
  steps:
  - stepId: createCustomer
    description: >-
      Create the customer account that the order will be placed against.
    operationId: createCustomer
    requestBody:
      contentType: application/json
      payload:
        email: $inputs.email
        first_name: $inputs.firstName
        last_name: $inputs.lastName
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      customerId: $response.body#/id
  - stepId: createOrder
    description: >-
      Create an order tied to the new customer with a single product line item.
    operationId: createOrder
    requestBody:
      contentType: application/json
      payload:
        status: pending
        customer_id: $steps.createCustomer.outputs.customerId
        payment_method: $inputs.paymentMethod
        line_items:
        - product_id: $inputs.productId
          quantity: $inputs.quantity
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      orderId: $response.body#/id
  - stepId: getOrder
    description: >-
      Retrieve the created order to confirm it was recorded against the
      customer.
    operationId: getOrder
    parameters:
    - name: id
      in: path
      value: $steps.createOrder.outputs.orderId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      orderId: $response.body#/id
      orderStatus: $response.body#/status
  outputs:
    customerId: $steps.createCustomer.outputs.customerId
    orderId: $steps.getOrder.outputs.orderId
    orderStatus: $steps.getOrder.outputs.orderStatus

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/woocommerce-create-customer-and-order-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.