Foreign Exchange

Currency Rate

Endpoint ini digunakan untuk untuk mendapatkan nilai mata uang transfer telegraf pada saat endpoint dipanggil.

curl -X GET 'https://sandbox.partner.api.bri.co.id/v1/valas/getrate/USD/IDR' \
    -H 'Authorization: Bearer {{TOKEN}}' \
    -H 'BRI-Signature: {{SIGNATURE}}' \
    -H 'BRI-Timestamp: {{TIMESTAMP}}'

Contoh response:

{
    "status": true,
    "responseDescription": "Success",
    "responseCode": "001",
    "data": {
        "dealt_currency": "USD",
        "counter_currency": "IDR",
        "TT_buy": "14315.0000",
        "TT_sell": "14465.0000",
        "last_update": "5/16/2019 11:31:20 AM"
    }
}

 

HTTP Request

GET https://sandbox.partner.api.bri.co.id/v1/valas/getrate/{{DEALT_CURRENCY}}/{{COUNTER_CURRENCY}}

URL Parameters

Parameter Type Mandatory Description
dealt_currency String Yes ISO 4217 currency code (eg. USD, EUR, GBP)
counter_currency String Yes ISO 4217 currency code (IDR)

 

Forex Transaction

Endpoint ini digunakan untuk pengajuan transaksi forex. Endpoint ini akan membalas dengan deal_number yang perlu dibawa ke cabang BRI untuk melakukan transaksi.

curl -X POST 'https://sandbox.partner.api.bri.co.id/v1/valas/insert' \
    -H 'Authorization: Bearer {{TOKEN}}' \
    -H 'BRI-Signature: {{SIGNATURE}}' \
    -H 'BRI-Timestamp: {{TIMESTAMP}}' \
    -H 'Content-Type: application/json' \
    -d '{
    "counter_currency":"IDR",
    "dealt_currency":"USD",
    "dealt_amount":"4",
    "npwp":"111",
    "deal_type":"sell"
}'

Contoh response:

{
  "status": true,
  "responseCode": "001",
  "responseDescription": "Transaction Successful",
  "data": {
    "deal_number": "A0908444",
    "value_date": "9/20/2018",
    "deal_date": "9/20/2018",
    "rate": "13365.0000",
    "dealt_amount": "4",
    "dealt_currency": "USD",
    "counter_amount": "53460.0000",
    "expired_transaction": "2018-09-20T16:00:00"
  }
}

 

HTTP Request

POST https://sandbox.partner.api.bri.co.id/v1/transfer

Request Header

Key Value Mandatory
Content-Type application/json Yes

Request Body

Field Data Type Mandatory Description
counter_currency string Yes -
dealt_currency string Yes -
dealt_amount string Yes -
npwp string Yes -
deal_type string Yes buy or sell