--- 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 --- [Back to Developer changelog](https://shopify.dev/changelog) 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).