📬
MobiPay API Documentation
Mobivate
📬
MobiPay API Documentation
  • 👋Welcome to MobiPay
  • Send SMS via HTTP (MT)
  • Receive SMS via HTTP (MO)
  • Use Cases
    • Send SMS via HTTP (MT) Example
    • Receive SMS via HTTP (MO) Example
    • Gateway Responses
    • Send Silent OBS Billing Message Example
    • Unsubscribe VIA MT Unsubscribe Notification
    • Receive Delivery Receipt via HTTP (DR)
    • Acknowledging MO's and DR's
    • Send A Premium SMS via HTTP (MT) Example
    • Vodafone/Airtel Ghana Billing
  • API Message Paramaters
    • API Message Parameters
    • Send BINARY SMS (MT) parameters
    • Receive SMS (MO) parameters
    • Subscription API (RESTFul)
      • Initiate Subscription (API)
      • Validate PIN (API)
      • Unsubscribing Users (API)
      • Checking Subscription Status (API)
      • Sending Messages To Subscribers (API)
      • Sending Content To Subscribers (API)
    • Content API (RESTFul)
      • Content Types (API)
      • Content Categories (API)
      • Search Content (API)
      • Latest Content Items (API)
      • Content Items (API)
  • Network Double Opt-In
    • Network Double Opt-in (NDOI)
    • Network Double Opt-in (NDOI) Unsubscribe
    • NDOI Keyword Patterns per country
  • MNO Web Opt-in
    • MNO Web Opt-in Introduction
    • MNO Web Opt-In South Africa
    • MNO Web Opt-In Kenya
      • Configuring your campaign
      • Subscribing users to your service
        • Subscribing users via Upstream
        • Subscribing users via Scienlabs
      • Unsubscribing users from your service
      • Receiving callback notifications
    • MNO Web Opt-In Nigeria
      • Subscribing the User to the Service
      • Unsubscribing user from the Service
      • Delivery Notifications
  • UK Direct Carrier Billing
    • UK DCB/Charge to Bill
      • UK Network Flows
Powered by GitBook
On this page

Was this helpful?

  1. MNO Web Opt-in

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 -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>'
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

Name
Value

Content-Type

application/json

Authorization

No Auth

Body

Name
Type
Example
Description

shortcode

string

30000

The shortcode associated with your service.

service

string

apple=aaaabbbbcccccddddd

Your unique Mobivate Keyword and the Product ID.

frequency

string

1-7,31

Billing frequency, 1-7 messages per week, or if 31 then it's single monthly billing.

campaign

string

My Campaign

Your internal campaign description.

amount

integer

10

Amound of Rand (ZAR) billed per billing request.

bl

string

Full URL to your Header Image.

bc

string

ffffff

HEX value for the background colour.

tc

string

000000

HEX value for the text colour.

return

string

Your return URL.

Response

{
  "status": "success",
  "message": "Successful subscription",
  "userid": "44700000000",
  "network": "safaricom"
}
{
  "error": "Invalid request"
}

Output fields

Parameter
Description

status

MNO subscription status, either success or failed.

message

Any message passed through from the MNO.

userid

If the MSISDN was detected, the fully qualified MSISDN.

network

MNO identifier.

PreviousMNO Web Opt-in IntroductionNextMNO Web Opt-In Kenya

Last updated 1 year ago

Was this helpful?

http://yourdomain/logo.pn
http://yourdomain/returned