{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/benjipays-com/json-schema/benjipays-com-organization-settings-response-schema.json",
  "title": "OrganizationSettingsResponse",
  "description": "Organization settings response",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/benjipays-com-benji-pays-merchant-api-openapi.yml#/components/schemas/OrganizationSettingsResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "autoProcessing": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "runHour": {
              "type": "number"
            },
            "delayDays": {
              "type": "number"
            },
            "startDate": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "processCreditMemos": {
              "type": "boolean"
            },
            "useParentProfiles": {
              "type": "boolean"
            },
            "skips": {
              "type": "object",
              "properties": {
                "noTermsDisabled": {
                  "type": "boolean"
                },
                "skipDueDateNotMet": {
                  "type": "boolean"
                },
                "memoSkip": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "text": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "action": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "text",
                        "action"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "skipSurcharge": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "min": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "max": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "enabled",
                    "min",
                    "max"
                  ],
                  "additionalProperties": false
                },
                "autoProcessAmountSkip": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "min": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "max": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "enabled",
                    "min",
                    "max"
                  ],
                  "additionalProperties": false
                },
                "invoicePrefixSkip": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "prefixes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "action": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "enabled",
                    "prefixes",
                    "action"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "noTermsDisabled",
                "skipDueDateNotMet",
                "memoSkip",
                "skipSurcharge",
                "autoProcessAmountSkip",
                "invoicePrefixSkip"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "enabled",
            "runHour",
            "delayDays",
            "startDate",
            "processCreditMemos",
            "useParentProfiles",
            "skips"
          ],
          "additionalProperties": false
        },
        "email": {
          "type": "object",
          "properties": {
            "sendReceipts": {
              "type": "boolean"
            },
            "attachInvoice": {
              "type": "boolean"
            },
            "sendInvoiceAttachments": {
              "type": "boolean"
            },
            "disableCompanyEmailResults": {
              "type": "boolean"
            },
            "onlySendAttemptedBatchResults": {
              "type": "boolean"
            },
            "displayInvoiceEmails": {
              "type": "boolean"
            },
            "selectInvoiceEmails": {
              "type": "boolean"
            },
            "autoPaySendReceiptsInvoiceEmails": {
              "type": "boolean"
            },
            "invoiceCcEmails": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "invoiceBccEmails": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "receiptCcEmails": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "receiptBccEmails": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "useSmtp": {
              "type": "boolean"
            }
          },
          "required": [
            "sendReceipts",
            "attachInvoice",
            "sendInvoiceAttachments",
            "disableCompanyEmailResults",
            "onlySendAttemptedBatchResults",
            "displayInvoiceEmails",
            "selectInvoiceEmails",
            "autoPaySendReceiptsInvoiceEmails",
            "invoiceCcEmails",
            "invoiceBccEmails",
            "receiptCcEmails",
            "receiptBccEmails",
            "useSmtp"
          ],
          "additionalProperties": false
        },
        "customerPortal": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "theme": {
              "type": "object",
              "properties": {
                "colour": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "colour"
              ],
              "additionalProperties": false
            },
            "accessDisabled": {
              "type": "boolean"
            },
            "forceSaveCards": {
              "type": "boolean"
            },
            "disableSaveCards": {
              "type": "boolean"
            },
            "autoEnableProfiles": {
              "type": "boolean"
            },
            "allowPortalChangeAutoPay": {
              "type": "boolean"
            },
            "allowPortalManageEmails": {
              "type": "boolean"
            },
            "allowPortalManageAddress": {
              "type": "boolean"
            },
            "allowPortalSchedulePayment": {
              "type": "boolean"
            },
            "allowAllProfileDeleteOnPortal": {
              "type": "boolean"
            },
            "limitOpenInvoicesView": {
              "type": "boolean"
            },
            "showInvoicesAfterDate": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "displayInvoiceAttachments": {
              "type": "boolean"
            },
            "sendInvoiceAttachments": {
              "type": "boolean"
            },
            "disablePortalEmailLinks": {
              "type": "boolean"
            },
            "disablePaymentAmountInput": {
              "type": "boolean"
            },
            "disablePartialPayments": {
              "type": "boolean"
            },
            "disableGenericPaymentLink": {
              "type": "boolean"
            },
            "payNowAmountRequired": {
              "type": "boolean"
            },
            "customDomain": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "preAuthAgreements": {
              "type": "object",
              "properties": {
                "card": {
                  "type": "object",
                  "properties": {
                    "en": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "fr": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "en",
                    "fr"
                  ],
                  "additionalProperties": false
                },
                "ach": {
                  "type": "object",
                  "properties": {
                    "en": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "fr": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "en",
                    "fr"
                  ],
                  "additionalProperties": false
                },
                "eft": {
                  "type": "object",
                  "properties": {
                    "en": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "fr": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "en",
                    "fr"
                  ],
                  "additionalProperties": false
                },
                "bacs": {
                  "type": "object",
                  "properties": {
                    "en": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "fr": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "en",
                    "fr"
                  ],
                  "additionalProperties": false
                },
                "sepa": {
                  "type": "object",
                  "properties": {
                    "en": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "fr": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "en",
                    "fr"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "card",
                "ach",
                "eft",
                "bacs",
                "sepa"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "enabled",
            "url",
            "name",
            "theme",
            "accessDisabled",
            "forceSaveCards",
            "disableSaveCards",
            "autoEnableProfiles",
            "allowPortalChangeAutoPay",
            "allowPortalManageEmails",
            "allowPortalManageAddress",
            "allowPortalSchedulePayment",
            "allowAllProfileDeleteOnPortal",
            "limitOpenInvoicesView",
            "showInvoicesAfterDate",
            "displayInvoiceAttachments",
            "sendInvoiceAttachments",
            "disablePortalEmailLinks",
            "disablePaymentAmountInput",
            "disablePartialPayments",
            "disableGenericPaymentLink",
            "payNowAmountRequired",
            "customDomain",
            "preAuthAgreements"
          ],
          "additionalProperties": false
        },
        "accountingSystem": {
          "type": "object",
          "properties": {
            "emailAutoEnable": {
              "type": "boolean"
            },
            "autoEnableNewCustomers": {
              "type": "boolean"
            },
            "surchargeAutoEnable": {
              "type": "boolean"
            },
            "bcAutoPostJournals": {
              "type": "boolean"
            }
          },
          "required": [
            "emailAutoEnable",
            "autoEnableNewCustomers",
            "surchargeAutoEnable",
            "bcAutoPostJournals"
          ],
          "additionalProperties": false
        },
        "security": {
          "type": "object",
          "properties": {
            "disableNonSsoLogin": {
              "type": "boolean"
            },
            "enforceMfa": {
              "type": "boolean"
            }
          },
          "required": [
            "disableNonSsoLogin",
            "enforceMfa"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "autoProcessing",
        "email",
        "customerPortal",
        "accountingSystem",
        "security"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "data"
  ],
  "additionalProperties": false
}