Skip to content
B2B Commerce blocks

Company Credit

Company buyers view credit balances and transaction history through this block. Place it on company credit pages.

Customers must log in to access this block. Enable company features and company credit in Stores > Configuration > General > B2B Features > Enable Company and Stores > Configuration > Customers > Company Configuration > Enable Company Credit.

Add this table to your document to configure the block:

commerce-company-credit
showHistorytrue

showHistory: Controls whether to show company credit transaction history (‘true’) or only credit summary information (‘false’). Set to true to enable this feature. Default: true.

  • Requires user authentication. Unauthenticated users are automatically redirected to the login page.

Configure page-level metadata in the document authoring table below:

metadata
TitleCompany Credit
Robotsnoindex, nofollow
Cache Controlno-store

Control the section styling, spacing, and layout that wraps your commerce block. All properties are optional:

section-metadata
Stylelight (optional)
Paddingmedium (optional)
Marginsmall (optional)
Column Width30% (optional)
Gapsmall (optional)

Learn more: See the Section Metadata guide for all available values and the Page Metadata guide for SEO and caching options.