Soap XML Documentations

Outbox Send Message and Status API SOAP Documentation

Send Message XML (Soap)
url: http://soap.outbox.rest 

-------------------------Normal Message-------------------------
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:krea="krea.outbox">
    <soapenv:Body>
        <krea:send_message>
            <krea:data>
                <krea:AuthKey>****************</krea:AuthKey>
                <krea:MessageType>SMS/EMAIL/MMS</krea:MessageType>
                <krea:Priority>FAST/NORMAL/TEST</krea:Priority>
                <krea:MessageID>123</krea:MessageID>
                <krea:Recipients>
                    <krea:Subject>Test Subject</krea:Subject>
                    <krea:Content>Test SMS</krea:Content>
                    <krea:Recipient>9053********</krea:Recipient>
                </krea:Recipients>
                <krea:Unique>ON/OFF</krea:Unique>
            </krea:data>
        </krea:send_message>
    </soapenv:Body>
</soapenv:Envelope>

-------------------------Attachment(URL) Message-------------------------
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:krea="krea.outbox">
    <soapenv:Body>
        <krea:send_message>
            <krea:data>
                <krea:AuthKey>****************</krea:AuthKey>
                <krea:MessageType>SMS/EMAIL/MMS</krea:MessageType>
                <krea:Priority>FAST/NORMAL/TEST</krea:Priority>
                <krea:MessageID>123</krea:MessageID>
                <krea:Recipients>
                    <krea:Subject>Test Subject</krea:Subject>
                    <krea:Content>Test Message</krea:Content>
                    <krea:Recipient>test@krea.digital</krea:Recipient>
                    <krea:Attachment>https://storage.googleapis.com/krea/assets/img/logo.png</krea:Attachment>
                </krea:Recipients>
            </krea:data>
        </krea:send_message>
    </soapenv:Body>
</soapenv:Envelope>

-------------------------Attachment(Base64) Message-------------------------
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:krea="krea.outbox">
    <soapenv:Body>
        <krea:send_message>
            <krea:data>
                <krea:AuthKey>****************</krea:AuthKey>
                <krea:MessageType>SMS/EMAIL/MMS</krea:MessageType>
                <krea:Priority>FAST/NORMAL/TEST</krea:Priority>
                <krea:MessageID>123</krea:MessageID>
                <krea:Recipients>
                    <krea:Subject>Test Subject</krea:Subject>
                    <krea:Content>Test Message</krea:Content>
                    <krea:Recipient>test@krea.digital</krea:Recipient>
                    <krea:BAttachment>iVBORw0KGgoAAAANSUhEUgAAAJYAAAA8CAYAAACEhkNqAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA+VpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1IFdpbmRvd3MiIHhtcDpDcmVhdGVEYXRlPSIyMDE2LTExLTMwVDE0OjI2OjIzKzAyOjAwIiB4bXA6TW9kaWZ5RGF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5N4EXTc91lguM2xmJwcysqLqT8DM1gYjn7IHcKJmM/7UvKrpgWBWKmaHxBvgjhlv544hbVBs5NPTqWBN9XZHY4oU5UsmsdcwOy9g+QCrTU9lv1GM1GbTRxXMzlsQ2gkk7Hpf6+FE43h+0TmV6RTmCsSW8EXPKYBufAVs2VANs8Jaas/t8VtocPhBLYLqAH4D1JcknhChf83QiSy4FtV71IwVE0ai88lWhFMCq9w8v+zfkaFIq1cgEzov84nLoQoRbNaeVxWEmK1T0FthTsycMUD3yzCbdTziExvW7glQiwRa9eHyIP5Q0zm4vuJxZR66Afmb5nfUWGj8vZyaHNKSPjiWDB9c6kKr2Sg+ftUhTdt/ojaC8xiX7+jwvMAY+BEp1rBzcpU8j/vTgX/j+EpFX6FD9cJd6jwhgFc58RdJhcp8yW6mBGrkIX5QRdMVZwQzjgSfAC/0epwNwkuSNutj3pPN4iICLFEhFgiQiwRESGWiBBLRIglIhK9/CfAAIwpa6QKBGCfAAAAAElFTkSuQmCC</krea:BAttachment>
                    <krea:BType>png</krea:BType>
                    </krea:Recipients>
            </krea:data>
        </krea:send_message>
    </soapenv:Body>
</soapenv:Envelope>

-------------------------Variables Message-------------------------
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:krea="krea.outbox">
    <soapenv:Body>
        <krea:send_message>
            <krea:data>
                <krea:AuthKey>****************</krea:AuthKey>
                <krea:MessageType>SMS/EMAIL/MMS</krea:MessageType>
                <krea:Priority>FAST/NORMAL/TEST</krea:Priority>
                <krea:MessageID>123</krea:MessageID>
                <krea:Recipients>
                    <krea:Subject>Test Subject</krea:Subject>
                    <krea:Content>Test Message</krea:Content>
                    <krea:Variables>
                    	&lt;Content&gt;Test Messag&lt;/Content&gt;
                    </krea:Variables>
                    <krea:Recipient>test@krea.digital</krea:Recipient>
                    </krea:Recipients>
            </krea:data>
        </krea:send_message>
    </soapenv:Body>
