---
title: BuyerInput - Storefront API
description: >-
  Identifies a B2B buyer for the
  [`@inContext`](https://shopify.dev/docs/storefronts/headless/bring-your-own-stack/b2b)

  directive. Pass this input to contextualize Storefront API queries with data

  like B2B-specific pricing, quantity rules, and quantity price breaks.


  For B2B customers with access to multiple company locations, include the
  [`companyLocationId`](https://shopify.dev/docs/api/storefront/latest/input-objects/BuyerInput#fields-companyLocationId)

  to specify which location they're purchasing for.
api_version: 2026-10
source_url:
  html: 'https://shopify.dev/docs/api/storefront/latest/input-objects/BuyerInput'
  md: 'https://shopify.dev/docs/api/storefront/latest/input-objects/BuyerInput.md'
api_name: storefront
api_type: graphql
type: input-object
---

# Buyer​Input

input\_object

Identifies a B2B buyer for the [`@inContext`](https://shopify.dev/docs/storefronts/headless/bring-your-own-stack/b2b) directive. Pass this input to contextualize Storefront API queries with data like B2B-specific pricing, quantity rules, and quantity price breaks.

For B2B customers with access to multiple company locations, include the [`companyLocationId`](https://shopify.dev/docs/api/storefront/latest/input-objects/BuyerInput#fields-companyLocationId) to specify which location they're purchasing for.

## Fields

* company​Location​Id

  [ID](https://shopify.dev/docs/api/storefront/latest/scalars/ID)

  The identifier of the company location.

* customer​Access​Token

  [String!](https://shopify.dev/docs/api/storefront/latest/scalars/String)

  non-null

  The customer access token retrieved from the [Customer Accounts API](https://shopify.dev/docs/api/customer#step-obtain-access-token).

***

## Map

No referencing types
