API Bank Statement SNAP BI

Informasi API

Judul

API Bank Statement

Versi

v1.0

URL Sandbox

https://sandbox.partner.api.bri.co.id

URL Production

 

Kendali Versi

 

Versi Doc

Versi API

Tanggal

Tautan Dokumen

Deskripsi

v1.0

v1.0

7 Desember

Halaman ini.

Baseline version

v2.0

v1.0

22 April 2022

Halaman ini

Update field format

v3.0 v1.0 15 Feb 2024 Halaman ini Update Request dan Response Sample

Deskripsi Produk

Gambaran Produk

API ini merupakan layanan yang digunakan untuk mengakses riwayat transaksi keuangan secara menyeluruh dari sebuah rekening Bank, baik rekening milik individu pemilik rekening. Konsumen dapat memanfaatkan platform dari Non-PJP Pengguna Layanan, atau PJP PIAS yang telah disertifikasi oleh PJP AIS untuk mengakses API ini sehingga dapat dengan mudah melihat rincian keuangannya dalam satu aplikasi.

Endpoint

A. API Bank Statement

Endpoint ini digunakan untuk mengakses riwayat transaksi keuangan secara menyeluruh dari sebuah rekening Bank

General Information

HTTP Method

POST

Path

snap/v1.0/bank-statement

Tipe Format

JSON

Authentication

OAuth 2.0 with Access Token

Header Structure & Sample

Key

Value

Format

Mandatory

Length

Deskripsi

Authorization

Authorization

String

M

 

Bearer {Token}

X-TIMESTAMP

BRI - Timestamp

Datetime

M

 

Format Timestamp ISO8601

X-SIGNATURE

BRI - Signature

String

M

 

HMAC_SHA512

Content-type

application/json

 

M

 

application/json

X-PARTNER-ID

 

Alphanumeric

M

36

 

CHANNEL-ID

 

Alphanumeric

M

5

 

X-EXTERNAL-ID

 

Numeric

M

9

 

Request Structure & Sample

Field

Data Type

Format

Mandatory

Length

Deskripsi

Contoh

accountNo

String

Numeric

M

Note :

SNAP BI

(C)

15

Note :

SNAP BI 

Length

(16)

Nomor Rekening

234567891012345

fromDateTime

String

ISODateTime ISO-8601

O

25

Rentang waktu mulai. Default:
NOW (DESC)
or NOW –1 months (ASC)

020-11-08T12:07:56-07:00

toDateTime

String

ISODateTime ISO-8601

O

25

Rentang waktu berakhir. Default: NOW (DESC) - 1 months (ASC)

2020-11-09T12:09:57-07:00

Response Structure & Sample

Field

Data Type

Format

Mandatory

Lenght

Deskripsi

Contoh

responseCode

String

Numeric

M

7

respon code

2001400

responseMessage

String

Alphanumeric

M

150

Respon Deskripsi

Successful

totalCreditEntries

Object

 

O

 

Jumlah total transaksi dengan tipe = KREDIT

“numberOfE ntries”: “10”, “amount”: { "value": "10000.00", "currency": "IDR" } }

>numberOfEntries

Int

Numeric

O

5

Jumlah entri

10

>amount

Object

 

M

 

 

 

>>value

String

Decimal

M

15,2

Note :

SNAP BI

Length

(18)

Nilai Jumlah,Jika itu Rupiah maka nilainya termasuk 2 angka desimal,misalnya Rp. 10.000,- maka akan menjadi 10000.00

10000.00

>>currency

String

Alphanumeric

M

3

Mata uang

IDR

totalDebitEntries

Object

 

O

 

Jumlah total transaksi dengan tipe = DEBIT

 

>numberOfEntries

int

Numeric

O

5

 

10

>amount

Object

 

M

 

 

 

>>value

String

Decimal

M

15,2

Note :

SNAP BI 

Length

(18)

Nilai Jumlah,Jika itu Rupiah maka nilainya termasuk 2 angka desimal,misalnya Rp. 10.000 maka akan menjadi 10000.00

10000.00

>>currency

String

Alphanumeric

M

3

Mata Uang

IDR

detailData

Array

of

Object

 

 

 

 

 

>detailBalance

Object

 

O

 

Saldo awal dan akhir sebelum dan sesudah transaksi

 

>>startAmount

Object

 

O

 

Active Currency And Amount ISO-4217

Jumlah saldo. Jika itu rupiah maka nilainya termasuk 2 angka desimal misal RP10.000, akan diubah menjadi 10000.00

 

>>>amount

Object

 

O

 

 

 

>>>>value

String

Decimal

M

15,2

Note :

SNAP BI 

Length

(16,2)

Jumlah bersih dari transaksi. Jika itu rupiah lalu nilai termasuk 2 angka desimal. misalnya Rp 10.000, akan diubah menjadi 10000.00

10000.00

>>>>currency

String

Alphanumeric

M

3

Mata uang

IDR

>>endAmount

Object

 

O

 

Active Currency And Amount ISO-4217

Jumlah bersih dari transaksi. jika itu rupiah maka nilainya termasuk 2 angka desimal. misalnya Rp 10.000, akan di ubah menjadi 10000.00

 

>>>amount

Object

 

O

 

 

 

>>>>value

