This function is designed to allow upload of a single customer record directly into CustomerGauge for immediate processing. 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!


Resource Information

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


Resource URL

Production Server: 

https://api.customergauge.com/v4.1/transactions/mailqueue.json


POST Data

Post data as key value based on upload mapping.


POST Data Example Values


Key Data
CustomerNumber 1143
Email lee_klameth@directness.net
FirstName Lee
LastName Klameth


Example Request


cURL example curl -X POST https://api.customergauge.com/v4.1/transactions/mailqueue.json? -d CustomerNumber=1143 -d Email=lee_klameth@directness.net -d FirstName=Lee -d LastName=Klameth


Example Result


Message reported on successful operation:




1




{"Data":true}




Message reported on failed operation:




1




{"Error":{"Message":"Field email is required but seems to be empty.","Code":40003}}




 

Notes:

  • Datetime is required and in YYYY-mm-dd H : i : s format.
  • Email is required for the upload to be valid