From 73e679c61e8a5b6989459e9a1277572b1cdd1d03 Mon Sep 17 00:00:00 2001 From: Jason Wang Date: Fri, 27 Feb 2026 12:40:08 -0800 Subject: [PATCH] Add remaining required fields for certain payout countries --- mintlify/openapi.yaml | 82 ++++++++++++++++--- openapi.yaml | 82 ++++++++++++++++--- .../schemas/common/HkdAccountInfo.yaml | 14 +++- .../schemas/common/IdrAccountInfo.yaml | 26 ++++-- .../schemas/common/MyrAccountInfo.yaml | 14 +++- .../schemas/common/ThbAccountInfo.yaml | 14 +++- .../schemas/common/VndAccountInfo.yaml | 14 +++- 7 files changed, 207 insertions(+), 39 deletions(-) diff --git a/mintlify/openapi.yaml b/mintlify/openapi.yaml index a28b2e17..228332e0 100644 --- a/mintlify/openapi.yaml +++ b/mintlify/openapi.yaml @@ -5024,6 +5024,7 @@ components: - paymentRails - bankName - accountNumber + - swiftCode properties: accountType: type: string @@ -5043,10 +5044,19 @@ components: - BANK_TRANSFER bankName: type: string - description: The bank name of the bank + description: Name of the bank + example: HSBC Hong Kong accountNumber: type: string - description: The account number of the bank + description: Hong Kong bank account number + example: '123456789012' + swiftCode: + type: string + description: SWIFT/BIC code (8 or 11 characters) + example: HSBCHKHHHKH + minLength: 8 + maxLength: 11 + pattern: ^[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})?$ PaymentHkdAccountInfo: title: HKD Account allOf: @@ -5066,8 +5076,10 @@ components: - accountType - countries - paymentRails - - sortCode - accountNumber + - bankName + - swiftCode + - phoneNumber properties: accountType: type: string @@ -5085,12 +5097,26 @@ components: type: string enum: - BANK_TRANSFER - sortCode: - type: string - description: The sort code of the bank accountNumber: type: string - description: The account number of the bank + description: Indonesian bank account number + example: '1234567890' + bankName: + type: string + description: Name of the bank + example: Bank Central Asia + swiftCode: + type: string + description: SWIFT/BIC code (8 or 11 characters) + example: CENAIDJA + minLength: 8 + maxLength: 11 + pattern: ^[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})?$ + phoneNumber: + type: string + description: Indonesian phone number for e-wallet payments + example: '+6281234567890' + pattern: ^\+62[0-9]{9,12}$ PaymentIdrAccountInfo: title: IDR Account allOf: @@ -5112,6 +5138,7 @@ components: - paymentRails - bankName - accountNumber + - swiftCode properties: accountType: type: string @@ -5131,10 +5158,19 @@ components: - BANK_TRANSFER bankName: type: string - description: The bank name of the bank + description: Name of the bank + example: Maybank accountNumber: type: string - description: The account number of the bank + description: Malaysian bank account number + example: '1234567890' + swiftCode: + type: string + description: SWIFT/BIC code (8 or 11 characters) + example: MABORUMMYYY + minLength: 8 + maxLength: 11 + pattern: ^[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})?$ PaymentMyrAccountInfo: title: MYR Account allOf: @@ -5258,6 +5294,7 @@ components: - paymentRails - bankName - accountNumber + - swiftCode properties: accountType: type: string @@ -5277,10 +5314,19 @@ components: - BANK_TRANSFER bankName: type: string - description: The bank name of the bank + description: Name of the bank + example: Bangkok Bank accountNumber: type: string - description: The account number of the bank + description: Thai bank account number + example: '1234567890' + swiftCode: + type: string + description: SWIFT/BIC code (8 or 11 characters) + example: BKKBTHBK + minLength: 8 + maxLength: 11 + pattern: ^[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})?$ PaymentThbAccountInfo: title: THB Account allOf: @@ -5302,6 +5348,7 @@ components: - paymentRails - bankName - accountNumber + - swiftCode properties: accountType: type: string @@ -5321,10 +5368,19 @@ components: - BANK_TRANSFER bankName: type: string - description: The bank name of the bank + description: Name of the bank + example: Vietcombank accountNumber: type: string - description: The account number of the bank + description: Vietnamese bank account number + example: '1234567890' + swiftCode: + type: string + description: SWIFT/BIC code (8 or 11 characters) + example: BFTVVNVX + minLength: 8 + maxLength: 11 + pattern: ^[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})?$ PaymentVndAccountInfo: title: VND Account allOf: diff --git a/openapi.yaml b/openapi.yaml index a28b2e17..228332e0 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -5024,6 +5024,7 @@ components: - paymentRails - bankName - accountNumber + - swiftCode properties: accountType: type: string @@ -5043,10 +5044,19 @@ components: - BANK_TRANSFER bankName: type: string - description: The bank name of the bank + description: Name of the bank + example: HSBC Hong Kong accountNumber: type: string - description: The account number of the bank + description: Hong Kong bank account number + example: '123456789012' + swiftCode: + type: string + description: SWIFT/BIC code (8 or 11 characters) + example: HSBCHKHHHKH + minLength: 8 + maxLength: 11 + pattern: ^[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})?$ PaymentHkdAccountInfo: title: HKD Account allOf: @@ -5066,8 +5076,10 @@ components: - accountType - countries - paymentRails - - sortCode - accountNumber + - bankName + - swiftCode + - phoneNumber properties: accountType: type: string @@ -5085,12 +5097,26 @@ components: type: string enum: - BANK_TRANSFER - sortCode: - type: string - description: The sort code of the bank accountNumber: type: string - description: The account number of the bank + description: Indonesian bank account number + example: '1234567890' + bankName: + type: string + description: Name of the bank + example: Bank Central Asia + swiftCode: + type: string + description: SWIFT/BIC code (8 or 11 characters) + example: CENAIDJA + minLength: 8 + maxLength: 11 + pattern: ^[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})?$ + phoneNumber: + type: string + description: Indonesian phone number for e-wallet payments + example: '+6281234567890' + pattern: ^\+62[0-9]{9,12}$ PaymentIdrAccountInfo: title: IDR Account allOf: @@ -5112,6 +5138,7 @@ components: - paymentRails - bankName - accountNumber + - swiftCode properties: accountType: type: string @@ -5131,10 +5158,19 @@ components: - BANK_TRANSFER bankName: type: string - description: The bank name of the bank + description: Name of the bank + example: Maybank accountNumber: type: string - description: The account number of the bank + description: Malaysian bank account number + example: '1234567890' + swiftCode: + type: string + description: SWIFT/BIC code (8 or 11 characters) + example: MABORUMMYYY + minLength: 8 + maxLength: 11 + pattern: ^[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})?$ PaymentMyrAccountInfo: title: MYR Account allOf: @@ -5258,6 +5294,7 @@ components: - paymentRails - bankName - accountNumber + - swiftCode properties: accountType: type: string @@ -5277,10 +5314,19 @@ components: - BANK_TRANSFER bankName: type: string - description: The bank name of the bank + description: Name of the bank + example: Bangkok Bank accountNumber: type: string - description: The account number of the bank + description: Thai bank account number + example: '1234567890' + swiftCode: + type: string + description: SWIFT/BIC code (8 or 11 characters) + example: BKKBTHBK + minLength: 8 + maxLength: 11 + pattern: ^[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})?$ PaymentThbAccountInfo: title: THB Account allOf: @@ -5302,6 +5348,7 @@ components: - paymentRails - bankName - accountNumber + - swiftCode properties: accountType: type: string @@ -5321,10 +5368,19 @@ components: - BANK_TRANSFER bankName: type: string - description: The bank name of the bank + description: Name of the bank + example: Vietcombank accountNumber: type: string - description: The account number of the bank + description: Vietnamese bank account number + example: '1234567890' + swiftCode: + type: string + description: SWIFT/BIC code (8 or 11 characters) + example: BFTVVNVX + minLength: 8 + maxLength: 11 + pattern: ^[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})?$ PaymentVndAccountInfo: title: VND Account allOf: diff --git a/openapi/components/schemas/common/HkdAccountInfo.yaml b/openapi/components/schemas/common/HkdAccountInfo.yaml index bc312f82..0d369ba3 100644 --- a/openapi/components/schemas/common/HkdAccountInfo.yaml +++ b/openapi/components/schemas/common/HkdAccountInfo.yaml @@ -5,6 +5,7 @@ required: - paymentRails - bankName - accountNumber +- swiftCode properties: accountType: type: string @@ -24,7 +25,16 @@ properties: - BANK_TRANSFER bankName: type: string - description: The bank name of the bank + description: Name of the bank + example: HSBC Hong Kong accountNumber: type: string - description: The account number of the bank + description: Hong Kong bank account number + example: '123456789012' + swiftCode: + type: string + description: SWIFT/BIC code (8 or 11 characters) + example: HSBCHKHHHKH + minLength: 8 + maxLength: 11 + pattern: ^[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})?$ diff --git a/openapi/components/schemas/common/IdrAccountInfo.yaml b/openapi/components/schemas/common/IdrAccountInfo.yaml index a21b46fd..71083277 100644 --- a/openapi/components/schemas/common/IdrAccountInfo.yaml +++ b/openapi/components/schemas/common/IdrAccountInfo.yaml @@ -3,8 +3,10 @@ required: - accountType - countries - paymentRails -- sortCode - accountNumber +- bankName +- swiftCode +- phoneNumber properties: accountType: type: string @@ -22,9 +24,23 @@ properties: type: string enum: - BANK_TRANSFER - sortCode: - type: string - description: The sort code of the bank accountNumber: type: string - description: The account number of the bank + description: Indonesian bank account number + example: '1234567890' + bankName: + type: string + description: Name of the bank + example: Bank Central Asia + swiftCode: + type: string + description: SWIFT/BIC code (8 or 11 characters) + example: CENAIDJA + minLength: 8 + maxLength: 11 + pattern: ^[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})?$ + phoneNumber: + type: string + description: Indonesian phone number for e-wallet payments + example: '+6281234567890' + pattern: ^\+62[0-9]{9,12}$ diff --git a/openapi/components/schemas/common/MyrAccountInfo.yaml b/openapi/components/schemas/common/MyrAccountInfo.yaml index 9fc45627..ac2f600d 100644 --- a/openapi/components/schemas/common/MyrAccountInfo.yaml +++ b/openapi/components/schemas/common/MyrAccountInfo.yaml @@ -5,6 +5,7 @@ required: - paymentRails - bankName - accountNumber +- swiftCode properties: accountType: type: string @@ -24,7 +25,16 @@ properties: - BANK_TRANSFER bankName: type: string - description: The bank name of the bank + description: Name of the bank + example: Maybank accountNumber: type: string - description: The account number of the bank + description: Malaysian bank account number + example: '1234567890' + swiftCode: + type: string + description: SWIFT/BIC code (8 or 11 characters) + example: MABORUMMYYY + minLength: 8 + maxLength: 11 + pattern: ^[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})?$ diff --git a/openapi/components/schemas/common/ThbAccountInfo.yaml b/openapi/components/schemas/common/ThbAccountInfo.yaml index 307ac918..675fb226 100644 --- a/openapi/components/schemas/common/ThbAccountInfo.yaml +++ b/openapi/components/schemas/common/ThbAccountInfo.yaml @@ -5,6 +5,7 @@ required: - paymentRails - bankName - accountNumber +- swiftCode properties: accountType: type: string @@ -24,7 +25,16 @@ properties: - BANK_TRANSFER bankName: type: string - description: The bank name of the bank + description: Name of the bank + example: Bangkok Bank accountNumber: type: string - description: The account number of the bank + description: Thai bank account number + example: '1234567890' + swiftCode: + type: string + description: SWIFT/BIC code (8 or 11 characters) + example: BKKBTHBK + minLength: 8 + maxLength: 11 + pattern: ^[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})?$ diff --git a/openapi/components/schemas/common/VndAccountInfo.yaml b/openapi/components/schemas/common/VndAccountInfo.yaml index 4901b33d..5199596a 100644 --- a/openapi/components/schemas/common/VndAccountInfo.yaml +++ b/openapi/components/schemas/common/VndAccountInfo.yaml @@ -5,6 +5,7 @@ required: - paymentRails - bankName - accountNumber +- swiftCode properties: accountType: type: string @@ -24,7 +25,16 @@ properties: - BANK_TRANSFER bankName: type: string - description: The bank name of the bank + description: Name of the bank + example: Vietcombank accountNumber: type: string - description: The account number of the bank + description: Vietnamese bank account number + example: '1234567890' + swiftCode: + type: string + description: SWIFT/BIC code (8 or 11 characters) + example: BFTVVNVX + minLength: 8 + maxLength: 11 + pattern: ^[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})?$