SMS Submit Interface description HTTP Version 1.5

Similar documents
Way2mint SMS Mobile Terminate (MT) API Guide for HTTP / HTTPS

LINK Mobility SMS REST API MT and Delivery Reports Version 1.3; Last updated September 21, 2017

NIC SMS SERVICE INTEGRATION

SMS Outbound. HTTP interface - v1.1

HTTP Specification Version 1.83

SMS HTTP API DOCUMENTATION December 2012

cellip CELLIPS SMS INTERFACE DESCRIPTION HTTP GET INNEHÅLLSFÖRTECKNING

Integrating with Cellsynt's SMS gateway via HTTP interface (technical documentation)

SOAP API. The correct URL has been hidden. Please contact your account manager for the full URL information.

Response: Note: Please define Dynamic Value in ##Field## The following are the parameters used: For Unicode Message:

Revision: 50 Revision Date: :43 Author: Oliver Zabel. GTX Mobile Messaging SMS Gateway Interface Simple HTTP API Manual

HTTP API-HELP DOCUMENT

SMS Outbound. SMTP interface - v1.1

Forthnet Mobile Platform - groupsms http interface v1.0 1 / 9

Wired 2 Wireless Technology Solutions API Help Document Copyright Introduction. 2. Parameter list

Bulk HTTP API Specification

Integration Guide Xura Messaging HTTP-Interface

API Documentation. Release Version 1 Beta

Way2mint SMS Mobile Terminate (MT) API Guide for HTTP HTTPS

ezeesms URL API Documentation

Message parameter details

HTTP API. Table of Contents

API Integration Document

API Spec Sheet For Version 2.5

Technical Guide. REST API for Mobile Outbound SMS

eservices channel-any_name_for_sms Section

Integration Guide Xura Messaging SMTP- Interface

SMS-Bulk Gateway HTTP interface

1. Overview Account Configuration Details... 3

All requests must be authenticated using the login and password you use to access your account.

Mobile forensics. SMS (Short Message Service) EMS, MMS, CBS

Dynmark Messaging Platform XML HTTP Interface Quick Start Guide. Draft Revision September

Cloud SMS API Guide. Version 5.1

In order to create your proxy classes, we have provided a WSDL file. This can be located at the following URL:

Quriiri HTTP MT API. Quriiri HTTP MT API v , doc version This document describes the Quriiri HTTP MT API version 1 (v1).

Gatesms.eu Mobile Solutions for Business

Table of Contents 1 AQL SMS Gateway How to Guide...1

version 2.0 HTTPS SMSAPI Specification Version 1.0 It also contains Sample Codes for -.Net - PHP - Java

WE POWER YOUR MOBILE WORLD FTP INTEGRATION MANUAL

Overview Introduction Messaging Error Codes Message parameter details Contact Details... 7

New Dashboard - Help Screens

HTTP API - HELP DOCUMENT

HTTP API Specification V2.7

SMS API - Web Services with SSL SHA2 HMAC Version 1.7

mvaayoo API Ver 1.2.0

USSD HTTP API SPECIFICATION Version 1.0 Teletalk Bangladesh Limited

SMPP Gateway Manual. Route Mobile Limited. (Document version 1.5)

SOAP WebService. User Manual Version Copyright Route Mobile Limited All Rights Reserved.

SMPP Gateway Manual. SMPP Gateway Manual Page 1

API USER GUIDE MARKETING MESSAGES & BROADCASTS

Configuring SSL. SSL Overview CHAPTER

Front Gateway Product Description for the connection between the SMS gateway and customer

Quenbec inc # henri bourassa H3L-3N3 Montreal, QC,Canada Toll free: Mobile

4/ FGC Uen Rev C IPX. Implementation Guide SMS Utility API 1.0

HLR Lookup Service (Release 1.1.0)

SMS Relay. API Documentation SPLIO - SPRING Contact and Campaign SMS Relay API - EN v1.2.docx

SMSPortal SMS Encapsulation (8bit data)

