<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/updated-b2b-location-access-in-the-customer-account-api-ve2xobeeg" -->

---
title: Updated B2B location access in the Customer Account API
description: Shopify changed what B2B customers can read across all versions of the Customer Account API. Customers now only see company data and orders for companies they...
canonical: https://daily.dev/posts/updated-b2b-location-access-in-the-customer-account-api-ve2xobeeg
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Updated B2B location access in the Customer Account API | daily.dev
og:description: Shopify changed what B2B customers can read across all versions of the Customer Account API. Customers now only see company data and orders for companies they...
og:url: https://daily.dev/posts/updated-b2b-location-access-in-the-customer-account-api-ve2xobeeg
og:image: https://api.daily.dev/og/posts/vE2XOBeeG.png
og:image:alt: Updated B2B location access in the Customer Account API
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Updated B2B location access in the Customer Account API

**[Shopify Developer changelog](https://daily.dev/sources/shopifychangelog)** · 2 min read · 1 upvotes · 0 comments

## Summary

Shopify changed what B2B customers can read across all versions of the Customer Account API. Customers now only see company data and orders for companies they belong to. CompanyContact returns an empty list unless the contact belongs to the current customer. On a CompanyLocation where the customer has no role, tax and contact fields return null or an empty list. When a merchant removes a customer from a company, order(id:) and customer.orders exclude that company's orders and draft orders, though personal orders still show. No query changes are required, but apps should expect null or empty results in these cases.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://shopify.dev/changelog/updated-b2b-location-access-in-the-customer-account-api>

## Questions this post answers

### Why is CompanyLocation.contacts returning an empty list for my B2B customer in Shopify's Customer Account API?

It returns an empty list because the current customer has no role on that company location. Shopify changed the Customer Account API so B2B customers only read company data and orders for companies they belong to; on locations where the customer lacks a role, tax fields and contact fields return null or an empty list instead of an error.

_Developers debugging B2B storefront data gaps can track Shopify API changelog updates like this one on daily.dev._

### Why do a removed B2B company member's past orders disappear from customer.orders in Shopify's Customer Account API?

When a merchant removes a customer from a company, customer.orders and order(id:) exclude the orders and draft orders placed for that company, while the customer's personal orders remain listed. This is an intentional access change in Shopify's Customer Account API, and no query changes are required to get this behavior.

_Teams maintaining Shopify B2B order history views can follow API behavior changes like this on daily.dev._

## Similar posts on daily.dev

- [family\_name is optional for B2B orders in Payments Apps API requests](https://daily.dev/posts/family-name-is-optional-for-b2b-orders-in-payments-apps-api-requests-axtqsffwg) · Shopify Developer changelog · 0 upvotes · 0 comments
- [Merchant-owned delivery profile APIs are deprecated for market-driven shipping](https://daily.dev/posts/merchant-owned-delivery-profile-apis-are-deprecated-for-market-driven-shipping-kudwv9x6y) · Shopify Developer changelog · 0 upvotes · 0 comments
- [Tax summary webhook and calculation requests now include customer and company metafields](https://daily.dev/posts/tax-summary-webhook-and-calculation-requests-now-include-customer-and-company-metafields-is4y1crfh) · Shopify Developer changelog · 0 upvotes · 0 comments
- [Customer Address APIs now support countryCode](https://daily.dev/posts/customer-address-apis-now-support-countrycode-py9duoxjm) · Shopify Developer changelog · 0 upvotes · 0 comments
- [Customer Account API Customer.lastIncompleteCheckout and Checkout types removed in 2026-10](https://daily.dev/posts/customer-account-api-customer-lastincompletecheckout-and-checkout-types-removed-in-2026-10-fhlqecth3) · Shopify Developer changelog · 0 upvotes · 0 comments

---

Tags: [#architecture](https://daily.dev/tags/architecture), [#graphql](https://daily.dev/tags/graphql), [#shopify](https://daily.dev/tags/shopify)

[View this post on daily.dev](https://daily.dev/posts/updated-b2b-location-access-in-the-customer-account-api-ve2xobeeg)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Updated B2B location access in the Customer Account API","url":"https://daily.dev/posts/updated-b2b-location-access-in-the-customer-account-api-ve2xobeeg","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/updated-b2b-location-access-in-the-customer-account-api-ve2xobeeg"},"datePublished":"2026-11-17T17:04:22.962Z","dateModified":"2026-11-17T17:22:09.307Z","description":"Shopify changed what B2B customers can read across all versions of the Customer Account API. Customers now only see company data and orders for companies they...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a5b9f0de82c011d79696b4f6b99b7364?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a5b9f0de82c011d79696b4f6b99b7364?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Shopify Developer changelog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Shopify Developer changelog","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/aefcb5d2c1ca4b45b5d2256b9e2a9cc3","url":"https://daily.dev/sources/shopifychangelog"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/updated-b2b-location-access-in-the-customer-account-api-ve2xobeeg","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"architecture,graphql,shopify","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Shopify Developer changelog","item":"https://daily.dev/sources/shopifychangelog"},{"@type":"ListItem","position":3,"name":"Updated B2B location access in the Customer Account API"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/updated-b2b-location-access-in-the-customer-account-api-ve2xobeeg#faq","mainEntity":[{"@type":"Question","name":"Why is CompanyLocation.contacts returning an empty list for my B2B customer in Shopify's Customer Account API?","acceptedAnswer":{"@type":"Answer","text":"It returns an empty list because the current customer has no role on that company location. Shopify changed the Customer Account API so B2B customers only read company data and orders for companies they belong to; on locations where the customer lacks a role, tax fields and contact fields return null or an empty list instead of an error. Developers debugging B2B storefront data gaps can track Shopify API changelog updates like this one on daily.dev."}},{"@type":"Question","name":"Why do a removed B2B company member's past orders disappear from customer.orders in Shopify's Customer Account API?","acceptedAnswer":{"@type":"Answer","text":"When a merchant removes a customer from a company, customer.orders and order(id:) exclude the orders and draft orders placed for that company, while the customer's personal orders remain listed. This is an intentional access change in Shopify's Customer Account API, and no query changes are required to get this behavior. Teams maintaining Shopify B2B order history views can follow API behavior changes like this on daily.dev."}}]}
```

