0% found this document useful (0 votes)
338 views28 pages

SiDOMPUL - Open API Specification v1.3 221122

Uploaded by

anndallaz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
338 views28 pages

SiDOMPUL - Open API Specification v1.3 221122

Uploaded by

anndallaz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 28

Digital Platform

SiDOMPUL
API Specification – Open API

PT XL Axiata TBK
XL Axiata Tower, Kav 11 Kav X-2 5, Jl. H. R. Rasuna Said No.5, RT.7/RW.2
Kuningan, East Kuningan, Setiabudi, Jakarta Selatan - Jakarta 12950 Indonesia

1
Revision History

Version Author Date Change Summary


1.0 Technical Lead – Ari Septayuda 14 July 2022 Initial Draft
1.1 Technical Lead – Ari Septayuda 15 July 2022 Add API Transaction History
1.2 Technical Lead – Ari Septayuda 04 Aug 2022 Add API Reload W2P
1.3 Technical Lead – Ari Septayuda 22 Nov 2022 Add API Get Dompul Balance, Get Pulsa
Balance, Get List Product Code, Purchase
Package Deduct Pulsa, AWG Get Stock,
AWG Get Info Transaction, AWG Inject
Stock

Contribution (C) and Distribution (D) List

Name C/D Organization Title


Christopher Marco Castanos Hidalgo D PT XL Axiata Tbk Group Head Digital Touchpoint
David Rempe D PT XL Axiata Tbk Head of Digital Platform
Fery Firman D PT XL Axiata Tbk Group Head Digital Channel Touchpoint
Ilhamsyah Hasan Marawa C PT XL Axiata Tbk PO Retail Touchpoint
Ari Septayuda C PT XL Axiata Tbk Technical Lead
Heny Setyawan C PT XL Axiata Tbk Microservices Developer
Nafisa Alfiani C PT XL Axiata Tbk Microservices Developer

2
SiDompul Low API Service Documentation | Confidential
Copyright Notice

COPYRIGHT© 2022 XL Axiata. This document is unpublished and the foregoing notice is affixed to protect XL Axiata
in the event of inadvertent publication. All rights reserved. No part of this document may be reproduced in any form,
including photocopying or transmission electronically to any computer, without prior written consent of XL Axiata.
The information contained in this document is confidential and proprietary to XL Axiata and may not be used or
disclosed except as expressly authorized in writing by XL Axiata. Copyright protection includes material generated
from our software programs displayed on the screen, such as icons, screen displays, and the like.

Trademarks

All brand and product names are trademarks or registered trademarks of their respective holders and are hereby
acknowledged. Technologies described herein are either covered by existing patents or patent applications are in
progress.

Confidentiality

The information in this document is subject to change without notice. This document contains information that is
confidential and proprietary to XL Axiata and its affiliates and may not be copied, published, or disclosed to others,
or used for any purposes other than review, without written authorization of an officer of XL Axiata. Submission of
this document does not represent a commitment to implement any portion of this specification in the products of
the submitters.

Content Warranty

The information in this document is subject to change without notice. THIS DOCUMENT IS PROVIDED “AS IS” AND
XL AXIATA MAKES NO WARRANTY, EXPRESS, IMPLIED, OR STATUTORY, INCLUDING BUT NOT LIMITED TO ALL
WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. XL Axiata shall not be liable for errors
contained herein or for incidental or consequential damages in connection with the furnishing, performance or use
of this material.

Export

This document and related technical data, are subject to INA export control laws, including without limitation the
INA Export Administration Act and its associated regulations, and may be subject to export or import regulations of
other countries. You agree not to export or re-export this document in any form in violation of the applicable export
or import laws of the United States or any foreign jurisdiction. For more information, please contact:
PT XL Axiata TBK, Axiata Tower Kav 11 Kav X-2 5, Jl. H. R. Rasuna Said No.5, RT.7/RW.2 Kuningan, East Kuningan,
Setiabudi, Jakarta Selatan - Jakarta 12950 Indonesia

3
SiDompul Low API Service Documentation | Confidential
Table of Contents

