{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/qualpay/json-schema/qualpay-merchant-settings-response-schema.json",
  "title": "MerchantSettingsResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/qualpay-integrator-api-openapi.yml#/components/schemas/MerchantSettingsResponse",
  "type": "object",
  "properties": {
    "code": {
      "type": "integer",
      "description": "<strong>Format: </strong>Fixed length, 1 N<br><strong>Description: </strong>Response code from the API. `0` indicates success. Refer to <a href=\"/docs/api-conventions#platform-api-response-codes\" target=\"_blank\">Platform API Response Codes</a> for the entire list of return codes.",
      "format": "int32",
      "readOnly": true
    },
    "message": {
      "type": "string",
      "description": "<strong>Format: </strong>Variable length AN<br><strong>Description: </strong>A short description of the API response code.",
      "readOnly": true
    },
    "data": {
      "$ref": "#/$defs/Settings"
    }
  },
  "$defs": {
    "Payment": {
      "type": "object",
      "properties": {
        "card_type": {
          "type": "string",
          "description": "The two-character abbreviation for the card type."
        },
        "currency": {
          "type": "array",
          "description": "An array of currency codes allowed for the specified card type.",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "PaymentProfile": {
      "type": "object",
      "properties": {
        "profile_id": {
          "type": "string",
          "description": "The ID of the payment profile."
        },
        "label": {
          "type": "string",
          "description": "The payment profile's label."
        },
        "currency": {
          "type": "string",
          "description": "The currency code of the payment profile."
        },
        "auto_close_time": {
          "type": "integer",
          "description": "The auto-close time for the batch in PST (U.S.).",
          "format": "int32"
        }
      }
    },
    "Settings": {
      "type": "object",
      "properties": {
        "app_id": {
          "type": "integer",
          "description": "The application ID for this merchant account.  Only returned if an application exists.",
          "format": "int64"
        },
        "merchant_id": {
          "type": "integer",
          "description": "The merchant ID for this merchant account.",
          "format": "int64"
        },
        "dba_name": {
          "type": "string",
          "description": "The 'Doing Business As' (DBA) name for this merchant account."
        },
        "payments_accepted": {
          "type": "array",
          "description": "An array of the card types and currencies accepted by this merchant account.",
          "items": {
            "$ref": "#/$defs/Payment"
          }
        },
        "payment_profiles": {
          "type": "array",
          "description": "An array of payment profiles available for this merchant account.",
          "items": {
            "$ref": "#/$defs/PaymentProfile"
          }
        },
        "user_login": {
          "type": "string",
          "description": "The user login created for the merchant account.  Only returned if a new user was requested during account creation."
        },
        "reset_url": {
          "type": "string",
          "description": "The URL to establish a new password for the created user.  Only returned if a new user was requested during account creation."
        }
      }
    }
  }
}