Skip to content

Bookings

This end point can be used to record bookings into Zoined service.

Operations

Upload list of bookings

Request

POST https://api.zoined.com/bookings?dryRun=false&separator=%3B&encoding=utf-8

Security
bearerAuth
Query
dryRunbooleanrequired

Only validate the request without storing the data

Example:dryRun=false
separatorstringrequired

Column separator used when loading CSV data

Example:separator=;
encodingstringrequired

Character encoding used in the CSV data (default is utf-8)

Example:encoding=utf-8
Body
Any of:
booking_idstringrequired

Unique ID for the booking

Example:"er/232/f31"
booking_line_idstringrequired

Secondary booking identifier

Example:"1"
customer_idstring

Customer ID for identified customer

Example:"32"
product_idstringrequired

Product ID

Example:"XYZ"
event_idstring

A (string, optional) - Optional ID for the event this booking is done for.

Example:"123"
organisation_idstringrequired

Organisation unit ID

Example:"540"
department_idstring

Department ID

Example:"54011"
salesperson_idstring

Sales person ID

Example:"5402101"
booked_quantitynumberrequired

Booked quantity

Example:2
number_of_guestsnumber

Number of guests booked

Example:2
number_of_visitsnumber

Number of visits allowed per guest within start and end dates.

Example:2
sales_valuenumberrequired

Total booking sales amount including tax

Example:20
sales_value_wo_vatnumber

Total booking sales amount without tax

Example:20
currencystring

Currency as ISO 4217 currency code. Required if multiple currencies are used.

Example:"EUR"
canceledboolean

True when this booking has been cancelled.

Example:false
booking_datestringrequired

Booking date (yyyy-mm-dd)

Example:"2020-03-01"
booking_timestring

Booking time (HH:mm:ss)

Example:"15:00:00"
event_start_datestringrequired

Event start date (yyyy-mm-dd)

Example:"2020-03-10"
event_start_timestring

Event start time (HH:mm:ss)

Example:"15:00:00"
event_end_datestring

Event end date (yyyy-mm-dd)

Example:"2020-03-11"
event_end_timestring

Event end time (HH:mm:ss)

Example:"15:00:00"
booking_typestringrequired

Booking type. Must be either event, ticket or room.

Example:"event"
custom_field_1string

Custom field 1

Example:"EU only"
custom_field_2string

Custom field 2

Example:"EU only"
custom_field_3string

Custom field 3

Example:"EU only"
custom_field_4string

Custom field 4

Example:"EU only"
custom_field_5string

Custom field 5

Example:"EU only"
custom_metric_1number

Custom metric 1

Example:1
custom_metric_2number

Custom metric 2

Example:100
custom_metric_3number

Custom metric 3

Example:2.2
custom_metric_4number

Custom metric 4

Example:1.05
custom_metric_5number

Custom metric 5

Example:10000
source_systemstring

Identifier of the source system this data is from. Needed when mapping between source system identifiers and master identifiers are used.

Example:"ABCDEF"
curl -i -X POST \
  'https://zapi-api.zoined.com/_mock/bookings?dryRun=false&separator=%3B&encoding=utf-8' \
  -H 'Authorization: Bearer <YOUR_token_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "booking_id": "er/232/f31",
    "booking_line_id": "1",
    "customer_id": "32",
    "product_id": "XYZ",
    "event_id": "123",
    "organisation_id": "540",
    "department_id": "54011",
    "salesperson_id": "5402101",
    "booked_quantity": 2,
    "number_of_guests": 2,
    "number_of_visits": 2,
    "sales_value": 20,
    "sales_value_wo_vat": 20,
    "currency": "EUR",
    "canceled": false,
    "booking_date": "2020-03-01",
    "booking_time": "15:00:00",
    "event_start_date": "2020-03-10",
    "event_start_time": "15:00:00",
    "event_end_date": "2020-03-11",
    "event_end_time": "15:00:00",
    "booking_type": "event",
    "custom_field_1": "EU only",
    "custom_field_2": "EU only",
    "custom_field_3": "EU only",
    "custom_field_4": "EU only",
    "custom_field_5": "EU only",
    "custom_metric_1": 1,
    "custom_metric_2": 100,
    "custom_metric_3": 2.2,
    "custom_metric_4": 1.05,
    "custom_metric_5": 10000,
    "source_system": "ABCDEF"
  }'

Responses

Request has been processed successfully.

Headers

  • Content-Type: application/json
Bodyapplication/json
statusstringrequired

Status of the operation OK / Not OK

Example:"OK"
msgstringrequired

Message describing result of operation

Example:"1 entity added"
Response
{ "status": "OK", "msg": "1 entity added" }