Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Description

The sendSMS request will queue an SMS to be sent to via integrated rails on DPO 3G i.einfobip or nexmo. The message routing will happen internally as per provider MID used to extract Merchant Phone and or provided customer phone.

URL: https://secure.3gdirectpay.com/API/v6/

Response

The method will response with the result of your request

Variables to send:

Parameter

Data type

Description

 Request

 Text

 sendSMS

Mandatory

CompanyToken

Token

Token you got from 3G to operate this API

Mandatory

MerchantID

Text

The MID for the Merchant to receive the SMS

Mandatory

MessageContent

Text

Message body content containing a short bit url that is clickable to allow receipt downloading

Mandatory

CustomerPhone

Text

The customers phone number to used.

Optional

Request Sample:

 request body : POST
<?xml version="1.0" encoding="utf-8" ?>
<API3G>
    <Request>sendSMS</Request>
    <CompanyToken>4E003B15-6E43-4682-B46B-B41F6RETGYHA</CompanyToken>
    <MerchantID>5090011739</MerchantID>
    <MessageContent>KES</MessageContent>
     <CustomerPhone>KES</CustomerPhone>
</API3G>

Response

  • success

 response body
<?xml version="1.0" encoding="UTF-8"?>
<API3G>
    <Code>000</Code>
	<Explanation>Success</Explanation>
</API3G>
  • Error - Wrong CompanyToken

 response body
<?xml version="1.0" encoding="UTF-8"?>
<API3G>
    <Code>802</Code>
	<Explanation>Wrong CompanyToken</Explanation>
</API3G>
  • Error - Missing Mandatory field.

 response body
<?xml version="1.0" encoding="UTF-8"?>
<API3G>
    <Code>950</Code>
	<Explanation>Request missing mandatory fields – CompanyToken</Explanation>
</API3G>
  • No labels