</soapenv:Envelope>
-------------------------Normal Message with Reference -------------------------
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:krea="krea.outbox">
    <soapenv:Body>
        <krea:send_message>
            <krea:data>
                <krea:AuthKey>****************</krea:AuthKey>
                <krea:MessageType>SMS/EMAIL/MMS</krea:MessageType>
                <krea:Priority>FAST/NORMAL/TEST</krea:Priority>
                <krea:MessageID>123</krea:MessageID>
                <krea:Recipients>
                	<krea:Reference>12345</krea:Reference>
                    <krea:Subject>Test Subject</krea:Subject>
                    <krea:Content>Test Message</krea:Content>
                    <krea:Recipient>test@krea.digital</krea:Recipient>
                    </krea:Recipients>
            </krea:data>
        </krea:send_message>
    </soapenv:Body>
</soapenv:Envelope>

Send Message XML (Soap) Response
Response Codes and Response Messages

Response Status Code : 200
    <?xml version='1.0' encoding='UTF-8'?>
    <soap11env:Envelope xmlns:soap11env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="krea.outbox">
        <soap11env:Body>
            <tns:send_messageResponse>
                <tns:send_messageResult>
                    <result type="dict">
                        <message type="list">
                            <item type="dict">
                                <TrackingID type="str">46c8800a37514747a1b5a8a38617f961</TrackingID>
                                <Recipient type="str">test@krea.digital</Recipient>
                            </item>
                        </message>
                        <status type="dict">
                            <Length type="int">1</Length>
                            <Accepted type="int">1</Accepted>
                        </status>
                    </result>
                </tns:send_messageResult>
            </tns:send_messageResponse>
        </soap11env:Body>
    </soap11env:Envelope>
    
Response Status Code : 404
    <?xml version='1.0' encoding='UTF-8'?>
    <soap11env:Envelope xmlns:soap11env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="krea.outbox">
        <soap11env:Body>
            <tns:send_messageResponse>
                <tns:send_messageResult>
                    <result type="dict">
                        <message type="str">Token does not exist</message>
                        <status type="int">404</status>
                    </result>
                </tns:send_messageResult>
            </tns:send_messageResponse>
        </soap11env:Body>
    </soap11env:Envelope>
    
 Response Status Code : 403  
    <?xml version='1.0' encoding='UTF-8'?>
    <soap11env:Envelope xmlns:soap11env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="krea.outbox">
        <soap11env:Body>
            <tns:send_messageResponse>
                <tns:send_messageResult>
                    <result type="dict">
                        <message type="str">Invalid Token</message>
                        <status type="int">403</status>
                    </result>
                </tns:send_messageResult>
            </tns:send_messageResponse>
        </soap11env:Body>
    </soap11env:Envelope>
    
Response Status Code : 403  //Post Payload Not Acceptable
    <?xml version='1.0' encoding='UTF-8'?>
    <soap11env:Envelope xmlns:soap11env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="krea.outbox">
        <soap11env:Body>
            <tns:send_messageResponse>
                <tns:send_messageResult>
                    <result type="dict">
                        <message type="str">Invalid Post Payload</message>
                        <status type="int">403</status>
                    </result>
                </tns:send_messageResult>
            </tns:send_messageResponse>
        </soap11env:Body>
    </soap11env:Envelope>
    
Response Status Code : 500 
    <?xml version='1.0' encoding='UTF-8'?>
    <soap11env:Envelope xmlns:soap11env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="krea.outbox">
        <soap11env:Body>
            <tns:send_messageResponse>
                <tns:send_messageResult>
                    <result type="dict">
                        <message type="str">An error occurred while sending a message</message>
                        <status type="int">500</status>
                    </result>
                </tns:send_messageResult>
            </tns:send_messageResponse>
        </soap11env:Body>
    </soap11env:Envelope>
Get Status XML (Soap)
url: http://soap.outbox.rest

--------------------Request--------------------
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:krea="krea.outbox">
    <soapenv:Body>
        <krea:get_status>
            <krea:data>
                <krea:AuthKey>123</krea:AuthKey>
                <krea:Language>TR/EN</krea:Language>
                <krea:TrackingID>176022f32f354d53b9e7a184ab3b3c5e</krea:TrackingID>
                <krea:Type>EMAIL/SMS/MMS (If null, get last sent message)</krea:Type>
            </krea:data>
        </krea:get_status>
    </soapenv:Body>
</soapenv:Envelope>

--------------------Response--------------------
<soap11env:Envelope xmlns:soap11env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="krea.outbox">
    <soap11env:Body>
        <tns:get_statusResponse>
            <tns:get_statusResult>
                <result type="dict">
                    <Code type="int">0</Code>
                    <Recipient type="str">9053********</Recipient>
                    <Status type="str">Başarılı/Success</Status>
                </result>
            </tns:get_statusResult>
        </tns:get_statusResponse>
    </soap11env:Body>
</soap11env:Envelope>

Last updated