Cancel an activity cart
curl --request POST \
--url https://app.eat-now.io/api/partner/v1/activity-carts/{id}/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"reason": "Guest's flight cancelled"
}
EOFimport requests
url = "https://app.eat-now.io/api/partner/v1/activity-carts/{id}/cancel"
payload = { "reason": "Guest's flight cancelled" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: 'Guest\'s flight cancelled'})
};
fetch('https://app.eat-now.io/api/partner/v1/activity-carts/{id}/cancel', 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-carts/{id}/cancel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'reason' => 'Guest\'s flight cancelled'
]),
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://app.eat-now.io/api/partner/v1/activity-carts/{id}/cancel"
payload := strings.NewReader("{\n \"reason\": \"Guest's flight cancelled\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://app.eat-now.io/api/partner/v1/activity-carts/{id}/cancel")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"reason\": \"Guest's flight cancelled\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.eat-now.io/api/partner/v1/activity-carts/{id}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"reason\": \"Guest's flight cancelled\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"cart": {
"id": "cart_123",
"external_id": "GYG-48213",
"payment_url": null,
"activities": [
{
"id": "act_123",
"cart_id": "cart_123",
"external_id": null,
"cart_external_id": "GYG-48213",
"status": "CANCELED_BY_RESTAURANT",
"start_at": "2026-11-14T10:00:00+01:00",
"party_size": 2,
"source": "OTHER",
"product": {
"id": "prod_hammam",
"name": "Hammam traditionnel"
},
"variant": {
"id": "var_duo",
"name": "Duo"
},
"variants": [
{
"id": "var_duo",
"name": "Duo",
"quantity": 1
}
],
"assigned_staff": null,
"prescriber": {
"id": "presc_gyg",
"name": "GetYourGuide",
"phone_number": null
},
"customer": {
"id": "cus_123",
"name": "Nadia Benali",
"email": "nadia@example.com",
"phone_number": "+212600000000",
"lang": "FR"
},
"hotel_guest": null,
"additional_comment": null,
"metadata": {
"field-0": {
"name": "Pression",
"value": "soft"
}
},
"attached_files": [],
"tags": [],
"cancellation_reason": "Guest's flight cancelled",
"payment_summary": {
"currency": "MAD",
"total_amount": 90000,
"paid_amount": 90000,
"gift_card_amount": 0,
"authorized_amount": 0,
"pending_amount": 0,
"refunded_amount": 0,
"statuses": [
"PAID"
]
},
"payments": [
{
"id": "pay_123",
"provider_id": null,
"payment_type": "PREPAYMENT",
"payment_mode": "POSTAUTH",
"provider": "PARTNER",
"status": "PAID",
"amount": 90000,
"gift_card_amount": 0,
"quantity": 1,
"unit_price": 90000,
"percent_of_total": 1,
"currency": "MAD",
"is_refundable": true,
"external_reference": "GYG-PAY-48213",
"expiration_date": null,
"max_cancellation_date": null,
"authorized_at": null,
"capture_deadline": null,
"captured_at": null,
"voided_at": null,
"linked_product": {
"id": "prod_hammam",
"name": "Hammam traditionnel"
},
"linked_variant": {
"id": "var_duo",
"name": "Duo"
},
"created_at": "2026-11-02T09:12:00.000Z",
"updated_at": "2026-11-02T09:12:00.000Z"
}
],
"sensitive_data_included": true,
"created_at": "2026-11-02T09:12:00.000Z",
"updated_at": "2026-11-02T09:12:00.000Z"
}
]
},
"cancelled_ids": [
"act_123"
],
"money": [
{
"payment_id": "pay_123",
"activity_id": "act_123",
"outcome": "kept",
"reason": "keep_offline"
}
]
}
}{
"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": {}
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}Activities
Cancel an activity cart
Cancelled as the restaurant: a request, a booking, or one who came — a no-show or a refusal is an end (409). Money paid online is refunded by the product’s terms; money you took (PARTNER) stays as it is, yours to give back. Each paid line’s outcome is in money. Already cancelled: 200, nothing done. Requires ACTIVITIES_CANCEL.
POST
/
api
/
partner
/
v1
/
activity-carts
/
{id}
/
cancel
Cancel an activity cart
curl --request POST \
--url https://app.eat-now.io/api/partner/v1/activity-carts/{id}/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"reason": "Guest's flight cancelled"
}
EOFimport requests
url = "https://app.eat-now.io/api/partner/v1/activity-carts/{id}/cancel"
payload = { "reason": "Guest's flight cancelled" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: 'Guest\'s flight cancelled'})
};
fetch('https://app.eat-now.io/api/partner/v1/activity-carts/{id}/cancel', 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-carts/{id}/cancel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'reason' => 'Guest\'s flight cancelled'
]),
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://app.eat-now.io/api/partner/v1/activity-carts/{id}/cancel"
payload := strings.NewReader("{\n \"reason\": \"Guest's flight cancelled\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://app.eat-now.io/api/partner/v1/activity-carts/{id}/cancel")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"reason\": \"Guest's flight cancelled\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.eat-now.io/api/partner/v1/activity-carts/{id}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"reason\": \"Guest's flight cancelled\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"cart": {
"id": "cart_123",
"external_id": "GYG-48213",
"payment_url": null,
"activities": [
{
"id": "act_123",
"cart_id": "cart_123",
"external_id": null,
"cart_external_id": "GYG-48213",
"status": "CANCELED_BY_RESTAURANT",
"start_at": "2026-11-14T10:00:00+01:00",
"party_size": 2,
"source": "OTHER",
"product": {
"id": "prod_hammam",
"name": "Hammam traditionnel"
},
"variant": {
"id": "var_duo",
"name": "Duo"
},
"variants": [
{
"id": "var_duo",
"name": "Duo",
"quantity": 1
}
],
"assigned_staff": null,
"prescriber": {
"id": "presc_gyg",
"name": "GetYourGuide",
"phone_number": null
},
"customer": {
"id": "cus_123",
"name": "Nadia Benali",
"email": "nadia@example.com",
"phone_number": "+212600000000",
"lang": "FR"
},
"hotel_guest": null,
"additional_comment": null,
"metadata": {
"field-0": {
"name": "Pression",
"value": "soft"
}
},
"attached_files": [],
"tags": [],
"cancellation_reason": "Guest's flight cancelled",
"payment_summary": {
"currency": "MAD",
"total_amount": 90000,
"paid_amount": 90000,
"gift_card_amount": 0,
"authorized_amount": 0,
"pending_amount": 0,
"refunded_amount": 0,
"statuses": [
"PAID"
]
},
"payments": [
{
"id": "pay_123",
"provider_id": null,
"payment_type": "PREPAYMENT",
"payment_mode": "POSTAUTH",
"provider": "PARTNER",
"status": "PAID",
"amount": 90000,
"gift_card_amount": 0,
"quantity": 1,
"unit_price": 90000,
"percent_of_total": 1,
"currency": "MAD",
"is_refundable": true,
"external_reference": "GYG-PAY-48213",
"expiration_date": null,
"max_cancellation_date": null,
"authorized_at": null,
"capture_deadline": null,
"captured_at": null,
"voided_at": null,
"linked_product": {
"id": "prod_hammam",
"name": "Hammam traditionnel"
},
"linked_variant": {
"id": "var_duo",
"name": "Duo"
},
"created_at": "2026-11-02T09:12:00.000Z",
"updated_at": "2026-11-02T09:12:00.000Z"
}
],
"sensitive_data_included": true,
"created_at": "2026-11-02T09:12:00.000Z",
"updated_at": "2026-11-02T09:12:00.000Z"
}
]
},
"cancelled_ids": [
"act_123"
],
"money": [
{
"payment_id": "pay_123",
"activity_id": "act_123",
"outcome": "kept",
"reason": "keep_offline"
}
]
}
}{
"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": {}
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "<string>",
"request_id": "<string>",
"details": {}
}
}Authorizations
Body
application/json