Quick help quide to GSM PDU mode structure

msolutions Messenger Customization Options

Cisco Encryption

HTTP Based Unified API

Sendroid Ultimate. User Manual

Configuring Guide & Specifications SFT

text2reach2 SMS API Sep 5, 2013 v1.1 This document describes application interface (API) between SMS service provider (SP) and SMS gateway (SMSGW).

BulkSMS Marketo Gateway

SMS API User Guide. Document Reference: October Version: 6

SMS4BD Gateway Integration

SMPP Server User Guide

SMS API - Web Services with SSL SHA2 HMAC Version 1.5

Black Hat Europe 2009

TraiTel Telecommunications. TTMessenger 4.xx. User Manual

API-SMS HTTP/GET Interface Ref Push SMS, Balance, ACKs. April 18, 2017 v1.12

2 Accessing Oracle Webmail

Ciphermail Gateway PDF Encryption Setup Guide

EEC-682/782 Computer Networks I

Configuring SSL CHAPTER

XML API SMS GATEWAY. Issue 2.0 Dec XML API

BulkSMS / Customer, Marketo Integration Guide, version 2.6, 2018/01/19. BulkSMS / Customer. Marketo Quick Start Integration Guide

SMSCenter. SMSCenter API

CNIT 129S: Securing Web Applications. Ch 10: Attacking Back-End Components

Brain Corporate Bulk SMS

Mobile Connect for USA Mobility Pagers for BlackBerry

Configuring SSL. SSL Overview CHAPTER

Instructions for SAP CCtr. How to use SAP Contact Center phone system

Electronic Mail. Electronic Mailboxes

ERMES. Technical Specification for ex MPAY services integration. version /10/2018

SMS+ Client User Manual

Reqs-LTE-SMS. Device Requirements Issued: Mar-16

Notification Services

Mail Assure Quick Start Guide

Quick Answers. You may create any Sender ID for the transactional route, provided the Sender ID should be of 6 alpha characters only.

WAP Push Message Version 16-August-1999

Inbound SMS User Guide 2016 Cosmic SMS

Configuring Gmail (G Suite) with Cisco Cloud Security

CLIENT DASHBOARD. With Cloud Communication Solution (C.C.S).

PROFESSIONAL SMS APP CENTER USER MANUAL

Electronic Mail. Prof. Indranil Sen Gupta. Professor, Dept. of Computer Science & Engineering Indian Institute of Technology Kharagpur

2. Introduction to Internet Applications

Before you start! : 1. It is important to know some things code, before starting the deal with this file.

Internet Architecture

Transcription:

SMS Submit Interface description HTTP Version 1.5 This document is intended for application developers with knowledge about the HTTP protocol.

Document history Version Description 1.5 Spelling error corrected 1.4 Added section on URL encoding Added error code description 1.3 PST is recommended method Added info on alphanumeric source addresses 1.2 Major rewrite Added info on sending and receiving messages 1.1 Spelling errors fixed 1.0 First release

