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 formatsJSON (default), XML
HTTP MethodPOST
Response familytransactions
HeaderAuthorization: api_key XXXXX


Resource URL

Europe Production Server: 

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


POST Data

Post data as key value based on upload mapping.


POST Data Example Values


KeyData
CustomerNumber1143
Emaillee_klameth@directness.net
FirstNameLee
LastNameKlameth


Example Request


cURL examplecurl -X POST https://api.eu.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