curl
curl -X PUT https://api.expys.com/v1/redemptions/<id>/feedback \
-H "Authorization: Bearer YOUR_MEMBER_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"comment": "string",
"rating": 0
}'import requests
url = "https://api.expys.com/v1/redemptions/{id}/feedback"
payload = {
"rating": 123,
"comment": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({rating: 123, comment: '<string>'})
};
fetch('https://api.expys.com/v1/redemptions/{id}/feedback', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.expys.com/v1/redemptions/{id}/feedback",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'rating' => 123,
'comment' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.expys.com/v1/redemptions/{id}/feedback"
payload := strings.NewReader("{\n \"rating\": 123,\n \"comment\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.expys.com/v1/redemptions/{id}/feedback")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"rating\": 123,\n \"comment\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.expys.com/v1/redemptions/{id}/feedback")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"rating\": 123,\n \"comment\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"canceledNote": "<string>",
"canceledReason": "SOLD_OUT",
"conversationId": "<string>",
"createdAt": "<string>",
"endAt": "<string>",
"feedback": {
"comment": "<string>",
"rating": 123,
"submittedAt": "<string>"
},
"id": "<string>",
"offer": "<string>",
"startAt": "<string>",
"status": "<string>"
}Redemptions
Record a member's rating for a completed experience
0-10, the NPS scale. Only accepted once the redemption is COMPLETED - a score against a booking still awaiting a vendor is feedback about waiting, not about an experience. Submitting again replaces the previous answer.
PUT
/
v1
/
redemptions
/
{id}
/
feedback
curl
curl -X PUT https://api.expys.com/v1/redemptions/<id>/feedback \
-H "Authorization: Bearer YOUR_MEMBER_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"comment": "string",
"rating": 0
}'import requests
url = "https://api.expys.com/v1/redemptions/{id}/feedback"
payload = {
"rating": 123,
"comment": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({rating: 123, comment: '<string>'})
};
fetch('https://api.expys.com/v1/redemptions/{id}/feedback', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.expys.com/v1/redemptions/{id}/feedback",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'rating' => 123,
'comment' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.expys.com/v1/redemptions/{id}/feedback"
payload := strings.NewReader("{\n \"rating\": 123,\n \"comment\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.expys.com/v1/redemptions/{id}/feedback")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"rating\": 123,\n \"comment\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.expys.com/v1/redemptions/{id}/feedback")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"rating\": 123,\n \"comment\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"canceledNote": "<string>",
"canceledReason": "SOLD_OUT",
"conversationId": "<string>",
"createdAt": "<string>",
"endAt": "<string>",
"feedback": {
"comment": "<string>",
"rating": 123,
"submittedAt": "<string>"
},
"id": "<string>",
"offer": "<string>",
"startAt": "<string>",
"status": "<string>"
}Authorizations
ApiKeyBearerApiKeyHeader
Org-API-Key as a Bearer token.
Path Parameters
Response
Response for status 200
Available options:
SOLD_OUT, VENDOR_DECLINED, DATE_UNAVAILABLE, MEMBER_REQUESTED, EXPIRED, OTHER Show child attributes
Show child attributes