1. Overview

The balance of your own payment account can be obtained through this interface to ensure that the transfer transaction is conducted normally before the merchant platform initiates a transfer operation.

2. API Specification

HTTP Method

POST

Endpoint

open/bi/private/1.0.0/balance-inquiry

SNAP Service Code

11

3. Request

3.1. Request Header

Name

Type

M/O

Length

Description

X-TIMESTAMP

String

M

25

The request timestamp. Formatted with "yyyy-MM-ddTHH:mm:ssZ". E.g. 2022-09-06T13:00:00+07:00

X-SIGNATURE

String

M

2048

The Merchant or Client generated signature. Using Asymmetric-Signature mechanism to get the token, encrypted with SHA256withRSA. 

e.g. 

stringToSign = <HTTP Method> + ":" + <Service Endpoint> + ":" + toLowercase(hexEncode(SHA256(minify(<Request Body>)))) + ":" + <X-TIMESTAMP>

X-SIGNATURE = SHA256withRSA(PrivateKey, stringToSign)

X-ORIGIN

String

M

256

Client’s host origin.

X-PARTNER-ID

String

M

32

The Merchant or Client Id. Provided by BNC.

X-EXTERNAL-ID

String

M

36

The Merchant External ID of request. 

 

e.g. 77778042022091500001

CHANNEL-ID

String

M

5

PJP Channel ID. 88881

3.1.1 Sample Request Header

Content-type: application/json 
Authorization: Bearer gp9HjjEj813Y9JGoqwOeOPWbnt4CUpvIJbU1mMU4a11MNDZ7Sg5u9a" 
X-TIMESTAMP: 2020-12-21T14:56:11+07:00
X-SIGNATURE: 85be817c55b2c135157c7e89f52499bf0c25ad6eeebe04a986e8c862561b19a5
X-ORIGIN: www.hostname.com
X-PARTNER-ID: 82150823919040624621823174737537 
X-EXTERNAL-ID: 41807553358950093184162180797837 
CHANNEL-ID: 95221 

3.2 Request Body

Name

Type

M/O

Length

Description

Example

partnerReferenceNo

String

O

64

Transaction identifier on service consumer system

2020102900000000000001

bankCardToken

String

C

128

Card tokenfor payment.must be filled if accountNo is null and Authorizatio n-Customer is Null

6d7963617264746f6b656e

accountNo

String

C

16

Bankaccount number.must be filled if bankCardTok en is Nulland Authorizatio n-Customer is Null

7382382957893840

balanceTypes

Array of String

O

 

BalanceTypes of this parameter doesn’texist, itsmean to inquiry all Balance Type on the account

["Cash","Coins"]

additionalInfo

Object

O

 

Additionalinformation

{

"submerchantflag":"1",

"channel":"mobilephone",

"deviceId":"12345679237",

"channel": "mobilephone",

"mchNm": "merchant xyz"

}

Note:

Flag of "submerchantflag":

"1" = Merchant (1st tier merchant)

"2" = Merchant (2nd tier merchant)

3.2.1 Sample Request Body

{
   
}

4. Response

4.1 Response Body

Name

Type

M/O

Length

Description

Example

responseCode

String

M

7

Response code

2001100

responseMessage

String

M

150

Response description

Request hasbeen processed successfully

referenceNo

String

O

64

Transactionidentifier on service provider system. Must be filled upon successful transaction

2020102977770000000009

partnerReferenceNo

String

O

64

Transactionidentifier on service consumer system

2020102900000000000001

accountNo

String

O

32

Registeredaccount number

115471119

name

String

O

140

Customer account name

JONOMADE

accountInfos

Array

O

 

 

 

balanceType

String

O

70

Account type name

Balance, OvoCash, ShopeeCoins

amount

Object

O

 

 

 

value

String(ISO4217)

M

16,2

Net amountof the transaction. If it’s IDR then value includes 2 decimal digits.e.g. IDR10.000,- will be placed with10000.00

