MNO Web Opt-In South Africa This document describes MNO Web Opt-In for SA.
GET
/lookup/za/
Opt-In users via MNO Web-Opt-In.
Redirect the user to the Lookup URL. Once the lookup is performed, user will be sent back to your Return URL . Upon the return the user will already be subscribed to your service and you can start sending billed messages, but only if the status
variable is success
.
Curl Python
Copy curl -XGET -H "Content-type: application/json" 'https://<hostname>/lookup/za/?shortcode=<shortcode>&service=<keyword>=<product_id>&freq=<billing frequency>&campaign=<campaign name>&amount=<billing amount>&bl=<brand logo>&bc=<background color>&tc=<text colour>&return=<your return URL>'
Copy import requests
headers = {
'Content-type' : 'application/json' ,
}
response = requests . get (
'https://<hostname>/lookup/za/?shortcode=<shortcode>&service=<keyword>=<product_id>&freq=<billing frequency>&campaign=<campaign name>&amount=<billing amount>&bl=<brand logo>&bc=<background color>&tc=<text colour>&return=<your return URL>',
headers = headers,
)
Headers
Body
Response
200 400
Copy {
"status" : "success" ,
"message" : "Successful subscription" ,
"userid" : "44700000000" ,
"network" : "safaricom"
}
Copy {
"error" : "Invalid request"
}
Output fields
Last updated 4 months ago