---
id: SCR-COM-CAT-021
title: Code page
route: '/console/{workspace}/configuration/orders/promotions/{id}/codes/{codeId}'
surface: console
product_area: commerce
module: catalog
revision: 1
status: draft
design_intent: proposed
implementation_evidence: observed
inference: []
source_sha:
  react-console: baf6dae382d6f41dce976c7f848667ccc37e076f
  services-commerce: c8b66a98e2490617aec38ba5c8165dd9bd0a8f9b
purpose: Inspect one claim code and control whether further claims are allowed.
supports:
  - JNY-COM-CAT-004
  - JNY-COM-CAT-005
  - CAP-COM-CAT-015
  - CAP-COM-CAT-017
permission: commerce.promotions.read
entry_from:
  - SCR-COM-CAT-018
  - SCR-COM-CAT-022
exits_to:
  - SCR-COM-CAT-020
  - SCR-COM-CAT-018
displays:
  - field: 'code terms, restrictions and its promotion'
    source: getPromotionCode
  - field: uses with order numbers and totals
    source: listPromotionCodeRedemptions
actions:
  - label: Edit
    operation_id: updatePromotionCode
    permission: commerce.promotions.manage
    confirm: false
  - label: Disable
    operation_id: disablePromotionCode
    permission: commerce.promotions.manage
    confirm: false
  - label: Enable
    operation_id: enablePromotionCode
    permission: commerce.promotions.manage
    confirm: false
  - label: Revoke
    operation_id: revokePromotionCode
    permission: commerce.promotions.manage
    confirm: false
states:
  - loading
  - error
  - read-only
  - inactive
validation:
  - BR-CAP-COM-CAT-015-09
  - BR-CAP-COM-CAT-017-08
patterns:
  - Full layout
  - PageHeader
  - Tabs
  - TableCard
  - UsesPanel
  - RestrictedContactsPanel
  - RestrictedOrganizationsPanel
component: components/commerce/promotions/code-page.tsx
evidence:
  - >-
    react-console at baf6dae3: components/commerce/promotions/*.tsx; lib/commerce/promotions/live.ts,
    rules.ts; e2e/mock/promotions.mock.spec.ts.
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-005, TC-AZ-006, TC-TEN-001, TC-TEN-002, TC-TEN-003, TC-CRY-001, TC-LOG-001, TC-LOG-002, TC-LOG-003, TC-LOG-004, TC-PI-001, TC-PI-003]
---

# Code page

## What the Screen Is For

Inspect one claim code and control whether further claims are allowed.

## What It Shows and Lets People Do

The page presents dates, restrictions, counters and applied-use records. Management authority enables editing, disabling, enabling and revoking while the code is not revoked.

## States and Errors

Read failures support retry. Status actions execute immediately with pending feedback and error notifications; a revoked code has no outgoing controls.

## Patterns It Must Respect

The built view uses Full layout with Tabs and TableCard. Uses and restricted-party panels provide the supporting detail; status actions have no confirmation dialog.
