{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/salesforce-commerce-cloud/json-schema/salesforce-commerce-cloud-payment-instrument-balance-response-schema.json",
  "title": "PaymentInstrumentBalanceResponse",
  "description": "Response containing the payment instrument balance information.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/salesforce-commerce-cloud-shopper-payments-api-openapi.yml#/components/schemas/PaymentInstrumentBalanceResponse",
  "type": "object",
  "properties": {
    "amount": {
      "type": "number",
      "description": "The remaining balance on the payment instrument.",
      "minimum": 0
    },
    "currency": {
      "description": "The three-letter currency code (ISO 4217) of the payment instrument balance.",
      "allOf": [
        {
          "$ref": "#/$defs/CurrencyCode"
        }
      ]
    }
  },
  "required": [
    "amount",
    "currency"
  ],
  "$defs": {
    "CurrencyCode": {
      "description": "A three letter uppercase currency code conforming to the [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) standard, or the string `N/A` indicating that a currency is not applicable.",
      "pattern": "^([A-Z][A-Z][A-Z]|N/A)$",
      "type": "string"
    }
  }
}