Skip to content

Commit 79538a8

Browse files
Chore: Add endpoint to the Bank Collection
1 parent 3211698 commit 79538a8

File tree

1 file changed

+65
-1
lines changed

1 file changed

+65
-1
lines changed

base/paystack.yaml

Lines changed: 65 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3439,6 +3439,27 @@ paths:
34393439
$ref: '#/components/responses/NotFound'
34403440
default:
34413441
description: Server error
3442+
/bank/validate:
3443+
post:
3444+
tags:
3445+
- Bank
3446+
summary: Validate Bank Account
3447+
operationId: bank_validateAccountNumber
3448+
requestBody:
3449+
content:
3450+
application/json:
3451+
schema:
3452+
$ref: '#/components/schemas/BankValidateRequest'
3453+
application/x-www-form-urlencoded:
3454+
schema:
3455+
$ref: '#/components/schemas/BankValidateRequest'
3456+
responses:
3457+
'200':
3458+
$ref: '#/components/responses/Ok'
3459+
'401':
3460+
$ref: '#/components/responses/Unauthorized'
3461+
default:
3462+
description: Server error
34423463
/decision/bin/{bin}:
34433464
get:
34443465
tags:
@@ -4851,12 +4872,55 @@ components:
48514872
account_number:
48524873
description: Customer's account number
48534874
type: string
4875+
BankValidateRequest:
4876+
type: object
4877+
required:
4878+
- account_name
4879+
- account_number
4880+
- account_type
4881+
- bank_code
4882+
- country_code
4883+
- document_type
4884+
properties:
4885+
account_name:
4886+
description: Customer's first and last name registered with their bank
4887+
type: string
4888+
account_number:
4889+
description: Customer's account number
4890+
type: string
4891+
account_type:
4892+
description: The type of the customer's account number
4893+
type: string
4894+
enum:
4895+
- personal
4896+
- business
4897+
bank_code:
4898+
description: The bank code of the customer’s bank. You can fetch the bank codes by using our List Banks endpoint
4899+
type: string
4900+
country_code:
4901+
description: The two digit ISO code of the customer’s bank
4902+
type: string
4903+
document_type:
4904+
description: Customer’s mode of identity
4905+
type: string
4906+
enum:
4907+
- identityNumber
4908+
- passportNumber
4909+
- businessRegistrationNumber
4910+
document_number:
4911+
description: Customer’s mode of identity number
4912+
type: string
48544913
USSD:
48554914
type: object
48564915
properties:
48574916
type:
4858-
description: The three-digit USSD code. One of, 737, 919, 822, 966
4917+
description: The three-digit USSD code.
48594918
type: string
4919+
enum:
4920+
- 737
4921+
- 919
4922+
- 822
4923+
- 966
48604924
MobileMoney:
48614925
type: object
48624926
properties:

0 commit comments

Comments
 (0)