> This page is for Developer.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bigcommerce.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bigcommerce.com/_mcp/server.

# B2BTextExtraFieldDefinition

GraphQL object

A B2B extra field that holds a single line of text.

Reference: https://docs.bigcommerce.com/developer/api-reference/graphql/storefront/types/objects/b-2-b-text-extra-field-definition

## Fields

- `defaultText` — The value applied when the shopper supplies none.
- `maxLength` — The maximum number of characters allowed, or null if unlimited.
- `fieldName` — The identifier used when reading or writing a value for this extra field.
- `labelName` — The label to display for the extra field.
- `isRequired` — Whether a value for this extra field is required.
- `visibleToEndUser` — Whether the merchant has made this extra field visible to storefront shoppers.

## Definition

```graphql
type B2BTextExtraFieldDefinition implements B2BExtraFieldDefinition {
  defaultText: String
  maxLength: Int
  fieldName: String!
  labelName: String!
  isRequired: Boolean!
  visibleToEndUser: Boolean!
}
```