List activity products
curl --request GET \
--url https://app.eat-now.io/api/partner/v1/activity-products \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.eat-now.io/api/partner/v1/activity-products"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.eat-now.io/api/partner/v1/activity-products', 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://app.eat-now.io/api/partner/v1/activity-products",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.eat-now.io/api/partner/v1/activity-products"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.eat-now.io/api/partner/v1/activity-products")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.eat-now.io/api/partner/v1/activity-products")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "prod_hammam",
"name": "Traditional hammam",
"name_i18n": {
"FR": "Hammam traditionnel",
"EN": "Traditional hammam"
},
"description": "Steam room, black soap and scrub.",
"description_i18n": {
"FR": "Bain de vapeur, savon noir et gommage.",
"EN": "Steam room, black soap and scrub."
},
"images": [
"https://cdn.example.com/hammam.jpg"
],
"category": {
"id": "cat_spa",
"name": "Spa"
},
"currency": "MAD",
"duration_minutes": 60,
"interval_minutes": 30,
"days_of_week": [],
"seasons": [],
"opening_times": [
{
"start_time": "10:00",
"end_time": "18:00"
}
],
"min_days_in_advance": null,
"max_days_in_advance": 60,
"confirmation": "AUTOMATIC",
"multi_variant_allowed": true,
"per_cover": true,
"resource_group": {
"id": "grp_cabins",
"name": "Cabins"
},
"internal": false,
"exclusive": false,
"payment": {
"online": true,
"deposit_percent": 100,
"price_visible": true,
"refundable": true
},
"fields": [
{
"key": "field-0",
"name": "Pressure",
"name_i18n": {
"FR": "Pression",
"EN": "Pressure"
},
"type": "SELECT",
"required": false,
"min": null,
"max": null,
"max_items": null,
"options": [
{
"value": "soft",
"label": "Soft"
},
{
"value": "firm",
"label": "Firm"
}
]
}
],
"variants": [
{
"id": "var_duo",
"name": "Duo",
"name_i18n": {
"FR": "Duo",
"EN": "Duo"
},
"price": 90000,
"covers_per_unit": 2,
"min_covers": null,
"max_covers": null,
"images": []
}
],
"extras": [
{
"id": "prod_oil",
"name": "Argan oil",
"name_i18n": {
"FR": "Huile d'argan",
"EN": "Argan oil"
},
"description": null,
"currency": "MAD",
"internal": false,
"exclusive": false,
"payment": {
"online": true,
"deposit_percent": 100,
"price_visible": true
},
"variants": [
{
"id": "var_oil",
"name": "Bottle",
"name_i18n": {
"FR": "Flacon",
"EN": "Bottle"
},
"price": 5000,
"covers_per_unit": 1,
"min_covers": null,
"max_covers": null,
"images": []
}
]
}
]
}
]
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}Activities
List activity products
Returns the activity products a booking can name, in portal order: their terms (duration, slot grid, days, seasons, booking window, confirmation), payment terms, the questions the portal asks (fields), variants with their price and add-ons (extras). Prices are in the smallest currency unit. The audience is the booking portal’s by default; prescriber_id reads it as that prescriber sees it, audience=all adds internal and exclusive offers. Read even when the booking portal is closed: to stop a partner, revoke its key. Requires CATALOG_ACTIVITIES_READ.
GET
/
api
/
partner
/
v1
/
activity-products
List activity products
curl --request GET \
--url https://app.eat-now.io/api/partner/v1/activity-products \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.eat-now.io/api/partner/v1/activity-products"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.eat-now.io/api/partner/v1/activity-products', 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://app.eat-now.io/api/partner/v1/activity-products",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.eat-now.io/api/partner/v1/activity-products"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.eat-now.io/api/partner/v1/activity-products")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.eat-now.io/api/partner/v1/activity-products")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "prod_hammam",
"name": "Traditional hammam",
"name_i18n": {
"FR": "Hammam traditionnel",
"EN": "Traditional hammam"
},
"description": "Steam room, black soap and scrub.",
"description_i18n": {
"FR": "Bain de vapeur, savon noir et gommage.",
"EN": "Steam room, black soap and scrub."
},
"images": [
"https://cdn.example.com/hammam.jpg"
],
"category": {
"id": "cat_spa",
"name": "Spa"
},
"currency": "MAD",
"duration_minutes": 60,
"interval_minutes": 30,
"days_of_week": [],
"seasons": [],
"opening_times": [
{
"start_time": "10:00",
"end_time": "18:00"
}
],
"min_days_in_advance": null,
"max_days_in_advance": 60,
"confirmation": "AUTOMATIC",
"multi_variant_allowed": true,
"per_cover": true,
"resource_group": {
"id": "grp_cabins",
"name": "Cabins"
},
"internal": false,
"exclusive": false,
"payment": {
"online": true,
"deposit_percent": 100,
"price_visible": true,
"refundable": true
},
"fields": [
{
"key": "field-0",
"name": "Pressure",
"name_i18n": {
"FR": "Pression",
"EN": "Pressure"
},
"type": "SELECT",
"required": false,
"min": null,
"max": null,
"max_items": null,
"options": [
{
"value": "soft",
"label": "Soft"
},
{
"value": "firm",
"label": "Firm"
}
]
}
],
"variants": [
{
"id": "var_duo",
"name": "Duo",
"name_i18n": {
"FR": "Duo",
"EN": "Duo"
},
"price": 90000,
"covers_per_unit": 2,
"min_covers": null,
"max_covers": null,
"images": []
}
],
"extras": [
{
"id": "prod_oil",
"name": "Argan oil",
"name_i18n": {
"FR": "Huile d'argan",
"EN": "Argan oil"
},
"description": null,
"currency": "MAD",
"internal": false,
"exclusive": false,
"payment": {
"online": true,
"deposit_percent": 100,
"price_visible": true
},
"variants": [
{
"id": "var_oil",
"name": "Bottle",
"name_i18n": {
"FR": "Flacon",
"EN": "Bottle"
},
"price": 5000,
"covers_per_unit": 1,
"min_covers": null,
"max_covers": null,
"images": []
}
]
}
]
}
]
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}