1. Introduction ................................................................................................................................. 5
1.1 About this document .................................................................................................................. 5
1.2 Intended audience...................................................................................................................... 5
2. API Specification........................................................................................................................... 6
2.1 Authorization .............................................................................................................................. 6
2.1.1 Get Token ............................................................................................................................... 6
2.2 Security ....................................................................................................................................... 7
2.2.1 Encrypt ................................................................................................................................... 7
2.3 Transaction ................................................................................................................................. 8
2.3.1 Purchase Package ................................................................................................................... 8
2.3.2 Transaction History ................................................................................................................ 9
2.3.3 Reload W2P .......................................................................................................................... 10
2.3.4 Get Dompul Balance............................................................................................................. 11
2.3.5 Get Pulsa Balance ................................................................................................................. 12
2.3.6 Get List Product Code........................................................................................................... 13
2.3.7 Purchase Package Deduct Pulsa ........................................................................................... 14
2.3.8 AWG Get Stock ..................................................................................................................... 15
2.3.9 AWG Get Info Transaction ................................................................................................... 17
2.3.10 AWG Inject Stock ............................................................................................................. 19
2.3.11 XWG Get Stock ................................................................................................................. 21
2.3.12 XWG Get Info Transaction ............................................................................................... 23
2.3.13 XWG Inject Stock.............................................................................................................. 25
3. High Level Diagram ..................................................................................................................... 27
4. General Response Code .............................................................................................................. 28

4
SiDompul Low API Service Documentation | Confidential
1. Introduction
1.1 About this document

Digital DomPul is a MUST HAVE but seeing at current competitive landscape, need a STRONG value
proposition to give RO a REASON-TO-USE. Digitalization on traditional 151 UMB and SMS is a must
to begin the service journey to hybrid/native Cloud. The important thing after development is a
technical documentation regarding the service. It’s required for enhancement purpose and
operational matter. The purpose of this document is to describe detail technical specification of
digital Dompul Services. Its a complete description of the services based on requirement and design
assessment.
1.2 Intended audience

This document addresses RO Player / Server to develop end to end digital dompul platform.

5
SiDompul Low API Service Documentation | Confidential
2. API Specification

2.1 Authorization

For requests that require authentication, the token must be communicated in a header:
Authorization: <BEARER_TYPE> <ACCESS_TOKEN>

2.1.1 Get Token

URL https://gateway.egw.xl.co.id/token
METHOD POST
Content-Type application/x-www-form-urlencoded

Sample Request
curl -L -X POST 'https://gateway.egw.xl.co.id/token' \
-H 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'client_id=<client_id>' \
--data-urlencode 'client_secret=<client_secret>'

Element Type sample Desc


client_id string xxxx The API key of the developer whose
application is requesting access
CLIENT-ID sent to Email when
subscribe API
client_secret string xxxx The API key of the developer whose
application is requesting access
CLIENT-SECRET sent to Email when
subscribe API
grant_type string client_credentials for Client Credentials flow

Response 200
{
"access_token": "b60ba81c-498a-3a0b-89ba-f09e463b21e5",
"scope": "am_application_scope axp_dynamic_scope_1657772063332",
"token_type": "Bearer",
"expires_in": 3600
}
Element Type sample Desc
access_token string b60ba81c-498a-3a0b-89ba Access Token
scope string am_application_scope Scope
token_type string Bearer Token Type
expires_in number 3600 Token expiration in seconds

6
SiDompul Low API Service Documentation | Confidential
2.2 Security

2.2.1 Encrypt

URL https://gateway.egw.xl.co.id/sidompul/openapi/v1/post-encrypt
METHOD POST
Content-Type application/json
Authorization Bearer
apiid API-ID
apikey API-KEY
language ID

Request Body
{
"data": "1233"
}

Element Type sample Desc


data String 1234 Data to encrypt (sample: PIN)

Response 200

{
"statusCode": 200,
"statusMessage": "OK",
"statusDescription": "Request succeeded without error",
"result": {
"errorCode": "00",
"errorMessage": "Sukses",
"data": "vcHSKNpbzbU0wQQep31OAg=="
}
}

Response 400

{
"statusCode": 404,
"statusMessage": "Not Found",
"statusDescription": "The requested resource was not found on the
server",
"result": {
"errorCode": "28",
"errorMessage": "Payload token tidak valid"
}
}

7
SiDompul Low API Service Documentation | Confidential
2.3 Transaction

2.3.1 Purchase Package

URL https://gateway.egw.xl.co.id/sidompul/openapi/v1/post-package
METHOD POST
Content-Type application/json
Authorization Bearer
apiid API-ID
apikey API-KEY
language ID

Request Body

