---
id: SCR-ACC-TRX-017
title: Credit record
route: '/console/{tenantId}/accounting/credits/{creditId}'
surface: console
product_area: accounting
module: transactions
revision: 1
status: draft
design_intent: proposed
implementation_evidence: observed
inference: []
source_sha:
  services-accounting: f47cb263875bbc0c5640fba7dae6785ec32695f8
  react-console: baf6dae382d6f41dce976c7f848667ccc37e076f
purpose: >-
  Inspect available customer credit and its uses and initiate eligible
  application, return or cancellation.
supports:
  - JNY-ACC-TRX-002
  - JNY-ACC-TRX-004
  - CAP-ACC-TRX-011
  - CAP-ACC-TRX-012
  - CAP-ACC-TRX-015
permission: accounting.credits.read; each action its own authority
entry_from:
  - The shared financial explorer
  - '/console/{tenantId}/accounting/payments/{paymentId}'
  - '/console/{tenantId}/accounting/invoices/{invoiceId}'
exits_to:
  - '/console/{tenantId}/accounting/creditApplications/{applicationId}'
  - '/console/{tenantId}/accounting/refunds/{refundId}'
  - '/console/{tenantId}/accounting/payments/{paymentId}'
displays:
  - field: >-
      Grant value and source, associated memo, expiry and order-category
      restriction.
    source: getCredit (DOM-ACC-TRX-004)
  - field: Application and return records associated with the grant.
    source: listCreditApplications; listRefunds
actions:
  - label: Apply Credit
    operation_id: applyCredit
    permission: accounting.credit-applications.create
    confirm: false
  - label: Refund Credit
    operation_id: requestRefund
    permission: accounting.refunds.create
    confirm: true
  - label: Reverse an application
    operation_id: reverseCreditApplication
    permission: accounting.credit-applications.create
    confirm: true
  - label: Void
    operation_id: voidCredit
    permission: accounting.credits.update
    confirm: true
  - label: Reassign batch
    operation_id: reassignCreditBatch
    permission: accounting.credits.update
    confirm: true
states:
  - loading
  - error
  - read-only
  - inactive
validation:
  - BR-CAP-ACC-TRX-011-05
  - BR-CAP-ACC-TRX-011-06
  - BR-CAP-ACC-TRX-011-09
  - BR-CAP-ACC-TRX-011-11
patterns:
  - Full PageLayout
  - Transaction header and status badge
  - LifecycleActionMenu
  - 'Overview, Related and Activity tabs'
  - Action-specific confirmation dialogs
  - Currency-aware money formatting
  - Credit-application dialog
  - Credit-refund dialog
  - Application-reversal dialog
component: components/accounting/credits/credit-detail-screen.tsx (CreditDetailScreen)
evidence:
  - >-
    react-console at baf6dae3:
    components/accounting/credits/credit-detail-screen.tsx,
    apply-credit-dialog.tsx, refund-credit-dialog.tsx,
    reverse-credit-application-dialog.tsx;
    lib/accounting/transactions/http/http-service.ts (credit workflows).
controls: [TC-IAM-001, TC-IAM-002, TC-IAM-004, TC-IAM-005, TC-AZ-001, TC-AZ-002, TC-AZ-003, TC-AZ-004, TC-AZ-006, TC-TEN-001, TC-TEN-002, TC-TEN-003, TC-DAT-001, TC-DAT-002, TC-DAT-003, TC-LOG-004, TC-LOG-005, TC-PI-001, TC-PI-003, TC-PI-005, TC-PRV-001, TC-PRV-002]
---
# Credit record

## What the Screen Is For

Inspect available customer credit and its uses and initiate eligible application, return or cancellation.

## What It Shows and Lets People Do

Open credit offers application and return workflows and eligible cancellation or batch work. The application list independently allows eligible application reversal, including when the credit’s current balance is used.

## States and Errors

A used balance disables spending but does not make every listed application read-only. Past expiry can still display open because there is no expiry-status worker.

## Patterns It Must Respect

The frontmatter names the components and layout actually used. Confirmation behavior is action-specific, including inline review and direct submission where implemented. The contract records the current console behavior without declaring an approved visual baseline.
