{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/token-io/main/json-schema/token-io-io-token-proto-gateway-get-payout-registration-response-schema.json",
  "title": "io.token.proto.gateway.GetPayoutRegistrationResponse",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/token-io-refund-api-openapi.yml#/components/schemas/io.token.proto.gateway.GetPayoutRegistrationResponse",
  "type": "object",
  "properties": {
    "registration": {
      "$ref": "#/$defs/io.token.proto.common.v2.payout.Registration"
    }
  },
  "$defs": {
    "io.token.proto.common.v2.common.Address": {
      "type": "object",
      "properties": {
        "addressLine": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "buildingNumber": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "countrySubDivision": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "district": {
          "type": "string"
        },
        "postCode": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "streetName": {
          "type": "string"
        },
        "townName": {
          "type": "string"
        }
      }
    },
    "io.token.proto.common.v2.common.DebtorInformation": {
      "type": "object",
      "properties": {
        "accountNumber": {
          "type": "string"
        },
        "address": {
          "$ref": "#/$defs/io.token.proto.common.v2.common.Address"
        },
        "bankgiroNumber": {
          "type": "string"
        },
        "bban": {
          "type": "string"
        },
        "bic": {
          "type": "string"
        },
        "clearingNumber": {
          "type": "string"
        },
        "iban": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "plusgiroNumber": {
          "type": "string"
        },
        "sortCode": {
          "type": "string"
        },
        "tokenizedAccountId": {
          "type": "string"
        },
        "ultimateDebtorName": {
          "type": "string"
        }
      }
    },
    "io.token.proto.common.v2.payout.BnppRegistrationPayload": {
      "type": "object",
      "properties": {
        "appId": {
          "type": "string"
        },
        "appSecret": {
          "type": "string"
        },
        "debtor": {
          "$ref": "#/$defs/io.token.proto.common.v2.common.DebtorInformation"
        },
        "debtors": {
          "items": {
            "$ref": "#/$defs/io.token.proto.common.v2.common.DebtorInformation"
          },
          "type": "array"
        },
        "signingKeyId": {
          "type": "string"
        },
        "tokenSigningKeyId": {
          "type": "string"
        }
      }
    },
    "io.token.proto.common.v2.payout.CorporateApiDebtorInformation": {
      "type": "object",
      "properties": {
        "accountId": {
          "type": "string"
        }
      }
    },
    "io.token.proto.common.v2.payout.CorporateApiRegistrationPayload": {
      "type": "object",
      "properties": {
        "debtors": {
          "items": {
            "$ref": "#/$defs/io.token.proto.common.v2.payout.CorporateApiDebtorInformation"
          },
          "type": "array"
        },
        "memberId": {
          "type": "string"
        },
        "onBehalfOfId": {
          "type": "string"
        }
      }
    },
    "io.token.proto.common.v2.payout.FankRegistrationPayload": {
      "type": "object",
      "properties": {}
    },
    "io.token.proto.common.v2.payout.HsbcRegistrationPayload": {
      "type": "object",
      "properties": {
        "clientId": {
          "type": "string"
        },
        "clientSecret": {
          "type": "string"
        },
        "debtor": {
          "$ref": "#/$defs/io.token.proto.common.v2.common.DebtorInformation"
        },
        "debtors": {
          "items": {
            "$ref": "#/$defs/io.token.proto.common.v2.common.DebtorInformation"
          },
          "type": "array"
        },
        "pgpPrivateKey": {
          "type": "string"
        },
        "pgpPrivateKeyPassphrase": {
          "type": "string"
        },
        "pgpPublicKey": {
          "type": "string"
        },
        "profileId": {
          "type": "string"
        }
      }
    },
    "io.token.proto.common.v2.payout.Product": {
      "enum": [
        "UNKNOWN",
        "REFUND",
        "PAYOUT"
      ],
      "default": "UNKNOWN",
      "type": "string"
    },
    "io.token.proto.common.v2.payout.Registration": {
      "type": "object",
      "properties": {
        "bnpp": {
          "$ref": "#/$defs/io.token.proto.common.v2.payout.BnppRegistrationPayload"
        },
        "corporateApi": {
          "$ref": "#/$defs/io.token.proto.common.v2.payout.CorporateApiRegistrationPayload"
        },
        "createdDateTime": {
          "type": "string"
        },
        "fank": {
          "$ref": "#/$defs/io.token.proto.common.v2.payout.FankRegistrationPayload"
        },
        "hsbc": {
          "$ref": "#/$defs/io.token.proto.common.v2.payout.HsbcRegistrationPayload"
        },
        "id": {
          "type": "string"
        },
        "product": {
          "$ref": "#/$defs/io.token.proto.common.v2.payout.Product"
        }
      }
    }
  }
}