{
"msisdn": "6287787237069",
"pin": "vcHSKNpbzbU0wQQep31OAg==",
"productCode": "XTRA_EDUKASI"
}

Element Type sample Desc


msisdn String 6281213123 Customer MSISDN
pin String vcHSKNpbzbU0wQQep31OAg== Encrypted PIN
productCode String XTRA_EDUKASI Product Code

Response 200

{
"statusCode": 200,
"statusMessage": "OK",
"statusDescription": "Request succeeded without error",
"result": {
"errorCode": "00",
"errorMessage": "Sukses",
"data": {
"description": "Transaksi sedang di proses"
}
}
}

8
SiDompul Low API Service Documentation | Confidential
2.3.2 Transaction History

URL https://gateway.egw.xl.co.id/sidompul/openapi/v1/get-transaction-
history?startdate={{startdate}}&enddate={{enddate}}
METHOD GET
Content-Type application/json
Authorization Bearer
apiid API-ID
apikey API-KEY
language ID

Element Type sample Desc


startdate String 2022-10-01 Start date
enddate String 2022-10-25 End date

Response 200
{
"statusCode":200,
"statusMessage":"OK",
"statusDescription":"Request succeeded without error",
"result":{
"errorCode":"00",
"errorMessage":"Sukses",
"data":[
{
"service_type":"fulfillment",
"serial_number":"TK_DSUNFF5",
"status":"success",
"product":"Free Fire 5 Diamonds + 100MB",
"amount":"1000.0",
"date":"2022-10-07 15:08:57.000",
"dest_number":"6287734910051",
"next_bal":"",
"payment_method":"DOMPUL"
}
]
}
}

9
SiDompul Low API Service Documentation | Confidential
2.3.3 Reload W2P

URL https://gateway.egw.xl.co.id/sidompul/openapi/v1/post-w2p
METHOD POST
Content-Type application/json
Authorization Bearer
apiid API-ID
apikey API-KEY
language ID

Request Body

{
"msisdn": "6287787237069",
"pin": "IZVOgzZy5g0QVhAc3FAo3Q==",
"denom": 25000
}

Element Type sample Desc


msisdn String 6287787237069 Customer MSISDN
pin String IZVOgzZy5g0QVhAc3FAo3Q== Encrypted PIN
denom String 25000 Reload Denomination

Response 200
{
"statusCode": 200,
"statusMessage": "OK",
"statusDescription": "Request succeeded without error",
"result": {
"errorCode": "00",
"errorMessage": "Sukses",
"data": {
"transactionId": "TKXL2607e47f67",
"remainingBalance": "25238147",
"msisdn": "6287787237069",
"denomination": 25000,
"description": "Transaksi dgn No. TKXL2607e47f67 berhasil
utk pengisian pulsa ke 6287723633334 sebesar 10000 . Sisa Dompet Pulsa
Anda skrg: 25238147"
}
}
}

10
SiDompul Low API Service Documentation | Confidential
2.3.4 Get Dompul Balance

URL https://gateway.egw.xl.co.id/sidompul/openapi/v1/get-dompul-balance
METHOD GET
Content-Type application/json
Authorization Bearer
apiid API-ID
apikey API-KEY
language ID

Element Type sample Desc


data String 12627 Dompul Balance

Response 200
{
"statusCode": 200,
"statusMessage": "OK",
"statusDescription": "Request succeeded without error",
"result": {
"errorCode": "00",
"errorMessage": "Sukses",
"data": 12627
}
}

11
SiDompul Low API Service Documentation | Confidential
2.3.5 Get Pulsa Balance

URL https://gateway.egw.xl.co.id/sidompul/openapi/v1/get-pulsa-balance
METHOD GET
Content-Type application/json
Authorization Bearer
apiid API-ID
apikey API-KEY
language ID

Element Type sample Desc


data String 2344 Pulsa Balance

Response 200
{
"statusCode": 200,
"statusMessage": "OK",
"statusDescription": "Request succeeded without error",
"result": {
"errorCode": "00",
"errorMessage": "Sukses",
"data": 2344
}
}

12
SiDompul Low API Service Documentation | Confidential
2.3.6 Get List Product Code

URL https://gateway.egw.xl.co.id/sidompul/openapi/v1/get-product-list
METHOD GET
Content-Type application/json
Authorization Bearer
apiid API-ID
apikey API-KEY
language ID

