{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/usps/json-schema/usps-payment-account-schema.json",
  "title": "Payment Account",
  "description": "Payment account information.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/usps-payments-openapi.yml#/components/schemas/PaymentAccount",
  "type": "object",
  "properties": {
    "accountType": {
      "type": "string",
      "description": "The type of payment account.  METER pricing is only available to PC Postage providers.",
      "enum": [
        "EPS",
        "PERMIT",
        "METER",
        "OMAS"
      ]
    },
    "accountNumber": {
      "type": "string",
      "description": "The Enterprise Payment Account number or PC Postage meter number to use for payment. Required when `accountType` is `EPS` or `METER`."
    },
    "permitNumber": {
      "type": "string",
      "description": "The permit number or Federal Agency Number to use for payment. Required when `accountType` is `PERMIT` or `OMAS`."
    },
    "permitZIP": {
      "maxLength": 5,
      "type": "string",
      "description": "The ZIP Code&#8482; associated to the permit number. Required when `accountType` is `PERMIT` or `OMAS`."
    },
    "nonProfitStatus": {
      "type": "boolean",
      "description": "This status is applicable only for permits and indicates whether the permit has been issued to a non-profit organization.",
      "readOnly": true
    },
    "sufficientFunds": {
      "type": "boolean",
      "description": "This attribute is relevant only when an amount parameter is provided, and it informs the API caller whether the payment account holds sufficient funds to process the payment.",
      "readOnly": true
    }
  },
  "additionalProperties": true
}