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
Name
Type
Description
Require
uuid
String
The uuid parameter
Y
There are no rows in this table

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

Response
token-id
The token parameter
status
Request status
reason-code
Reason code
message
Description of reason code
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
Code
Description
0
Operation Successful
18
Unknown Data
43
Invalid Request N Invalid request due to malformed or incomplete data
900
Internal Operator Error
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
Token-id
The token parameters
x-params
Fix to x-msisdn
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
Token-id
The token parameters
status
Request status
reason-code
Reason code
message
Description of reason code
x-msisdn
Msisdn value
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
0
Operation Successful
18
Unknown Data ??? (data not found) No retry
43
Invalid Request N Invalid request due to malformed or incomplete data : Missing param
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.