Get Token
URL Endpoint
Environment | Method | URL |
---|---|---|
Development | POST | https://demos.finnet.co.id/apicobrand/security/getToken |
Production | POST |
Request Get Token
No | Name | Type | Mandatory | Min Length | Max Length | Description |
---|---|---|---|---|---|---|
1 | reqDtime | String | M | 1 | 14 | Format yyyymmddhh24iiss (GMT+7) |
2 | requestType | String | M | 1 | 8 | Fill with 'getToken' |
3 | transNumber | String | M | 1 | 100 | Unique transaction ID from the partners (mitra) |
4 | signature | Alphanumeric(64) | M | 1 | 64 | Signature algorithm |
Sample Request
{
"reqDtime": "20240821142750",
"requestType": "getToken",
"transNumber": "TKN212418241627519329",
"signature": "C851DDC730549FEAFDFFD486AC11F3BF0C9CE44F0190C7DDC5FFDC622782E91D"
}
Response Get Token
No | Name | Type | Mandatory | Min Length | Max Length | Description |
---|---|---|---|---|---|---|
1 | statusCode | String | M | 3 | 5 | 000 indicates success |
2 | statusDesc | String | M | 1 | 100 | Description of statusCode |
3 | tokenID | String | M | 1 | 100 | The Token obatained for accessing other APIs |
4 | tokenExpiry | String | M | 1 | 18 | tokenID validity period, format DD-MMM-YY HH24:MI:SS |
5 | processingTime | Float | M | 1 | 20 | API processing time in seconds |
Sample Response
{
"statusCode": "000",
"statusDesc": "Berhasil",
"tokenID": "20240821162411771B7219C0DB6E6374075F8E7D28D89AE9F7905E73E01202365345C5A965574D",
"tokenExpiry": "24-AUG-24 16:23:30",
"processingTime": 0.11939597129821777
}
Mendapatkan Token
- Lakukan POST ke endpoint getToken pada lingkungan staging untuk memperoleh tokenID.
- Jika mendapatkan response dengan false signature, salin response tersebut dan masukkan true signature ke dalam body. Kemudian, kirim ulang request tersebut.