This function is designed to allow upload of stream data directly into CustomerGauge for immediate processing (Mailqueue) and email sending. Depending on active rules and data types (usually order_date field) customer emails will be sent immediately.


This API will load emails into the mail-queue, and may start immediate processing. Make sure you test this before bulk uploads!


IMPORTANT: The File Size Limit for API's is 2MB.


Resource Information


Response formats
JSON (default), XML
HTTP Method
POST
Response family
stream
Header
Authorization: api_key XXXXX



Resource URL

Europe Production Server: 

https://api.eu.customergauge.com/v4.1/stream/transactional.json


POST Data

Post XML data based on upload mapping.


POST Data Example Values

<?xml version=”1.0″ encoding=”utf-8″?>
<records>
<record>
<Email>lee_klameth@directness.net</Email>
<FirstName>Lee</FirstName>
<LastName>Klameth</LastName>
</record>
</records>



Example Request

cURL Example
curl -X POST “https://api.eu.customergauge.com/v4.1/stream/transactional.json?” -d “<records><record><Email>lee_klameth@directness.net</Email><FirstName>Lee</FirstName><LastName>Klameth</LastName></record></records>”


Example Result

Data states if successful or not. Message reported on successful operation:




1




{"Data":true}




Message reported on failed operation:




1




{"Error":{"No data provided","Code":400700}}