1. Introduction 1.1. SMS messages Infoflex Messaging Platform (MP) enables users to send message to and receive messages from mobile devices. utbound (mobile terminated) messages are sent from a Customer Application (Client) to MP using Hypertext Transfer protocol (HTTP). Inbound (mobile originated) messages are sent from MP to Customer Server (Server) using HTTP. Each message consists of a number of parameters sent as form parameters using HTTP PST or HTTP GET operations. PST is the recommended method since GET operations can be limited in size and may be truncated by browsers or intermediate proxies. MP supports HTTP 1.0 and HTTP 1.1 with persistent connections. SMS messages can be 1120 bits long. Depending on which character coding is used this limits the length of a message: GSM default 7-bit alphabet (IA5), max 160 characters 8-bit message, max 140 characters UCS2 (16-bit Unicode), max 70 characters Sometimes messages include what is called UDH (User-Data Header). The UDH can contain information about special message properties and will limit the message length per SMS even further. When a message submitted to MP is longer than the per message limit the message will be split into multiple SMS plus a UDH will be added indicating that each SMS is part of a longer message. The receiving handset will usually reassemble the message into the original long message. 1.2. Message encoding 1.3. URL encoding Since SMS text messages usually are encoded using GSM 7-bit default character set (IA5) which is not very usual in other applications MP can make life easier and perform conversion between IA5 and IS-8859-1. Whether conversion is performed or not is a configuration issue per user account. When sending messages using UCS2 each SMS can hold a maximum of 70 characters. Longer messages will be split into multiple SMS. All requests must be properly URL encoded as per RFC 1738. Since URLs can only include a limited set of characters ( A-Z, a-z, 0-9, $-_.+!*'(),") all other characters needs to be properly escaped. There are utility classes that help the developer with this in most languages including Java, Perl, PHP and.net. Please note that source and destination addresses should never include a leading + character and also that a + in a URL is actually an escaped SPACE.

1.4. Addresses Source and destination addresses (senders and recipients) are usually numeric international GSM numbers starting with country code, without leading zeros or plus signs. It is also possible to use alphanumeric source addresses which can be a maximum of 11 characters in the GSM network. nly use characters A-Z, a-z, 0-9 and space for best result. When using threaded replies (SAT), the source address can also be an e-mail address and any replies will be delivered as e-mail to the specified source e-mail address. Please note that this requires the account is enabled for SAT and that replies is configured to be routed via e-mail/smtp. 1.5. Delivery reports (DLRs) When a message is sent to MP it is not known whether it can be delivered or not. However, it is possible to request a delivery report (using the parameter DLR=1) which will be submitted from MP to Server when the final status for the message has been reached. A DLR is structured as any other message but has a special message type set, it will also contain a reference to the id of the original message. 1.6. Threaded replies (SAT) It is possible to send a message and receive a reply in which the original message id is referenced so that each reply can be uniquely mapped to the correct original message. MP makes this possible using Source Address Translation (SAT) so that the source address for each outbound message will be picked from a pool making the source+destination address combination unique for each message.

2. Client to Messaging Platform (sending) This section describes how to send requests from the Client Application (Client) to the Messaging Platform (MP) and the possible responses to such requests. The Client issues a HTTP GET or PST request to the MP using a specific URL. The MP issues back a response which completes the transaction. Please note that the MP response can either be an HTTP error code or a HTTP K (200) in which case the returned response body will contain further information. The Client supplies a number of parameters to the MP. 2.1. Submit message 2.1.1. Request parameters Parameters are found in section 4, Parameter reference. 2.1.2. Example sending text message Username: user1 Password: secret Destination address: +46-70-123456 Message: Hello world http://smssubmit.infoflex.se:9011/bin/send?username=user1&pa SSWRD=verysecret&DESTADDR=4670123456&MESSAGE=Hello+world 2.1.3. Example sending binary message Username: user1 Password: secret Destination address: +46-70-123456 Message: 0x41 0x42 0x43 0x4a http://smssubmit.infoflex.se:9011/bin/send?username=user1&pa SSWRD=verysecret&DESTADDR=4670123456&CHARCDE=2&MESSAGE=414 2434A 2.1.4. Example sending binary message with UDH 2.2. Responses Username: user1 Password: secret Destination address: +46-70-123456 UDH: 0x06 0x05 0x04 0x0b 0x84 0x23 0xf0 (WAP push) Message: 0x41 0x42 0x43 0x4a (not a valid message only to illustrate example) http://smssubmit.infoflex.se:9011/bin/send?username=user1&pa SSWRD=verysecret&DESTADDR=4670123456&CHARCDE=2&UDHI=1&MESS AGE=0605040B8423F04142434A Responses from the Messaging Platform are HTTP responses which contain a status code which is either 200 (K) or an error code. If HTTP status is K then the response body includes further status information for the operation. Response body include two or, optionally, three lines:

1. Contains the assigned message id, a numeric value, or -1 if the request failed. 2. Contains the status code, 0 for success or otherwise a numeric value other than 0 indicating what error occurred. Error codes: 1 Unkown error, 2 Syntax error, mandatory parameter missing, 10 Access denied, 11 Invalid message, 16 No message credits left 3. If present, contains a text describing the error that occurred. 2.2.1. Example: Response indicating success 124365 0 K 2.2.2. Example: Response indicating failure -1 2 Recipient (DESTADDR) is missing 3. Messaging Platform to Client (receiving) This section describes requests that are sent from the Messaging Platform (MP) to the Customer Server and how the Server should respond. Such requests are sent when incoming (Mobile-riginated) messages are received and forwarded to the customer. Same type of requests are used for Delivery Reports (DLRs). MP issues a HTTP PST request to the Server using a specific URL. The Server must respond with a HTTP K (200), body should be empty and will be ignored. MP will supply a number of parameters. Parameters are found in section 4, Parameter reference. Typical parameters for request containing message: ID, SURCEADDR, SURCEADDRTN, SURCEADDRNPI, DESTADDR, MESSAGE, VP Typical parameters for request containing DLR: ID, DLRID, SURCEADDR, DESTADDR, STATUS, MSGTYPE, MESSAGE, VP

4. Parameter reference Below the most common request parameters are listed. ther additional parameters may be present in requests. The rightmost column describes whether parameter is used for sending or receiving messages/dlrs. Parameter Description Mandatory - M ptional - Send - S Receive - R USERNAME Username for MP account M S PASSWRD Password for MP account M S ID Message id M R RIGID riginal message id M (SAT replies) R nly used for SAT when a reply to a previously sent message is received DESTADDR Destination address (recipient) M MSISDN should be on international format starting with country code. Example: 4670123456 SURCEADDR Source address (sender) Alphanumeric senders can be a maximum of 11 characters according to GSM spec only A-Z, a-z, 0-9 and space should be used SURCEADDRTN Type of Number (TN) for source address Values: 0 Unknown 1 International (default) 5 Alphanumeric SURCEADDRNPI Numbering Plan Indicator (NPI) for source address Should not be set when sending messages where it will default to 1. DESTADDRTN Type of Number (TN) for destination address Should not be set when sending messages where it will default to 1 (international number).

DESTADDRNPI Numbering Plan Indicator (NPI) for destination address Should not be set when sending messages where it will default to 1. CHARCDE Message encoding Values: 0 (GSM text, default also used for IS-8859-15 when conversion enabled for account) 2 (Binary, 8-bit) 4 (UCS2, Unicode 16-bit) MESSAGE Message data Format depends on message type. For GSM text messages data is URL encoded. For binary or UCS2 messages data must be hex encoded. M (messages) (DLRs) MSGTYPE Message type M (DLRs only) R 1 Normal 5 DLR DLR Request DLR S Set to 1 to request that a delivery report (DLR) be sent back DLRID riginal message id for DLRs M (DLRs only) R When a DLR is received this parameter will contain the id of the original message it refers to STATUS Status M (DLRs only) R Indicates status of message 1 Delivered 2 In process 3 Failed 4 Deleted 5 Expired 6 Rejected 7 Canceled 8 Queued 9 rphaned 10 Relayed 11 Unknown

KEYWRD First word in message R VP Validity Period Indicates how long (in seconds) a message will be stored for delivery before it will be expired UDHI User Data Header (UDH) Indicator S When set to non-zero value, specifies that UDH is present in the message body. SURCEPRT Source port S Numeric value, 0 65535 This information will be added to UDH. DESTPRT Destination port S Numeric value, 0 65535 This information will be added to UDH. CNCATSMSREF For concatenated messages Specifies a numeric reference number, 0 255 Not needed to send long messages. CNCATSMSSEQ For concatenated messages Specifies sequence number for this message part Not needed to send long messages. CNCATSMSMAX For concatenated messages Specifies total number of parts for this message Not needed to send long messages.