Feedbacks
Get Feedback
Feedbacks
Get Feedback
This endpoint returns the feedback record corresponding with the ID in the path.
GET
/feedbacks/:id
Bearer*
curl --request GET \
--url https://api.thanx.com/feedbacks/:id \
--header 'Authorization: Bearer <token>'
If the user is no longer able to leave feedback for this purchase, a 404 will be returned instead.
Parameters
idrequired
string
The feedback id
Response
id
string
The ID of the tier status record
user_id
string
The user ID
merchant_id
string
The merchant ID
location_id
string
Location ID
expires_at
string
Time the feedback expires in ISO8601-format
rating
integer
NPS score (null or 1-10)
review
string
Customer feedback
purchase
hash
The associated purchase record
curl https://api.thanxsandbox.com/feedbacks/590485d6f0 \
-X PATCH \
$AUTH_HEADERS
-d '{
"feedback": {
"rating": 10,
"review": "Lorem ipsum dolor sit amet"
}
}'
{
"feedback": {
"id": "590485d6f0",
"user_id": "fsjlk",
"merchant_id": "woeri34",
"location_id": "fgr2349gh",
"expires_at": "2020-01-07T20:00:00Z",
"rating": null,
"review": null,
"purchase": {
"id": "916895d48a",
"purchased_at": "2020-01-01T20:00:00Z",
"amount": 16.0,
"order": {
"id": "aepo3cme2p",
"provider": "OpenTender"
}
}
}
}
curl https://api.thanxsandbox.com/feedbacks/590485d6f0 \
-X PATCH \
$AUTH_HEADERS
-d '{
"feedback": {
"rating": 10,
"review": "Lorem ipsum dolor sit amet"
}
}'
{
"feedback": {
"id": "590485d6f0",
"user_id": "fsjlk",
"merchant_id": "woeri34",
"location_id": "fgr2349gh",
"expires_at": "2020-01-07T20:00:00Z",
"rating": null,
"review": null,
"purchase": {
"id": "916895d48a",
"purchased_at": "2020-01-01T20:00:00Z",
"amount": 16.0,
"order": {
"id": "aepo3cme2p",
"provider": "OpenTender"
}
}
}
}