Skip to content

[2025-10 CAAPI] Store credit support for company locations #3279

@juanpprieto

Description

@juanpprieto

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions