Anda di halaman 1dari 15

MCSPhilippinesAppPlus|YonduAPIDocumentationv.2.

YONDU

YonduAPIDocumentation
(MCSPhilippinesAppPlus)

Ver.2.00|05September2016|YonduAPIDocumentationAppPlus

Confidential

Page1of15

MCSPhilippinesAppPlus|YonduAPIDocumentationv.2.0

YONDU

TableofContents

Overview
SubscriptionviaSMSandUSSDprocessflow
SMS/USSDFlowDiagram
SubscriptionviaWeb/WAPprocessflow

WEB/WAPFlowDiagram

MessageRequestwithSample
ChargingKeywords
YonduMTAPI
YonduAPIStatus/Response

ChargedStatusCode

ConnectionRequirements

Ver.2.00|05September2016|YonduAPIDocumentationAppPlus

Confidential

Page2of15

MCSPhilippinesAppPlus|YonduAPIDocumentationv.2.0

YONDU

Overview

ThisdocumentationservesasaguideincreatingAppPlusandYonduAPI.Diagramflows,APIand
examplesarefromAppPlusservice.IPsandURLshouldbechangeinordertoapplythisforAppPlus
service.

Ver.2.00|05September2016|YonduAPIDocumentationAppPlus

Confidential

Page3of15

MCSPhilippinesAppPlus|YonduAPIDocumentationv.2.0

YONDU

SubscriptionviaSMSandUSSDprocessflow

Discussedbelowisthemessageflowforsuccessfullychargedsubscriber.Thisflowappliesvia
bothSMSandUSSDmessage.AllAPIcallanditsparametersarealsothesameforbothSMS.Thisflow
depictsthefollowingscenarios.

SMS/USSDFlowDiagram

Ver.2.00|05September2016|YonduAPIDocumentationAppPlus

Confidential

Page4of15

MCSPhilippinesAppPlus|YonduAPIDocumentationv.2.0

YONDU

1. AllMOmessagesreceivedbyTelcofromsubscribersareforwardedtoYondu.TheseMO
messagescanbeoptin(neworrecurringsubscription),optout(stop,stopall).
2. YondusendstheMOmessagetoAppPlusthroughAppPlusMOAPI.
3. APIAppPlusMOURL=http://yondu.aludms.com/Msg/phil/mo?

APIAppPlusUSSDURL=http:// yondu.aludms.com/Msg/phil/ussd?

RequiredParameters:

Parameters
mo_origin
msisdn
telco
sms

session_id
doubleOptinRequired

Optionalparameter
shortcode

Description/possiblevalues
Originoftherequest
PossibleValues:(SMS/USSD)
subscribermsisdn
service_providername
E.g.Globe
MOText(Keyword)
e.g.A
pp1ON
AuniqueidentifiertoidentifytheMOrequest
e.g.34dfth6756
ABooleanvaluewhichspecifyifdoubleOptinrequiredornot.
PossibleValues:(yes/no)
Parameter isoptional,ifparametervalueisyesthendoubleOptin
flowwillbe executed. If theparametervalueisnoordoesntexist
thensingleoptInflowwillbeexecuted.

Sampleresponse:

HTTP/1.1200OK
ContentLength:2

Ver.2.00|05September2016|YonduAPIDocumentationAppPlus

Confidential

Page5of15

MCSPhilippinesAppPlus|YonduAPIDocumentationv.2.0

YONDU

4.

5.
6.
7.

ContentType:text/html
OK

AppPluswillsendtheappropriateMTmessagethroughYonduMTAPIinresponsetotheMO
messagereceivedfromYondu.PleasenotethattheMTmessagealsocontainsthecharging
keyword.
YonduMTURL=http://192.237.235.75/dmp/process/api/appplus.php?

Parameters:
transid=(Transid)
account=appplus
key=P@SsApp@Plus@2016!
c_msisdn=(mobilenumber)
content=(chargingkeyword+MTmessage)

WhenYondureceivedtheMTmessagefromAppPlus,itwilltrytochargethemobilenumber
withthechargingAPIsendstoTelco.
Telcowilltrytochargethemobilenumberandifitissuccessfullycharged,sendsthestatus
OKtoYondu.
WhenYondureceivesthechargingOKstatusfromTelco,itwillsendaDNmessagetoAppPlus
tonotifyAppPlusthatchargingthemobilenumberwassuccessful.DNmessagewillbesent
throughDNAPI.
TakenotethatDeliveryNotificationIdvalueisthesamewiththetransidreceivedbyYondu
whenAppPlussentanMTmessagerequest.Thisistotrackthesuccessfullybilled
transactionsfromotherunsuccessfultransactions.

8. AftersendingtheDNnotificationmessagetoAppPlus,YonduwillsendtheMTmessageto
Telco.
AppPlusDNURL=http://yondu.aludms.com/Msg/phil/dn?

Parameters
Description/possiblevalues
msisdn
subscribersmsisdne.g.628121973082

Ver.2.00|05September2016|YonduAPIDocumentationAppPlus

Confidential

Page6of15

MCSPhilippinesAppPlus|YonduAPIDocumentationv.2.0

YONDU

session_id

status
status_telco

telco

the uniqueidentifiertoidentify theDNfortheMTrequestsentto


Yondu
e.g.1sms0986325264
StatusoftheMTmessagesent
Possiblevalues:DELIVERED/REJECTED
StatusoftheCharging
Possiblevalues:
0success
1Failure
2Failurewithinsufficientbalance
service_providerid
E.g.Globe

Sampleresponse:

HTTP/1.1200OK
ContentLength:2
ContentType:text/html
OK

SubscriptionviaWeb/WAPprocessflow

Discussedbelowisthemessageflowforsuccessfullychargedsubscriber.Thisflowappliesvia
Web/Wapmessage.

Ver.2.00|05September2016|YonduAPIDocumentationAppPlus

Confidential

Page7of15

MCSPhilippinesAppPlus|YonduAPIDocumentationv.2.0

YONDU

Web/WAPFlowDiagram

1. AdagencieswillusethebelowURLforSubscriptionpurchaseviaweb.

Ver.2.00|05September2016|YonduAPIDocumentationAppPlus

Confidential

Page8of15

MCSPhilippinesAppPlus|YonduAPIDocumentationv.2.0

YONDU

AppPlusWebURL:
http://yondu.aludms.com/SubAxis/subscriptionstart?

Parameters
serviceCode
subscriptionOffer
spname
msisdn
auth

Description/possiblevalues
Advertisementvendoride.g.Eskimi
subscriptionofferorderingCode
(specifytherequestforagivesubscriptionoffer)
ServiceProvidername
subscribersmsisdn
<true/false>
(Required for the Authentication if not
provided provided the default value will be
taken

redirectToPortal

<true/false>
(Required to specify ifsubscriberneeds
to be redirected toportal or not if not
provided the default value will be
taken).

SampleRequest:

http://yondu.aludms.com/SubAxis/subscriptionstart?serviceCode=Eskimi&subscriptionOffer=
z2045&spname=Globe&msisdn=628121973082&auth=true&redirectToPortal=true
Sampleresponse:
HTTP/1.1200OK
ContentLength:2
ContentType:text/html
OK

Ver.2.00|05September2016|YonduAPIDocumentationAppPlus

Confidential

Page9of15

MCSPhilippinesAppPlus|YonduAPIDocumentationv.2.0

YONDU

2. AppPluswillsendtheappropriateMTmessagethroughYonduMTAPIinresponsetotheMO
messagereceivedfromYondu.PleasenotethattheMTmessagealsocontainsthecharging
keyword.

YonduMTURL=http://192.237.235.75/dmp/process/api/appplus.php?
Parameters:
transid=(Transid)
account=appplus
key=P@SsApp@Plus@2016!
c_msisdn=(mobilenumber)
content=(chargingkeyword+MTmessage)

3. WhenYondureceivedtheMTmessagefromAppPlus,itwilltrytochargethemobilenumber
withthechargingAPIsendstoTelco.
4. Telcowilltrytochargethemobilenumberandifitissuccessfullycharged,sendsthestatus
OKtoYondu.
5. WhenYondureceivesthechargingOKstatusfromTelco,itwillsendaDNmessagetoAppPlus
tonotifyAppPlusthatchargingthemobilenumberwassuccessful.DNmessagewillbesent
throughDNAPI.
AppPlusDNURL=http://yondu.aludms.com/Msg/phil/dn?

Parameters
Description/possiblevalues
msisdn
subscribersmsisdne.g.628121973082
session_id
the uniqueidentifiertoidentify theDNfortheMTrequestsentto
Yondu
e.g.1sms0986325264
status
StatusoftheMTmessagesent
Possiblevalues:DELIVERED/REJECTED
status_telco
StatusoftheCharging
Possiblevalues:0success
1failure
2failurewithinsufficientbalance

Ver.2.00|05September2016|YonduAPIDocumentationAppPlus

Confidential

Page10of15

MCSPhilippinesAppPlus|YonduAPIDocumentationv.2.0

YONDU

telco

service_providerid
E.g.Globe

Sampleresponse:

HTTP/1.1200OK
ContentLength:2
ContentType:text/html
OK

TakenotethatDeliveryNotificationIdvalueisthesamewiththetransidreceivedbyYondu
whenAppPlussentanMTmessagerequest.Thisistotrackthesuccessfullybilled
transactionsfromotherunsuccessfultransactions.
6. AftersendingtheDNnotificationmessagetoAppPlus,YonduwillsendtheMTmessageto
Telco.

MessageRequestwithSample
ChargingKeywords
Table1
ChargingKeyword

Primary&
Secondary
Charging
Keywords

Price

Type

Descriptions

app_help

APPHELP

0.00

SMS

FreeForhelpmessagereply

Ver.2.00|05September2016|YonduAPIDocumentationAppPlus

Confidential

Page11of15

MCSPhilippinesAppPlus|YonduAPIDocumentationv.2.0

YONDU

app1_500

App1On

5.00

SMS

Forfirsttimeuserand1day
subscriptionscenario

app1_renewal

5.00

SMS

Useforrenewalfor1daysubscription

app7_3000

APP7On

30.00

SMS

Forfirsttimeuserand7days
subscriptionscenario

app7_renewal

30.00

SMS

Useforrenewalfor7dayssubscription

app_off

APPOFF,
APP1OFF,
APP7OFF

0.00

SMS

ForUseroptsout

app_error

2.50

SMS

RepeatOptins,RepeatOptout

app_manual_unsubscribe

0.00

SMS

Manualcleanupforthesubscribersnot
bill/chargewithin90days.

app_free

0.00

SMS

FreenotificationWelcomemessage,
Promo/Campaignmessage

app_micro_250

2.50

SMS

Microchargingworth2.50

app_micro_500

5.00

SMS

Microchargingworth5.00

app_micro_1000

10.00

SMS

Microchargingworth10.00

app_micro_1500

15.00

SMS

Microchargingworth15.00

Ver.2.00|05September2016|YonduAPIDocumentationAppPlus

Confidential

Page12of15

MCSPhilippinesAppPlus|YonduAPIDocumentationv.2.0

YONDU

YonduMTAPI
Definition:
URL=http://192.237.235.75/dmp/process/api/appplus.php?

Parameters:
transid=(Transid)
account=appplus
key=P@SsApp@Plus@2016!
c_msisdn=(mobilenumber)
content=(chargingkeyword+MTmessage)

ExampleRequest:
http://192.237.235.75/dmp/process/api/appplus.php?transid=14041693&account=appplus&key=
P@SsApp@Plus@2016!&c_msisdn=9174208550&content=chargingkeyword+MTmessage

YonduAPIStatus/Response

ThisistheresponsedbyYonduAPI.
Table2
StatusResult

Description

0:ProcessedSuccessfully

Successfullyreceivedthemessage.Readytoprocess.

92:NoMobileIDDefined

Nomobilevalueinparameter

97:InvalidAccount/Key

Invalidaccountorkeyinparameter

98:NoKeyDefined

Nokeyvalueinparameter

99:NoAccountDefined

Noaccountvalueinparameter

Ver.2.00|05September2016|YonduAPIDocumentationAppPlus

Confidential

Page13of15

MCSPhilippinesAppPlus|YonduAPIDocumentationv.2.0

YONDU

GlobeChargedStatusCode
Thisresponsewillbereturnedonstatusreceivedfromtelco/network/carrier.UseforDelivery
Notification(DN).

Table3
StatusCode

StatusMessage

Description

200

Successful/OK

Successfullycharged

401

Subscribernotfound.

Subscribermobilenumbernotactive

404

Unhandledstatuscode

StatuscodeisnotdefinedtoTelco.

410

FailuretoconnecttotheCCB
systemtocheckaccount
status.

FailedchargetoPostpaidsubscriberbecauseTelco
cannotconnecttoCCBsystem.

411

GHPSubscriberhas
insufficientbalance.

InsufficientbalancetoallPrepaid/GHPsubscriber

412

EricssonInsuffBal

InsufficientbalancetoallTouchmobilesubscriber

Ver.2.00|05September2016|YonduAPIDocumentationAppPlus

Confidential

Page14of15

MCSPhilippinesAppPlus|YonduAPIDocumentationv.2.0

YONDU

414

Postpaidsubscriberis
inactive.

Postpaidsubscriberisinactive

500

Serviceisdown.

Serviceisdown/inactive.

503

CSPError.

TelcoproblemtoconnectinCSPplatform

503

Appisnotprovisionedfor
chargingorthisrate

Chargingamountisnotprovision

503

InvalidreferenceCode

InvalidreferencecodepassedtoTelcoupon
charging,causedbybulktransactionprocessatsame
time.

1001

NoResponse

YonducannotaccesstheAPIofTelcoafter3times
attempt.

1002

ConnectionRefused

YonducannotaccesstheAPIofTelco

ConnectionRequirements
1.
2.
3.
4.

AppPlusIP
AppPlusMOAPIandDNAPI
Connectivitytesting(ping,traceroute,telnet)
Testphonemobilenumbers(fortesting)

Ver.2.00|05September2016|YonduAPIDocumentationAppPlus

Confidential

Page15of15

Anda mungkin juga menyukai