curl
curl -X PUT https://api.expys.com/v1/interests/<id>/intake \
-H "Authorization: Bearer YOUR_MEMBER_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"accessibility": "string",
"adults": 0,
"allergies": "string",
"blackoutDates": [
"string"
],
"children": 0,
"contactMethod": "APP_CHAT",
"contactWindow": "MORNING",
"dietary": "string",
"occasion": "BIRTHDAY",
"phone": "string",
"preferredDates": [
"string"
]
}'import requests
url = "https://api.expys.com/v1/interests/{id}/intake"
payload = {
"accessibility": "<string>",
"adults": 123,
"allergies": "<string>",
"blackoutDates": ["<string>"],
"children": 123,
"dietary": "<string>",
"phone": "<string>",
"preferredDates": ["<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({
accessibility: '<string>',
adults: 123,
allergies: '<string>',
blackoutDates: ['<string>'],
children: 123,
dietary: '<string>',
phone: '<string>',
preferredDates: ['<string>']
})
};
fetch('https://api.expys.com/v1/interests/{id}/intake', 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/interests/{id}/intake",
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([
'accessibility' => '<string>',
'adults' => 123,
'allergies' => '<string>',
'blackoutDates' => [
'<string>'
],
'children' => 123,
'dietary' => '<string>',
'phone' => '<string>',
'preferredDates' => [
'<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/interests/{id}/intake"
payload := strings.NewReader("{\n \"accessibility\": \"<string>\",\n \"adults\": 123,\n \"allergies\": \"<string>\",\n \"blackoutDates\": [\n \"<string>\"\n ],\n \"children\": 123,\n \"dietary\": \"<string>\",\n \"phone\": \"<string>\",\n \"preferredDates\": [\n \"<string>\"\n ]\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/interests/{id}/intake")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"accessibility\": \"<string>\",\n \"adults\": 123,\n \"allergies\": \"<string>\",\n \"blackoutDates\": [\n \"<string>\"\n ],\n \"children\": 123,\n \"dietary\": \"<string>\",\n \"phone\": \"<string>\",\n \"preferredDates\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.expys.com/v1/interests/{id}/intake")
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 \"accessibility\": \"<string>\",\n \"adults\": 123,\n \"allergies\": \"<string>\",\n \"blackoutDates\": [\n \"<string>\"\n ],\n \"children\": 123,\n \"dietary\": \"<string>\",\n \"phone\": \"<string>\",\n \"preferredDates\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"conversationId": "<string>",
"createdAt": "<string>",
"id": "<string>",
"intake": {
"adults": 123,
"blackoutDates": [
"<string>"
],
"children": 123,
"contactMethod": "APP_CHAT",
"contactWindow": "MORNING",
"occasion": "BIRTHDAY",
"phone": "<string>",
"phoneVerified": true,
"preferredDates": [
"<string>"
],
"sensitiveDetailsSentAt": "<string>"
},
"offer": "<string>",
"status": "<string>"
}Interests
Replace an interest's intake
Replaces the whole intake block, so send the complete answer each time. Dietary, allergy and accessibility answers are forwarded to the concierge team and are never stored: they are accepted here, they are not returned, and the response records only when they were sent.
PUT
/
v1
/
interests
/
{id}
/
intake
curl
curl -X PUT https://api.expys.com/v1/interests/<id>/intake \
-H "Authorization: Bearer YOUR_MEMBER_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"accessibility": "string",
"adults": 0,
"allergies": "string",
"blackoutDates": [
"string"
],
"children": 0,
"contactMethod": "APP_CHAT",
"contactWindow": "MORNING",
"dietary": "string",
"occasion": "BIRTHDAY",
"phone": "string",
"preferredDates": [
"string"
]
}'import requests
url = "https://api.expys.com/v1/interests/{id}/intake"
payload = {
"accessibility": "<string>",
"adults": 123,
"allergies": "<string>",
"blackoutDates": ["<string>"],
"children": 123,
"dietary": "<string>",
"phone": "<string>",
"preferredDates": ["<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({
accessibility: '<string>',
adults: 123,
allergies: '<string>',
blackoutDates: ['<string>'],
children: 123,
dietary: '<string>',
phone: '<string>',
preferredDates: ['<string>']
})
};
fetch('https://api.expys.com/v1/interests/{id}/intake', 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/interests/{id}/intake",
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([
'accessibility' => '<string>',
'adults' => 123,
'allergies' => '<string>',
'blackoutDates' => [
'<string>'
],
'children' => 123,
'dietary' => '<string>',
'phone' => '<string>',
'preferredDates' => [
'<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/interests/{id}/intake"
payload := strings.NewReader("{\n \"accessibility\": \"<string>\",\n \"adults\": 123,\n \"allergies\": \"<string>\",\n \"blackoutDates\": [\n \"<string>\"\n ],\n \"children\": 123,\n \"dietary\": \"<string>\",\n \"phone\": \"<string>\",\n \"preferredDates\": [\n \"<string>\"\n ]\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/interests/{id}/intake")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"accessibility\": \"<string>\",\n \"adults\": 123,\n \"allergies\": \"<string>\",\n \"blackoutDates\": [\n \"<string>\"\n ],\n \"children\": 123,\n \"dietary\": \"<string>\",\n \"phone\": \"<string>\",\n \"preferredDates\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.expys.com/v1/interests/{id}/intake")
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 \"accessibility\": \"<string>\",\n \"adults\": 123,\n \"allergies\": \"<string>\",\n \"blackoutDates\": [\n \"<string>\"\n ],\n \"children\": 123,\n \"dietary\": \"<string>\",\n \"phone\": \"<string>\",\n \"preferredDates\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"conversationId": "<string>",
"createdAt": "<string>",
"id": "<string>",
"intake": {
"adults": 123,
"blackoutDates": [
"<string>"
],
"children": 123,
"contactMethod": "APP_CHAT",
"contactWindow": "MORNING",
"occasion": "BIRTHDAY",
"phone": "<string>",
"phoneVerified": true,
"preferredDates": [
"<string>"
],
"sensitiveDetailsSentAt": "<string>"
},
"offer": "<string>",
"status": "<string>"
}Authorizations
ApiKeyBearerApiKeyHeader
Org-API-Key as a Bearer token.
Path Parameters
Body
application/json
A calendar date, YYYY-MM-DD. Not a datetime.
Available options:
APP_CHAT, SMS, EMAIL, PHONE Available options:
MORNING, AFTERNOON, EVENING, ANYTIME Available options:
BIRTHDAY, ANNIVERSARY, ENGAGEMENT, WEDDING, GRADUATION, PROMOTION, BUSINESS, OTHER A calendar date, YYYY-MM-DD. Not a datetime.