API Mepro Data Package - v1.4
API Mepro Data Package - v1.4
Internal
Document History
Revision History
Date Name Version Summary of
Changes
24/08/2021 Salmun Andoni 1.1 Add POST Whitelist Package & Get Gift Request Status Rules
10/03/2022 Salmun Andoni 1.2 Update Rules Subscription Info & Callback Gift Request Create
30/06/2022 Salmun Andoni 1.3 Update Callback Parameter
22/11/2022 Salmun Andoni 1.4 Update Information Protocol TLS 1.2
Internal
1
Contents
MePro API Data Package ................................................................................................................ 2
Document History ....................................................................................................................... 1
Revision History...................................................................................................................... 1
1. Get Balance Status ............................................................................................................... 3
2. Get Gift Request Status ........................................................................................................ 5
3. Post Create Gift Request ...................................................................................................... 7
4. POST Subscription Information ........................................................................................... 9
5. POST Whitelist Package .................................................................................................... 10
6. Appendix ............................................................................................................................ 11
1. Get Balance Status
This service is intended to get balance information, usage and credit usage limits for the services you
subscribed
api_key:qkz8q8axgf7jbhub7mw7xxxx
x-signature:75600c651e91d3c00a38f1b0c666xxxx
Request Example:
https://api.digitalcore.telkomsel.com/scrt/v2/b2b/balance?subscriptionKey=SN1MG6IYOZVQ
YK0ICNUE
Internal
3
1.2.4. Response Body
{
"subscriptionKey": "SN1MG6IYOZVQYK0ICNUE",
"unit": "mb",
"balance": 6497000,
"usage": 3000,
"limitUsage": 6500000
}
2. Get Gift Request Status
This service is intended to check your gift package and service that is running, scheduled or has been
successfully done by the system. You can get information about your gift transaction.
Notes : Use this API Check Status If within 3 minutes does not received callback status
api_key:qkz8q8axgf7jbhub7mw7xxxx
x-signature:75600c651e91d3c00a38f1b0c666xxxx
Request Example:
https://api.digitalcore.telkomsel.com/scrt/v2/gift-
request/status?requestId=GUI3038120210504070230QCS&subscriptionKey=SN1MG6IYOZVQYK0
ICNUE
Internal
5
2.2.3. Response Header
Status of transaction
Status String M
(255)
{
"subscriptionKey": "TW3IUDBNQR8KXNQFB7WQ",
"requestId": "GUI3038120210504070230QCS",
"status": "success"
}
{
"subscriptionKey": "TW3IUDBNQR8KXNQFB7WQ",
"requestId": "GUI3038120210504070230QCS",
"status": "failed"
}
3. Post Create Gift Request
This service is intended to edit your scheduled gift request, please do not enter your execution time with
elapsed time. Since status gift requests are still idle, you can change your best execution plan.
api_key:qkz8q8axgf7jbhub7mw7xxxx
x-signature:75600c651e91d3c00a38f1b0c666xxxx
Format : [callbackurl]?[request_id=GUIxxxxx]&[status=success]
Example: https://id.i-
chat.id/callback.php?request_id=GUI3652020220310010657ZZZ&status=success
Internal
7
Request Example:
paket:Combo 1GB
msisdn:6281394030381
subscriptionKey:M1XX3PHGOOC0M5528LIR
callbackurl:https://id.i-chat.id/callback.php
{
"success": true,
"id": "599",
"name": "denom-flash-corp-b2b2c-100mb",
"requestId": "GUI0744620210622002046MUX"
}
{
"success": false,
"msg": "subscriptionKey not found"
}
https:// id.i-chat.id/callback.php?request_id=GUI3652020220310010657ZZZ&status=success
4. POST Subscription Information
This service is used to view information about the subscriptionKey and servicePackageName belonging to
a pilot number.
Notes: Please ask your Account Manager for subscriptionKey that can be used
Internal
9
5. POST Whitelist Package
This service is used to view information about the servicePackageName and Denom (Product Keyword)
api_key:qkz8q8axgf7jbhub7mw7xxxx
x-signature:75600c651e91d3c00a38f1b0c666xxxx
subscriptionKey:BW7WLIOL6BT3THLXLG2S
{
"success": true,
"data": [
{
"subscriptionKey": "9QM6M4HRIY7SOZYVT85N1",
"serviceName": "DATA",
"servicePackageName": "Paket Renewal Kuota 25TB 3 Bulan",
"pilotNumber": "628111166255",
"denom": [
"denom-flash-corp-b2b2c-100mb"
]
}
]
}
{
"success": false,
"message": "no record's found"
}
6. Appendix
6.1. How To Get Signature Key
Create script below with input your api key and your api secret
<?php
$api_key = 'your_api_key';
$secret = 'your_api_secret';
$timestamp = gmdate('U');
$sig = md5($api_key . $secret . $timestamp);
?>
Internal
11