Introduction
This API is designed to allow updating of a single response record already in CustomerGauge.
Good to know
API response format:
Our APIs return data in either JSON or XML format (depending on request by .json or .xml).
Driver results:
Please note that if you update the NPS Score - the Driver selections will not get updated.
Updating Product SKU:
Updating Product SKU is currently not supported.
About this API
Resource Information
Response formats | JSON (default), XML |
HTTP method | PUT |
Response family | Transactions |
Header | Authorization: api_key XXXXX |
Resource URL
Europe Production Server: https://api.eu.customergauge.com/v4.1/transactions/response.json
US Production Server: https://api.us.customergauge.com/v4.1/transactions/response.json
Australia Production Server: https://api.au.customergauge.com/v4.1/transactions/response.json
How to call
PUT Data
Put data as key value based on upload mapping.
Parameters
Key | Data |
id (Required) | CG-ID Example Values: 63 |
CustomerNumber | 1143 |
Email | lee_klameth@directness.net |
FirstName | Lee |
LastName | Klameth |
Example Request
To call this API through cURL:
curl -H "Authorization: api_key XXXXX" -X PUT https://api.eu.customergauge.com/v4.1/transactions/response.json -d id=63 -d CustomerNumber=1143 -d Email=lee_klameth@directness.net -d FirstName=Lee -d LastName=Klameth
Example Result
Message reported on successful operation:
{ "Data": { "id": 63 } }
Message reported on failed operation:
{ "Error": { "Message": "Field CGNumber is required but seems to be empty", "Code": 400010 } }
Ex2: Message reported on record not found:
{ "Message": "id not found", "Code": 400005 }
Not the API you're looking for?
Related APIs:
APIs of the same family:
Similar API families:
Or view: