Riwayat Transaksi v2.0

API Information

Title Info Mutasi
Version v2.0
URL Sandbox https://sandbox.partner.api.bri.co.id/v2.0/statement
URL Production https://partner.api.bri.co.id/v2.0/statement

 

Version Control

API Version Date Link to document Description
v1.0 1 Februari 2019 buka docs Baseline version.
v2.0 1 April 2021 this pages Perubahan struktur API

 

Penjelasan Produk

Product Overview

API ini akan menampilkan riwayat transaksi rekening perusahaan Anda dengan jangka waktu maksimal satu bulan untuk setiap permintaan dan riwayat data transaksi yang tersedia maksimal dua belas (12) bulan ke belakang.

Flow API Diagram

Flow Info Mutasi Rekening BRIAPI

 

Endpoint

A. Riwayat Transaksi Rekening

Penjelasan Endpoint

Endpoint ini digunakan untuk melakukan pengecekan riwayat transaksi debit maupun kredit sesuai dengan nomor rekening dan dengan periode yang diinginkan.

 

General Information

HTTP Method POST
Path /statement
Tipe Format JSON
Authentication OAuth 2.0 with Access Token

 

Header Structure 

Key Value Mandatory Length Description Example
Authorization Bearer (token) M   Token OAuth 2.0

https://developers.bri.co.id/docs/dokumentasi#token

 
BRI-Signature   M 64 Signature

https://developers.bri.co.id/docs/dokumentasi#signature

 
BRI-Timestamp   M  

Timestamp

Waktu dimana anda memanggil API. Format waktu yang digunakan mengacu ke format ISO8601 (yyyy-MMddTHH:mm:ss.SSSZ). Waktu tersebut harus dalam UTC nol.

 
BRI-External-Id Alphanum M 9 Unique ID di setiap request API  
Content-Type application/json M      

 

Request Structure

Field Data Type Mandatory Length Description Example
accountNumber string M 15 nomor rekening. Tambahkan 0 di depan jika digit rekening kurang dari 15. 008301031142500
startDate string M - Format : yyyy-mm-dd 2019-11-01
endDate string M - Format : yyyy-mm-dd 2019-11-02

 

Response Structure

Field Data Type Mandatory Length Description Example
transactionTime string M - tanggal dan waktu transaksi : yyyy-mm-dd HH:mm::ss  
debitAmount string M - nominal transaksi untuk transaksi debit  
creditAmount string M - nominal transaksi untuk transaksi credit  
typeAmount string M - jenis transaksi (debit / credit)  
remark string M - remark transaksi  
startBalance string M - saldo awal  
endBalance string M - saldo akhir  
referenceId string M - -  
transactionId string M - id transaksi  

 

Request & Response Payload Sample

Request:

{
    "accountNumber": "008301031142500",
    "startDate": "2021-01-01",
    "endDate": "2021-01-02"
}

Normal Response:

{
    "responseCode": "0000",
    "responseDesc": "Transaction Success",
    "data": [
        {
            "transactionTime": "2021-01-02 09:03:20",
            "debitAmount": "1400000.00",
            "creditAmount": "0.00",
            "typeAmount": "Debit",
            "remark": "NP 24792 209340794 ",
            "startBalance": "18309905.40",
            "endBalance": "16909905.40",
            "referenceId": null,
            "transactionId": "2 "
        },
        {
            "transactionTime": "2021-01-02 09:24:13",
            "debitAmount": "1500000.00",
            "creditAmount": "0.00",
            "typeAmount": "Debit",
            "remark": "601301110000783900861215 ",
            "startBalance": "16909905.40",
            "endBalance": "15409905.40",
            "referenceId": null,
            "transactionId": "2 "
        }
    ]
}

Error Response:

{
    "responseCode": "0103",
    "responseDesc": "Account length must be 15 character"
}

 

List of Error/Response Code

HTTP Status Code Status Response Description Description
200 0000 Success Inquiry account statement Success  
400 0101 Failed invalid Time Range  
400 0102 Failed No data found  
400 0103 Failed Account length must be 15 character  
400 0104 Failed Invalid Account  
400 0105 Failed Maximum range in 30 days  
400 0601 Failed Invalid Token  
400 0602 Failed Invalid Signature  
400 0603 Failed Invalid BRI-External-Id  
400 0999 Failed General Error