📬
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. Use Cases

Send A Premium SMS via HTTP (MT) Example

Learn how to send a Premium SMS MT message.

GET /srs/api/sendsms

Send a Premium MT SMS message to a MSISDN.

curl -XGET -H "Content-type: application/json" 'https://hostname/srs/api/sendsms?USER_NAME=<account_id>&PASSWORD=<api_key>&ORIGINATOR=<SHORT CODE>&RECIPIENT=<MSISDN>&PROVIDER=<Network Provider>&KEYWORD=<Keyword>&MESSAGE_TEXT=Hello%20There!&VALUE=<AMOUNT>&NETWORK=<NETWORK PROVIDER>'
import requests

headers = {
    'Content-type': 'application/json',
}

response = requests.get(
    'https://hostname/srs/api/sendsms?USER_NAME=<account_id>&PASSWORD=<api_key>&ORIGINATOR=<SHORT CODE>&RECIPIENT=<MSISDN>&PROVIDER=<Network Provider>&KEYWORD=<Keyword>&MESSAGE_TEXT=Hello%20There!&VALUE=<AMOUNT>&NETWORK=<NETWORK PROVIDER>',
    headers=headers,
)

Headers

Name
Value

Content-Type

application/json

Authorization

No Auth

Body

Parameter
Type
Example
Description

account_id

string

43e36f50aaf111e272639171000000a9

Your unique Mobivate account id.

password

string

3b41d767316541bacef19d1382ac1e12

Your unique associated Mobivate account api-key.

originator

integer

12345

The associated shortcode for your service.

recipient

integer

XX7432104492

The recipient you want to send this message to.

provider

string

Safaricom

The network you plan to send the SMS message via.

keyword

string

mv-100620006

Your unique Mobivate keyword for your service.

message_text

string

Hello%20There!

The body of the text message you want to send.

value

integer

10

The cost of receiving this SMS message.

Response

{
  "MT-aabbccddeeff00112233445566778899p"
}
{
  "error": "Username or Password incorrect"
}

Be aware for Premium SMS the cost must be set or the Short code's default value will be charged.

PreviousAcknowledging MO's and DR'sNextVodafone/Airtel Ghana Billing

Last updated 1 year ago

Was this helpful?