Element Type sample Desc


productCode String XC_FLEX_S Product Code for Fulfillment
Package
productName String Xtra Combo Flex S Package Name
price Number 13703 Package Price

Response 200
{
"statusCode": 200,
"statusMessage": "OK",
"statusDescription": "Request succeeded without error",
"result": {
"errorCode": "00",
"errorMessage": "Sukses",
"data": [
{
"productCode": "XC_FLEX_S",
"productName": "Xtra Combo Flex S",
"price": 13703
},
{
"productCode": "XC_FLEX_SPLUS",
"productName": "Xtra Combo Flex S+",
"price": 24800
}
]
}
}

13
SiDompul Low API Service Documentation | Confidential
2.3.7 Purchase Package Deduct Pulsa

URL https://gateway.egw.xl.co.id/sidompul/openapi/v1/post-package-pulsa
METHOD POST
Content-Type application/json
Authorization Bearer
apiid API-ID
apikey API-KEY
language ID

Request Body

{
"msisdn": "6287787237069",
"pin": "vcHSKNpbzbU0wQQep31OAg==",
"productCode": "XTRA_EDUKASI"
}

Element Type sample Desc


msisdn String 6281213123 Customer MSISDN
pin String vcHSKNpbzbU0wQQep31OAg== Encrypted PIN
productCode String XTRA_EDUKASI Product Code

Response 200

{
"statusCode": 200,
"statusMessage": "OK",
"statusDescription": "Request succeeded without error",
"result": {
"errorCode": "00",
"errorMessage": "Sukses",
"data": {
"description": "Transaksi sedang di proses"
}
}
}

14
SiDompul Low API Service Documentation | Confidential
2.3.8 AWG Get Stock

URL https://gateway.egw.xl.co.id/sidompul/openapi/v1/get-awg-
stock?roType={{type}}
METHOD GET
Content-Type application/json
Authorization Bearer
apiid API-ID
apikey API-KEY
language ID

Element Type sample Desc


type String MINI-GROSIR Optional query param
vId String TPrZPOqgtzG5o9Fmq07eF1 Encrypted Voucher ID
OpFUif84WZOt0jWRa%2BGP
ZO1gGa0MmCpb%2BgaF3Nhz
RPj1menRg0iHliMIBPTv%2
FvSWHTikGQzQdp8HAdF5ey
4%2Bc%3D
voucherTypeCode String AX-RM518458-V Voucher Type Code
description String AIGO SS - Bronet Malam Package Name
5GB 5hr
effectiveDate String 21-10-2022 Effective Date
expirationDate String 02-12-2022 Expired Date Stock WG
voucherBalance Number 1 Stock quantity
voucherPrice Number 6000 Voucher Price
allowType String VSFU V: Inject Voucher
F: Tembak Fivi
T: Tembak
TR: Tembak + IR
vouExpDate String 03-11-2023 Expired Date Voucher Billing

15
SiDompul Low API Service Documentation | Confidential
Response 200
{
"statusCode": 200,
"statusMessage": "OK",
"statusDescription": "Request succeeded without error",
"result": {
"errorCode": "00",
"errorMessage": "Sukses",
"data": [
{
"vId":
"WpgGlV%2B2B7EqYJG2tsRVad8YFP2lLBEYr6q5SEqvE0TZcec0c4YkXkSnj0YX4TdrGK%
2BjWN7VPFB1Jya94eI9zdgqKK03uNRlp688D%2FuJg8qBnxNsDWPgNs403KEOCYuks%2BW
CzmnqrFSp8PMPhH9Fiw%3D%3D",
"voucherTypeCode": "AX-RM580808TK-TSP",
"description": "Bronet 24Jam 1GB Nat/ 1.5GB BB2.5/ 2GB
BOY/ 3GB BBOY 7hr",
"effectiveDate": "07-01-2022",
"expirationDate": "27-09-2022",
"voucherBalance": 1,
"voucherPrice": 6000,
"allowType": "TRS",
"vouExpDate": "20-01-2023"
}
]
}
}

16
SiDompul Low API Service Documentation | Confidential
2.3.9 AWG Get Info Transaction

URL https://gateway.egw.xl.co.id/sidompul/openapi/v1/get-awg-transaction-
info?beginDate={{beginDate}}&endDate={{endDate}}&servicetype={{servicetype
}}
METHOD GET
Content-Type application/json
Authorization Bearer
apiid API-ID
apikey API-KEY
language ID

