Widget Top Up
URL Endpoint
| Environment | Method | URL |
|---|---|---|
| Development | POST | https://demos.finnet.co.id/apicobrand/widget/topup |
| Production | POST |
Request Get Widget
| No | Name | Type | Mandatory | Min Length | Max Length | Description |
|---|---|---|---|---|---|---|
| 1 | phoneNumber | String | M | 1 | 12 | Partner's phone number |
| 2 | reqDtime | String | M | 1 | 14 | Format yyyymmddhh24iiss (GMT+7) |
| 3 | requestType | String | M | 1 | 12 | Fill with 'widgetTopup' |
| 4 | signature | Alphanumeric(64) | M | 1 | 64 | Signature algorithm |
| 5 | tokenID | String | M | 1 | 100 | tokenID from getToken response |
| 6 | transNumber | String | M | 1 | 100 | Unique transaction ID from the partners (mitra) |
Sample Request
{
"requestType": "widgetTopUp",
"reqDtime": "20240814165151",
"tokenID": "20240814165151225DFBF01D5C3B572BE0A7BC90A0834EF4EBD5BA0EBFA74DFE99560A33BDAC08",
"transNumber": "202408141651512476",
"phoneNumber": "08111008696",
"signature": "E54F47EA5B16644B527AE9ACEFA04BA675A50F01D882D66CDD81A68F5C3AF4E5"
}
Response Get Widget
| 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 | widgetURL | String | M | 1 | 100 | URL Redirect |
| 4 | processingTime | Float | M | 1 | 20 | API processing time in seconds |
Sample Response
{
"statusCode": "000",
"statusDesc": "Success",
"widgetURL": "https://demos.finnet.co.id/apicobrand/widget/api/topup.php?access=0606823ebb919f12480d134564aff3522445b1c8b17200ddeeac4046589142d1",
"processingTime": 0.15064716339111328
}
User Interface Widget
