---
# System prepended metadata

title: Error

---

# Error bri sb mpn v2

@Kam 25 Jan 2024 01:42:52  +07

# auth
```
# sandbox.partner.api.bri.co.id/v2.0/mpn/inquiryBilling
# https://sandbox.partner.api.bri.co.id/oauth/client_credential/accesstoken?grant_type=client_credentials
<pre>array(1) {
  ["Content-Type"]=>
  string(33) "application/x-www-form-urlencoded"
}
</pre><pre>array(3) {
  ["status"]=>
  array(3) {
    ["protocolVersion"]=>
    string(3) "1.1"
    ["statusCode"]=>
    string(3) "200"
    ["reasonPhrase"]=>
    string(2) "OK"
  }
  ["header"]=>
  array(8) {
    ["Strict-Transport-Security"]=>
    string(35) "max-age=31536000; includeSubDomains"
    ["Date"]=>
    string(29) "Thu, 25 Jan 2024 06:36:23 GMT"
    ["Content-Type"]=>
    string(16) "application/json"
    ["Content-Length"]=>
    string(3) "533"
    ["Connection"]=>
    string(10) "keep-alive"
    ["X-XSS-Protection"]=>
    string(13) "1; mode=block"
    ["X-Content-Type-Options"]=>
    string(7) "nosniff"
    ["X-Frame-Options"]=>
    string(4) "deny"
  }
  ["body"]=>
  string(533) "{
  "refresh_token_expires_in" : "0",
  "api_product_list" : "[mpn-esb-sandbox]",
  "api_product_list_json" : [ "mpn-esb-sandbox" ],
  "organization_name" : "bri",
  "developer.email" : "adib35785@gmail.com",
  "token_type" : "BearerToken",
  "issued_at" : "1706164583312",
  "client_id" : "CyGaSDOZA6J4SbPKu6ja0x8xiPw1jtGQ",
  "access_token" : "UP9mQjOXe3n0NhfBMWBTftxALdsz",
  "application_name" : "9623b9a7-769c-4328-bf63-4af8993283b0",
  "scope" : "",
  "expires_in" : "179999",
  "refresh_count" : "0",
  "status" : "approved"
}"
}
```

# inquiry after auth

```
# sandbox.partner.api.bri.co.id/v2.0/mpn/inquiryBilling
</pre><pre>array(6) {
  [0]=>
  string(30) "Content-Type: application/json"
  [1]=>
  string(50) "Authorization: Bearer UP9mQjOXe3n0NhfBMWBTftxALdsz"
  [2]=>
  string(29) "BRI-External-id: 170616458363"
  [3]=>
  string(59) "BRI-Signature: 52nEBaOU1KEGZtNjP7NEpbFTwmwSBxdoNwfU2Vm+MHE="
  [4]=>
  string(39) "BRI-Timestamp: 2024-01-25T06:36:23.000Z"
  [5]=>
  string(22) "BRI-Teller-id: 0206891"
}
</pre><pre>array(3) {
  ["status"]=>
  array(3) {
    ["protocolVersion"]=>
    string(3) "1.1"
    ["statusCode"]=>
    string(3) "401"
    ["reasonPhrase"]=>
    string(12) "Unauthorized"
  }
  ["header"]=>
  array(5) {
    ["Strict-Transport-Security"]=>
    string(35) "max-age=31536000; includeSubDomains"
    ["Date"]=>
    string(29) "Thu, 25 Jan 2024 06:36:23 GMT"
    ["Content-Type"]=>
    string(16) "application/json"
    ["Content-Length"]=>
    string(3) "191"
    ["Connection"]=>
    string(10) "keep-alive"
  }
  ["body"]=>
  string(191) "
                {
                    "status": {
                        "code": "0601",
                        "desc": "Invalid token"
                    }
                }
            "
}
</pre>
```