---
title: >-
  Create B2B Draft Orders via PurchasingEntityInput - Shopify developer
  changelog
description: >-
  Shopify’s developer changelog documents all changes to Shopify’s platform.
  Find the latest news and learn about new platform opportunities.
source_url:
  html: >-
    https://shopify.dev/changelog/create-b2b-draft-orders-via-purchasingentityinput
  md: >-
    https://shopify.dev/changelog/create-b2b-draft-orders-via-purchasingentityinput.md
metadata:
  effectiveApiVersion: 2022-10
  affectedApi: []
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: Update
    handle: update
  indicatesActionRequired: false
  createdAt: '2022-09-19T12:50:41-04:00'
  postedAt: '2022-10-01T00:00:00-04:00'
  updatedAt: '2024-12-13T17:24:35-05:00'
  effectiveAt: '2022-10-01T00:00:00-04:00'
---

October 1, 2022

Tags:

* API
* 2022-10

# Create B2B Draft Orders via PurchasingEntityInput

As of GraphQL Admin API version `2022-10`, you can use the purchasing entity input field to create and update B2B draft orders.

This will attach company, location and contact to the draft order.

The field can also be used to create and update a traditional D2C draft order, requiring only a customer ID.

Learn more about [PurchasingEntityInput](https://shopify.dev/api/admin-graphql/2022-10/input-objects/PurchasingEntityInput).
