Feedbacks
Update Feedback
PATCH

/feedbacks/:id

Bearer*
curl --request PATCH \
  --url https://api.thanx.com/feedbacks/:id \
  --header 'Authorization: Bearer <token>' \
  --data '{
  "rating": 0
}'

Parameters

idrequired
string

The feedback id

Parameters

ratingrequired
integer

NPS Score, 1-10

review
string

Customer feedback

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": "weorifsdf",
    "merchant_id": "9a1f0772c",
    "location_id": "fgr2349gh",
    "expires_at": "2020-01-07T20:00:00Z",
    "rating": 10,
    "review": "Lorem ipsum dolor sit amet",
    "purchase": {
      "id": "wourhfiwer",
      "purchased_at": "2020-01-01T20:00:00Z",
      "amount": 9.99,
      "order": {
        "id": "aepo3cme2p",
        "provider": "OpenTender"
      }
    }
  }
}