CheckAccount

This method is used for checking account.

Good to know: Press ">" to see detail.

Request

POST https://{SERVER}/Api/SBR/CheckAccount

Request Body

Name
Type
Description

AuthID*

Text

UserID assigned by SBR

ProtocolData*

Object

Data request

AccountID*

Text

Account number

AccountType

Text(20)

Account type: default: ACC

ACC: Payment account

PAN: Card account PAY: Sacombank Pay Account VNPTPay: VNPTPay account Zalo: ZaloPay account

ReceiverName

Text

Receiver Name of Account (required AccountType=Zalo or AccountType=VNPTPay)

CheckType

Text(20)

Check type: default: NAPAS

STB: Sacombank account

NAPAS: Napas account

BankID

Text(20)

ID of bank

Require: Check type = ‘NAPAS’

Not Require: Check type = ‘STB’

{
    // Response
}

Response

Parameters

Data type

Description

Status

Number

Return status of request:

0;Fail;1;Success

ProtocolData

Object

Object

TransactionID

Text

Transaction ID

AccountID

Text

Account number

AccountName

Text

Name of account

Status

Number

Response from payment gateway, ignore this value

Error

Text

Error from payment gateway

Verified

Boolean

Status when checking digital signature, ignore this value

Request Example

{
  "AuthID": "abc",
  "ProtocolData": {
    "AccountID": "Acc001",
    "AccountType": "ACC",
    "CheckType": "NAPAS",
    "BankID": "XYZ",
    
  }
}

Response Example

// AccountType=ACC
{
  "Status": 1,
  "ProtocolData": {
    "TransactionID": "63783126853198821",
    "AccountID": "060146911822",
    "AccountName": "TRAN MINH HAI",
    "Status": "0",
    "Error": "",
    "Verified": true
  }
}
// AccountType=PAN
{
  "Status": 1,
  "ProtocolData": {
    "TransactionID": "63783126407431185",
    "AccountID": "422151XXXXXX1065",
    "AccountName": "NGUYEN VO PHUONG NGAN",
    "Status": "0",
    "Error": "",
    "Verified": true
  }
}

Last updated