200000.00

currency

String

M

3

Currency

IDR

floatAmount

Object

O

 

 

 

value

String(ISO4217)

M

16,2

Amount ofdeposit that is not effective yet (due toholiday, etc.).
If it’s IDR then value includes 2 decimal digits.e.g. IDR50.000,- will be placed with50000.00

50000.00

currency

String

M

3

Currency

IDR

holdAmount

Object

O

 

 

 

value

String(ISO4217)

M

16,2

Hold amount that cannot be used.If it’s IDRthen value includes 2 decimal digits.e.g. IDR20.000,- will be placed with20000.00

20000.00

currency

String

M

3

Currency

IDR

availableBalance

Object

O

 

 

 

value

String(ISO4217)

M

16,2

Account balance that can be used for financial transaction

130000.00

currency

String

M

3

Currency

IDR

ledgerBalance

Object

O

 

 

 

value

String(ISO4217)

M

16,2

Accountbalance atthe beginning of each day

30000.00

currency

String

M

3

Currency

IDR

currentMultilateralLimit

Object

O

 

 

 

value

String(ISO4217)

M

16,2

Credit limit of the account / plafon

10000.00

currency

String

M

3

Currency

IDR

registrationStatusCode

String

O

4

Customerregistration status

1

status

String

O

4

AccountStatus

1 = ActiveAccount

2 = ClosedAccount

4 = NewAccount

6 = Restricted Account

7 = FrozenAccount

9 = DormantAccount

1

additionalInfo

Object

O

 

Additional information

{

"submerchantflag":"1",

"channel":"mobilephone",

"deviceId":"12345679237",

"channel": "mobilephone",

"mchNm": "merchant xyz"

}

Note:

Flag of "submerchantflag":

"1" = Merchant (1st tier merchant)

"2" = Merchant (2nd tier merchant)

4.1.1 Sample Response Body

Success:

{
   
}

Fail:

{

}

Response Code

HTTP Code

Service Code

Case Code

Response Message

Description

1

2002400

200

any

00

Successful

Successful

2

4002400

400

any

00

Bad Request

General request failed error, including message parsing failed.

3

4002401

400

any

01

Invalid Field Format {field name}

Invalid format

4

4012400

401

any

00

Unauthorized. [reason]

General unauthorized error (No Interface Def, API is Invalid, Oauth Failed, Verify Client Secret Fail, Client Forbidden Access API, Unknown Client, Key not Found)

5

4012401

401

any

01

Invalid Token (B2B)

Token found in request is invalid (Access Token Not Exist, Access Token Expiry)

6

4012403

401

any

03

Token Not Found (B2B)

Token not found in the system. This occurs on any API that requires token as input parameter

7

4042408

404

any

08

InvalidMerchant

Merchant does not exist or status abnormal

8

4042411

404

any

11

Invalid Card/Accoun t/Customer [info]/Virtual Account

Card information may be invalid, or the card account may be blacklisted, or Virtual Account number maybe invalid.

9

4042412

404

any

12

Invalid Bill/Virtual Account [Reason]

The bill is blocked/suspended/not found.Virtual account is suspend/not found.

10

4042413

404

any

13

InvalidAmount

The amount doesn't match with what supposed to

11

4092401

409

any

01

Duplicate partnerReferenceNo

Transaction has previously been processed indicates the same partnerReferenceNo already success

12

5002402

500

Any

02

External Server Error

Backend system failure, etc

6. Reference

Field Code

Field Name

Description

1

M

Mandatory

Mandatory

2

ME

Mandatory Equal

Mandatory Equal – value in the request and the response must be the same.

3

C

Conditional

Conditional

4

CE

Conditional Equal

Conditional Equal – value in the request and the response must be the same.

5

O

Optional

Optional

Bank Neo Commerce terdaftar dan diawasi oleh OJK
Bank Neo Commerce merupakan peserta penjamin LPS
All Rights Reserved. PT Bank Neo Commerce 2025