Skip to content

mInsertion

How to Get-MSISDN for HTTPS

Partners use API Get Token to get access from the system via Client (web browser on mobile). Partner can use javascript to call this api
System save MSISDN and Access token to data store.System response the token to partner
When the Partner has received the Token from the Client Side, send it to his own server.
Server Side Call API getInsertion and send the token too.
System response MSISDN to partner

image.jpeg

API Specification

URL for access from mobile (Get-Token) : https://minsert.truecorp.co.th/webapi/
URL for query msisdn from app-server (Query Token) : https://insertion.truecorp.co.th

UpdateMobile Request

Direction: MobileApp to Insertion System
Method: POST
Request
1
Name
Type
Description
Require
2
uuid
String
The uuid parameter
Y
There are no rows in this table

Example: parameter
Body:
<UpdateMobileRequest>
<uuid>987654321abcdef</uuid>
</UpdateMobileRequest>

Response
1
token-id
String
The token parameter
Y
2
status
int
Request status
Y
3
reason-code
int
Reason code
Y
4
message
String
Description of reason code
Y
There are no rows in this table

Example: parameter of Success case
Body:
<UpdateMobileResponse>
<result status="OK" >
<reason-code>0</reason-code>
<message>Operation Successful</message>
</result>
<token-id>8ea6093fc01a459e</token-id>
</UpdateMobilResponse>
Reason Codes
1
Code
Description
2
0
Operation Successful
3
18
Unknown Data
4
43
Invalid Request N Invalid request due to malformed or incomplete data
5
900
Internal Operator Error
6
xxx
token timeout ???
There are no rows in this table


GetInsertion Request

Direction: AppServer to Insertion System
Method: POST
HTTP Header:Authentication : Basic Authentication
Request
1
Token-id
string
The token parameters
Y
2
x-params
string
Fix to x-msisdn
Y
There are no rows in this table

Example: parameter
Header:
Authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l
Body:
<GetInsertionRequest>
<token-id>987654321abcdef</token-id>
<x-params>X-msisdn</x-params>
</GetInsertionRequest>
Response
1
Token-id
String
The token parameters
Y
2
status
int
Request status
Y
3
reason-code
int
Reason code
Y
4
message
String
Description of reason code
Y
5
x-msisdn
String
Msisdn value
Y
There are no rows in this table

Example:parameter of Success case
Body:
<GetInsertionResponse>
<result status="OK" >
<reason-code>0</reason-code>
<message>Operation Successful</message>
</result>
<X-msisdn>66809779966</X-msisdn>
</GetInsertionResponse>

Reason Codes
1
0
Operation Successful
2
18
Unknown Data ??? (data not found) No retry
3
43
Invalid Request N Invalid request due to malformed or incomplete data : Missing param
4
900
Internal Operator Error : - server platform have problem - No error code - Server timeout
There are no rows in this table

Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.