Verifikasi Akun API adalah titik akhir Validasi Rekening Bank Brick untuk memeriksa detail rekening bank tujuan. Kirim kode pendek bank dan nomor rekening, lalu gunakan respons untuk mengonfirmasi apakah Brick dapat memvalidasi rekening melalui jaringan bank yang didukung.
Gunakan API ini sebelum menyimpan rincian penerima atau memulai pembayaran. Responsnya mungkin mencakup nama pemegang rekening yang dikembalikan oleh jaringan bank, namun tidak dengan sendirinya membuktikan kepemilikan sah atau menyelesaikan penyaringan penipuan.
Parameter permintaan
Parameter Kunci
Tipe Data
Deskripsi
public_access_token
String
Token akses publik dibuat menggunakan clientId dan clientSecret Anda, dan Anda dapat mengambilnya dari endpoint ini.
accountNumber
String
Nomor rekening tujuan pengiriman dana.
bankShortCode
String
Ini harus menjadi institusi yang ingin divalidasi oleh pelanggan akhir Anda. Silakan lihat Validation Coverage untuk daftar tujuan validasi yang didukung.
Parameter respons
Parameter Kunci
Tipe data
Deskripsi
accountNo
String
Nomor akun pengguna
bankShortCode
String
Kode pendek institusi pengguna
accountName
String
Nama rekening institusi tujuan pengiriman dana.
activityId
String
ID referensi unik untuk setiap permintaan validasi rekening bank.
Contoh respons
200 Success
Code
{ "status": 200, "data": { "message": "We are successfully able to verify the account", "bankShortCode": "DANA", "accountNo": "08123412341234", "accountName": "beneficiary holder name", "activityId": "86569bbf0b017afb59cb71765eaec280" }, "error": null, "metaData": { "source": "API", "entity": "Payment" }}
400 Invalid format
Code
{ "status": 400, "data": null, "error": { "code": "invalid_format", "message": "The bank account validation request could not be processed because one or more submitted fields are missing, invalid, or not in the required format.", "action": "Please review the request parameters and ensure the account number, bank code, and other required fields follow the required format before submitting again.", "reason": "The request contains invalid, incomplete, or improperly formatted information required to process the bank account validation." }, "metaData": { "source": "API", "entity": "Payment" }}
404 Account not found
Code
{ "status": 404, "data": null, "error": { "code": "account_not_found", "message": "We were unable to verify the submitted bank account details. The account number, account holder name, or bank information may be incorrect or not available for validation.", "action": "Please review the account number, account holder name, and bank details, then submit the request again with the correct information.", "reason": "The provider could not find a matching bank account or account holder based on the submitted validation details." }, "metaData": { "source": "API", "entity": "Payment" }}
500 Internal server error
Code
{ "status": 500, "data": null, "error": { "code": "INTERNAL_SERVER_ERROR", "message": "Bank account validation could not be completed at this time due to a temporary processing issue from the downstream bank network, or internal validation service.", "action": "Please retry the request later. If the issue persists, please contact support with the transaction reference for further assistance.", "reason": "The validation request could not be completed because a temporary system or bank network error occurred during processing." }, "metaData": { "source": "API", "entity": "Payment" }}
503 Unknown behaviour
Code
{ "status": 503, "data": null, "error": { "code": "UNKNOWN_BEHAVIOUR", "message": "Bank account validation could not be completed because the bank network returned an unexpected response that could not be met with a standard validation result.", "action": "Please retry the request later. If the issue persists, please contact support with the transaction reference for further investigation.", "reason": "The provider returned an unmapped, unexpected, or unsupported response that could not be classified under the standard validation outcome." }, "metaData": { "source": "API", "entity": "Payment" }}