Element Type sample Desc


beginDate String 01-11-2022 Start Date
endDate String 22-11-2022 End Date
servicetype String SELLVOUCHER SELLVOUCHER: Inject SP
PHYSICALVOUCHER: Inject
Voucher
TRANSFER: Receive Transfer
Stock
BUYSTOCK: Buy Stock from
Mini Grosir
EXTENDSTOCK: Extend
expired stock WG
masterTrxId String ISIU1701782211111357 Transaction ID
43435
status String SUKSES Status Transaction
description String AIGO Paket Edu Package Name
Confrence 5GB 5hr
voucherPrice Number 2400 Voucher Price
priceNormal Number 2900 Normal Price
createdDtm String 2022-11-15 Transaction Date
voucherTypeCode String AX-RM548858EDU-V Voucher Type Code
sourceMsisdn String 6287884074078 MSISDN A#
destinationMsisdn String 6283891550392 MSISDN B# / Serial No
type String SELLVOUCHER-SATUAN SELLVOUCHER-
SATUAN/SELLVOUCHER-
BULK: Inject SP
PHYSICALVOUCHER-BULK:
Inject Voucher
TRANSFER-IN: Receive
Transfer Stock

17
SiDompul Low API Service Documentation | Confidential
BUYSTOCK: Buy Stock from
Mini Grosir

Response 200
{
"statusCode":200,
"statusMessage":"OK",
"statusDescription":"Request succeeded without error",
"result":{
"errorCode":"00",
"errorMessage":"Sukses",
"data":[
{
"masterTrxId":"TEMBAKTXL170178221115185833304",
"status":"SUKSES",
"description":"AIGO Paket Edu Confrence 5GB 5hr",
"voucherPrice":1000,
"priceNormal":2900,
"createdDtm":"2022-11-15",
"voucherTypeCode":"AX-RM548858EDU-V",
"sourceMsisdn":"6287884074078",
"destinationMsisdn":"6283891550392",
"type":"SELLVOUCHER-SATUAN"
},
{
"masterTrxId":"ISIU170178221111135743435",
"status":"GAGAL",
"destinationMsisdn":"1026220002320751",
"voucherPrice":2400,
"createdDtm":"2022-11-11",
"description":"AIGO SS 1.5GB BB2.5/1.5GB BOY/2GB BBOY,
5hr",
"priceNormal":6300,
"voucherTypeCode":"AX-RM593928SSE-V",
"sourceMsisdn":"6287884074078",
"type":"PHYSICALVOUCHER-BULK"
}
]
}
}

18
SiDompul Low API Service Documentation | Confidential
2.3.10 AWG Inject Stock

URL https://gateway.egw.xl.co.id/sidompul/openapi/v1/post-awg-tembak
METHOD POST
Content-Type application/json
Authorization Bearer
apiid API-ID
apikey API-KEY
language ID

Request Body

{
"target": [
"6287787237069"
],
"pin": "9+COegKn4IuRupDjfPF95Q==",
"vId":
"tpB4CBhS1Xr9x6dt5M0F2Bplt3xFlDOnV40Lq37irClNaAdaRolmbf5VK3mMFbo2f6c13
co%2F8OQ6vZGy8CQI0xQ%2BWLomyTTfPXLD1MuwUJl2VEGiOx4qKkZTmJzitDyU",
"command": "tembak-paket-ir",
"allowType": "TRS"
}

Element Type sample Desc


target Array List 6287787237069 B# MSISDN (Inject SP)
0004550000010989 SN (Inject Voucher)
pin String 9+COegKn4IuRupDjfPF95Q== Encrypted PIN
vId String tpB4CBhS1Xr9x6dt5M0F2Bplt3 Encrypted Voucher ID
xFlDOnV40Lq37irClNaAdaRolm
bf5VK3mMFbo2f6c13co%
command String tembak-paket-ir tembak-paket-ir: Inject SP
(allow type: T)
tembak-paket-pv: Inject
Vocuher (allow type: V)
tembak-fivi: Inject SP (allow
type: F)
allowType String TRS V: Inject Voucher
F: Tembak Fivi
T: Tembak
TR: Tembak + IR
data String ISIU47726210129052939581 Transaction ID

