Opt In From API

OptIn a new recipient mobile number and details through the SendMode HTTP API.

Available HTTP Methods: GET

sm_api_icon

Parameters

Parameters

FieldDescriptionMandatory
typeImportYES
usernameAccount usernameYES
passwordAccount passwordYES
mobilenumberMobile number to importYES
groupImport to a specific group. If group doesn't exist it will be created.NO
optinconsentWhere Opt In came fromYES
returnedresponseIf You want a response forwarded to your API.NO
Additional Variables:
firstnameRecipients first name NO
surnameRecipients surnameNO
emailRecipients email address NO
addressRecipients address NO
townRecipients town/cityNO
countyRecipients county/state NO
custom1Recipients custom 1 field NO
custom2Recipients custom 2 field NO
businessnameRecipients business/company name NO
dateofbirthRecipients date of birth. Must be in valid date format such as dd/mm/yyyy.NO
Example URL
•    http://api.sendmode.com/importmember.aspx?type=import&username=USERNAME&password=PASSWORD_
            &mobilenumber=353871234567&optinconsent=HAS BOUGHT FROM SHOP&resturnedresponse=OPTIN
Response

Response

Example Response
<import_result>
    
    <call_result>
    
        <result>
            True
        </result>
        <error>
            
        </error>
            
    </call_result>
    
</import_result>