String

Decimal

M

15,2

Note :

SNAP BI 

Length

(16,2)

Jumlah bersih dari transaksi. Jika itu rupiah lalu nilai termasuk 2 desimal angka. misalnya Rp 10.000, akan diubah menjadi 10000.00

20000.00

>>>>currency

String

Alphanumeric

M

3

Mata uang

IDR

>amount

Object

 

O

 

 

 

>>value

String

Decimal

M

15,2

Note :

SNAP BI 

Length 

(16,2)

Jumlah bersih dari transaksi. Jika itu rupiah lalu nilai termasuk 2 desimal angka. misalnya Rp 10.000, akan diubah menjadi 10000.00

20000.00

>>currency

String

Alphanumeric

M

3

Mata uang

IDR

>transactionDate

String

ISODateTime ISO-8601

M

25

Timestamp of the transaction.

2009-07-03T12:08:56-07:00

>remark

String

Alphanumeric

M

256

Catatan transaksi

Payment to Warung Ikan Bakar

>transactionId

String

Alphanumeric

O

35

Pengidentifikasi transaksi internal dari perspektif penerbit

20200801198230912830091123

>type

String

Alphanumeric

M

6

Jenis transaksi CREDIT/DEBIT

 

Request & Response Payload Sample

Request  :

{
   "accountNo":"234567891012349",
   "fromDateTime":"2023-02-02T10:09:00+07:00",
   "toDateTime":"2023-02-02T12:09:00+07:00"
}

Normal Response :

{
   "responseCode":"2001400",
   "responseMessage":"Successful",
   "totalCreditEntries":{
      "numberOfEntries":"2",
      "amount":{
         "value":"10000.00",
         "currency":"IDR"
      }
   },
   "totalDebitEntries":{
      "numberOfEntries":"2",
      "amount":{
         "value":"10000.00",
         "currency":"IDR"
      }
   },
   "detailData":[
      {
         "detailBalance":{
            "startAmount":[
               {
                  "amount":{
                     "value":"100000000.00",
                     "currency":"IDR"
                  }
               }
            ],
            "endAmount":[
               {
                  "amount":{
                     "value":"20000.00",
                     "currency":"IDR"
                  }
               }
            ]
         },
         "amount":{
            "value":"5000.00",
            "currency":"IDR"
         },
         "transactionDate":"2023-02-02T10:09:00+07:00",
         "remark":"Payment to Warung Ikan Bakar 1",
         "transactionId":"2020080119823091283009112 0",
         "type":"Credit"
      },
      {
         "detailBalance":{
            "startAmount":[
               {
                  "amount":{
                     "value":"100000000.00",
                     "currency":"IDR"
                  }
               }
            ],
            "endAmount":[
               {
                  "amount":{
                     "value":"20000.00",
                     "currency":"IDR"
                  }
               }
            ]
         },
         "amount":{
            "value":"5000.00",
            "currency":"IDR"
         },
         "transactionDate":"2023-02-02T10:09:00+07:00",
         "remark":"Payment to Warung Ikan Bakar 2",
         "transactionId":"2020080119823091283009112 1",
         "type":"Credit"
      },
      {
         "detailBalance":{
            "startAmount":[
               {
                  "amount":{
                     "value":"100000000.00",
                     "currency":"IDR"
                  }
               }
            ],
            "endAmount":[
               {
                  "amount":{
                     "value":"20000.00",
                     "currency":"IDR"
                  }
               }
            ]
         },
         "amount":{
            "value":"20000.00",
            "currency":"IDR"
         },
         "transactionDate":"2023-02-02T10:09:00+07:00",
         "remark":"Payment to Warung Ikan Bakar 1",
         "transactionId":"2020080119823091283009122 0",
         "type":"Credit"
      },
      {
         "detailBalance":{
            "startAmount":[
               {
                  "amount":{
                     "value":"100000000.00",
                     "currency":"IDR"
                  }
               }
            ],
            "endAmount":[
               {
                  "amount":{
                     "value":"20000.00",
                     "currency":"IDR"
                  }
               }
            ]
         },
         "amount":{
            "value":"20000.00",
            "currency":"IDR"
         },
         "transactionDate":"2023-02-02T10:09:00+07:00",
         "remark":"Payment to Warung Ikan Bakar 2",
         "transactionId":"2020080119823091283009122 1",
         "type":"Credit"
      }
   ]
}

Error Response :

{
   "ResponseCode":"4001402",
   "ResponseMessage":"Invalid Mandatory Field accountNo"
}

List of Error/Response Code

HTTP Status

Service Code

Code

Status

Response Message

Deskripsi

200

14

00

Sukses

Successful

 

400

14

01

Gagal

Invalid Field Format {fieldName}

 

400

14

02

Gagal

Invalid Mandatory Field {fieldName}

 

401

14

00

Gagal

Unauthorized. Client

 

404

14

01

Gagal

Transaction not found

 

404

14

11

Gagal

Invalid Card/Account/Customer[info]/VirtualAccount

 

409

14

00

Gagal

Conflict

 

500

14

00

Gagal

General Error

 

504

14

00

Pending

Timeout

 

Seluruh response error yang tidak tercantum dalam list response BRIAPI memiliki status pending dan perlu dilakukan pengecekan