{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/benjipays-com/json-schema/benjipays-com-update-customer-settings-body-schema.json",
  "title": "UpdateCustomerSettingsBody",
  "description": "Customer settings to change. Only fields defined in this request schema are accepted, using the same names and nesting as the customer object returned by GET. Every field is optional and only the fields sent are changed; nested objects are merged, not replaced.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/benjipays-com-customers-api-openapi.yml#/components/schemas/UpdateCustomerSettingsBody",
  "type": "object",
  "properties": {
    "emailRemindersDisabled": {
      "description": "Invoice Rover for this customer. `true` disables Invoice Rover notifications, `false` enables them. Rejected (any value) when Invoice Rover is not available on the organization's plan.",
      "type": "boolean"
    },
    "autoPaySettings": {
      "$ref": "#/$defs/UpdateCustomerAutoPaySettings"
    },
    "portalSettings": {
      "$ref": "#/$defs/UpdateCustomerPortalSettings"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "UpdateCustomerAutoPaySettings": {
      "type": "object",
      "properties": {
        "delayDays": {
          "description": "Days relative to the invoice due date at which to auto-process this customer. Use a positive number to wait past the due date and a negative number to process before the due date. Whole number from -365 to 365 (both bounds inclusive). Rejected while statement processing is enabled for the organization.",
          "type": "integer",
          "minimum": -365,
          "maximum": 365
        },
        "applyCreditMemos": {
          "description": "Automatically apply credit memos for this customer. Rejected when automatic credit memo application is not available to the organization.",
          "type": "boolean"
        },
        "surchargingDisabled": {
          "description": "Set `true` to turn off Benji Pays-managed surcharging for this customer. Rejected when the organization has no gateway with Benji Pays-managed surcharging.",
          "type": "boolean"
        },
        "autoProcessingDisabled": {
          "description": "Set `true` to exclude this customer from automated processing. Rejected when auto processing is not available to the organization.",
          "type": "boolean"
        }
      },
      "additionalProperties": false,
      "description": "Per-customer auto-pay / processing settings to change. Only the fields sent are changed.",
      "minProperties": 1
    },
    "UpdateCustomerPortalSettings": {
      "type": "object",
      "properties": {
        "portalAccessDisabled": {
          "description": "Set `true` to block this customer from the customer portal. Rejected when the customer portal is not available to the organization.",
          "type": "boolean"
        },
        "defaultLanguage": {
          "description": "Language for communications with this customer. `null` uses the organization default.",
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "en",
                "fr"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "forceSavePaymentMethod": {
          "description": "Per-customer override of \"force save payment method\". `true` always saves the payment method, `false` never does, and `null` inherits (from the parent profile customer when parent profiles are enabled, otherwise from the portal setting).",
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": false,
      "description": "Per-customer portal settings to change. Only the fields sent are changed.",
      "minProperties": 1
    }
  }
}