19
SiDompul Low API Service Documentation | Confidential
Response 200
{
"statusCode": 200,
"statusMessage": "OK",
"statusDescription": "Request succeeded without error",
"result": {
"errorCode": "00",
"errorMessage": "Success",
"data": "ISIU47726210129052939581"
}
}

20
SiDompul Low API Service Documentation | Confidential
2.3.11 XWG Get Stock

URL https://gateway.egw.xl.co.id/sidompul/openapi/v1/get-xwg-
stock?roType={{type}}
METHOD GET
Content-Type application/json
Authorization Bearer
apiid API-ID
apikey API-KEY
language ID

Element Type sample Desc


type String MINI-GROSIR Optional query param
vId String TPrZPOqgtzG5o9Fmq07eF1 Encrypted Voucher ID
OpFUif84WZOt0jWRa%2BGP
ZO1gGa0MmCpb%2BgaF3Nhz
RPj1menRg0iHliMIBPTv%2
FvSWHTikGQzQdp8HAdF5ey
4%2Bc%3D
voucherTypeCode String XL-WGXHSAE560658R Voucher Type Code
description String Xtra Hotrod Special Package Name
1.5GB, 7hr
effectiveDate String 22-10-2021 Effective Date
expirationDate String 27-01-2022 Expired Date Stock WG
voucherBalance Number 1 Stock quantity
voucherPrice Number 1000 Voucher Price
allowType String RZE V: Inject Voucher
T: Tembak SP
Z: Tembak SP / Inject
Voucher
vouExpDate String 14-01-2023 Expired Date Voucher Billing

21
SiDompul Low API Service Documentation | Confidential
Response 200
{
"statusCode": 200,
"statusMessage": "OK",
"statusDescription": "Request succeeded without error",
"result": {
"errorCode": "00",
"errorMessage": "Sukses",
"data": [
{
"voucherTypeCode": "XL-WGXHSAE560658R",
"description": "Xtra Hotrod Special 1.5GB, 7hr",
"effectiveDate": "22-10-2021",
"expirationDate": "27-01-2022",
"voucherBalance": 1,
"voucherPrice": 1000,
"vId":
"bobW3PVW71WzTCWOcwhxtlK5YpZ1PNb8mhzHi5RdWF33W4ljNv3xjbrw0ZvlyKw2KY89k
4%2Fq5%2B9AmIIvOoMuamHTikGQzQdp8HAdF5ey4%2Bc%3D",
"allowType": "RZE",
"vouExpDate": "14-01-2023"
}
]
}
}

22
SiDompul Low API Service Documentation | Confidential
2.3.12 XWG Get Info Transaction

URL https://gateway.egw.xl.co.id/sidompul/openapi/v1/get-xwg-transaction-
info?beginDate={{beginDate}}&endDate={{endDate}}&servicetype={{servicetype
}}
METHOD GET
Content-Type application/json
Authorization Bearer
apiid API-ID
apikey API-KEY
language ID

Element Type sample Desc


beginDate String 01-11-2022 Start Date
endDate String 22-11-2022 End Date
servicetype String SELLVOUCHER SELLVOUCHER: Inject SP
PHYSICALVOUCHER: Inject
Voucher
TRANSFER: Receive Transfer
Stock
BUYSTOCK: Buy Stock from
Mini Grosir
TRFBALANCE: Transfer
Balance to Parent
TEMBAKSTOK: Inject Stock
Parent
EXTENDSTOCK: Extend
expired stock WG
masterTrxId String ISIU1701782211111357 Transaction ID
43435
status String SUKSES Status Transaction
description String AIGO Paket Edu Package Name
Confrence 5GB 5hr
voucherPrice Number 2400 Voucher Price
priceNormal Number 2900 Normal Price
createdDtm String 2022-11-15 Transaction Date
voucherTypeCode String AX-RM548858EDU-V Voucher Type Code
sourceMsisdn String 6287884074078 MSISDN A#
destinationMsisdn String 6283891550392 MSISDN B# / Serial No
type String SELLVOUCHER-SATUAN SELLVOUCHER-
SATUAN/SELLVOUCHER-
BULK: Inject SP

23
SiDompul Low API Service Documentation | Confidential
PHYSICALVOUCHER-BULK:
Inject Voucher
TRANSFER-IN: Receive
Transfer Stock
BUYSTOCK: Buy Stock from
Mini Grosir
TRFBALANCE: Transfer
Balance to Parent
TEMBAKSTOK: Inject Stock
Parent
EXTENDSTOCK: Extend
expired stock WG

