Overview
Customer Account API 2025-10 adds store credit fields for company locations (B2B).
API Version
What Changed
Store credit accounts can now be owned by company locations, enabling B2B customers to:
- View location-specific credits
- Use credits at checkout
- Track credit transactions per location
Impact on Hydrogen
Customer Account queries
Current skeleton queries:
templates/skeleton/app/graphql/customer-account/CustomerDetailsQuery.ts
templates/skeleton/app/graphql/customer-account/CustomerOrdersQuery.ts
Don't include store credit fields.
New API surface
Types generated in:
packages/hydrogen-react/src/customer-account-api-types.d.ts
Check for store credit related types.
Implementation Required
Investigation
- Determine which store credit fields are available
- Check if company location context is needed in queries
- Review checkout integration requirements
Add customer credit query
If store credit is public:
- Create example query for fetching customer credit balance
- Add to skeleton customer account queries
- Document usage in customer account docs
UI display
If implementing:
- Show credit balance in account page
- Display location-specific credits for B2B
- Handle credit application at checkout
Priority
P2 - New B2B feature, needs product direction
Overview
Customer Account API 2025-10 adds store credit fields for company locations (B2B).
API Version
What Changed
Store credit accounts can now be owned by company locations, enabling B2B customers to:
Impact on Hydrogen
Customer Account queries
Current skeleton queries:
templates/skeleton/app/graphql/customer-account/CustomerDetailsQuery.tstemplates/skeleton/app/graphql/customer-account/CustomerOrdersQuery.tsDon't include store credit fields.
New API surface
Types generated in:
packages/hydrogen-react/src/customer-account-api-types.d.tsCheck for store credit related types.
Implementation Required
Investigation
Add customer credit query
If store credit is public:
UI display
If implementing:
Priority
P2 - New B2B feature, needs product direction