Skip to main content
POST
Add an activity to a cart

Authorizations

Authorization
string
header
default:your_token_here
required

Restaurant-scoped partner API token passed as Authorization: Bearer <token>.

Path Parameters

id
string
required

Activity cart identifier.

Minimum string length: 1

Body

application/json
line
object
required

The activity added. Its external_id identifies the request: the same again answers the activity booked.

source
enum<string>
default:OTHER
Available options:
WALK_IN,
WEBSITE,
PHONE,
EMAIL,
RESERVE_WITH_GOOGLE,
TRAVEL_AGENCIES,
OTHER,
INSTAGRAM,
FACEBOOK,
TIKTOK,
SNAPCHAT,
WHATSAPP,
TRIPADVISOR,
PRIVATIZATION,
MISSED_CALL
comment
string | null
Maximum string length: 2000
tags
string[]
Maximum array length: 20
Minimum string length: 1
prescriber_id
string

The prescriber the booking is credited to; its exclusive offers can be booked.

Minimum string length: 1
audience
enum<string>
default:public

all: internal and exclusive offers can be booked. Requires ACTIVITIES_FORCE_INSERT.

Available options:
public,
all
payment
enum<string>
default:none

none: everything is paid on site. payment_link: the lines owed online are left for the guest to pay; the activity awaits its payment, and the cart gives payment_url. paid_elsewhere: you took the money; each line is recorded paid at the catalog price (provider PARTNER), requires PAYMENTS_WRITE and external_payment_reference. Refused on a product to approve without bypass_approval.

Available options:
none,
payment_link,
paid_elsewhere
external_payment_reference
string

Your payment or order id, kept on each paid line.

Required string length: 1 - 200

With payment_link: emails or messages the link to the guest now. false when you pass on payment_url yourself. Needs send_client_notifications.

bypass_availability
boolean
default:false

Takes a full slot, a time off the grid or a closed day — never one gone by. Requires ACTIVITIES_FORCE_INSERT.

bypass_approval
boolean
default:false

Confirms a product the restaurant approves otherwise. Requires ACTIVITIES_FORCE_CONFIRM.

send_client_notifications
boolean
default:true

Messages the guest now (confirmation or request) and later (reminder the day before). false when you tell the guest yourself.

send_staff_notifications
boolean
default:true

Tells the restaurant's team, as an online booking does. false requires ACTIVITIES_FORCE_INSERT.

Response

The cart, the activity added earlier under this external_id

data
object
required