Response 200
{
"statusCode": 200,
"statusMessage": "OK",
"statusDescription": "Request succeeded without error",
"result": {
"errorCode": "00",
"errorMessage": "Sukses",
"data": [
{
"masterTrxId": "TEMBAK101162221110053340600",
"voucherPrice": 100,
"status": "SUKSES",
"createdDtm": "2022-11-10",
"description": "Xtra Combo 2GB+4GB Double Youtube,
30hr",
"priceNormal": 29000,
"voucherTypeCode": "XL-WGXCDYA398328R",
"sourceMsisdn": "6287884074078",
"destinationMsisdn": "6285959200333",
"type": "SELLVOUCHER-SATUAN"
},
{
"masterTrxId": "ISI101162221111140458319",
"status": "SUKSES",
"destinationMsisdn": "1011640000921102",
"voucherPrice": 19070,
"createdDtm": "2022-11-11",
"description": "Xtra Combo Special 8GB, 30hr",
"priceNormal": 19070,
"voucherTypeCode": "XL-WGXCSAC556048R",
"sourceMsisdn": "6287884074078",
"type": "PHYSICALVOUCHER-BULK"
}
]
}
}

24
SiDompul Low API Service Documentation | Confidential
2.3.13 XWG Inject Stock

URL https://gateway.egw.xl.co.id/sidompul/openapi/v1/post-xwg-tembak
METHOD POST
Content-Type application/json
Authorization Bearer
apiid API-ID
apikey API-KEY
language ID

Request Body

{
"target":[
"6287884074088"
],
"pin":"6vIrZSvEN9TRPJbCO1ht1A==",

"vId":"tpB4CBhS1Xr9x6dt5M0F2Bplt3xFlDOnV40Lq37irClNaAdaRolmbf5VK3mMFbo
2f6c13co%2F8OQ6vZGy8CQI0xQ%2BWLomyTTfPXLD1MuwUJl2VEGiOx4qKkZTmJzitDyU"
,
"command":"sell-voucher",
"allowType":"TRE"
}

Element Type sample Desc


target Array List 6287787237069 B# MSISDN (Inject SP)
0004550000010989 SN (Inject Voucher)
pin String 9+COegKn4IuRupDjfPF95Q== Encrypted PIN
vId String tpB4CBhS1Xr9x6dt5M0F2Bpl Encrypted Voucher ID
t3xFlDOnV40Lq37irClNaAda
Rolmbf5VK3mMFbo2f6c13co%
command String sell-voucher sell-voucher: Inject SP (allow
type: T / Z)
tembak-paket: Inject Voucher
(allow type: V / Z)
allowType String TRE V: Inject Voucher
T: Tembak SP
Z: Tembak SP / Inject Voucher
data String ISIU47726210129052939581 Transaction ID

25
SiDompul Low API Service Documentation | Confidential
Response 200
{
"statusCode": 200,
"statusMessage": "OK",
"statusDescription": "Request succeeded without error",
"result": {
"errorCode": "00",
"errorMessage": "Success",
"data": "ISIU47726210129052939581"
}
}

26
SiDompul Low API Service Documentation | Confidential
3. High Level Diagram

27
SiDompul Low API Service Documentation | Confidential
4. General Response Code

Error Code Meaning


200 Don’t Worry, Your Request is Processed in our backend
400 Bad Request -- Your request sucks.
401 Unauthorized -- Your API key is wrong.
403 Forbidden -- The data requested is hidden for administrators only.
404 Not Found -- The specified attribute could not be found.
405 Method Not Allowed -- You tried to access this API with an invalid method.
406 Not Acceptable -- You requested a format that isn't json.
410 Gone -- The data requested has been removed from our servers.
418 I'm a teapot.
429 Too Many Requests -- You're requesting too many! Slow down!
500 Internal Server Error -- We had a problem with our server. Try again later.
503 Service Unavailable -- We're temporarily offline for maintenance. Please try again later.

PT XL Axiata TBK
XL Axiata Tower, Kav 11 Kav X-2 5, Jl. H. R. Rasuna Said No.5, RT.7/RW.2
Kuningan, East Kuningan, Setiabudi, Jakarta Selatan - Jakarta 12950 Indonesia

28
SiDompul Low API Service Documentation | Confidential

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy