---
title: PurchasingEntity - GraphQL Admin
description: >-
Represents information about the purchasing entity for the order or draft
order.
api_version: unstable
api_name: admin
source_url:
html: 'https://shopify.dev/docs/api/admin-graphql/unstable/unions/PurchasingEntity'
md: >-
https://shopify.dev/docs/api/admin-graphql/unstable/unions/PurchasingEntity.md
---
# PurchasingEntity
union
Requires The user must have access to customers and orders or draft orders.
Represents information about the purchasing entity for the order or draft order.
## Fields with this union
* [CalculatedDraftOrder.purchasingEntity](https://shopify.dev/docs/api/admin-graphql/unstable/objects/CalculatedDraftOrder#field-CalculatedDraftOrder.fields.purchasingEntity)
OBJECT
Calculated pricing, taxes, and discounts for a [`DraftOrder`](https://shopify.dev/docs/api/admin-graphql/latest/objects/DraftOrder). Includes the complete financial breakdown with line items, discounts, shipping costs, tax calculations, and totals in both shop and presentment currencies.
Available [`ShippingRate`](https://shopify.dev/docs/api/admin-graphql/latest/objects/ShippingRate) options are included when a valid shipping address and line items are present.
***
**Note:** Returns alerts and warnings when issues occur during calculation, such as insufficient inventory or incompatible discounts.
***
* [DraftOrder.purchasingEntity](https://shopify.dev/docs/api/admin-graphql/unstable/objects/DraftOrder#field-DraftOrder.fields.purchasingEntity)
OBJECT
An order that a merchant creates on behalf of a customer. Draft orders are useful for merchants that need to do the following tasks:
* Create new orders for sales made by phone, in person, by chat, or elsewhere. When a merchant accepts payment for a draft order, an order is created.
* Send invoices to customers to pay with a secure checkout link.
* Use custom items to represent additional costs or products that aren't displayed in a shop's inventory.
* Re-create orders manually from active sales channels.
* Sell products at discount or wholesale rates.
* Take pre-orders.
For draft orders in multiple currencies `presentment_money` is the source of truth for what a customer is going to be charged and `shop_money` is an estimate of what the merchant might receive in their shop currency.
**Caution:** Only use this data if it's required for your app's functionality. Shopify will restrict [access to scopes](https://shopify.dev/api/usage/access-scopes) for apps that don't have a legitimate use for the associated data.
Draft orders created on or after April 1, 2025 will be automatically purged after one year of inactivity.
* [Order.purchasingEntity](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Order#field-Order.fields.purchasingEntity)
OBJECT
The `Order` object represents a customer's request to purchase one or more products from a store. Use the `Order` object to handle the complete purchase lifecycle from checkout to fulfillment.
Use the `Order` object when you need to:
* Display order details on customer account pages or admin dashboards.
* Create orders for phone sales, wholesale customers, or subscription services.
* Update order information like shipping addresses, notes, or fulfillment status.
* Process returns, exchanges, and partial refunds.
* Generate invoices, receipts, and shipping labels.
The `Order` object serves as the central hub connecting customer information, product details, payment processing, and fulfillment data within the GraphQL Admin API schema.
***
**Note:** Only the last 60 days\' worth of orders from a store are accessible from the \Order\ object by default. If you want to access older records, then you need to \request access to all orders\. If your app is granted access, then you can add the \\read\\_all\\_orders\\, \\read\\_orders\\, and \\write\\_orders\\ scopes.
***
***
**Caution:** Only use orders data if it\'s required for your app\'s functionality. Shopify will restrict \access to scopes\ for apps that don\'t have a legitimate use for the associated data.
***
Learn more about [building apps for orders and fulfillment](https://shopify.dev/docs/apps/build/orders-fulfillment).
***
```graphql
union PurchasingEntity = Customer | PurchasingCompany
```