> This page is for Developer.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bigcommerce.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bigcommerce.com/_mcp/server.

# createOrder

GraphQL MUTATION

Create an order in the BigCommerce store. 
Requires a B2B Token.

Reference: https://docs.bigcommerce.com/developer/api-reference/graphql/b2b/b2b-graphql/mutations/create-order

## GraphQL Schema

```graphql
mutation ExampleMutation($createData: OrderCreateInputType!) {
  createOrder(createData: $createData) {
    orderId
  }
}
```

## Variables

```json
{
  "createData": {
    "bcOrderId": 0,
    "poNumber": "example",
    "referenceNumber": "example",
    "isSaveOrderComment": "example",
    "extraInt1": 0,
    "extraInt2": 0,
    "extraInt3": 0,
    "extraInt4": 0,
    "extraInt5": 0,
    "extraStr1": "example"
  }
}
```