NAV
cURL javascript

Introduction

Welcome to the Ezus API. Our API follows REST principles, offering a set of HTTP methods that serve as the foundation for Ezus' core functionalities. Its primary purpose is to empower you to programmatically manage your Ezus projects, clients, catalog (suppliers, products, packages), and invoices.

If you're seeking an overview of common use cases achievable through our API, feel free to explore our help center's Integrations section for valuable insights.

For those ready to delve into the details of available methods, you're in the right place. This documentation presents a technical reference for each method in the left-hand section, complemented by code examples in the right-hand section.

While each method possesses its unique specifications, here are some general guidelines:

For any request, you must provide Header Parameters

For GET requests, ensure you also provide the required query parameters

For POST/PUT/PATCH/DELETE requests, structure your request's body parameters in JSON format (application/json): a query parameter is refused on these requests, login and token aside (see Body only)

Authentication

Principles

Ezus API employs a robust authentication scheme that leverages API Keys and Bearer authentication. To interact with the Ezus API effectively, you'll need two crucial elements:

API key

Ezus uses API keys to control access to its API. To obtain your <YOUR_API_KEY>, kindly request it from your account manager. Every request you make to the Ezus API must include this API key as the x-api-key header parameter, like so:

x-api-key: <YOUR_API_KEY>

A user allowed to edit the settings of your account can display the key, and regenerate it, in Ezus under Settings > Developers. Regenerating a key, or a revocation by Ezus, stops the previous key at once: every request still sending it is refused, so update your integrations with the new key, which is accepted within about a minute.

Bearer Authentication

Upon successfully calling the /login endpoint with valid credentials, you will receive a bearer token, referred to as <YOUR_TOKEN>. This token remains valid for a duration of 12 hours. The Ezus API requires this bearer token to be included in the Authorization header parameter of all subsequent requests.

Authorization: Bearer <YOUR_TOKEN>

POST login

To initiate authentication, your first step is to make a request to the /login endpoint:

curl --location 'https://api.ezus.app/login' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "email": "<YOUR_EMAIL>",
    "password": "<YOUR_PASSWORD>"
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  email: "<YOUR_EMAIL>",
  password: "<YOUR_PASSWORD>",
};
const headers = { "x-api-key": "<YOUR_API_KEY>" };

axios.post(baseUrl + "/login", body, headers);

This request returns a structured JSON object:

{
  "error": "false",
  "message": "ok",
  "token": "<YOUR_TOKEN>",
  "authorization_code": "<YOUR_AUTHORIZATION_CODE>"
}

In subsequent requests, remember to replace <YOUR_TOKEN> in the Authorization header parameter with the token you received during this authentication process.

HTTP Endpoint

POST https://api.ezus.app/login

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key

Body Parameters (application/json)

Parameter Type Description
email String Required Your account email
password String Required Your account password

Response

A JSON object indicating whether an error occurred during the process, along with the associated message. If successful, it also returns a token that you must retain for future API requests, as well as an authorization_code.

The authorization_code is a single-use code valid for 5 minutes, intended to be exchanged on the /token endpoint. If you only use the bearer token, you can safely ignore this field.

POST token

To exchange your authorization code for tokens, make a request to the /token endpoint:

curl --location 'https://api.ezus.app/token' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "grant_type": "authorization_code",
    "code": "<YOUR_AUTHORIZATION_CODE>"
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  grant_type: "authorization_code",
  code: "<YOUR_AUTHORIZATION_CODE>",
};
const headers = { "x-api-key": "<YOUR_API_KEY>" };

axios.post(baseUrl + "/token", body, headers);

This request returns a structured JSON object:

{
  "error": "false",
  "access_token": "<YOUR_ACCESS_TOKEN>",
  "refresh_token": "<YOUR_REFRESH_TOKEN>",
  "token_type": "Bearer",
  "expires_in": 43200
}

Use the access_token as your Bearer token in the Authorization header of subsequent requests. When it expires, call /token again with grant_type set to refresh_token and your refresh_token to obtain new tokens.

HTTP Endpoint

POST https://api.ezus.app/token

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key. Must be the key the code or refresh token was issued for.

Body Parameters (application/json)

Parameter Type Description
grant_type String Required authorization_code or refresh_token
code String Required if grant_type=authorization_code The authorization_code returned by /login
refresh_token String Required if grant_type=refresh_token The refresh_token returned by your last /token call

Response

A JSON object containing an access_token (same format and 12-hour lifetime as the token returned by /login), a new refresh_token, the token_type and the access token lifetime in seconds.

Refresh tokens are single-use and valid for 90 days: every call to /token invalidates the code or refresh token you presented and returns a new refresh_token (you should store the one from the latest response). Presenting an already-used code or refresh token revokes all tokens issued from the same authorization flow, and you will need to authenticate again through /login.

GET me

Returns the authentication context of your call: the user your bearer token belongs to, its account, the lifetime of the token, and what the role of that user grants. Add include=config to also receive the configuration of the account, and include=quota the daily quota of your API key.

curl --location 'https://api.ezus.app/me' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.get(baseUrl + "/me", headers);

This request returns a structured JSON object:

{
  "error": "false",
  "user": {
    "email": "tommy@e-corp.com",
    "first_name": "Tommy",
    "last_name": "Atkins",
    "role": "admin"
  },
  "account": {
    "name": "E-Corp Travels",
    "currency": "EUR"
  },
  "token": {
    "issued_at": "2026-09-19T10:00:00Z",
    "expires_at": "2026-09-19T22:00:00Z"
  },
  "scopes": {
    "projects": "333",
    "clients": "310",
    "travellers": "333",
    "suppliers": "333",
    "invoices": "300",
    "tasks": "333",
    "catalog": "333",
    "models": "300",
    "library": "333",
    "invoices_suppliers": "300",
    "territories": "333",
    "categories": "333",
    "invoices_finalize": "000",
    "invoices_stats": "000",
    "stripe_payments": "000",
    "projects_close": "333",
    "steps_catalog": "333",
    "settings": "000",
    "billing_team": "000",
    "export": "333",
    "templates_edit": "333",
    "client_space": "333"
  },
  "server_time": "2026-09-19T10:12:03Z"
}

HTTP Endpoint

GET https://api.ezus.app/me

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Query Parameters

Parameter Type Description
include String Comma-separated list of objects to add to the response. Possible values: config, quota. Without it, the response carries neither object; any other value is refused with an error

Response

A JSON object that contains your authentication context.

Property Type Description
user JSON The user your token was issued for (Authenticated User)
account JSON The account this user works for (Account)
token JSON Lifetime of your bearer token (Token)
scopes JSON What the role of this user grants (Scopes)
server_time String Current server time, UTC
config JSON Configuration of the account, only with include=config (Config)
quota JSON Daily quota of your API key, only with include=quota (Quota)

Projects

GET projects

Returns a list of your projects, sorted from the most recent to the oldest, with the newest projects appearing first. The list of projects returned is paginated, 50 projects per page by default: choose any size from 1 to 250 with the limit query parameter, and call the route with the next_token query parameter to get the next page. Add include=financials to also receive the figures of each project's main alternative.

curl --location 'https://api.ezus.app/projects' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.get(baseUrl + "/projects", headers);

This request returns a structured JSON object:

{
  "error": "false",
  "next_token": "<NEXT_TOKEN>",
  "size": 338,
  "data_size": 50,
  "page": 1,
  "projects": [
    {
      "reference": "project_reference",
      "info_number": "202306001-P",
      "info_title": "Paris fashion week 2024",
      "info_stage_reference": "confirmed",
      "info_stage": "Confirmed",
      "info_notes": "Jane has verbally confirmed our quotation",
      "trip_date_in": "2024-03-01",
      "trip_date_out": "2024-03-09",
      "trip_duration": 8,
      "trip_people": "15",
      "currency": "€",
      "created_at": "2024-06-18",
      "updated_at": "2024-06-19",
      "sales_manager": {
        "email": "travel-design@e-corp.com",
        "first_name": "Alice",
        "last_name": "Tate",
        "agency": "Paris Agency"
      },
      "project_manager": {
        "email": "no-reply@e-corp.com",
        "first_name": "Joe",
        "last_name": "Shmoe",
        "agency": "Paris Agency"
      },
      "client": {
        "reference": "client_reference",
        "type": "enterprise",
        "company_name": "MOKE INTERNATIONAL LIMITED",
        "first_name": "Jane",
        "last_name": "Doe",
        "email": "contact@moke-international.com"
      }
    }
  ]
}

HTTP Endpoint

GET https://api.ezus.app/projects

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Query Parameters

Parameter Type Description
next_token String Specify this parameter if you want to retrieve the following elements of a given list query
limit Number Number of projects per page, any integer from 1 to 250. Defaults to 50. Any other value is refused with an error. The next_token keeps it for the next pages.
info_stage_reference String You can filter projects that are in a specific stage. The stage of the project must be indicated by its technical name
trip_date_in Date You can filter projects assigned to a specific or an intersection of trip start date. Expected format: “YYYY-MM-DD” or “YYYY-MM-DD,YYYY-MM-DD”. See Date Format for more details.
trip_date_out Date You can filter projects assigned to a specific or an intersection of trip end date. Expected format: “YYYY-MM-DD” or “YYYY-MM-DD,YYYY-MM-DD”. See Date Format for more details.
created_at Date You can filter projects assigned to a specific or an intersection of creation date. Expected format: “YYYY-MM-DD” or “YYYY-MM-DD,YYYY-MM-DD”. See Date Format for more details.
updated_at Date You can filter projects assigned to a specific or an intersection of last update date. Expected format: “YYYY-MM-DD” or “YYYY-MM-DD,YYYY-MM-DD”. See Date Format for more details.
sales_manager String Provide either the sales manager's email address or "None". Expected format: "john.doe@e-corp.com" or "None".
project_manager String Provide either the project manager's email address or "None". Expected format: "john.doe@e-corp.com" or "None".
from_programs_catalog Boolean Optional. Defaults to false. When set to true, retrieves all projects from the programs catalog.
include String Comma-separated list of objects to add to each project. Possible values: financials. Without it, the projects carry no financials object; any other value is refused with an error. The next_token keeps it for the next pages
info_number Dynamic filter Filter on the project's info_number.
info_title Dynamic filter Filter on the project's info_title.
client_reference Linked-record filter Exact match. Filter projects by the reference of their client.
client_name Linked-record filter + Dynamic filter Filter on the company_name of the project's client: the company name, or the name of an individual client.
destination String Exact match. Filter projects by the reference of their main destination, the trip_destination_reference of their main alternative (GET destinations). A project with several destinations is listed for its main one only. A reference that matches no destination of your account is refused with the error destination does not match any destination of your account. The next_token keeps it for the next pages.
subdestination String Exact match. Filter projects by the reference of their main sub-destination, the trip_subdestination_reference of their main alternative. A reference that matches no sub-destination of your account is refused with the error subdestination does not match any subdestination of your account. Combined with destination, only the projects matching both are listed. The next_token keeps it for the next pages.

Response

A JSON object containing the project information with properties like:

Property Type Description
next_token String A token will be returned if all projects have not been returned. Use it in another call to access the following projects
size Number The total number of projects available with these filters
data_size Number Number of projects returned on the current page
page Number The page number
projects Array An array of JSON objects, each representing a project. Each object follows the GET project response structure, with two differences: the alternatives and custom_fields arrays are omitted ; the main alternative's trip_date_in, trip_date_out, trip_duration, trip_people and client are returned directly at the project level. With include=financials, each project also carries a financials object (Project Financials).

GET project

This API endpoint retrieves detailed information about a specific project in Ezus. Add include=config to also receive the settings its prices are computed with.

curl --location 'https://api.ezus.app/project?reference=project_reference' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.get(baseUrl + "/project?reference=project_reference", headers);

This request returns a structured JSON object:

{
  "error": "false",
  "reference": "project_reference",
  "info_number": "202306001-P",
  "info_title": "Paris fashion week 2024",
  "info_stage_reference": "confirmed",
  "info_stage": "Confirmed",
  "info_notes": "Jane has verbally confirmed our quotation",
  "currency": "€",
  "created_at": "2024-06-18",
  "updated_at": "2024-06-19",
  "sales_manager": {
    "email": "travel-design@e-corp.com",
    "first_name": "Alice",
    "last_name": "Tate",
    "agency": "Paris Agency"
  },
  "project_manager": {
    "email": "no-reply@e-corp.com",
    "first_name": "Joe",
    "last_name": "Shmoe",
    "agency": "Paris Agency"
  },
  "alternatives": [
    {
      "reference": "550e8400-e29b-41d4-a716-446655440000",
      "alternative_title": "Main Alternative",
      "lang": "fr-FR",
      "is_main": true,
      "is_sig": false,
      "trip_date_in": "2024-03-01",
      "trip_date_out": "2024-03-09",
      "trip_duration": 9,      
      "trip_people": "15",
      "trip_destination_reference": "destination_reference",
      "trip_destination": "France",
      "trip_subdestination_reference ": "subdestination_reference",
      "trip_subdestination": "Paris",
      "trip_budget": 90000,
      "budget_actual": 88750,
      "budget_actual_excl_taxes ": 77950,
      "budget_margin_gross": 2500,
      "budget_margin_net": 1000,
      "global_commissions": [
        {
          "reference": "referral-2026",
          "title": "Business referral commission",
          "direction": "retroceded",
          "value_mode": "rate",
          "base": "sales",
          "value": 10.0,
          "supplier_reference": "supplier_reference",
          "filename": null,
          "file_url": null
        }
      ],
      "budget_purchases": 74500,
      "financial_invoiced": 48000,
      "financial_collected": 48000,
      "financial_purchases": 72820,
      "financial_spendings": 12820,
      "destinations": {
        "size": 3,
        "data": [
          {
            "reference": "destination_reference",
            "name": "France",
            "subdestination_reference": "subdestination_reference",
            "subdestination_name": "Paris"
          },
          {
            "reference": "destination_reference",
            "name": "France",
            "subdestination_reference": "subdestination_reference1-2",
            "subdestination_name": "Lyon"
          },
          {
            "reference": "destination_reference2",
            "name": "Italy",
            "subdestination_reference": "subdestination_reference2-1",
            "subdestination_name": "Milan"
          }
        ]
      },
      "client": {
        "reference": "client_reference",
        "type": "enterprise",
        "company_name": "MOKE INTERNATIONAL LIMITED",
        "first_name": "Jane",
        "last_name": "Doe",
        "email": "contact@moke-international.com"
      },
      "client_space": {
        "is_live": true,
        "url": "https://custom-domain.com/your-space-slug",
        "description": "Description of the client space",
        "image_url": "https://image.jpg"
      },
      "brand": {
        "title": "INTERNATIONAL LIMITED",
        "company_name": "MOKE INTERNATIONAL LIMITED",
        "address": {
          "label": "58 Rue de Paradis",
          "city": "Paris",
          "country": "France",
          "zip": "75010"
        },
        "email": "travel-design@e-corp.com",
        "phone": "0101010101",
        "website": "www.moke_ltd.com",
        "vat_number": "GB 240-635-038",
        "company_number": "09728676"
      }
    }
  ],
  "custom_fields": [
    {
      "name": "CustomField",
      "value": "Value"
    }
  ]
}

HTTP Endpoint

GET https://api.ezus.app/project

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Query Parameters

Parameter Type Description
reference String Required The reference of the project to retrieve
include String Comma-separated list of objects to add to the response. Possible values: config. Without it, the response carries no config object; any other value is refused with an error

Response

A JSON object containing the project information with properties like:

Property Type Description
reference String The reference of the project
info_number String File number that appears in the project record. Not to be confused with reference
info_title String The title of the project
info_stage_reference String Technical name of the stage of the project (confirmed, received, paid...)
info_stage String The stage of the project (Confirmed, Received, Paid...)
info_notes String Notes on the project
currency String Default currency of the project
created_at Date Date of creation
updated_at Date Date of the last update
sales_manager JSON JSON object representing the sales manager (User)
project_manager JSON JSON object representing the project manager (User)
alternatives Array Array of JSON alternatives (Alternatives)
custom_fields Array Array of JSON custom fields (Custom fields)
config JSON Pricing settings of the project, only with include=config (Project Config)

GET project-documents

Returns the list of documents of your project, sorted from the most recent to the oldest.

curl --location 'https://api.ezus.app/project-documents?reference=project_reference' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.get(baseUrl + "/project-documents?reference=project_reference", headers);

This request returns a structured JSON object:

{
  "error": "false",
  "reference": "project_reference",
  "alternative_order": "0",
  "documents": [
    {
      "type": "proposal",
      "title": "Proposal - Lisbon",
      "url": "https://docs.google.com/presentation/d/1wR8W39GHAX54-uNvDN8sZYZRfdN7c2S1vePVoS7owsg/export?format=pdf",
      "reference": "9b2f4c1e-6a8d-4f0b-8c3e-2d7a5e1f9b40",
      "status": "ready",
      "google_url": "https://docs.google.com/presentation/d/1wR8W39GHAX54-uNvDN8sZYZRfdN7c2S1vePVoS7owsg"
    },
    {
      "type": "custom",
      "title": "documentName",
      "url": "https://ezus.io/2023_101010.pdf",
      "reference": null,
      "status": "ready",
      "google_url": null
    }
  ]
}

HTTP Endpoint

GET https://api.ezus.app/project-documents

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Query Parameters

Parameter Type Description
reference String Required The reference of the project to retrieve documents from
alternative_order Number Specifies the alternative order in the project to retrieve documents from. If not provided, defaults to 0 for main alternative

Response

A JSON object containing the project documents information with properties like:

Property Type Description
reference String The reference of the project
alternative_order Number The alternative order; 0 is for main alternative
documents Array Array of JSON documents (Project Documents), the most recently created first

GET project-steps

Returns the list of steps of your project, sorted from the most recent to the oldest. The list is paginated, 10 steps per page by default: choose any size from 1 to 100 with the limit query parameter, and call the route with the next_token query parameter to get the next page.

curl --location 'https://api.ezus.app/project-steps?reference=project_reference' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.get(baseUrl + "/project-steps?reference=project_reference", headers);

This request returns a structured JSON object:

{
  "error": "false",
  "next_token": "<NEXT_TOKEN>",
  "reference": "project_reference",
  "alternative_order": "0",
  "size": 1,
  "data_size": 1,
  "page": 1,
  "steps": [
    {
      "reference": "activity_reference",
      "sample_step_reference": "sample_step_reference",
      "type": "activity",
      "name": "activityTitle",
      "category": "restaurant",
      "category_reference": "restaurant",
      "date_start": "2024-10-01 10:00:00",
      "date_end": "2024-10-01 12:00:00",
      "people": 4,
      "visual_url": "https://docs.google.com/presentation/d/10GoT7nVkSIScaHUQEPh-EyUms5o6D7bcgUYsJlyql94",
      "address": {
        "label": "58 Rue de Paradis",
        "city": "Paris",
        "state": "Île-de-France",
        "country": "France",
        "zip": "75010",
        "geo": {
          "x": 48.875761,
          "y": 2.348727
        }
      },
      "description": {
        "short": "Short description of the activity",
        "long": "Long description of the activity"
      },
      "items": [
        {
          "reference": "item_reference",
          "name": "item_title",
          "product_reference": "product_reference",
          "supplier_reference": "supplier_reference",
          "quantity": 2,
          "quantity_formula": "[P/2]",
          "purchase_price": 150,
          "purchase_price_excl_taxes": 125,
          "sales_price": 200,
          "sales_price_excl_taxes": 166.67,
          "is_optional": false,
          "option": null,
          "notes": "Notes about the item",
          "booked": false
        }
      ],
      "items_count": 1,
      "medias": ["https://image.jpg", "https://image2.jpg"],
      "custom_fields": [
        {
          "name": "CustomField",
          "value": "Value"
        }
      ]
    }
  ],
  "supplements": {
    "fees": [
      {
        "reference": "fee_reference",
        "label": "Main fee",
        "mode": "flat",
        "value": 2000,
        "amount": 2000,
        "amount_excl_taxes": 1666.67,
        "notes": "Some notes"
      }
    ],
    "discounts": [
      {
        "reference": "discount_reference",
        "label": "Main discount",
        "mode": "percentage",
        "value": 10,
        "amount": 1000,
        "amount_excl_taxes": 833.33,
        "notes": "Some notes"
      }
    ]
  }
}

HTTP Endpoint

GET https://api.ezus.app/project-steps

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Query Parameters

Parameter Type Description
next_token String Specify this parameter if you want to retrieve the following steps of a given list query.
limit Number Number of steps per page, any integer from 1 to 100. Defaults to 10. Any other value is refused with an error. The next_token keeps it for the next pages.
page_size Number Former name of limit, still accepted. Sending both is refused with an error.
reference String Required The reference of the project to retrieve documents from
alternative_order Number Specifies the alternative order in the project to retrieve documents from. If not provided, defaults to 0 for main alternative
from_steps_catalog Boolean Optional. Defaults to false. When set to true, retrieves all the sample steps and overrides the reference and alternative_order query parameters
name Dynamic filter Filter on the step's name.
type String Filter on the step's type. Possible values: activity, accommodation, transport, extra.
category Dynamic filter Filter on the step's category.
category_reference String Filter on the reference of the step's category, the value given as category to POST project-steps-upsert.
destination_name Dynamic filter Filter on the name of the step's destination. Only with from_steps_catalog=true: on a project, it is refused with an error.
subdestination_name Dynamic filter Filter on the name of the step's subdestination. Only with from_steps_catalog=true: on a project, it is refused with an error.
supplier_reference Linked-record filter Filter on the reference of a supplier of the step, as the step search of the Ezus app does: the supplier of the step for an accommodation or a transport; for an activity or an extra, the supplier of one of its items linked to a product, or the supplier of that product.
supplier_company_name Linked-record filter + Dynamic filter Filter on the company_name of a supplier of the step, chosen as for supplier_reference.
tags String Comma-separated list of tag references (GET tags). Returns the steps that carry every listed tag, or at least one of them with tags_match=any.
tags_match String How the tags listed in tags combine. Possible values: all (default), the step carries every tag; any, the step carries at least one. Any other value is refused with an error.
exclude String Comma-separated list of step properties to leave out of each step, to lighten the response. Possible values: reference, sample_step_reference, type, name, category, category_reference, date_start, date_end, people, visual_url, address, destination, supplier, description, langs, items, items_count, medias, custom_fields, tags, duration_minutes, created_at, updated_at. Any other value is refused with an error. The next_token keeps it for the next pages.
duration_minutes Dynamic number filter Filter on the duration of the step in minutes, from date_start to date_end. Extras and steps without hours or without an end never match.
created_at Dynamic date filter Filter on the step creation date.
updated_at Dynamic date filter Filter on the step last update date.

All filters are cumulative (AND): a step must match every supplied filter to be returned. The next_token keeps them for the next pages.

Response

A JSON object containing the project documents information with properties like:

Property Type Description
next_token String A token will be returned if all project steps have not been returned. Use it in another call to access the following ones
reference String The reference of the project
alternative_order Number The alternative order; 0 is for main alternative
size Number The total number of projects available with these filters
data_size Number Number of steps returned on the current page, at most limit
page Number The page number
steps Array Array of JSON steps (Steps)
supplements JSON JSON object containing the fees and discounts supplements of the project (Supplements)

GET project-travellers

Returns the list of travellers in your project.

curl --location 'https://api.ezus.app/project-travellers?reference=project_reference' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.get(baseUrl + "/project-travellers?reference=project_reference", headers);

This request returns a structured JSON object:

{
  "error": "false",
  "reference": "project_reference",
  "alternative_order": 0,
  "size": "2",
  "travellers": [
    {
      "reference": "traveller_reference",
      "email": "emily.johnson@example.com",
      "first_name": "Emily",
      "last_name": "Johnson",
      "phone": "+1-555-123-4567",
      "project_group_reference": "project_group_reference",
      "custom_field1": "value1.1",
      "custom_field2": "value2.1"
    },
    {
      "reference": "traveller_reference",
      "email": "michael.smith@example.com",
      "first_name": "Michael",
      "last_name": "Smith",
      "phone": "+1-555-987-6543",
      "project_group_reference": null,
      "custom_field1": "value1.2",
      "custom_field2": "value2.2"
    }
  ]
}

HTTP Endpoint

GET https://api.ezus.app/project-travellers

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Query Parameters

Parameter Type Description
reference String Required The reference of the project to retrieve travellers from
alternative_order Number Specifies the alternative order in the project to retrieve travellers from. If not provided, defaults to 0 for main alternative

Response

A JSON object containing the project travellers information with properties like:

Property Type Description
reference String The reference of the project
alternative_order Number The alternative order; 0 is for main alternative
size Number Total travellers in the project
travellers Array Array of JSON travellers (Travellers)

GET project-groups

Returns the groups of your project in group mode (GIR), with their travellers, lines and invoices, and what no group holds.

curl --location 'https://api.ezus.app/project-groups?reference=project_reference' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.get(baseUrl + "/project-groups?reference=project_reference", headers);

This request returns a structured JSON object:

{
  "error": "false",
  "reference": "project_reference",
  "alternative_order": 0,
  "size": 1,
  "groups": [
    {
      "reference": "project_group_reference",
      "name": "Group A",
      "pax": 1,
      "primary_traveller_reference": "traveller_reference",
      "travellers": [
        {
          "reference": "traveller_reference",
          "first_name": "Emily",
          "last_name": "Johnson",
          "email": "emily.johnson@example.com"
        }
      ],
      "items": [
        {
          "reference": "item_reference",
          "project_step_reference": "project_step_reference",
          "name": "item_title",
          "pax": 1,
          "quantity": 3
        }
      ],
      "invoices": [
        {
          "reference": "invoice_reference"
        }
      ]
    }
  ],
  "unattributed": {
    "travellers": [
      {
        "reference": "traveller_reference",
        "first_name": "Michael",
        "last_name": "Smith",
        "email": "michael.smith@example.com"
      }
    ],
    "items": [
      {
        "reference": "item_reference",
        "project_step_reference": "project_step_reference",
        "name": "item_title"
      }
    ],
    "invoices": []
  }
}

HTTP Endpoint

GET https://api.ezus.app/project-groups

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Query Parameters

Parameter Type Description
reference String Required The reference of the project to retrieve groups from
alternative_order Number Specifies the alternative order in the project to retrieve groups from. If not provided, defaults to 0 for main alternative

Response

Property Type Description
reference String The reference of the project
alternative_order Number The alternative order; 0 is for main alternative
size Number Number of groups of the alternative
groups Array Array of JSON groups (Groups)
unattributed JSON What no group of the alternative holds (Unattributed)

POST projects-upsert

This API endpoint can create, duplicate, or update a project. If the provided reference matches an existing project, that project is updated. If no match is found, a new project is created using the provided reference, or a randomly generated one if none is supplied and project_reference is not provided. When project_reference is specified, a new project is created by duplicating the existing project identified by project_reference with the provided reference or a random one.

Error messages

curl --location 'https://api.ezus.app/projects-upsert' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data-raw '{
    "reference": "project_reference",
    "project_reference": "project_type_reference",
    "info_number": "202306001-P",
    "info_title": "Paris fashion week 2024",
    "info_stage_reference": "received",
    "info_notes": "Jane has verbally confirmed our quotation",
    "trip_date_in": "2023-03-01",
    "trip_date_out": "2023-03-09",
    "trip_budget": "90000",
    "trip_people": "15",
    "sales_manager_email": "travel-design@e-corp.com",
    "client_reference": "client_reference",
    "trip_destination_reference": "destination_reference",
    "trip_subdestination_reference": "subdestination_reference",
    "custom_fields": [
        {"name": "field_name", "value": "field_value" }
    ]
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  reference: "project_reference",
  project_reference: "project_type_reference",
  info_number: "202306001-P",
  info_title: "Paris fashion week 2024",
  info_stage_reference: "received",
  info_notes: "Jane has verbally confirmed our quotation",
  trip_date_in: "2023-03-01",
  trip_date_out: "2023-03-09",
  trip_budget: "90000",
  trip_people: "15",
  sales_manager_email: "travel-design@e-corp.com",
  client_reference: "client_reference",
  trip_destination_reference: "destination_reference",
  trip_subdestination_reference: "subdestination_reference",
  custom_fields: [{ name: "field_name", value: "field_value" }],
};
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/projects-upsert", body, headers);

This request returns a structured JSON object:

{
  "error": "false",
  "message": "ok",
  "action": "Project successfully created",
  "reference": "project_reference",
  "info_number": "202306001-P",
  "client_reference": "client_reference"
}

HTTP Endpoint

POST https://api.ezus.app/projects-upsert

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

Parameter Type Description
reference String If provided, the unique reference associated with the project you want to update or create (or a random one will be generated). It must be a maximum of 300 characters.
mode String Optional. upsert (default) updates the project matching reference, or creates it when none matches. create answers the existing project when reference matches one (Duplicates). update requires reference and fails with a REFERENCE_NOT_FOUND error when none matches. Nothing is created or updated when the call fails.
project_reference String If provided, the project_reference is used to duplicate an existing project. For the duplication to succeed, the reference field must not match any existing project. If the info_number, info_title, info_stage_reference, trip_budget, trip_people, sales_manager_email and client_reference fields are filled in, they are used. The fields trip_date_in and trip_date_out are skipped. Every alternative is copied with its steps and their items, including the names and descriptions of the steps in every language (langs).
info_number String File number that appears in the project record. Not to be confused with reference. At most 100 characters.
info_title String Title of the project. This parameter is required if you create a new project. At most 100 characters, line breaks and tabs counted as spaces.
info_stage_reference String Stage of the project: Please use the technical name of the stage you intend to apply. If no specific stage is found, a default stage will be automatically assigned upon adding the project.
info_notes String Notes on the project. On creation, the default project notes of your account are used when it is not provided. On update, the notes are left unchanged when it is not provided. Not used when project_reference duplicates a project: the copy keeps the notes of the duplicated project. At most 65,535 bytes once encoded in UTF-8.
trip_date_in Date Date of the project's start in "YYYY-MM-DD" format (only settable when creating a new project). If not provided or if not formatted correctly, or if duration > 40 days or if trip_date_in > trip_date_out, project will be set as 1 day and trip_date_in as today.
trip_date_out Date Date of the project's end in "YYYY-MM-DD" format (only settable when creating a new project). If not provided or if not formatted correctly, or if duration > 40 days or if trip_date_in > trip_date_out, project will be set as 1 day and trip_date_out as today.
trip_budget Number Forecasted budget for the project
trip_people Number Number of people in the project (only settable when creating a new project)
sales_manager_email Email Email of an active Ezus user of your account, set as the sales manager of the project. An unknown email, or the email of a deleted or deactivated user, is rejected.
client_reference String Reference or email of an existing client in your Ezus account to link to the project (only settable when creating a new project)
trip_destination_reference String Reference of the destination to link to the project. To reset the destination, you can put '0'.
trip_subdestination_reference String Reference of the sub-destination to link to the project. To reset the sub-destination, you can put '0'. If the trip_destination_reference is not provided, the trip_subdestination_reference will be ignored.
custom_fields Array Array of JSON custom fields (Custom fields)

Response

A JSON object indicating whether an error occurred during the process, along with the associated message.

Property Type Description
action String Indicates type of project action was created, or Project already exists (Duplicates)
reference String The reference for the project, which you should store for future updates or retrievals
info_number String File number that appears in the project record. Not to be confused with reference
client_reference String The reference for the client, which you should store for future updates or retrievals

POST projects-commissions-upsert

This API endpoint creates or updates a global commission of an alternative (Commissions). If the provided reference matches a commission of the alternative, that commission is updated: the fields you leave out keep their value. Otherwise a commission is created with that reference. The commissions of a closed project cannot change.

Error messages

curl --location 'https://api.ezus.app/projects-commissions-upsert' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data '{
    "project_reference": "project_reference",
    "alternative_order": 0,
    "reference": "referral-2026",
    "mode": "upsert",
    "title": "Business referral commission",
    "direction": "retroceded",
    "value_mode": "rate",
    "base": "sales",
    "value": 10,
    "supplier_reference": "supplier_reference"
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  project_reference: "project_reference",
  alternative_order: 0,
  reference: "referral-2026",
  mode: "upsert",
  title: "Business referral commission",
  direction: "retroceded",
  value_mode: "rate",
  base: "sales",
  value: 10,
  supplier_reference: "supplier_reference",
};
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/projects-commissions-upsert", body, headers);

This request returns a structured JSON object:

{
  "error": "false",
  "message": "ok",
  "action": "created",
  "reference": "referral-2026",
  "commission": {
    "reference": "referral-2026",
    "title": "Business referral commission",
    "direction": "retroceded",
    "value_mode": "rate",
    "base": "sales",
    "value": 10.0,
    "supplier_reference": "supplier_reference",
    "filename": null,
    "file_url": null
  }
}

HTTP Endpoint

POST https://api.ezus.app/projects-commissions-upsert

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

Parameter Type Description
project_reference String Required Reference of the project
alternative_order Number Order of the alternative in the project. 0 targets the main alternative and the value falls back to 0 if not specified
reference String Required Reference of the commission within the alternative, which you should store for future updates. It must be a maximum of 36 characters
mode String Optional. upsert (default) updates the commission matching reference, or creates it when none matches. create answers the existing commission when reference matches a commission of the alternative (Duplicates). update fails with a REFERENCE_NOT_FOUND error when none matches
title String Title of the commission, at most 255 characters. Required on a creation
direction String received or retroceded. Required on a creation
value_mode String rate or amount. Required on a creation
base String sales, purchase or margin_gross. Required with a rate, ignored with an amount
value Number Percentage (at most 100) for a rate, amount in the project currency for an amount. Positive, at most 2 decimals. Required on a creation
supplier_reference String Reference of a supplier of your account. null removes the supplier
file_link String https URL of a publicly reachable file (at most 100 MB). Ezus downloads it and stores a copy, linked in file_url. null removes the attached file
filename String Name of the attached file, at most 255 characters. With file_link, defaults to the last segment of its path. Without file_link, renames the file already attached

Response

A JSON object indicating whether an error occurred during the process, along with the associated message.

Property Type Description
action String created or updated, or Commission already exists (Duplicates)
reference String The reference of the commission
commission JSON The commission as saved (Commissions). Absent with Commission already exists

DELETE projects-commissions-delete

It deletes a global commission of an alternative if the provided reference matches one of its commissions. The commissions of a closed project cannot change.

Error messages

curl --request "DELETE" \
--location 'https://api.ezus.app/projects-commissions-delete' \
--header 'X-API-KEY: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data '{
    "project_reference": "project_reference",
    "alternative_order": 0,
    "reference": "referral-2026"
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  project_reference: "project_reference",
  alternative_order: 0,
  reference: "referral-2026",
};
const headers = {
  "X-API-KEY": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.delete(baseUrl + "/projects-commissions-delete", { data: body, headers });

This request returns a structured JSON object:

{
  "error": "false",
  "message": "ok",
  "action": "deleted",
  "reference": "referral-2026"
}

HTTP Endpoint

DELETE https://api.ezus.app/projects-commissions-delete

Header Parameters

Parameter Type Description
X-API-KEY String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

Parameter Type Description
project_reference String Required Reference of the project
alternative_order Number Order of the alternative in the project. 0 targets the main alternative and the value falls back to 0 if not specified
reference String Required Reference of the commission to delete

Response

A JSON object indicating whether an error occurred during the process, along with the associated message.

Property Type Description
action String deleted
reference String The reference of the commission

POST project-documents-create

This API endpoint generates a PDF document from a given link within the specified project.

curl --location 'https://api.ezus.app/project-documents-create' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data '{
    "project_reference": "project_reference",
    "title": "Document PDF",
    "link": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  project_reference: "project_reference",
  title: "Document PDF",
  result:
    "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",
};
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/project-documents-create", body, headers);

This request returns a structured JSON object:

{
  "error": "false",
  "result": "<LINK>"
}

HTTP Endpoint

POST https://api.ezus.app/project-documents-create

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

Parameter Type Description
project_reference String Required The project reference in which you want to create a document
title String Title of the document. At most 200 characters.
link Link Required URL of the document, a PDF. It must be an https:// URL on port 443 of a publicly reachable file; http:// URLs are refused. Redirects are followed to such URLs only, 3 at most. The file must download within 20 seconds and weigh at most 100 MB.

Response

A JSON object indicating whether an error occurred during the process, along with the associated message.

Property Type Description
result Link The URL link of the document after uploading the document

POST project-steps-upsert

This endpoint updates an existing step when the provided reference matches a step in your account. If no match is found, a new step is created using the provided reference, or a randomly generated one if none is supplied. Note that the following fields are used only during creation and are ignored on update: project_reference, alternative_order, type, date_start, date_end.

Use the field from_steps_catalog to update an existing sample step when the provided reference matches a sample step in your account. If no match is found, a new sample step is created using the provided reference, or a randomly generated one if none is supplied. Note that the dates provided are not stored as they are, but are normalised to January 1950. The delta between date_end and date_start must not exceed the number of days in the sample steps catalog. Dates can only be modified if both date_start and date_end are specified. Note that the following fields are ignored during creation and update: project_reference, alternative_order. Note that the following fields are used only during creation and are ignored on update: type.

Use the field sample_step_reference to create a step in a project from a sample step of the catalog. The step is a copy of the sample step: title, type, category, people, address, descriptions, items, medias and custom fields. Only reference, project_reference, alternative_order, date_start, date_end, custom_fields and langs are read from the request; custom_fields and langs are applied on top of the copied ones, and every other field is ignored. The sample step must be available in the language of the project (one of the languages set on the sample step in the steps catalog). This field can only be used to create a step, not to update one, and cannot be combined with from_steps_catalog. The sample step a project step was created from is returned by GET project-steps.

curl --location 'https://api.ezus.app/project-steps-upsert' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data '{
    "from_steps_catalog": false,
    "reference": "project_step_reference",
    "project_reference": "project_reference",
    "alternative_order": 0,
    "name": "activity Title",
    "type": "activity",
    "category": "restaurant",
    "people": "4",
    "date_start": "2025-10-03 10:00:00",
    "date_end": "2025-10-03 12:00:00",
    "address": {
        "label": "58 Rue de Paradis",
        "city": "Paris",
        "state": "Île-de-France",
        "country": "France",
        "zip": "75010",
        "geo": {
            "x": 48.875761,
            "y": 2.348727
        }
    },
    "description": {
      "short": "Short description of the activity",
      "long": "Long description of the activity"
    },
    "custom_fields": [
      {"name": "field_name", "value": "field_value"}
    ]
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  from_steps_catalog: false,
  reference: "project_step_reference",
  project_reference: "project_reference",
  alternative_order: 0,
  name: "activity Title",
  type: "activity",
  category: "restaurant",
  people: "4",
  date_start: "2025-10-03 10:00:00",
  date_end: "2025-10-03 12:00:00",
  address: {
    label: "58 Rue de Paradis",
    city: "Paris",
    state: "Île-de-France",
    country: "France",
    zip: "75010",
    geo: {
      x: 48.875761,
      y: 2.348727,
    },
  },
  description: {
    short: "Short description of the activity",
    long: "Long description of the activity",
  },
  custom_fields: [{ name: "field_name", value: "field_value" }],
};
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/project-steps-upsert", body, headers);
curl --location 'https://api.ezus.app/project-steps-upsert' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data '{
    "from_steps_catalog": true,
    "reference": "project_sample_step_reference",
    "name": "activity Title",
    "type": "activity",
    "category": "restaurant",
    "people": "4",
    "date_start": "2025-10-03 10:00:00",
    "date_end": "2025-10-03 12:00:00",
    "address": {
        "label": "58 Rue de Paradis",
        "city": "Paris",
        "state": "Île-de-France",
        "country": "France",
        "zip": "75010",
        "geo": {
            "x": 48.875761,
            "y": 2.348727
        }
    },
    "custom_fields": [
      {"name": "field_name", "value": "field_value"}
    ]
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  from_steps_catalog: true,
  reference: "project_sample_step_reference",
  name: "activity Title",
  type: "activity",
  category: "restaurant",
  people: "4",
  date_start: "2025-10-03 10:00:00",
  date_end: "2025-10-03 12:00:00",
  address: {
    label: "58 Rue de Paradis",
    city: "Paris",
    state: "Île-de-France",
    country: "France",
    zip: "75010",
    geo: {
      x: 48.875761,
      y: 2.348727,
    },
  },
  custom_fields: [{ name: "field_name", value: "field_value" }],
};
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/project-steps-upsert", body, headers);
curl --location 'https://api.ezus.app/project-steps-upsert' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data '{
    "sample_step_reference": "sample_step_reference",
    "project_reference": "project_reference",
    "alternative_order": 0,
    "date_start": "2025-10-03 10:00:00",
    "date_end": "2025-10-03 12:00:00"
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  sample_step_reference: "sample_step_reference",
  project_reference: "project_reference",
  alternative_order: 0,
  date_start: "2025-10-03 10:00:00",
  date_end: "2025-10-03 12:00:00",
};
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/project-steps-upsert", body, headers);

This request returns a structured JSON object:

{
  "error": "false",
  "message": "ok",
  "action": "Project step successfully created",
  "reference": "project_step_reference"
}

HTTP Endpoint

POST https://api.ezus.app/project-steps-upsert

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

Parameter Type Description
from_steps_catalog Boolean Optional. Default to false. When set to true, create or update sample step from catalog.
sample_step_reference String Optional. The reference of a sample step of the catalog to create the step from. Only used to create a step: the request is rejected on update, when the reference does not match a sample step of your account, when the sample step is not available in the language of the project, or when from_steps_catalog is true. With this field, project_reference, date_start and date_end are the only required fields; name, type, category, people and address are ignored and come from the sample step.
reference String If provided, the unique reference associated to the step you want to update. If you specify a reference during creation, this value will be used as the step reference. It must be a maximum of 64 characters.
mode String Optional. upsert (default) updates the step matching reference, or creates it when none matches. create answers the existing step when reference matches one (Duplicates). update requires reference and fails with a REFERENCE_NOT_FOUND error when none matches. Nothing is created or updated when the call fails.
project_reference String The project reference in which you want to create an step. This field is ignored during update or when using the from_steps_catalog field.
alternative_order Number Specifies the alternative project order from which to create or update the step. If not provided, defaults to 0 for main alternative. A string of digits such as "1" is accepted too. This field is required to create a step. This field is ignored during update or when using the from_steps_catalog field.
name String Title of the step. This field is required to create a step. This field is optional on update. At most 200 characters.
type String Three options exist: accom, activity, transport. This field is required to create a step. This field is ignored on update.
category String Category of the step. You must provide the technical name of the category. If not specified during creation, the default value will be the main category of the account.
people Number or String Number of people in the step: a whole number from 0 to 15000, or P for the number of people in the project. A string of digits such as "4" is accepted too. Without people, or with null, a created step takes P and an updated step keeps its value.
date_start String Start date and time of the step. Must be within the dates of the alternative where the step is created. This field is required to create a step. This field is ignored on step update. This field can be completed when updating a sample step, but both dates are required. The date format must be as follows, e.g.: 2024-10-01 12:00:00.
date_end String End date and time of the step. Must be within the dates of the alternative where the step is created. This field is required to create a step. This field is ignored on step update. This field can be completed when updating the sample step, but both dates are required. The date format must be as follows, e.g.: 2024-10-01 12:00:00.
address Object JSON object address (Address). No field is mandatory: send at least one of label, zip, city, state, country or geo (x latitude, y longitude). label is at most 1000 characters, zip 10, city, state and country 100. The object replaces the whole address of the step: a field left out, empty or null is cleared, coordinates included. Send "0" to remove the address; without address, or with null, the address is kept. {} and "" are refused. Ignored with sample_step_reference.
description JSON JSON object representing the short and long description of the step. short is at most the short description length of your account (500 characters by default) and never more than 5000 characters. long is at most the long description length of your account (5000 characters by default) and never more than 65,535 bytes once encoded in UTF-8.
langs Array Optional. Array of JSON langs (Langs) for the name and descriptions of the step in each language. Each lang must be activated on your account. A lang sent only updates the fields it carries: the other langs, and the fields left out, keep their value. A lang that the step does not have yet is added. The lang the step is written in, the language of the project for a project step, also sets the name and description of the step: each field it carries replaces the one sent in name or description.
custom_fields Array An array of JSON custom fields (Custom fields) for the step. Each name is the reference of a custom field of the category of the step, as listed in Step Categories. A field the category does not carry is refused, naming it, and nothing is written.

Response

A JSON object indicating whether an error occurred during the process, along with the associated message.

Property Type Description
action String If the step has been updated or created, or Project step already exists (Duplicates)
reference String The reference of the activity that was created or updated

POST project-steps-items-upsert

This endpoint allows you to create or update multiple items within project step(s) in batch mode (maximum 100 items per request). The endpoint works in upsert mode: if the provided reference matches an existing item in your account and belongs to the specified step, the item is updated. Otherwise, a new item is created.

curl --location 'https://api.ezus.app/project-steps-items-upsert' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data '[
    {
        "project_step_reference": "project_step_reference",
        "name": "item_creation_minimal"
    },
    {
        "project_step_reference": "project_step_reference",
        "reference": "item_reference",
        "product_reference": "product_reference",
        "name": "item_update_maximal",
        "quantity": 2,
        "currency": "USD",
        "purchase_price": 150,
        "sales_price": 200,
        "vat_rate": 20,
        "vat_regime": "classic",
        "option_reference": "option_reference"
    },
    {
        "project_step_reference": "project_step_reference",
        "name": "item_creation_quantity_formula",
        "quantity": "[P/2]*N"
    }
]'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = [
  {
    project_step_reference: "project_step_reference",
    name: "item_creation_minimal",
  },
  {
    project_step_reference: "project_step_reference",
    reference: "item_reference",
    product_reference: "product_reference",
    name: "item_update_maximal",
    quantity: 2,
    currency: "USD",
    purchase_price: 150,
    sales_price: 200,
    vat_rate: 20,
    vat_regime: "classic",
    option_reference: "option_reference",
  },
  {
    project_step_reference: "project_step_reference",
    name: "item_creation_quantity_formula",
    quantity: "[P/2]*N",
  },
];
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/project-steps-items-upsert", body, headers);

This request returns a structured JSON object:

{
  "error": "false",
  "message": "ok",
  "action": "2 items successfully created ; 1 item successfully updated",
  "references": [
    "project_step_item_reference",
    "item_reference",
    "project_step_item_formula_reference"
  ],
  "results": [
    {
      "error": "false",
      "message": "ok",
      "action": "Item successfully created",
      "reference": "project_step_item_reference"
    },
    {
      "error": "false",
      "message": "ok",
      "action": "Item successfully updated",
      "reference": "item_reference"
    },
    {
      "error": "false",
      "message": "ok",
      "action": "Item successfully created",
      "reference": "project_step_item_formula_reference"
    }
  ]
}

Error response example:

{
  "error": "true",
  "message": "Invalid input detected: item[0].'vat_regime'. It must be classic, margin or none. The operation could not be processed due to this error"
}

HTTP Endpoint

POST https://api.ezus.app/project-steps-items-upsert

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

The request body must be an array of item objects (maximum 100 items).

Parameter Type Description
project_step_reference String Required The project step reference in which you want to create or update an item. Must match a valid, non-deleted step belonging to your account.
reference String If provided, the unique reference associated to the item you want to update. If you specify a reference during creation, this value will be used as the item reference (max 64 characters). If not provided, a UUID v4 is automatically generated.
mode String Optional, per item. upsert (default) updates the item matching reference, or creates it when none matches. create answers the existing item when reference matches one (Duplicates). update requires reference and fails with a REFERENCE_NOT_FOUND error when none matches. One failing item rejects the whole request before anything is written; the message lists the references at fault.
product_reference String Reference of the product to link to the item. This field is optional. If provided, it must match a valid product reference in your account. When linking a product to your item, it will inherit its name, quantity, currency, purchase_price, sales_price, vat_rate and vat_regime by default on the creation only.
name String Title of the item. Cannot be empty. This field is required to create an item if the product_reference is not provided. This field is optional on update. At most 200 characters.
quantity Number or String Quantity of the item: a non-negative number, or a formula as a string (e.g. "P*2") of at most 100 characters once its spaces and leading zeros are removed, see Quantity formula. Default value on creation: 1, or the product's quantity when product_reference is provided. If this item is linked to a product, it will trigger a tariff recalculation based on the product's pricing rules.
currency String Currency ISO code (e.g., USD, EUR). Default value on creation: the project's sales currency. Must be present in the project's currencies else it will throw an error.
purchase_price Number The unit purchase price of the item (including taxes). Default value on creation: 0. See Price behavior for more details.
sales_price Number The unit sales price of the item (including taxes). Default value on creation: 0. See Price behavior for more details.
vat_rate Number VAT rate in percentage (e.g., 20 for 20%). Default value on creation: the project's vat_rate.
vat_regime String VAT regime: classic, margin, or none. Default value on creation: the project's VAT regime.
option_reference String Reference of an option, from options in Custom Field Definitions. The item then no longer contributes to the final price. On update, null removes the option. Default value on creation: no option, even when the account's default mention is one.

Response

A JSON object indicating whether an error occurred during the process, along with the associated message.

Property Type Description
action String Summary of actions performed (e.g., "1 item successfully created ; 1 item successfully updated ; 1 item already exists", the last part only when an item already exists)
references Array List of references of the items that were created or updated (UUIDs for auto-generated, provided references otherwise)
results Array The answer of each item, in the order of the list: Item successfully created, Item successfully updated or Item already exists (Lists)

Quantity formula

A string quantity is a formula, evaluated with the values of the project and of the step, as in the Ezus app. The formula is stored with the item, as when it is typed in the app. Spaces are removed. Variables are case-sensitive: uppercase for the project, lowercase for the step.

The default quantity of a product (POST products-upsert) is written the same way. An item created with product_reference and no quantity takes that formula as its own: [P/2]*n, in a step of 3 nights of a project of 5 people, gives a quantity of 9 and a quantity_formula of "[P/2]*n".

Element Meaning
P Number of people in the project
T Number of people in the group, for a project in group mode (GIR): the quantity is the sum over the groups. Otherwise equal to P
D Number of days in the project
N Number of nights in the project
p Number of people in the step
d Number of days in the step
n Number of nights in the step
+ - * / Operators
( ) Parentheses
[ ] Rounded up to the next integer, e.g. [P/2]

Numbers can use . or , as decimal separator. A formula holds at most one [ ], and at most one ( ) inside it and one outside it; neither nests in itself: [P/2]*[N/2], (P+1)*(N+1) and [[P/2]*N] are rejected. A formula that is not made of these elements, or that divides by zero, is rejected: Quantity must be a non-negative number or a valid formula.

Price behavior

When creating an item here are the following rules that will apply if the project is in "Per product" calculation mode:

For project in "Global" calculation mode:

POST project-travellers-create

Creates travellers for a project.

This endpoint replaces all existing travellers for the selected project alternative.
If the project already has travellers, they will be deleted and replaced by the travellers provided in this request.

Note: When creating travellers with custom fields, only custom fields of type text are currently supported.

Note: Travellers can only be created if the project's defined number of travelers is greater than or equal to the number of travellers provided in the request. If the input exceeds the project's traveler count, the request will be rejected.

curl --location 'https://api.ezus.app/project-travellers-create' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data '{
    "reference": "project_reference",
    "alternative_order": 0,
    "travellers": [
      {
        "email": "emily.johnson@example.com",
        "first_name": "Emily",
        "last_name": "Johnson",
        "phone": "+1-555-123-4567",
        "custom_field1": "value1.1",
        "custom_field2": "value2.1"
      }
    ]
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  reference: "project_reference",
  alternative_order: 0,
  travellers: [
    {
      email: "emily.johnson@example.com",
      first_name: "Emily",
      last_name: "Johnson",
      phone: "+1-555-123-4567",
      custom_field1: "value1.1",
      custom_field2: "value2.1",
    },
  ],
};
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/project-travellers-create", body, headers);

This request returns a structured JSON object:

{
  "error": "false",
  "message": "ok",
  "action": "Travellers successfully created"
}

HTTP Endpoint

POST https://api.ezus.app/project-travellers-create

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

Parameter Type Description
reference String Required The project reference in which you want to create travellers
alternative_order Number Specifies the alternative order in the project to create travellers from. If not provided, defaults to 0 for main alternative
travellers Array Array of JSON travellers (Travellers)

Response

A JSON object indicating whether an error occurred during the process, along with the associated message.

Property Type Description
action String If the travellers have been created

Travellers

GET travellers

Returns a list of your travellers, sorted by creation date from newest to oldest, with the most recently created travellers appearing first. The list returned is paginated, 50 travellers per page by default: choose any size from 1 to 250 with the limit query parameter, and call the route with the next_token query parameter to get the next page.

curl --location 'https://api.ezus.app/travelllers' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.get(baseUrl + "/travellers", headers);

This request returns a structured JSON object:

{
  "error": "false",
  "next_token": "<NEXT_TOKEN>",
  "size": 363,
  "data_size": 50,
  "page": 1,
  "travellers": [
    {
      "reference": "<TRAVELLER_REFERENCE>",
      "created_at": "2026-08-24 01:23:45",
      "updated_at": "2026-08-24 12:34:56",
      "first_name": "John",
      "last_name": "Smith",
      "email": "john.smith@travellers.example",
      "phone": "+1-555-123-4567",
      "projects": [
        {
          "project_reference": "<PROJECT_REFERENCE>",
          "alternative_reference": "<ALTERNATIVE_REFERENCE>"
        }
      ],
      "my_custom_field": "my custom value"
    }
  ]
}

HTTP Endpoint

GET https://api.ezus.app/travellers

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Query Parameters

Parameter Type Description
next_token String Specify this parameter if you want to retrieve the following elements of a given list query
limit Number Number of travellers per page, any integer from 1 to 250. Defaults to 50. Any other value is refused with an error. The next_token keeps it for the next pages.

Response

A JSON object containing the project information with properties like:

Property Type Description
next_token String A token will be returned if all travellers have not been returned. Use it in another call to access the following travellers
size Number The total number of travellers available with these filters
data_size Number Number of travellers returned on the current page
page Number The page number
travellers Array An array of JSON objects, each representing a traveller.

Clients

GET clients

Returns a list of your clients, sorted from the newest to the oldest, with the most recent clients appearing first. The list of clients returned is paginated, 50 clients per page by default: choose any size from 1 to 250 with the limit query parameter, and call the route with the next_token query parameter to get the next page. Call it with include to also get, for each client, its custom fields (custom_fields) and contacts (contacts), in the format of GET client. They combine: include=custom_fields,contacts.

curl --location 'https://api.ezus.app/clients' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.get(baseUrl + "/clients", headers);

This request returns a structured JSON object:

{
  "error": "false",
  "next_token": "<NEXT_TOKEN>",
  "size": 338,
  "data_size": 50,
  "page": 1,
  "clients": [
    {
      "reference": "client_reference",
      "info_number": "202306001-C",
      "type": "enterprise",
      "company_name": "MOKE INTERNATIONAL LIMITED",
      "info_notes": "This prospect looks interesting to follow",
      "website": "www.moke_ltd.com",
      "vat_number": "GB 240-635-038",
      "company_number": "09728676",
      "predefined_net_margin_rate": 15,
      "user": {
        "email": "tommy@e-corp.com",
        "first_name": "Tommy",
        "last_name": "Atkins",
        "agency": "Paris Agency"
      },
      "email": "contact@moke-international.com",
      "first_name": "Jane",
      "last_name": "Doe",
      "address": {
        "label": "58 Rue de Paradis",
        "city": "Paris",
        "state": "Île-de-France",
        "country": "France",
        "zip": "75010",
        "geo": {
          "x": 48.875761,
          "y": 2.348727
        }
      }
    }
  ]
}

HTTP Endpoint

GET https://api.ezus.app/clients

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Query Parameters

Parameter Type Description
next_token String Specify this parameter if you want to retrieve the following elements of a given list query.
limit Number Number of clients per page, any integer from 1 to 250. Defaults to 50. Any other value is refused with an error. The next_token keeps it for the next pages.
include String Comma-separated list of objects to add to each client. Possible values: custom_fields, contacts. The next_token keeps it for the next pages; any other value is refused with an error.
reference Dynamic filter You can filter clients with a specific reference
info_number Dynamic filter You can filter clients with a specific info_number, file number that appears in the client record. Not to be confused with reference
type String You can filter clients by their type. Either enterprise or individual
email Dynamic filter You can filter clients by email. This filter works for both enterprise clients (uses the main contact’s email) and individual clients

Response

A JSON object containing the client information with properties like:

Property Type Description
next_token String A token will be returned if all clients have not been returned. Use it in another call to access the following clients
size Number The total number of clients available with these filters
data_size Number Number of clients returned on the current page
page Number The page number
clients Array An array of JSON objects, each representing a client. These objects are formatted according to a simplified version of the GET client response structure. (GET client). With include=custom_fields, each client also carries its custom_fields (Custom fields), and with include=contacts its contacts (Contacts)

GET client

This API endpoint retrieves detailed information about a specific client in Ezus.

curl --location 'https://api.ezus.app/client?reference=client_reference' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.get(baseUrl + "/client?reference=client_reference", headers);

This request returns a structured JSON object:

{
  "error": "false",
  "reference": "client_reference",
  "info_number": "202306001-C",
  "type": "enterprise",
  "company_name": "MOKE INTERNATIONAL LIMITED",
  "info_notes": "This prospect looks interesting to follow",
  "website": "www.moke_ltd.com",
  "vat_number": "GB 240-635-038",
  "company_number": "09728676",
  "predefined_net_margin_rate": 15,
  "user": {
    "email": "tommy@e-corp.com",
    "first_name": "Tommy",
    "last_name": "Atkins",
    "agency": "Paris Agency"
  },
  "email": "contact@moke-international.com",
  "first_name": "Jane",
  "last_name": "Doe",
  "address": {
    "label": "58 Rue de Paradis",
    "city": "Paris",
    "state": "Île-de-France",
    "country": "France",
    "zip": "75010",
    "geo": {
      "x": 48.875761,
      "y": 2.348727
    }
  },
  "projects": {
    "data": [
      {
        "reference": "project_reference",
        "info_title": "Project title"
      }
    ],
    "size": 1
  },
  "contacts": {
    "data": [
      {
        "reference": "contact_reference",
        "email": "contact@moke.com",
        "first_name": "Jane",
        "last_name": "Doe",
        "title": "CEO",
        "gender": "Ms",
        "phone": "0101010101",
        "phone2": "0606060606",
        "birth_date": "1986-09-17",
        "is_main": true
      },
      {
        "reference": "contact_reference",
        "email": "bob@proton.me",
        "first_name": "Bob",
        "last_name": "Morane",
        "title": "Project Manager",
        "gender": "Mr",
        "phone": "0202020202",
        "phone2": "0707070707",
        "birth_date": "1985-10-18",
        "is_main": false
      }
    ],
    "size": 2
  },
  "custom_fields": [
    {
      "name": "CustomField",
      "value": "Value"
    }
  ]
}

HTTP Endpoint

GET https://api.ezus.app/client

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Query Parameters

Parameter Type Description
reference String Required The reference of the client to retrieve

Response

A JSON object containing the client information with properties like:

Property Type Description
reference String The reference of the client
info_number String File number that appears in the client record. Not to be confused with reference
type String The type of the client (either "enterprise" or "individual")
company_name String Name of the client's company (if applicable)
info_notes String Notes on the client
website String Website of the client
vat_number String VAT number of the client (only for "enterprise" clients)
company_number String Company registration number of the client (only for "enterprise" clients)
predefined_net_margin_rate Number Predefined net margin rate in percentage (e.g., 15 for 15%). Leave blank '' if not set
user JSON JSON object representing the user (User) associated with the client
email String Email of the main contact at the client's organization
first_name String First name of the main contact at the client's organization
last_name String Last name of the main contact at the client's organization
address JSON JSON object representing the address (Address) of the client
projects JSON Projects linked to the client (returns the first 10 projects)
contacts Array An array of JSON contacts (Contacts) associated with the client
custom_fields Array An array of JSON custom fields (Custom fields) for the client

POST clients-upsert

This API endpoint updates a client record if the provided reference or email matches an existing client in your account. If no match is found, a new client record is created with the provided reference, or a randomly generated one if no reference is supplied. The client's email can be used as the primary key for upsert operations.

Duplicate Prevention Rules

Error messages

curl --location 'https://api.ezus.app/clients-upsert' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data-raw '{
    "reference": "client_reference",
    "info_number": "202306001-C",
    "type": "enterprise",
    "company_name": "MOKE INTERNATIONAL LIMITED",
    "website": "www.moke_ltd.com",
    "info_notes": "This prospect looks interesting to follow",
    "vat_number": "FR 32 123456789",
    "company_number": "362 521 879 00034",
    "user": "sam@proton.me",
    "contact": {
        "mode": "upsert_main",
        "email": "contact@moke-international.com",
        "first_name": "Jane",
        "last_name": "Doe",
        "title": "CEO",
        "gender": "Ms",
        "phone": "0101010101",
        "phone2": "0606060606",
        "birth_date": "1986-09-17"
    },
    "address": {
        "label": "58 Rue de Paradis",
        "city": "Paris",
        "state": "Île-de-France",
        "country": "France",
        "zip": "75010",
        "geo": {
            "x": 48.875761,
            "y": 2.348727
        }
    },
    "custom_fields": [
        {"name": "field_name", "value": "field_value"}
    ]
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  reference: "client_reference",
  info_number: "202306001-C",
  type: "enterprise",
  company_name: "MOKE INTERNATIONAL LIMITED",
  website: "www.moke_ltd.com",
  info_notes: "This prospect looks interesting to follow",
  vat_number: "FR 32 123456789",
  company_number: "362 521 879 00034",
  user: "sam@proton.me",
  contact: {
    mode: "upsert_main",
    email: "contact@moke-international.com",
    first_name: "Jane",
    last_name: "Doe",
    title: "CEO",
    gender: "Ms",
    phone: "0101010101",
    phone2: "0606060606",
    birth_date: "1986-09-17",
  },
  address: {
    label: "58 Rue de Paradis",
    city: "Paris",
    state: "Île-de-France",
    country: "France",
    zip: "75010",
    geo: { x: 48.875761, y: 2.348727 },
  },
  custom_fields: [{ name: "field_name", value: "field_value" }],
};
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/clients-upsert", body, headers);

This request returns a structured JSON object:

{
  "error": "false",
  "message": "ok",
  "action": "Client successfully created",
  "reference": "client_reference"
}

HTTP Endpoint

POST https://api.ezus.app/clients-upsert

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

Parameter Type Description
reference String If provided, the unique reference associated with the client you want to update or create (or a random one will be generated). It must be a maximum of 100 characters.
mode String Optional. upsert (default) updates the client matching reference, or creates it when none matches. create answers the existing client when reference matches one, by reference or by primary contact email (Duplicates). update requires reference and fails with a REFERENCE_NOT_FOUND error when none matches. Nothing is created or updated when the call fails.
info_number String File number that appears in the client record. Not to be confused with reference. At most 100 characters.
type String Optional parameter. Specifies the client type (enterprise or individual). If enterprise, company_name is required. If individual, provide contact.first_name or contact.last_name, unless contact.mode is update or delete, or contact.reference names the contact.
company_name String Required Name of the client's company (if applicable). If empty, the client will be considered an individual, and the name of the client will be the same as the name of the contact. At most 200 characters. For an individual client, contact.first_name and contact.last_name joined by a space are at most 200 characters.
website String Website of the client. At most 100 characters.
info_notes String Notes on the client. On creation, the default client notes of your account are used when it is not provided. At most 65,535 bytes once encoded in UTF-8.
vat_number String VAT number of the client (only for "enterprise" clients). At most 100 characters.
company_number String Company registration number of the client (only for "enterprise" clients). At most 100 characters.
user Email Email of an active Ezus user of your account, set as the owner of the client. An unknown email, or the email of a deleted or deactivated user, is rejected.
contact JSON One contact of the client (Contacts, Writing a contact). insert_main (default) and upsert_main keep their meaning when no contact reference is sent. insert adds a secondary contact, update changes the contact with that reference, delete removes it.
address JSON JSON object address (Address). No field is mandatory: send at least one of label, zip, city, state, country or geo (x latitude, y longitude). label, city, state and country are at most 100 characters each, zip 10. The object replaces the whole address of the client: a field left out, empty or null is cleared, coordinates included. Send "0" to remove the address; without address, or with null, the address is kept. {} and "" are refused.
custom_fields Array Array of JSON custom fields (Custom fields)

Response

A JSON object indicating whether an error occurred during the process, along with the associated message.

Property Type Description
action String Indicates type of client action was created, or Client already exists (Duplicates)
reference String The reference for the client, which you should store for future updates or retrievals

Suppliers

GET suppliers

Returns a list of your suppliers, sorted by creation date from newest to oldest, with the most recent suppliers appearing first. The list of suppliers returned is paginated, 50 suppliers per page by default: choose any size from 1 to 250 with the limit query parameter, and call the route with the next_token query parameter to get the next page. Call it with include to also get, for each supplier, its translations (langs), custom fields (custom_fields), contacts (contacts) and tags (tags), in the format of GET supplier. They combine: include=custom_fields,contacts,tags.

curl --location 'https://api.ezus.app/suppliers' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.get(baseUrl + "/suppliers", headers);

This request returns a structured JSON object:

{
  "error": "false",
  "next_token": "<NEXT_TOKEN>",
  "size": 338,
  "data_size": 50,
  "page": 1,
  "suppliers": [
    {
      "reference": "supplier_reference",
      "info_number": "202306001-S",
      "type": "accom, activity",
      "company_name": "The best hotel",
      "info_notes": "Notes about the hotel",
      "website": "www.the_best_hotel.com",
      "capacity": "200",
      "visual_url": "https://docs.google.com/presentation/d/10GoT7nVkSIScaHUQEPh-EyUms5o6D7bcgUYsJlyql94",
      "user": {
        "email": "travel-design@e-corp.com",
        "first_name": "Alice",
        "last_name": "Tate",
        "agency": "Paris Agency"
      },
      "category": {
        "reference": "category_reference",
        "name": "Accommodation / Lodging",
        "subcategory_reference": "subcategory_reference",
        "subcategory_name": "Hotel Room"
      },
      "destination": {
        "reference": "destination_reference",
        "name": "France",
        "subdestination_reference": "subdestination_reference",
        "subdestination_name": "Paris"
      },
      "address": {
        "label": "58 Rue de Paradis",
        "city": "Paris",
        "state": "Île-de-France",
        "country": "France",
        "zip": "75010",
        "geo": {
          "x": 48.875761,
          "y": 2.348727
        }
      }
    }
  ]
}

HTTP Endpoint

GET https://api.ezus.app/suppliers

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Query Parameters

Parameter Type Description
next_token String Specify this parameter if you want to retrieve the following elements of a given list query.
limit Number Number of suppliers per page, any integer from 1 to 250. Defaults to 50. Any other value is refused with an error. The next_token keeps it for the next pages.
include String Comma-separated list of objects to add to each supplier. Possible values: langs, custom_fields, contacts, tags. The next_token keeps it for the next pages; any other value is refused with an error.
reference Dynamic filter Filter on the supplier's reference.
company_name Dynamic filter Filter on the supplier's company_name.
info_number Dynamic filter Filter on the supplier's info_number.
destination_name Dynamic filter Filter on the supplier's destination.name.
subdestination_name Dynamic filter Filter on the supplier's destination.subdestination_name.
created_at Dynamic date filter Filter on the supplier creation date.
updated_at Dynamic date filter Filter on the supplier last update date.

All filters are cumulative (AND): a supplier must match every supplied filter to be returned.

Response

A JSON object containing the supplier information with properties like:

Property Type Description
next_token String A token will be returned if all suppliers have not been returned. Use it in another call to access the following suppliers
size Number The total number of suppliers available with these filters
data_size Number Number of suppliers returned on the current page
page Number The page number
suppliers Array An array of JSON objects, each representing a supplier. These objects are formatted according to a simplified version of the GET supplier response structure. (GET supplier). Each supplier carries its visual_url (URL of the Google Slides visual linked to the supplier, empty when it has none). With include=langs, each supplier also carries its langs (Langs), with include=custom_fields its custom_fields (Custom fields), with include=contacts its contacts (Contacts) and with include=tags its tags (Tags)

GET supplier

This API endpoint retrieves detailed information about a specific supplier in Ezus.

curl --location 'https://api.ezus.app/supplier?reference=supplier_reference' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.get(baseUrl + "/supplier?reference=supplier_reference", headers);

This request returns a structured JSON object:

{
  "error": "false",
  "reference": "supplier_reference",
  "info_number": "202306001-S",
  "type": "accom, activity",
  "company_name": "The best hotel",
  "info_notes": "Emily confirmed: this hotel really is the best in town.",
  "website": "www.the_best_hotel.com",
  "capacity": "200",
  "visual_url": "https://docs.google.com/presentation/d/10GoT7nVkSIScaHUQEPh-EyUms5o6D7bcgUYsJlyql94",
  "user": {
    "email": "travel-design@e-corp.com",
    "first_name": "Alice",
    "last_name": "Tate",
    "agency": "Paris Agency"
  },
  "category": {
    "reference": "category_reference",
    "name": "Accommodation / Lodging",
    "subcategory_reference": "subcategory_reference",
    "subcategory_name": "Hotel Room"
  },
  "destination": {
    "reference": "destination_reference",
    "name": "France",
    "subdestination_reference": "subdestination_reference",
    "subdestination_name": "Paris"
  },
  "address": {
    "label": "58 Rue de Paradis",
    "city": "Paris",
    "state": "Île-de-France",
    "country": "France",
    "zip": "75010",
    "geo": {
      "x": 48.875761,
      "y": 2.348727
    }
  },
  "medias": {
    "data": [
      {
        "media_name": "The lobby",
        "path_full": "www.the_best_hotel.com/media/loby.jpg"
      }
    ],
    "size": 1
  },
  "products": {
    "data": [
      {
        "reference": "product_reference",
        "title": "2-bed room with breakfast"
      }
    ],
    "size": 1
  },
  "contacts": {
    "data": [
      {
        "reference": "contact_reference",
        "email": "contact@moke.com",
        "first_name": "Jane",
        "last_name": "Doe",
        "title": "CEO",
        "gender": "Ms",
        "phone": "0101010101",
        "phone2": "0606060606",
        "is_main": true
      },
      {
        "reference": "contact_reference",
        "email": "bob@proton.me",
        "first_name": "Bob",
        "last_name": "Morane",
        "title": "Project Manager",
        "gender": "Mr",
        "phone": "0202020202",
        "phone2": "0707070707",
        "is_main": false
      }
    ],
    "size": 2
  },
  "langs": [
    {
      "lang": "american",
      "name": "The best hotel",
      "short_description": "The best hotel: Parisian luxury redefined.",
      "long_description": "Welcome to The best hotel, a luxurious Parisian hotel nestled in the heart of..."
    },
    {
      "lang": "spanish",
      "name": "The best hotel",
      "short_description": "Luz y lujo en París: The best hotel.",
      "long_description": "Bienvenido a The best hotel, un lujoso hotel parisino ubicado en el corazón de..."
    }
  ],
  "custom_fields": [
    {
      "name": "Stars",
      "value": "5"
    }
  ],
  "tags": [
    {
      "reference": "mice",
      "type": "supplier",
      "name": "MICE"
    }
  ]
}

HTTP Endpoint

GET https://api.ezus.app/supplier

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Query Parameters

Parameter Type Description
reference String Required The reference of the supplier to retrieve

Response

A JSON object containing the supplier information with properties like:

Property Type Description
reference String The reference of the supplier
info_number String File number that appears in the supplier record. Not to be confused with reference
type String 3 options: accom, activity, transport. A supplier can have no type, 1 type or several types. In this case, the different types are separated by commas
company_name String Name of the company of the supplier
info_notes String The notes about the product
website String Website of the supplier
capacity String Maximum number of people for which the supplier can be used
visual_url String URL of the Google Slides visual linked to the supplier
user JSON JSON object user (User)
category JSON JSON object category (Category)
destination JSON JSON object destination (Destination)
address JSON JSON object address (Address)
medias JSON JSON object medias (Medias)
products JSON JSON object products (Products)
contacts Array Array of JSON contacts (Contacts)
langs Array Array of JSON langs (Langs)
custom_fields Array Array of JSON custom fields (Custom fields)
tags Array Array of JSON tags (Tags)

POST suppliers-upsert

It updates a supplier record if the provided reference (or the email) does match one of the supplier references in your account, otherwise it creates a new supplier record with the provided reference (or with a random one if no reference is provided). Note that for this endpoint, the email of the supplier can also be used as a primary key for the upsert. It accepts one supplier, or a list of up to 10 suppliers processed in one call.

Error messages

curl --location 'https://api.ezus.app/suppliers-upsert' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data-raw '{
  "reference": "supplier_reference",
  "info_number": "202306001-S",
  "type": "accom, activity",
  "company_name": "The best hotel",
  "website": "www.the_best_hotel.com",
  "info_notes": "Notes about the hotel",
  "capacity": "200",
  "user": "sam@proton.me",
  "contact": {
      "mode": "insert_main",
      "email": "bob@proton.me",
      "first_name": "Bob",
      "last_name": "Morane",
      "title": "Project Manager",
      "gender": "Mr",
      "phone": "0606060606",
      "phone2": "0707070707"
  },
  "address": {
      "label": "58 Rue de Paradis",
      "city": "Paris",
      "state": "Île-de-France",
      "country": "France",
      "zip": "75010",
      "geo": {
          "x": 48.875761,
          "y": 2.348727
      }
  },
  "destination_reference": "destination_reference",
  "subdestination_reference": "subdestination_reference",
  "category_reference": "category_reference",
  "subcategory_reference": "subdestination_reference",
  "custom_fields": [
      {"name": "field_name", "value": "field_value"}
  ],
  "tags": ["tag_1", "tag_2", "tag_3"],
  "langs": [
    {
      "lang": "french",
      "name": "Mon fournisseur",
      "short_description": "Une description courte en français",
      "long_description": "Une description longue en français"
    },
    {
      "lang": "american",
      "name": "My supplier",
      "short_description": "Short American Description",
      "long_description": "Long American Description"
    }
  ]
}
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  reference: "supplier_reference",
  info_number: "202306001-S",
  type: "accom, activity",
  company_name: "The best hotel",
  website: "www.the_best_hotel.com",
  info_notes: "Notes about the hotel",
  capacity: 200,
  user: "sam@proton.me",
  contact: {
    mode: "insert_main",
    email: "bob@proton.me",
    first_name: "Bob",
    last_name: "Morane",
    title: "Project Manager",
    gender: "Mr",
    phone: "0606060606",
    phone2: "0707070707",
  },
  address: {
    label: "58 Rue de Paradis",
    city: "Paris",
    state: "Île-de-France",
    country: "France",
    zip: "75010",
    geo: { x: 48.875761, y: 2.348727 },
  },
  destination_reference: "destination_reference",
  subdestination_reference: "subdestination_reference",
  category_reference: "category_reference",
  subcategory_reference: "subcategory_reference",
  custom_fields: [{ name: "field_name", value: "field_value" }],
  tags: ["tag_1", "tag_2", "tag_3"],
  langs: [
    {
      lang: "french",
      name: "Mon fournisseur",
      short_description: "Une description courte en français",
      long_description: "Une description longue en français",
    },
    {
      lang: "american",
      name: "My supplier",
      short_description: "Short American Description",
      long_description: "Long American Description",
    },
  ],
};
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/suppliers-upsert", body, headers);

This request returns a structured JSON object:

{
  "error": "false",
  "message": "ok",
  "action": "Supplier successfully created",
  "reference": "supplier_reference"
}

Request with a list of suppliers:

curl --location 'https://api.ezus.app/suppliers-upsert' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data-raw '[
    {
        "reference": "supplier_reference",
        "company_name": "The best hotel",
        "website": "www.the_best_hotel.com"
    },
    {
        "company_name": "The second best hotel",
        "type": "accom"
    },
    {
        "reference": "supplier_reference",
        "company_name": "Another hotel",
        "mode": "create"
    }
]'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = [
  {
    reference: "supplier_reference",
    company_name: "The best hotel",
    website: "www.the_best_hotel.com",
  },
  {
    company_name: "The second best hotel",
    type: "accom",
  },
  {
    reference: "supplier_reference",
    company_name: "Another hotel",
    mode: "create",
  },
];
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/suppliers-upsert", body, headers);

A list answers each supplier in results, in the order of the list, as it answers it alone, and names by their position the suppliers that failed or raised a warning:

{
  "error": "false",
  "message": "ok",
  "action": "1 supplier successfully created ; 1 supplier successfully updated ; 1 supplier already exists ; 0 supplier failed",
  "references": [
    "supplier_reference",
    "7cf94544-7e56-4e94-93cc-822d2cd9056d",
    "supplier_reference"
  ],
  "results": [
    {
      "error": "false",
      "message": "ok",
      "action": "Supplier successfully updated",
      "reference": "supplier_reference"
    },
    {
      "error": "false",
      "message": "ok",
      "action": "Supplier successfully created",
      "reference": "7cf94544-7e56-4e94-93cc-822d2cd9056d",
      "esus_reference": "7cf94544-7e56-4e94-93cc-822d2cd9056d"
    },
    {
      "error": "false",
      "message": "ok",
      "action": "Supplier already exists",
      "reference": "supplier_reference"
    }
  ]
}

HTTP Endpoint

POST https://api.ezus.app/suppliers-upsert

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

One JSON object with the parameters below, or a list of 1 to 10 such objects. A list is refused as a whole when it is empty or holds more than 10 suppliers. Any other error only concerns its own supplier: the others are created or updated, and message names each refused supplier by its position in the list, as supplier[2]: <cause>. error is "true" only when no supplier of the list was saved.

Parameter Type Description
reference String If provided, the unique reference associated to the supplier you want to update or create (in case the one you provided has never been used). If no reference is provided, a supplier will be created with a random one. It must be a maximum of 100 characters.
mode String Optional, per supplier. upsert (default) updates the supplier matching reference, or creates it when none matches. create answers the existing supplier when reference matches one, by reference or by primary contact email (Duplicates). update requires reference and fails with a REFERENCE_NOT_FOUND error when none matches. Nothing is created or updated for this supplier when its mode fails; in a list, the other suppliers are still saved.
info_number String File number that appears in the supplier record. Not to be confused with reference. At most 100 characters.
type String Either undefined or a combination of these 3 options: accom, activity, transport. You can select multiple options by separating them with comas ("accom, activity" for instance). Enter "undefined" if you want to reset this parameter.
company_name String Required Name of the supplier. This parameter is required if you create a new supplier. At most 100 characters.
website String Website of the supplier. At most 100 characters.
info_notes String Notes about the supplier. On creation, the default supplier notes of your account are used when it is not provided. At most 65,535 bytes once encoded in UTF-8.
capacity Number Maximum number of people for which the supplier can be used. Leave blank '' if not relevant
user Email Email of the Ezus user that will be set as the owner of the supplier. By default, if no owner is provided or the provided email do not match any user on this account, the owner will be assigned to everyone
contact JSON One contact of the supplier (Contacts, Writing a contact). insert_main (default) and upsert_main keep their meaning when no contact reference is sent. insert adds a secondary contact, update changes the contact with that reference, delete removes it. Supplier contacts have no date of birth. To clear the main contact without deleting it, send '0'.
address JSON JSON object address (Address). No field is mandatory: send at least one of label, zip, city, state, country or geo (x latitude, y longitude). label, city, state and country are at most 100 characters each, zip 10. The object replaces the whole address of the supplier: a field left out, empty or null is cleared, coordinates included. Send "0" to remove the address; without address, or with null, the address is kept. {} and "" are refused.
destination_reference String Reference of the destination to link to the supplier. To reset the destination, you can put '0'.
subdestination_reference String Reference of the sub-destination to link to the supplier. To reset the sub-destination, you can put '0'. If the destination_reference is not provided, the subdestination_reference will be ignored.
category_reference String Reference of the category to link to the supplier. To reset the category, you can put '0'.
subcategory_reference String Reference of the sub-category to link to the supplier. To reset the sub-category, you can put '0'. If the category_reference is not provided, the subcategory_reference will be ignored.
custom_fields Array Array of JSON custom fields (Custom fields)
tags Array Array of strings representing tag technical names. If an empty array ([]) is provided, all existing product tags are removed. Otherwise, the provided tags fully replace the current ones.
langs Array Array of JSON langs representing the descriptions associated with this supplier. The specified language must be enabled for the given account (Langs)

Response

A JSON object indicating whether an error occurred during the process, along with the associated message.

Property Type Description
action String Whether the supplier was created or updated, or Supplier already exists (Duplicates). With a list, how many suppliers were created, updated, already existed and failed
reference String The reference for the supplier, which you should store for future updates or retrievals. Absent with a list
references Array Only with a list: the references of the suppliers created, updated or already existing, in the order of the list. A refused supplier has no reference here; message names it by its position, supplier[i]: <cause>, as it does for a warning on a saved supplier (for example supplier[1]: skip_destination_reference)
results Array Only with a list: the answer of each supplier, in the order of the list, as a single supplier gets it (Lists)

Products

GET products

Returns a list of your products, sorted by creation date from newest to oldest, with the most recent products appearing first. The list of products returned is paginated, 50 products per page by default: choose any size from 1 to 250 with the limit query parameter, and call the route with the next_token query parameter to get the next page. Call it with include=tariffs to also get the tariffs of each product, seasons included, and with include=langs to also get its translations. Both combine: include=tariffs,langs.

curl --location 'https://api.ezus.app/products' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.get(baseUrl + "/products", headers);

This request returns a structured JSON object:

{
  "error": "false",
  "next_token": "<NEXT_TOKEN>",
  "size": 338,
  "data_size": 50,
  "page": 1,
  "products": [
    {
      "reference": "product_reference",
      "info_number": "202306001-PR",
      "title": "2-bed room with breakfast",
      "capacity": "2",
      "quantity": "1",
      "currency": "EUR",
      "vat_rate": 20.0,
      "vat_regime": "margin",
      "visual_url": "https://docs.google.com/presentation/d/10GoT7nVkSIScaHUQEPh-EyUms5o6D7bcgUYsJlyql94",
      "commission": {
        "commission_mode": "purchase",
        "commission_regime": "percent",
        "value": "10"
      },
      "supplier_reference": "supplier_reference",
      "package_reference": "package_reference",
      "destination": {
        "reference": "destination_reference",
        "name": "France",
        "subdestination_reference": "subdestination_reference",
        "subdestination_name": "Paris"
      },
      "budget_form": "Important",
      "budget_variable": "Display",
      "closing_days": ["saturday", "sunday"]
    }
  ]
}

HTTP Endpoint

GET https://api.ezus.app/products

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Query Parameters

Parameter Type Description
next_token String Specify this parameter if you want to retrieve the following elements of a given list query.
limit Number Number of products per page, any integer from 1 to 250. Defaults to 50. Any other value is refused with an error. The next_token keeps it for the next pages.
include String Comma-separated list of objects to add to each product. Possible values: tariffs, langs. The next_token keeps it for the next pages; any other value is refused with an error.
reference Dynamic filter Filter on the product's reference.
title Dynamic filter Filter on the product's title.
info_number Dynamic filter Filter on the product's info_number.
supplier_reference Linked-record filter + Dynamic filter Filter on the linked supplier's reference.
supplier_company_name Linked-record filter + Dynamic filter Filter on the linked supplier's company_name.
destination_name Dynamic filter Filter on the product's destination.name.
subdestination_name Dynamic filter Filter on the product's destination.subdestination_name.
created_at Dynamic date filter Filter on the product creation date.
updated_at Dynamic date filter Filter on the product last update date.

All filters are cumulative (AND): a product must match every supplied filter to be returned.

Response

A JSON object containing the product information with properties like:

Property Type Description
next_token String A token will be returned if all products have not been returned. Use it in another call to access the following products
size Number The total number of products available with these filters
data_size Number Number of products returned on the current page
page Number The page number
products Array An array of JSON objects, each representing a product. These objects are formatted according to a simplified version of the GET product response structure. (GET product). Each product carries its visual_url (URL of the Google Slides visual linked to the product, empty when it has none). Each product carries its closing_days: the weekdays it is closed, in English and lowercase (monday … sunday), an empty array when it is open every day. With include=tariffs, each product also carries its tariffs (Tariffs). With include=langs, each product also carries its langs (Langs)

GET product

This API endpoint retrieves detailed information about a specific product in Ezus.

curl --location 'https://api.ezus.app/product?reference=product_reference' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.get(baseUrl + "/product?reference=product_reference", headers);

This request returns a structured JSON object:

{
  "error": "false",
  "reference": "product_reference",
  "info_number": "202306001-PR",
  "title": "2-bed room with breakfast",
  "info_notes": "Product's notes",
  "capacity": "2",
  "quantity": "1",
  "currency": "EUR",
  "vat_rate": 20.0,
  "vat_regime": "margin",
  "visual_url": "https://docs.google.com/presentation/d/10GoT7nVkSIScaHUQEPh-EyUms5o6D7bcgUYsJlyql94",
  "commission": {
    "commission_mode": "purchase",
    "commission_regime": "percent",
    "value": "10"
  },
  "supplier": {
    "reference": "supplier_reference",
    "company_name": "The best hotel"
  },
  "package": {
    "reference": "package_reference",
    "title": "packages_title"
  },
  "category": {
    "reference": "category_reference",
    "name": "Accommodation / Lodging",
    "subcategory_reference": "subcategory_reference",
    "subcategory_name": "Hotel Room"
  },
  "destination": {
    "reference": "destination_reference",
    "name": "France",
    "subdestination_reference": "subdestination_reference",
    "subdestination_name": "Paris"
  },
  "budget_form": "Important",
  "budget_text": "Option",
  "budget_variable": "Display",
  "medias": {
    "data": [
      {
        "media_name": "img.jpeg",
        "path_full": "https://link-img.jpeg"
      }
    ],
    "size": 1
  },
  "closing_days": ["saturday", "sunday"],
  "tariffs": [
    {
      "reference": "tariff_reference",
      "type": "default",
      "name": "",
      "purchase_price": "100",
      "margin_rate": "33.33",
      "sales_price": "150",
      "limit_start": "",
      "limit_end": "",
      "is_yearly": false,
      "children": [
        {
          "reference": "",
          "type": "custom",
          "name": "",
          "purchase_price": "100",
          "margin_rate": "33.33",
          "sales_price": "150",
          "limit_start": "0",
          "limit_end": "11",
          "is_yearly": false
        },
        {
          "reference": "",
          "type": "custom",
          "name": "",
          "purchase_price": "100",
          "margin_rate": "23.08",
          "sales_price": "130",
          "limit_start": "12",
          "limit_end": "Infinity",
          "is_yearly": false
        }
      ]
    },
    {
      "reference": "tariff_reference",
      "type": "season",
      "name": "",
      "purchase_price": "100.0",
      "margin_rate": "50.0",
      "sales_price": "200.0",
      "limit_start": "2026-05-01",
      "limit_end": "2026-08-31",
      "is_yearly": true,
      "children": [
        {
          "reference": "",
          "type": "custom",
          "name": "",
          "purchase_price": "100",
          "margin_rate": "9.09",
          "sales_price": "110",
          "limit_start": "0",
          "limit_end": "10",
          "is_yearly": false
        },
        {
          "reference": "",
          "type": "custom",
          "name": "",
          "purchase_price": "100",
          "margin_rate": "16.66",
          "sales_price": "120",
          "limit_start": "11",
          "limit_end": "Infinity",
          "is_yearly": false
        }
      ]
    }
  ],
  "langs": [
    {
      "lang": "french",
      "name": "Chambre à 2 lits avec petit déjeuner",
      "short_description": "",
      "long_description": ""
    }
  ],
  "custom_fields": [
    {
      "name": "View",
      "value": "Parking"
    }
  ],
  "tags": [
    {
      "reference": "mice",
      "type": "product",
      "name": "MICE"
    }
  ]
}

HTTP Endpoint

GET https://api.ezus.app/product

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Query Parameters

Parameter Type Description
reference String Required The reference of the product to retrieve

Response

A JSON object containing the product information with properties like:

Property Type Description
reference String The reference of the product
info_number String File number that appears in the product record. Not to be confused with reference
title String Name of the product
info_notes String Notes about your product
capacity Number Maximum number of people for which the product can be used
quantity String Default quantity of the product when it is added to a project: a number, or a formula (e.g. "[P/2]*n"), see Quantity formula
currency String The ISO 4217 currency code representing the currency you utilize (Link to doc)
vat_rate Number Default % of the VAT on the product
vat_regime String Can be either classic (common law VAT), margin (VAT on the margin), none (Non applicable VAT)
visual_url String URL of the Google Slides visual linked to the product
commission JSON A JSON object containing commission_mode ("sales" or "purchase"), commission_regime ("percent" or "amount"), value
supplier JSON A JSON object containing reference, company_name
package JSON A JSON object containing reference, title
category JSON JSON object category (Category)
destination JSON JSON object destination (Destination)
buget_form String Important, Normal, Low represent how the product will be highlight on the budget By Default
budget_text String This is an empty string "" if the product is not marked as an option in the budget, otherwise it is the custom label of the option to which the product is associated
budget_variable String Display, Do not Display, this option tells if the product will be displayed or not in the budget
medias JSON JSON object medias (Medias)
closing_days Array Weekdays the product is closed, in English and lowercase: monday, tuesday, wednesday, thursday, friday, saturday, sunday. An empty array when it is open every day
tariffs Array Array of JSON tariffs (Tariffs)
langs Array Array of JSON langs (Langs)
custom_fields Array Array of JSON custom fields (Custom fields)
tags Array Array of JSON tags (Tags)

POST products-upsert

It updates a product record if the provided reference does match one of the product references in your account, otherwise it creates a new product record with the provided reference (or with a random one if no reference is provided). It accepts one product, or a list of up to 10 products processed in one call.

curl --location 'https://api.ezus.app/products-upsert' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data '{
    "reference": "product_reference",
    "info_number": "202306001-PR",
    "title": "2-bed room with breakfast",
    "info_notes": "The notes about the product",
    "capacity": "2",
    "quantity": "1",
    "currency": "USD",
    "purchase_price": "42",
    "sales_price": "84",
    "vat_rate": 20,
    "vat_regime": "none",
    "closing_days": ["saturday", "sunday"],
    "commission": {
        "commission_mode": "purchase",
        "commission_regime": "percent",
        "value": 10
    },
    "supplier_reference": "supplier_reference",
    "package_reference": "package_reference",
    "destination_reference": "destination_reference",
    "subdestination_reference": "subdestination_reference",
    "category_reference": "category_reference",
    "subcategory_reference": "subcategory_reference",
    "custom_fields": [
        {"name": "field_name", "value": "field_value"}
    ],
    "tags": ["tag_1", "tag_2", "tag_3"],
    "langs": [
    {
      "lang": "french",
      "name": "Mon produit",
      "short_description": "Une description courte en français",
      "long_description": "Une description longue en français"
    },
    {
      "lang": "american",
      "name": "My product",
      "short_description": "Short American Description",
      "long_description": "Long American Description"
    }
  ]
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  reference: "product_reference",
  info_number: "202306001-PR",
  title: "2-bed room with breakfast",
  info_notes: "Product's notes",
  capacity: 2,
  quantity: "1",
  currency: "USD",
  purchase_price: "42",
  sales_price: "84",
  vat_rate: "20",
  vat_regime: "none",
  closing_days: ["saturday", "sunday"],
  commission: {
    commission_mode: "purchase",
    commission_regime: "percent",
    value: "10",
  },
  supplier_reference: "supplier_reference",
  package_reference: "package_reference",
  destination_reference: "destination_reference",
  subdestination_reference: "subdestination_reference",
  category_reference: "category_reference",
  subcategory_reference: "subcategory_reference",
  custom_fields: [{ name: "field_name", value: "field_value" }],
  tags: ["tag_1", "tag_2", "tag_3"],
  langs: [
    {
      lang: "french",
      name: "Mon produit",
      short_description: "Une description courte en français",
      long_description: "Une description longue en français",
    },
    {
      lang: "american",
      name: "My product",
      short_description: "Short American Description",
      long_description: "Long American Description",
    },
  ],
};
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/products-upsert", body, headers);

This request returns a structured JSON object:

{
  "error": "false",
  "message": "ok",
  "action": "Product successfully created",
  "reference": "product_reference"
}

Request with a list of products:

curl --location 'https://api.ezus.app/products-upsert' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data '[
    {
        "reference": "product_reference",
        "title": "2-bed room with breakfast",
        "sales_price": "90"
    },
    {
        "title": "Single room with breakfast",
        "supplier_reference": "supplier_reference",
        "purchase_price": "30",
        "sales_price": "60"
    },
    {
        "reference": "product_reference",
        "title": "Suite",
        "mode": "create"
    }
]'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = [
  {
    reference: "product_reference",
    title: "2-bed room with breakfast",
    sales_price: "90",
  },
  {
    title: "Single room with breakfast",
    supplier_reference: "supplier_reference",
    purchase_price: "30",
    sales_price: "60",
  },
  {
    reference: "product_reference",
    title: "Suite",
    mode: "create",
  },
];
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/products-upsert", body, headers);

A list answers each product in results, in the order of the list, as it answers it alone, and names by their position the products that failed or raised a warning:

{
  "error": "false",
  "message": "ok",
  "action": "1 product successfully created ; 1 product successfully updated ; 1 product already exists ; 0 product failed",
  "references": [
    "product_reference",
    "7cf94544-7e56-4e94-93cc-822d2cd9056d",
    "product_reference"
  ],
  "results": [
    {
      "error": "false",
      "message": "ok",
      "action": "Product successfully updated",
      "reference": "product_reference"
    },
    {
      "error": "false",
      "message": "ok",
      "action": "Product successfully created",
      "reference": "7cf94544-7e56-4e94-93cc-822d2cd9056d"
    },
    {
      "error": "false",
      "message": "ok",
      "action": "Product already exists",
      "reference": "product_reference"
    }
  ]
}

HTTP Endpoint

POST https://api.ezus.app/products-upsert

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

One JSON object with the parameters below, or a list of 1 to 10 such objects. A list is refused as a whole when it is empty or holds more than 10 products. Any other error only concerns its own product: the others are created or updated, and message names each refused product by its position in the list, as product[2]: <cause>. error is "true" only when no product of the list was saved.

Parameter Type Description
reference String If provided, the unique reference associated to the product you want to update or create (in case the one you provided has never been used). If no reference is provided, a product will be created with a random one. It must be a maximum of 100 characters.
mode String Optional, per product. upsert (default) updates the product matching reference, or creates it when none matches. create answers the existing product when reference matches one (Duplicates). update requires reference and fails with a REFERENCE_NOT_FOUND error when none matches. Nothing is created or updated for this product when its mode fails; in a list, the other products are still saved.
info_number String File number that appears in the product record. Not to be confused with reference. At most 100 characters.
title String Title of your product. This parameter is required if you create a new product. At most 100 characters.
info_notes String Notes about your product. This parameter is not required if you create or update a product. At most 2000 characters.
capacity Number Maximum number of people for which the product can be used. Leave blank '' if not relevant
quantity Number or String Default quantity of the product when added to a project. Accepts a non-negative number or a formula as a string without spaces (e.g. "[P/2]*n"), see Quantity formula. Maximum 100 characters; leading zeros are removed. When omitted or empty: defaults to 1 on creation, remains unchanged on update. Invalid values return invalid quantity.
currency String The ISO 4217 code of the currency of this product (Link to Doc). It must be a currency enabled on your account, otherwise the call fails and nothing is created or updated. If empty or not provided, a new product gets your default catalog currency and an existing one keeps its currency. Prices are not converted when the currency changes
purchase_price Number Purchase price as a number
sales_price Number Sales price as a number
vat_rate Number Default VAT rate. If empty or not provided, your default account VAT rate will be set
vat_regime String Can be either classic (common law VAT), margin (VAT on the margin), none (Non applicable VAT). If empty or not provided, your default account VAT regime will be set. Any other value is rejected and the product is not saved
closing_days Array Weekdays the product is closed, in English: monday, tuesday, wednesday, thursday, friday, saturday, sunday (case ignored). An empty array ([]) opens the product every day. If not provided or null, a new product is open every day and an existing one keeps its closing days. Any other value is rejected and the product is not saved
commission JSON A JSON object containing commission_mode ("sales" or "purchase"), commission_regime ("percent" or "amount"), value
supplier_reference String If you give an adequate supplier reference, the product will be added in this supplier. If you want to update the supplier's product to None, you must enter 0.
package_reference String If you give an adequate package reference, the product will be added in this package. If you want to update the package's product to None, you must enter 0.
destination_reference String Reference of the destination to link to the product. To reset the destination, you can put '0'.
subdestination_reference String Reference of the sub-destination to link to the product. To reset the sub-destination, you can put '0'. If the destination_reference is not provided, the subdestination_reference will be ignored.
category_reference String Reference of the category to link to the product. To reset the category, you can put '0'.
subcategory_reference String Reference of the sub-category to link to the product. To reset the sub-category, you can put '0'. If the category_reference is not provided, the subcategory_reference will be ignored.
custom_fields Array Array of JSON custom fields (Custom fields)
tags Array Array of strings representing tag technical names. If an empty array ([]) is provided, all existing product tags are removed. Otherwise, the provided tags fully replace the current ones.
langs Array Array of JSON langs representing the descriptions associated with this product. The specified language must be enabled for the given account (Langs)

Response

A JSON object indicating whether an error occurred during the process, along with the associated message.

Property Type Description
action String Whether the product was created or updated, or Product already exists (Duplicates). With a list, how many products were created, updated, already existed and failed
reference String The reference for the product, which you should store for future updates or retrievals. Absent with a list
references Array Only with a list: the references of the products created, updated or already existing, in the order of the list. A refused product has no reference here; message names it by its position, product[i]: <cause>, as it does for a warning on a saved product (for example product[1]: skip_destination_reference)
results Array Only with a list: the answer of each product, in the order of the list, as a single product gets it (Lists)

POST product-seasons-upsert

Each update or insertion must reference an existing product via product_reference. If the provided reference matches an existing seasonal tariff in your account, the record is updated; otherwise, a new seasonal tariff is created using the provided reference (or a randomly generated one if none is given).

curl --location 'https://api.ezus.app/product-seasons-upsert' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data '{
    "product_reference": "product_reference",
    "reference": "season_reference",
    "name": "January 2026",
    "purchase_price": 165.25,
    "sales_price": 200,
    "limit_start": "2026-01-01",
    "limit_end": "2026-01-31",
    "is_yearly": true
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  product_reference: "product_reference",
  reference: "season_reference",
  name: "January 2026",
  purchase_price: 165.25,
  sales_price: 200,
  limit_start: "2026-01-01",
  limit_end: "2026-01-31",
  is_yearly: true,
};
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/product-seasons-upsert", body, headers);

This request returns a structured JSON object:

{
  "error": "false",
  "message": "ok",
  "action": "Season successfully created",
  "reference": "season_reference"
}

HTTP Endpoint

POST https://api.ezus.app/product-seasons-upsert

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

Parameter Type Description
product_reference String RequiredReference of the product for which you want to create or update a season.
reference String If provided, the unique reference associated to the season you want to update or create (in case the one you provided has never been used). If no reference is provided, a season will be created with a random one. It must be a maximum of 100 characters.
mode String Optional. upsert (default) updates the season matching reference, or creates it when none matches. create answers the existing season when reference matches one (Duplicates). update requires reference and fails with a REFERENCE_NOT_FOUND error when none matches. Nothing is created or updated when the call fails.
name String Name of the seasonal tariff (100 characters max).
purchase_price Number Purchase price (VAT included, in the product’s currency). Prices cannot be entered excluding VAT or in another currency.
sales_price Number Sales price (VAT included, in the product’s currency). Prices cannot be entered excluding VAT or in another currency.
limit_start String Start date of the season. "YYYY-MM-DD" format string
limit_end String End date of the season "YYYY-MM-DD" format string
is_yearly Boolean Indicates if the seasonal tariff recurs every year

Response

A JSON object indicating whether an error occurred during the process, along with the associated message.

Property Type Description
action String Indicates type of season action was created, or Season already exists (Duplicates)
reference String The reference for the product, which you should store for future updates or retrievals

PUT product-tariffs-levels-replace

Replaces the whole grid of quantity levels of one tariff of a product: its default tariff or one of its seasons. The grid sent replaces the stored levels in one operation. An invalid grid is refused as a whole, and the stored grid stays unchanged.

curl --location --request PUT 'https://api.ezus.app/product-tariffs-levels-replace' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data-raw '{
    "product_reference": "product_reference",
    "tariff_reference": "tariff_reference",
    "levels": [
        {"limit_start": 0, "limit_end": 3, "purchase_price": 78, "sales_price": 145},
        {"limit_start": 4, "limit_end": "Infinity", "purchase_price": 90, "sales_price": 135}
    ]
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  product_reference: "product_reference",
  tariff_reference: "tariff_reference",
  levels: [
    { limit_start: 0, limit_end: 3, purchase_price: 78, sales_price: 145 },
    {
      limit_start: 4,
      limit_end: "Infinity",
      purchase_price: 90,
      sales_price: 135,
    },
  ],
};
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.put(baseUrl + "/product-tariffs-levels-replace", body, headers);

This request returns a structured JSON object:

{
  "error": "false",
  "product_reference": "product_reference"
}

HTTP Endpoint

PUT https://api.ezus.app/product-tariffs-levels-replace

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

Parameter Type Description
product_reference String Required Reference of the product
tariff_reference String Required Reference of the default tariff or of a season of the product (reference in Tariffs). A level's reference is refused
levels Array Required The whole grid, ordered by quantity. An empty array removes every level: the tariff's own price applies again
levels[].limit_start Integer Required First quantity of the level. The first level starts at 0, each next level right after the limit_end of the previous one
levels[].limit_end Integer or String Required Last quantity of the level, included. "Infinity" on the last level, and only there
levels[].purchase_price Number Required Purchase price (VAT included, in the product’s currency)
levels[].sales_price Number Required Sales price (VAT included, in the product’s currency)

Response

A JSON object indicating whether an error occurred during the process, along with the associated message.

Property Type Description
product_reference String Reference of the product whose levels were replaced

Packages

GET package

This API endpoint retrieves detailed information about a specific package in Ezus.

curl --location 'https://api.ezus.app/package?reference=package_reference' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.get(baseUrl + "/package?reference=package_reference", headers);

This request returns a structured JSON object:

{
  "error": "false",
  "reference": "package_reference",
  "info_number": "202306001-PK",
  "title": "The best package",
  "info_notes": "A classical day in Paris",
  "capacity": "2",
  "visual_url": "https://docs.google.com/presentation/d/10GoT7nVkSIScaHUQEPh-EyUms5o6D7bcgUYsJlyql94",
  "suppliers": {
    "data": [
      {
        "reference": "supplier_reference",
        "company_name": "The best hotel"
      }
    ],
    "size": 1
  },
  "medias": {
    "data": [],
    "size": 0
  },
  "products": {
    "data": [
      {
        "reference": "product_reference",
        "title": "2-bed room with breakfast"
      },
      {
        "reference": "product_reference_1235",
        "title": "A gourmet menu for 2"
      }
    ],
    "size": 2
  },
  "langs": [
    {
      "lang": "american",
      "name": "The best package",
      "short_description": "A classical day in Paris",
      "long_description": "Immerse yourself in the romance and elegance of a classical Parisian day, as our hotel and restaurant capture the essence of this magical city."
    },
    {
      "lang": "french",
      "name": "Le meilleur package",
      "short_description": "Une journée classique à Paris",
      "long_description": "Plongez dans le romantisme et l'élégance d'une journée parisienne classique, car notre hôtel et notre restaurant capturent l'essence de cette ville magique."
    }
  ],
  "custom_fields": [
    {
      "name": "Is for children?",
      "value": "False"
    }
  ]
}

HTTP Endpoint

GET https://api.ezus.app/package

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Query Parameters

Parameter Type Description
reference String Required The reference of the package to retrieve

Response

A JSON object containing the package information with properties like:

Property Type Description
reference String The reference of the package
info_number String File number that appears in the package record. Not to be confused with reference
title String Name of the package
info_notes String Notes on the package
capacity String Maximum number of people for which the package can be used
visual_url String URL of the Google Slides visual linked to the package
suppliers JSON JSON object suppliers (Suppliers)
medias JSON JSON object medias (Medias)
products JSON JSON object products (Products)
langs Array Array of JSON langs (Langs)
custom_fields Array Array of JSON custom fields Custom fields

POST packages-upsert

It updates a package record if the provided reference does match one of the package references in your account, otherwise it creates a new package record with the provided reference (or with a random one if no reference is provided).

curl --location 'https://api.ezus.app/packages-upsert' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data '{
    "reference": "package_reference",
    "info_number": "202306001-PK",
    "title": "The best package",
    "capacity": "2",
    "destination_reference": "destination_reference",
    "subdestination_reference": "subdestination_reference",
    "category_reference": "category_reference",
    "subcategory_reference": "subcategory_reference",
    "custom_fields": [
        {"name": "field_name", "value": "field_value"}
    ],
    "langs": [
    {
      "lang": "french",
      "name": "Mon package",
      "short_description": "Une description courte en français",
      "long_description": "Une description longue en français"
    },
    {
      "lang": "american",
      "name": "My package",
      "short_description": "Short American Description",
      "long_description": "Long American Description"
    }
  ]
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  reference: "package_reference",
  info_number: "202306001-PK",
  title: "The best package",
  capacity: "2",
  destination_reference: "destination_reference",
  subdestination_reference: "subdestination_reference",
  category_reference: "category_reference",
  subcategory_reference: "subcategory_reference",
  custom_fields: [{ name: "field_name", value: "field_value" }],
  langs: [
    {
      lang: "french",
      name: "Mon package",
      short_description: "Une description courte en français",
      long_description: "Une description longue en français",
    },
    {
      lang: "american",
      name: "My package",
      short_description: "Short American Description",
      long_description: "Long American Description",
    },
  ],
};
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/packages-upsert", body, headers);

This request returns a structured JSON object:

{
  "error": "false",
  "message": "ok",
  "action": "Package successfully created",
  "reference": "package_reference"
}

HTTP Endpoint

POST https://api.ezus.app/packages-upsert

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

Parameter Type Description
reference String If provided, the unique reference associated to the package you want to update or create (in case the one you provided has never been used). If no reference is provided, a package will be created with a random one. It must be a maximum of 100 characters.
mode String Optional. upsert (default) updates the package matching reference, or creates it when none matches. create answers the existing package when reference matches one (Duplicates). update requires reference and fails with a REFERENCE_NOT_FOUND error when none matches. Nothing is created or updated when the call fails.
info_number String File number that appears in the package record. Not to be confused with reference. At most 100 characters.
title String Title of the package. This parameter is required if you create a new package. At most 100 characters.
capacity Number Maximum number of people for which the package can be used . Leave blank '' if not relevant
destination_reference String Reference of the destination to link to the package. To reset the destination, you can put '0'.
subdestination_reference String Reference of the sub-destination to link to the package. To reset the sub-destination, you can put '0'. If the destination_reference is not provided, the subdestination_reference will be ignored.
category_reference String Reference of the category to link to the package. To reset the category, you can put '0'.
subcategory_reference String Reference of the sub-category to link to the package. To reset the sub-category, you can put '0'. If the category_reference is not provided, the subcategory_reference will be ignored.
custom_fields Array Array of JSON custom fields Custom fields
langs Array Array of JSON langs representing the descriptions associated with this package. The specified language must be enabled for the given account (Langs)

Response

A JSON object indicating whether an error occurred during the process, along with the associated message.

Property Type Description
action String Indicates type of package action was created, or Package already exists (Duplicates)
reference String The reference for the package, which you should store for future updates or retrievals

Categories

GET categories

Returns a list of all categories and sub-categories. The list is not paginated and is theoretically limited to 1000 objects (categories and sub-categories), although higher limits may work depending on the payload size. The order of the categories and sub-categories matches their order in Ezus.

curl --location 'https://api.ezus.app/categories' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.get(baseUrl + "/categories", headers);

This request returns a structured JSON object:

{
  "error": "false",
  "size": 1,
  "categories": [
    {
      "reference": "category_reference",
      "name": "Experiences",
      "vat_rate": 20,
      "margin_rate": 25,
      "quantity": "P",
      "subcategories": [
        {
          "reference": "subcategory_reference",
          "name": "Relaxation",
          "vat_rate": 10,
          "margin_rate": 23.0769,
          "quantity": "P*N"
        }
      ]
    }
  ]
}

HTTP Endpoint

GET https://api.ezus.app/categories

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Response

A JSON object containing the category information, with properties like:

Property Type Description
size Number The total number of categories
categories Array Array of JSON categories (Categories)

POST categories-upsert

It updates a category record if the provided reference does match one of the category references in your account, otherwise it creates a new category record with the provided reference (or with a random one if no reference is provided). The category is listed by GET categories and in config.categories of GET me right away.

curl --location 'https://api.ezus.app/categories-upsert' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data '{
    "reference": "category_reference",
    "name": "Experiences",
    "vat_rate": 20,
    "margin_rate": 25,
    "margin_based_on": "sales_price",
    "quantity": "P"
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  reference: "category_reference",
  name: "Experiences",
  vat_rate: 20,
  margin_rate: 25,
  margin_based_on: "sales_price",
  quantity: "P",
};
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/categories-upsert", body, headers);

This request returns a structured JSON object:

{
  "error": "false",
  "message": "ok",
  "action": "Category successfully created",
  "reference": "category_reference"
}

HTTP Endpoint

POST https://api.ezus.app/categories-upsert

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

Parameter Type Description
reference String If provided, the unique reference associated to the category you want to update or create (in case the one you provided has never been used). If no reference is provided, a category will be created with a random one. It must be a maximum of 100 characters.
mode String Optional. upsert (default) updates the category matching reference, or creates it when none matches. create answers the existing category when reference matches one (Duplicates). update requires reference and fails with a REFERENCE_NOT_FOUND error when none matches. Nothing is created or updated when the call fails.
name String This parameter is required. Name of the category to create or update, at most 200 characters. If another category already holds this name, a creation answers it (Duplicates) and an update returns an error.
vat_rate Number VAT rate a product created in this category starts with, between 0 and 100. Left out on a creation: the account's vat_rate (Account Defaults). Left out on an update: unchanged.
margin_rate Number Margin rate a product created in this category starts with, in percent of the price margin_based_on names. Left out on a creation: the account's margin_rate (Account Defaults). Left out on an update: unchanged.
margin_based_on String Price margin_rate is given against. Possible values: sales_price (default; margin_rate must then be below 100), purchase_price (a markup: a margin rate of 25 on the purchase price is stored as 20 on the sales price). The account settings of the Ezus app do not change it.
quantity Number or String Quantity a product created in this category starts with: a non-negative number, or a formula as a string (e.g. "P*N") of at most 100 characters, see Quantity formula. Left out on a creation: 1. Left out on an update: unchanged.

Any other field in the body is refused, not ignored: {"error": "true", "message": "colour is not accepted"}.

Response

A JSON object indicating whether an error occurred during the process, along with the associated message.

Property Type Description
action String Indicates type of category action. Possible values: Category successfully created, Category successfully updated, Category already exists (Duplicates)
reference String The reference for the category, which you should store for future updates or retrievals

POST subcategories-upsert

It updates a sub-category record if the provided reference does match one of the sub-category references of the category category_reference names, otherwise it creates a new sub-category record in that category with the provided reference (or with a random one if no reference is provided).

curl --location 'https://api.ezus.app/subcategories-upsert' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data '{
    "reference": "subcategory_reference",
    "category_reference": "category_reference",
    "name": "Relaxation",
    "margin_rate": 30,
    "margin_based_on": "purchase_price"
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  reference: "subcategory_reference",
  category_reference: "category_reference",
  name: "Relaxation",
  margin_rate: 30,
  margin_based_on: "purchase_price",
};
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/subcategories-upsert", body, headers);

This request returns a structured JSON object:

{
  "error": "false",
  "message": "ok",
  "action": "Subcategory successfully created",
  "reference": "subcategory_reference"
}

HTTP Endpoint

POST https://api.ezus.app/subcategories-upsert

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

Parameter Type Description
reference String If provided, the unique reference associated to the sub-category you want to update or create (in case the one you provided has never been used in this category). If no reference is provided, a sub-category will be created with a random one. It must be a maximum of 100 characters.
mode String Optional. upsert (default) updates the sub-category matching reference, or creates it when none matches. create answers the existing sub-category of the category when reference matches one (Duplicates). update requires reference and fails with a REFERENCE_NOT_FOUND error when none matches. Nothing is created or updated when the call fails.
category_reference String This parameter is required and must match an existing category.
name String This parameter is required. Name of the sub-category to create or update, at most 200 characters. If another sub-category of the same category already holds this name, a creation answers it (Duplicates) and an update returns an error.
vat_rate Number VAT rate a product created in this sub-category starts with, between 0 and 100. Left out on a creation: the category's. Left out on an update: unchanged.
margin_rate Number Margin rate a product created in this sub-category starts with, in percent of the price margin_based_on names. Left out on a creation: the category's. Left out on an update: unchanged.
margin_based_on String Price margin_rate is given against. Possible values: sales_price (default; margin_rate must then be below 100), purchase_price (a markup: a margin rate of 25 on the purchase price is stored as 20 on the sales price). The account settings of the Ezus app do not change it.
quantity Number or String Quantity a product created in this sub-category starts with: a non-negative number, or a formula as a string (e.g. "P*N") of at most 100 characters, see Quantity formula. Left out on a creation: the category's. Left out on an update: unchanged.

Any other field in the body is refused, not ignored: {"error": "true", "message": "colour is not accepted"}.

Response

A JSON object indicating whether an error occurred during the process, along with the associated message.

Property Type Description
action String Indicates type of sub-category action. Possible values: Subcategory successfully created, Subcategory successfully updated, Subcategory already exists (Duplicates)
reference String The reference for the sub-category, which you should store for future updates or retrievals

Tags

GET tags

Returns your tags sorted by type then name, or with object_type and object_reference the tags set on one record. The list of tags returned is paginated, 50 tags per page by default: choose any size from 1 to 250 with the limit query parameter, and call the route with the next_token query parameter to get the next page.

curl --location 'https://api.ezus.app/tags?object_type=supplier&object_reference=supplier_reference' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.get(
  baseUrl + "/tags?object_type=supplier&object_reference=supplier_reference",
  headers
);

This request returns a structured JSON object:

{
  "error": "false",
  "next_token": "",
  "size": 2,
  "data_size": 2,
  "page": 1,
  "tags": [
    {
      "reference": "mice",
      "type": "supplier",
      "name": "MICE"
    },
    {
      "reference": "premium",
      "type": "supplier",
      "name": "Premium"
    }
  ]
}

HTTP Endpoint

GET https://api.ezus.app/tags

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Query Parameters

Parameter Type Description
next_token String Specify this parameter if you want to retrieve the following elements of a given list query. If this parameter is filled, other parameters are ignored.
limit Number Number of tags per page, any integer from 1 to 250. Defaults to 50. Any other value is refused with an error. The next_token keeps it for the next pages.
type String Specifies the tag type to retrieve. Possible values: supplier, product, package, client, step (the sample steps of the steps catalog)
object_type String The type of the record whose tags you want. It must be one of: supplier, product, package, client, step. It is mandatory when object_reference is provided.
object_reference String The reference of the record whose tags you want. It is mandatory when object_type is provided. An unknown reference answers an error naming the record type. With step, the reference of a sample step: the reference of a step of a project answers an error.
reference Dynamic filter Filter on the tag reference.
name Dynamic filter Filter on the tag name.

All filters are cumulative (AND): a tag must match every supplied filter to be returned.

Response

An array of JSON that contains your tags information.

Property Type Description
next_token String A token will be returned if all tags have not been returned. Use it in another call to access the following tags
size Number The total number of tags available with these filters
data_size Number Number of tags returned on the current page
page Number The page number
tags Array Array of JSON tags (Tags)

POST tags-create

Creates a tag for one type of record. When a tag of that type already has the name, case and accents aside, no tag is created and its reference is returned.

curl --location 'https://api.ezus.app/tags-create' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data-raw '{
    "name": "MICE",
    "type": "supplier"
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  name: "MICE",
  type: "supplier",
};
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/tags-create", body, headers);

This request returns a structured JSON object:

{
  "error": "false",
  "message": "ok",
  "action": "Tag successfully created",
  "reference": "mice"
}

HTTP Endpoint

POST https://api.ezus.app/tags-create

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

Parameter Type Description
name String Required Display name of the tag, limited to 100 characters
type String Required The type of record the tag is set on. Possible values: supplier, product, package, client, step (the sample steps of the steps catalog)

Response

Property Type Description
action String Tag successfully created, or Tag already exists when a tag of the type already has the name
reference String The reference of the created or the existing tag, generated from its name. Use it in tags-assign and tags-remove

DELETE tags-delete

Deletes a tag of your account.

curl --request "DELETE" \
--location 'https://api.ezus.app/tags-delete' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data '{
    "reference": "mice",
    "type": "supplier"
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  reference: "mice",
  type: "supplier",
};
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.delete(baseUrl + "/tags-delete", { headers, data: body });

This request returns a structured JSON object:

{
  "error": "false",
  "message": "ok",
  "action": "Tag successfully deleted"
}

HTTP Endpoint

DELETE https://api.ezus.app/tags-delete

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

Parameter Type Description
reference String Required The reference of the tag. An unknown reference answers an error
type String Required The type of the tag. Possible values: supplier, product, package, client, step

Response

Property Type Description
action String Tag successfully deleted

POST tags-assign

Sets existing tags on a supplier, a product, a package, a client or a sample step of the steps catalog. The tags the record already carries are kept.

curl --location 'https://api.ezus.app/tags-assign' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data-raw '{
    "object_type": "supplier",
    "object_reference": "supplier_reference",
    "tags": ["mice", "premium"]
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  object_type: "supplier",
  object_reference: "supplier_reference",
  tags: ["mice", "premium"],
};
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/tags-assign", body, headers);

This request returns a structured JSON object:

{
  "error": "false",
  "message": "ok",
  "action": "Tags successfully assigned"
}

HTTP Endpoint

POST https://api.ezus.app/tags-assign

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

Parameter Type Description
object_type String Required The type of the record. Possible values: supplier, product, package, client, step (a sample step of the steps catalog)
object_reference String Required The reference of the record. An unknown reference answers an error naming the record type. With step, the reference of a step of a project answers This reference is a step of a project: tags are only handled on sample steps
tags Array Required The references of the tags to set, at least one, all of the object_type type. When one does not exist, no tag is set and the error lists the unknown references

Response

Property Type Description
action String Tags successfully assigned

POST tags-remove

Removes tags from a supplier, a product, a package, a client or a sample step of the steps catalog. A tag the record does not carry is ignored.

curl --location 'https://api.ezus.app/tags-remove' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data-raw '{
    "object_type": "supplier",
    "object_reference": "supplier_reference",
    "tags": ["mice"]
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  object_type: "supplier",
  object_reference: "supplier_reference",
  tags: ["mice"],
};
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/tags-remove", body, headers);

This request returns a structured JSON object:

{
  "error": "false",
  "message": "ok",
  "action": "Tags successfully removed"
}

HTTP Endpoint

POST https://api.ezus.app/tags-remove

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

Parameter Type Description
object_type String Required The type of the record. Possible values: supplier, product, package, client, step (a sample step of the steps catalog)
object_reference String Required The reference of the record. An unknown reference answers an error naming the record type. With step, the reference of a step of a project answers This reference is a step of a project: tags are only handled on sample steps
tags Array Required The references of the tags to remove, at least one, all of the object_type type. When one does not exist, no tag is removed and the error lists the unknown references

Response

Property Type Description
action String Tags successfully removed

Fields

GET fields

Returns the custom fields of your projects, products, suppliers, clients and travellers, object by object, each in the order of the settings. Call it with object_type to get the fields of one object only. The list is not paginated. The fields of the step categories are listed with their category, in Step Categories.

curl --location 'https://api.ezus.app/fields?object_type=product' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.get(baseUrl + "/fields?object_type=product", headers);

This request returns a structured JSON object:

{
  "error": "false",
  "size": 2,
  "fields": [
    {
      "object_type": "product",
      "name": "Star rating",
      "reference": "star-rating",
      "type": "select",
      "options": ["3", "4", "5"],
      "default": "4",
      "description": "Official rating of the hotel",
      "family": "General"
    },
    {
      "object_type": "product",
      "name": "Wifi",
      "reference": "wifi",
      "type": "checkbox",
      "options": null,
      "default": false,
      "description": null,
      "family": "Rooms"
    }
  ]
}

HTTP Endpoint

GET https://api.ezus.app/fields

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Query Parameters

Parameter Type Description
object_type String Object whose fields are returned. Possible values: project, product, supplier, client, traveller. Without it, the fields of every object are returned

Response

Property Type Description
size Number The number of fields returned
fields Array Array of JSON fields (Field)

POST fields-create

Creates a custom field on your projects, products, suppliers, clients or travellers, or on a step category, as in the settings. A field of an object has no family and comes after the existing ones; a field of a step category comes after the fields of that category. Its reference is the name that fills it in custom_fields on the write route of its object.

curl --location 'https://api.ezus.app/fields-create' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data-raw '{
    "object_type": "product",
    "name": "Star rating",
    "type": "select",
    "options": ["3", "4", "5"],
    "default": "4",
    "description": "Official rating of the hotel"
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  object_type: "product",
  name: "Star rating",
  type: "select",
  options: ["3", "4", "5"],
  default: "4",
  description: "Official rating of the hotel",
};
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/fields-create", body, headers);

This request returns a structured JSON object:

{
  "error": "false",
  "message": "ok",
  "action": "Field successfully created",
  "reference": "star-rating",
  "field": {
    "object_type": "product",
    "name": "Star rating",
    "reference": "star-rating",
    "type": "select",
    "options": ["3", "4", "5"],
    "default": "4",
    "description": "Official rating of the hotel",
    "family": "General"
  }
}

HTTP Endpoint

POST https://api.ezus.app/fields-create

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

Parameter Type Description
object_type String Required Object the field is created on, and the route that fills it. Possible values: project (POST projects-upsert), product (POST products-upsert), supplier (POST suppliers-upsert), client (POST clients-upsert), traveller (POST project-travellers-create), step (POST project-steps-upsert, on the steps of the category step_category)
step_type String Required for a step field, refused for the others. Step type of the category. Possible values: accommodation, transport, activity, extra. extra and activity name the same categories
step_category String Required for a step field, refused for the others. Reference of the category of step_type the field is created on, as listed in Step Categories or returned by POST step-categories-upsert
name String Required Display name of the field, 100 characters at most
type String Required Type of the field. Possible values: text, textarea, number, date, time, checkbox, select, multi_select, url, file. A traveller field is text, number or file
options Array Values a select or multi_select field accepts, each a non-empty string listed once, without /-/, 5000 characters at most. Joined by /-/, the options are 65,535 bytes at most once encoded in UTF-8. Required for these two types, refused for the others
default Mixed Value of a new record: a string for text, textarea, url; a number for number; true or false for checkbox, false when not provided; "YYYY-MM-DD" for date; "HH:MM" for time; one of the options for select; an array of options for multi_select. Refused for file. A string, or the options of a multi_select joined by /-/, is 5000 characters at most
description String Description of the field, 2000 characters at most

Response

Property Type Description
action String Field successfully created, or Field already exists (Duplicates)
reference String The reference of the created or the existing field
field JSON The created field (Field). Absent when the field already exists

Step Categories

POST step-categories-upsert

Creates a step category, or updates one, as in the settings. Without reference, it creates a category for the steps of type and returns its reference, computed from its name: send it as category on POST project-steps-upsert. With reference, it updates that category, whose reference does not change. The category is listed in the step_categories of GET me right away. Create its custom fields with POST fields-create, object_type step.

curl --location 'https://api.ezus.app/step-categories-upsert' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data-raw '{
    "type": "transport",
    "name": "Plane",
    "is_favorite": true
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  type: "transport",
  name: "Plane",
  is_favorite: true,
};
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/step-categories-upsert", body, headers);

This request returns a structured JSON object:

{
  "error": "false",
  "message": "ok",
  "action": "Step category successfully created",
  "reference": "plane"
}

HTTP Endpoint

POST https://api.ezus.app/step-categories-upsert

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

Parameter Type Description
type String Required Step type of the category. Possible values: accommodation, transport, activity, extra. Extra steps share the categories of the activity steps: extra and activity name the same categories
reference String Reference of the category of type to update, as listed in Step Categories. Without it, or empty, a category is created. A reference no category of type holds fails with a REFERENCE_NOT_FOUND error
name String Display name of the category, 100 characters at most. Required to create a category. Left out on an update: unchanged. A name another category of type holds answers that category on a creation (Duplicates) and is refused with its reference on an update
is_favorite Boolean Whether the category is the favorite of its step type, the one a step created without category gets. A step type has one favorite at most: setting a category as favorite turns off the previous one. Left out on a creation: false. Left out on an update: unchanged

Response

Property Type Description
action String Indicates type of step category action. Possible values: Step category successfully created, Step category successfully updated, Step category already exists
reference String The reference of the category, which you should store to update it, create its fields or set it on a step

Destinations

GET destinations

Returns a list of all destinations and sub-destinations. The list is not paginated and is theoretically limited to 1000 objects (destinations and sub-destinations), although higher limits may work depending on the payload size. The order of the destinations and sub-destinations matches their order in Ezus.

curl --location 'https://api.ezus.app/destinations' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.get(baseUrl + "/destinations", headers);

This request returns a structured JSON object:

{
  "error": "false",
  "size": 32,
  "destinations": [
    {
      "reference": "destination_reference",
      "name": "France",
      "subdestinations": [
        {
          "reference": "subdestination_reference",
          "name": "Paris",
          "visual_url": "https://docs.google.com/presentation/d/10GoT7nVkSIScaHUQEPh-EyUms5o6D7bcgUYsJlyql94"
        }
      ],
      "langs": [
        {
          "lang": "french",
          "name": "Un pays intéressant"
        }
      ]
    }
  ]
}

HTTP Endpoint

GET https://api.ezus.app/destinations

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Response

A JSON object containing the destination information with properties like:

Property Type Description
size Number The total number of destinations
destinations Array Array of JSON destinations (Destinations)

POST destinations-upsert

It updates a destination record if the provided reference does match one of the destination references in your account, otherwise it creates a new destination record with the provided reference (or with a random one if no reference is provided).

curl --location 'https://api.ezus.app/destinations-upsert' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
--data '{
    "reference": "destination_reference",
    "name": "France",
    "langs": [
    {
      "lang": "french",
      "name": "Ma destination"
    },
    {
      "lang": "american",
      "name": "My destination"
    }
  ]
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  reference: "destination_reference",
  name: "France",
  langs: [
    {
      lang: "french",
      name: "Ma destination",
    },
    {
      lang: "american",
      name: "My destination",
    },
  ],
};
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/destinations-upsert", body, headers);

This request returns a structured JSON object:

{
  "error": "false",
  "message": "ok",
  "action": "Destination successfully created",
  "reference": "destination_reference"
}

HTTP Endpoint

POST https://api.ezus.app/destinations-upsert

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

Parameter Type Description
reference String If provided, the unique reference associated to the destination you want to update or create (in case the one you provided has never been used). If no reference is provided, a destination will be created with a random one. It must be a maximum of 100 characters.
mode String Optional. upsert (default) updates the destination matching reference, or creates it when none matches. create answers the existing destination when reference matches one (Duplicates). update requires reference and fails with a REFERENCE_NOT_FOUND error when none matches. Nothing is created or updated when the call fails.
name String This parameter is required. Name of the destination to create or update, at most 200 characters. If a destination already exists with this name, a creation answers it (Duplicates) and an update returns an error.
langs Array Array of JSON langs representing the descriptions associated with this destination. The specified language must be enabled for the given account (Langs) - only name supported in this case.

Response

A JSON object indicating whether an error occurred during the process, along with the associated message.

Property Type Description
action String Indicates type of destination action was created, or Destination already exists (Duplicates)
reference String The reference for the destination, which you should store for future updates or retrievals

GET subdestination

This API endpoint retrieves detailed information about a specific sub-destination in Ezus.

curl --location 'https://api.ezus.app/subdestination?reference=subdestination_reference' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.get(
  baseUrl + "/subdestination?reference=subdestination_reference",
  headers
);

This request returns a structured JSON object:

{
  "error": "false",
  "reference": "subdestination_reference",
  "name": "Paris",
  "destination_reference": "destination_reference",
  "destination_name": "France",
  "visual_url": "https://docs.google.com/presentation/d/10GoT7nVkSIScaHUQEPh-EyUms5o6D7bcgUYsJlyql94",
  "medias": {
    "data": [
      {
        "media_name": "img.jpeg",
        "path_full": "https://link-img.jpeg"
      }
    ],
    "size": 1
  },
  "langs": [
    {
      "lang": "french",
      "name": "Chambre à 2 lits avec petit déjeuner",
      "short_description": "",
      "long_description": ""
    }
  ]
}

HTTP Endpoint

GET https://api.ezus.app/subdestination

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

Parameter Type Description
reference String The reference of the sub-destination

Response

A JSON object containing the sub-destination information with properties like:

Property Type Description
reference String The reference of the sub-destination
name String Name of the sub-destination
destination_reference String The reference of the destination
destination_name String Name of the destination
visual_url String URL of the Google Slides visual linked to the sub-destination
medias JSON JSON object medias (Medias)
langs Array Array of JSON langs (Langs)

POST subdestinations-upsert

It updates a sub-destination record if the provided reference does match one of the sub-destination references in your account, otherwise it creates a new sub-destination record with the provided reference (or with a random one if no reference is provided).

curl --location 'https://api.ezus.app/subdestinations-upsert' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
--data '{
    "reference": "subdestination_reference",
    "destination_reference": "destination_reference",
    "name": "Paris",
    "langs": [
    {
      "lang": "french",
      "name": "Ma sous-destination",
      "short_description": "Une description courte en français",
      "long_description": "Une description longue en français"
    },
    {
      "lang": "american",
      "name": "My sub-destination",
      "short_description": "Short American Description",
      "long_description": "Long American Description"
    }
  ]
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  reference: "subdestination_reference",
  destination_reference: "destination_reference"
  name: "Paris",
  langs: [
    {
      lang: "french",
      name: "Ma sous-destination",
      short_description: "Une description courte en français",
      long_description: "Une description longue en français",
    },
    {
      lang: "american",
      name: "My sub-destination",
      short_description: "Short American Description",
      long_description: "Long American Description",
    },
  ],
};
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/subdestinations-upsert", body, headers);

This request returns a structured JSON object:

{
  "error": "false",
  "message": "ok",
  "action": "Subdestination successfully created",
  "reference": "subdestination_reference"
}

HTTP Endpoint

POST https://api.ezus.app/subdestinations-upsert

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

Parameter Type Description
reference String If provided, the unique reference associated to the sub-destination you want to update or create (in case the one you provided has never been used). If no reference is provided, a sub-destination will be created with a random one. It must be a maximum of 100 characters.
mode String Optional. upsert (default) updates the sub-destination matching reference, or creates it when none matches. create answers the existing sub-destination when reference matches one (Duplicates). update requires reference and fails with a REFERENCE_NOT_FOUND error when none matches. Nothing is created or updated when the call fails.
destination_reference String This parameter is required and must match an existing destination.
name String This parameter is required. Name of the sub-destination to create or update, at most 200 characters. If a sub-destination already exists with this name, a creation answers it (Duplicates) and an update returns an error.
langs Array Array of JSON langs representing the descriptions associated with this sub-destination. The specified language must be enabled for the given account (Langs)

Response

A JSON object indicating whether an error occurred during the process, along with the associated message.

Property Type Description
action String Indicates type of sub-destination action was created, or Subdestination already exists (Duplicates)
reference String The reference for the sub-destination, which you should store for future updates or retrievals

Invoices

GET invoices

Returns a list of your invoices, sorted by creation date from newest to oldest, with the most recent invoices appearing first. You can specify filters as query parameters to narrow down your search. The list of invoices returned is paginated, 50 invoices per page by default: choose any size from 1 to 250 with the limit query parameter, and call the route with the next_token query parameter to get the next page.

curl --location 'https://api.ezus.app/invoices?stage=completed' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.get(baseUrl + "/invoices?stage=completed", headers);

This request returns a structured JSON object:

{
  "error": "false",
  "next_token": "<NEXT_TOKEN>",
  "size": 338,
  "data_size": 50,
  "page": 1,
  "invoices": [
    {
      "error": "false",
      "reference": "invoice_reference",
      "info_number": "2023_101010",
      "type": "credit_note",
      "origin_reference": "origin_reference",
      "origin_info_number": "2023_101009",
      "stage": "completed",
      "created_date": "2023-10-10",
      "send_date": "2023-10-10",
      "due_date": "2023-10-10",
      "currency": "EUR",
      "is_einvoice_ready": true,
      "amount_ttc": 1200.0,
      "amount_ht": 1000.0,
      "vat": 200.0,
      "project": {
        "reference": "project_reference",
        "info_number": "202306001-P",
        "info_title": "Paris fashion week 2024",
        "info_stage_reference": "confirmed",
        "info_stage": "Confirmed",
        "currency": "EUR",
        "is_closed": false
      },
      "alternative": {
        "sort_order": "0",
        "title": "Main Alternative",
        "trip_date_in": "2024-03-01",
        "trip_date_out": "2024-03-09",
        "trip_duration": 9
      },
      "client": {
        "reference": "client_reference",
        "type": "enterprise",
        "company_name": "MOKE INTERNATIONAL LIMITED",
        "first_name": "Jane",
        "last_name": "Doe",
        "email": "contact@moke-international.com"
      },
      "forecast": {
        "is_automatic": true,
        "purchase": 0.0,
        "commission": 0.0,
        "vat_deducted": 0.0,
        "amount_ht": 1000.0
      },
      "actual": {
        "is_automatic": true,
        "purchase": null,
        "commission": null,
        "vat_deducted": null,
        "amount_ht": null
      },
      "url": "https://ezus.io/2023_101010.pdf",
      "xml_url": "https://ezus.io/2023_101010.xml"
    }
  ]
}

HTTP Endpoint

GET https://api.ezus.app/invoices

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Query Parameters

Parameter Type Description
next_token String Specify this parameter if you want to retrieve the following elements of a given list query. If this parameter is filled, other parameters are ignored.
limit Number Number of invoices per page, any integer from 1 to 250. Defaults to 50. Any other value is refused with an error. The next_token keeps it for the next pages.
stage String You can filter invoices that are at a specific stage. The stage can be paid, completed or draft.
is_einvoice_ready Boolean Filter invoices ready for e-invoicing. Accepts true or false.
client_reference Linked-record filter Exact match. Filter invoices by the reference of the linked client.
project_info_stage_reference Linked-record filter Exact match. Filter invoices whose linked project is at a given stage...
technical_name String You can filter invoices according to one of their custom fields by adding the technical_name of the custom field as a query parameter and the desired value as a value.
info_number Dynamic filter Filter on the invoice's info_number.
project_info_number Linked-record filter + Dynamic filter Filter on the linked project's info_number.
created_date Dynamic date filter Filter on the invoice creation date.
send_date Dynamic date filter Filter on the invoice send date.
due_date Dynamic date filter Filter on the invoice due date.
alternative_trip_date_in Linked-record filter + Dynamic date filter Filter on the linked alternative's trip start date.
alternative_trip_date_out Linked-record filter + Dynamic date filter Filter on the linked alternative's trip end date.

All filters are cumulative (AND): an invoice must match every supplied filter to be returned.

Response

A JSON object containing the invoice information with properties like:

Property Type Description
next_token String A token will be returned if all invoices have not been returned. Use it in another call to access the following invoices
size Number The total number of invoices available with these filters
data_size Number Number of invoices returned on the current page
page Number The page number
invoices Array An array of JSON objects, each representing a invoice. These objects are formatted according to a simplified version of the GET invoice response structure. (GET invoice)

GET invoice

This API endpoint retrieves detailed information about a specific invoice in Ezus.

curl --location 'https://api.ezus.app/invoice?reference=invoice_reference' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.get(baseUrl + "/invoice?reference=invoice_reference", headers);

This request returns a structured JSON object:

{
  "error": "false",
  "reference": "invoice_reference",
  "info_number": "2023_101010",
  "type": "credit_note",
  "origin_reference": "origin_reference",
  "origin_info_number": "2023_101009",
  "stage": "draft",
  "created_date": "2023-10-10",
  "send_date": "2023-10-10",
  "due_date": "2023-10-10",
  "currency": "EUR",
  "is_einvoice_ready": true,
  "amount_ttc": 1200.0,
  "amount_ht": 1000.0,
  "vat": 200.0,
  "url": "https://ezus.io/2023_101010.pdf",
  "xml_url": null,
  "project": {
    "reference": "project_reference",
    "info_number": "202306001-P",
    "info_title": "Paris fashion week 2024",
    "info_stage_reference": "confirmed",
    "info_stage": "Confirmed",
    "currency": "EUR",
    "is_closed": false
  },
  "alternative": {
    "sort_order": "0",
    "title": "Main Alternative",
    "trip_date_in": "2024-03-01",
    "trip_date_out": "2024-03-09",
    "trip_duration": 9
  },
  "client": {
    "reference": "client_reference",
    "type": "enterprise",
    "company_name": "MOKE INTERNATIONAL LIMITED",
    "first_name": "Jane",
    "last_name": "Doe",
    "email": "contact@moke-international.com"
  },
  "forecast": {
    "is_automatic": true,
    "purchase": 0.0,
    "commission": 0.0,
    "vat_deducted": 0.0,
    "amount_ht": 1000.0
  },
  "actual": {
    "is_automatic": true,
    "purchase": null,
    "commission": null,
    "vat_deducted": null,
    "amount_ht": null
  },
  "lines": [
    {
      "title": "Private Suite at Hôtel Ritz Paris",
      "quantity": 1,
      "price": 1200,
      "price_excl_taxes": 1000,
      "description": "Luxury private suite accommodation at Hôtel Ritz Paris including premium amenities and concierge services.",
      "tax_rate": 20,
      "tax_regime": {
        "name": "classic",
        "category": "S",
        "comment": ""
      }
    }
  ]
}

HTTP Endpoint

GET https://api.ezus.app/invoice

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Query Parameters

Parameter Type Description
reference String Required The reference of the invoice to retrieve

Response

A JSON object containing the invoice information with properties like:

Property Type Description
reference String The reference of the invoice
info_number String Title of the invoice
type String Type of the invoice invoice or credit_note
origin_reference String This is only displayed if the type of the invoice is a credit_note. The reference of the origin invoice.
origin_info_number String This is only displayed if the type of the invoice is a credit_note. Title of the origin invoice.
stage String Stage of the invoice draft completed or paid
created_date String Date of the creation of this invoice, in a "YYYY-MM-DD" format
send_date String Sent date of this invoice, in a "YYYY-MM-DD" format
due_date String Due date of this invoice, in a "YYYY-MM-DD" format
currency String The ISO 4217 currency code representing the currency you utilize (Link to doc)
is_einvoice_ready Boolean Is the invoice ready for e-invoicing
amount_ttc Number Amount of the invoice including taxes
amount_ht Number Amount of the invoice excluding taxes
vat Number VAT amount of the invoice
url String URL of the invoice .pdf file
xml_url String URL of the invoice .xml file (UBL) sent on the e-invoicing network. null when the invoice is not an e-invoice, is still a draft, or its file is not generated yet. A new URL is published each time the invoice file is regenerated, as for url
project JSON JSON including: reference, info_number, info_title, info_stage_reference, info_stage, currency and is_closed
alternative JSON JSON including: sort_order, title, trip_date_in, trip_date_out and trip_duration
client JSON JSON including: reference, type (enterprise or individual), company_name, first_name, last_name and email
forecast JSON JSON object forecast (Invoices Amounts)
actual JSON JSON object actual (Invoices Amounts)
lines Array Array of JSON invoices lines (Invoices Lines)

PUT invoices-update

It updates an invoice record if the provided reference does match one of the invoices references in your account.

curl --location --request PUT 'https://api.ezus.app/invoices-update' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data-raw '{
    "reference": "invoice_reference",
    "stage": "paid",
    "due_date": "2023-09-29",
    "custom_fields": [
        {"name": "field_name", "value": "field_value"}
    ]
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  reference: "invoice_reference",
  stage: "paid",
  due_date: "2023-09-29",
  custom_fields: [{ name: "field_name", value: "field_value" }],
};
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.put(baseUrl + "/invoices-update", body, headers);

This request returns a structured JSON object:

{
  "error": "false",
  "message": "ok",
  "action": "Invoice successfully updated",
  "reference": "invoice_reference"
}

HTTP Endpoint

PUT https://api.ezus.app/invoices-update

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

Parameter Type Description
reference String The reference of the invoice you want to update
stage String Represents the stage of the invoice. Allowed updates: you can move from draft to paid or completed. Once set to paid or completed, switching between these stages is allowed. Reverting back to draft is not permitted
due_date String due_date can be updated only if the invoice is a draft, due_date can be only on format YYYY-MM-DD
custom_fields Array Array of JSON custom fields (Custom fields)

Response

A JSON object indicating whether an error occurred during the process, along with the associated message.

Please note that invoice finalization (the step that occurs when moving an invoice from the draft stage to paid or completed) can occasionally be busy if another finalization is already in progress. In such cases, the response message will indicate that the process is busy, and the client simply needs to retry the request after a short delay.

Property Type Description
action String Indicates type of invoice action was created
reference String The reference for the invoice, which you should store for future updates or retrievals

GET invoices-supplier

This API endpoint retrieves a list of purchase invoices in Ezus. The list is paginated, 50 invoices per page by default: choose any size from 1 to 250 with the limit query parameter, and call the route with the next_token query parameter to get the next page.

curl --location 'https://api.ezus.app/invoices-supplier' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.get(baseUrl + "/invoices-supplier", headers);

This request returns a structured JSON object:

{
  "error": "false",
  "next_token": "<NEXT_TOKEN>",
  "size": 1240,
  "data_size": 50,
  "page": 1,
  "invoices-supplier": [
    {
      "reference": "invoice_supplier_reference",
      "has_attachement": true,
      "filename": "2023_101010.pdf",
      "url": "https://ezus.io/2023_101010.pdf",
      "created_date": "2023-10-10",
      "due_date": "2023-10-10",
      "send_date": "2023-10-10",
      "currency": "EUR",
      "amount_ttc": 160.0,
      "amount_ht": 120.0,
      "vat": 40.0,
      "supplier_reference": "supplier_reference",
      "project_reference": "project_reference",
      "alternative_order": "0",
      "paid": 150.0
    }
  ]
}

HTTP Endpoint

GET https://api.ezus.app/invoices-supplier

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Query Parameters

Parameter Type Description
next_token String Specify this parameter if you want to retrieve the following elements of a given list query. If this parameter is filled, other parameters are ignored.
limit Number Number of invoices per page, any integer from 1 to 250. Defaults to 50. Any other value is refused with an error. The next_token keeps it for the next pages.
has_attachement Boolean true if a file is attached (filename and url are both set), false otherwise
supplier_reference String Filter invoices by the given supplier reference
project_reference String Filter invoices by the given project reference
alternative_order Number If project_reference is not provided, this parameter is ignored and the query applies to all alternatives of all projects.
If project_reference is provided, alternative_order must be a non-negative number: 0 targets the main alternative and the value falls back to 0 if not specified.

Response

A JSON object containing the invoices-supplier information with properties like:

Property Type Description
next_token String A token will be returned if all invoices have not been returned. Use it in another call to access the following invoices
size Number The total number of invoices available with these filters, counted when the first page is read: the next pages of the same list return that count
data_size Number Number of invoices returned on the current page
page Number The page number
invoices-supplier Array An array of JSON objects, each representing an invoice-supplier. These objects are formatted according to a simplified version of the GET invoice-supplier response structure. (GET invoice-supplier)

Each invoice-supplier of the invoices-supplier list is a JSON object containing the invoice-supplier information with properties like:

Property Type Description
reference String The reference of the supplier invoice
has_attachement Boolean true if a file is attached (filename and url are both set), false otherwise
filename String Filename of the supplier invoice
url String URL of the supplier invoice file
created_date String Date of the creation of the supplier invoice, in a "YYYY-MM-DD" format
due_date String Due date of the supplier invoice, in a "YYYY-MM-DD" format
send_date String Sent date of the supplier invoice, in a "YYYY-MM-DD" format
currency String The ISO 4217 currency code representing the currency you utilize (Link to doc)
amount_ttc Number Amount of the supplier invoice including taxes
amount_ht Number Amount of the supplier invoice excluding taxes
vat Number VAT amount of the supplier invoice
supplier_reference String Reference of the related supplier, or an empty string if no supplier is assigned
project_reference String Reference of the related project
alternative_order Number Reference of the related alternative order; 0 is for main alternative
paid Number Sum of the payments already made on the invoice

GET invoice-supplier

This API endpoint retrieves detailed information about a specific purchase invoice in Ezus.

curl --location 'https://api.ezus.app/invoice-supplier?reference=invoice_supplier_reference' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.get(
  baseUrl + "/invoice-supplier?reference=invoice_supplier_reference",
  headers
);

This request returns a structured JSON object:

{
  "error": "false",
  "reference": "invoice_supplier_reference",
  "has_attachement": true,
  "filename": "File Name",
  "url": "https://ezus.io/2023_101010.pdf",
  "created_date": "2023-10-10",
  "due_date": "2023-10-20",
  "send_date": "2023-10-15",
  "currency": "EUR",
  "amount_ttc": 1200.0,
  "amount_ht": 1000.0,
  "vat": 200.0,
  "supplier": {
    "reference": "supplier_reference",
    "company_name": "The best hotel",
    "website": "www.the_best_hotel.com"
  },
  "project": {
    "reference": "project_reference",
    "info_number": "202306001-P",
    "info_title": "Paris fashion week 2024",
    "info_stage_reference": "confirmed",
    "info_stage": "Confirmed",
    "currency": "EUR",
    "is_closed": false,
    "supplier_stage_reference": "to-contact",
    "supplier_stage": "To contact"
  },
  "alternative": {
    "sort_order": "0",
    "title": "Main Alternative"
  },
  "client": {
    "reference": "client_reference",
    "type": "enterprise",
    "company_name": "MOKE INTERNATIONAL LIMITED",
    "first_name": "Jane",
    "last_name": "Doe",
    "email": "contact@moke-international.com"
  },
  "payments": [
    {
      "reference": "payment_reference",
      "date": "2023-10-10",
      "amount": 500.0,
      "payment_method": "Credit Card"
    },
    {
      "reference": "payment_reference",
      "date": "2023-10-11",
      "amount": 500.0,
      "payment_method": "Wire"
    },
    {
      "reference": "payment_reference",
      "date": "2023-10-12",
      "amount": 200.0,
      "payment_method": "Check"
    }
  ]
}

HTTP Endpoint

GET https://api.ezus.app/invoice-supplier

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Query Parameters

Parameter Type Description
reference String Required The reference of the invoice to retrieve

Response

A JSON object containing the supplier invoice information with properties like:

Property Type Description
reference String The reference of the supplier invoice
has_attachement Boolean true if a file is attached (filename and url are both set), false otherwise
filename String Filename of the supplier invoice
url String URL of the supplier invoice file
created_date String Date of the creation of the supplier invoice, in a "YYYY-MM-DD" format
due_date String Due date of the supplier invoice, in a "YYYY-MM-DD" format
send_date String Sent date of the supplier invoice, in a "YYYY-MM-DD" format
currency String The ISO 4217 currency code representing the currency you utilize (Link to doc)
amount_ttc Number Amount of the supplier invoice including taxes
amount_ht Number Amount of the supplier invoice excluding taxes
vat Number VAT amount of the supplier invoice
supplier JSON JSON including: reference, company_name and website
project JSON JSON including: reference, info_title, info_stage, info_stage_reference, info_number, currency, is_closed, supplier_stage and supplier_stage_reference (Project Supplier Statuses)
alternative JSON JSON including: sort_order and title
client JSON JSON including: reference, type (enterprise or individual), company_name, first_name, last_name and email
payments Array Array of JSON including: reference, date, amount and payment_method

POST invoices-supplier-upsert

This endpoint allows you to create or update a supplier invoice (purchase invoice) on a project. The endpoint works in upsert mode: if the provided reference matches an existing, non-deleted supplier invoice of your account that belongs to the specified supplier and project, the invoice is updated. Otherwise, a new supplier invoice is created.

curl --location 'https://api.ezus.app/invoices-supplier-upsert' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data '{
    "supplier_reference": "supplier_reference",
    "project_reference": "project_reference",
    "alternative_order": "0",
    "reference": "invoice_supplier_reference",
    "due_date": "2023-10-20",
    "amount_ttc": 1200.00,
    "amount_ht": 1000.00,
    "filename": "2023_101010.pdf",
    "url": "https://ezus.io/2023_101010.pdf",
    "note": "Invoice for the Paris fashion week 2024 project"
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  supplier_reference: "supplier_reference",
  project_reference: "project_reference",
  alternative_order: "0",
  reference: "invoice_supplier_reference",
  due_date: "2023-10-20",
  amount_ttc: 1200.0,
  amount_ht: 1000.0,
  filename: "2023_101010.pdf",
  url: "https://ezus.io/2023_101010.pdf",
  note: "Invoice for the Paris fashion week 2024 project",
};
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/invoices-supplier-upsert", body, headers);

This request returns a structured JSON object:

{
  "error": "false",
  "message": "ok",
  "action": "Supplier invoice successfully created",
  "reference": "invoice_supplier_reference"
}

HTTP Endpoint

POST https://api.ezus.app/invoices-supplier-upsert

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

Parameter Type Description
supplier_reference String Required Reference of the supplier the invoice belongs to. Must match a valid, non-deleted supplier of your account. If the supplier is not yet on the project alternative, it is added to it.
project_reference String Required Reference of the project the invoice belongs to. Must match a valid, non-deleted project of your account.
alternative_order String Alternative number. If not provided, the invoice is attached to the project's main alternative (0).
reference String Unique reference of the supplier invoice to create or update. If not provided, a UUID v4 is automatically generated and returned. Must be less than 100 characters, otherwise an error is returned.
mode String Optional. upsert (default) updates the supplier invoice matching reference, or creates it when none matches. create answers the existing supplier invoice when reference matches one (Duplicates). update requires reference and fails with a REFERENCE_NOT_FOUND error when none matches. Nothing is created or updated when the call fails.
due_date String Due date of the supplier invoice, in a "YYYY-MM-DD" format.
amount_ttc Number Amount of the supplier invoice including taxes.
amount_ht Number Amount of the supplier invoice excluding taxes.
filename String Name associated to the invoice file (PDF). Optional. If left empty while url is provided, the filename is deduced from the downloaded file. At most 200 characters, the deduced name included.
url String Link to the invoice file. Only .pdf files are accepted. It must be an https:// URL on port 443 of a publicly reachable file; http:// URLs are refused. Redirects are followed to such URLs only, 3 at most. The file must download within 20 seconds and weigh at most 100 MB. Required if filename is provided, otherwise an error is returned. If provided while filename is empty, the filename is deduced from the downloaded file. At most 500 characters.
note String Note attached to the supplier invoice. At most 2000 characters.

Response

A JSON object indicating whether an error occurred during the process, along with the associated message.

Property Type Description
action String Summary of the action performed (e.g., "Supplier invoice successfully created" or "Supplier invoice successfully updated"), or Supplier invoice already exists (Duplicates)
reference String Reference of the supplier invoice that was created or updated (the auto-generated UUID on insert, or the provided reference otherwise)

Currency

POST invoices-supplier-payments-create

This endpoint allows you to create a payment attached to an existing supplier invoice (purchase invoice). The endpoint works in creation mode only: payments cannot be updated or deleted through the public API. If the provided reference is already used by a payment of your account, nothing is created and that payment is answered (Duplicates).

curl --location 'https://api.ezus.app/invoices-supplier-payments-create' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data '{
    "invoice_supplier_reference": "invoice_supplier_reference",
    "reference": "payment_reference",
    "date": "2026-05-28",
    "amount": 600.00,
    "payment_method": "default4"
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  invoice_supplier_reference: "invoice_supplier_reference",
  reference: "payment_reference",
  date: "2026-05-28",
  amount: 600.0,
  payment_method: "default4",
};
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/invoices-supplier-payments-create", body, headers);

This request returns a structured JSON object:

{
  "error": "false",
  "message": "ok",
  "action": "Supplier invoice payment successfully created",
  "reference": "payment_reference"
}

HTTP Endpoint

POST https://api.ezus.app/invoices-supplier-payments-create

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

Parameter Type Description
invoice_supplier_reference String Required Reference of the supplier invoice the payment is attached to. Must match a valid, non-deleted supplier invoice of your account, otherwise an error is returned.
reference String Unique reference of the payment to create. If not provided, a UUID v4 is automatically generated and returned. Must be less than 36 characters, otherwise an error is returned. A reference a payment of your account already carries answers that payment (Duplicates).
date String Required Date of the payment, in a "YYYY-MM-DD" format. Must be a date between years 2000 and 2050 (exclusive), otherwise an error is returned.
amount Number Required Amount of the payment. The value is rounded to 2 decimals before being stored. If the provided value is not a number, an error is returned.
payment_method String Reference of a payment method, from payment_methods in Custom Field Definitions (e.g. "default4"). If the provided value matches none of them, an error is returned and nothing is created. If not provided, the account's default payment method is used; if the account don't have one, the payment is created without one.

Response

A JSON object indicating whether an error occurred during the process, along with the associated message.

Property Type Description
action String Summary of the action performed (e.g., "Supplier invoice payment successfully created"), or Supplier invoice payment already exists (Duplicates)
reference String Reference of the payment that was created (the auto-generated UUID on insert, or the provided reference otherwise)

Deposits

POST deposits-create

It creates a client deposit in the specified project.

curl --location 'https://api.ezus.app/deposits-create' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data-raw '{
    "project_reference": "project_reference",
    "alternative_order": "0",
    "type": "deposit",
    "notes": "Up-front payment 2023-05-25",
    "date": "2023-05-25",
    "amount": 6855,
    "payment_method": "card"
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  project_reference: "project_reference",
  alternative_order: "0",
  type: "deposit",
  notes: "Up-front payment 2023-05-25",
  date: "2023-05-25",
  amount: 6855,
  payment_method: "card",
};
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/deposits-create", body, headers);

This request returns a structured JSON object:

{
  "error": "false",
  "message": "ok",
  "action": "Deposit successfully created"
}

HTTP Endpoint

POST https://api.ezus.app/deposits-create

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

Parameter Type Description
project_reference String Required The reference is mandatory and refers to the project to which the payment will be added.
alternative_order String Alternative number, if not entered, the payment will be added to the project's main alternative.
type String Type can be deposit, payment, final_payment, extra_paid. By default the deposits will be a deposit
notes String Note attributed to the payment. At most 200 characters, otherwise an error is returned and nothing is saved.
date String The date must be a string in "YYYY-MM-DD" format. If it is not filled in or is invalid, the payment will be assigned to the current date.
amount Integer Required The deposit amount in cents.
payment_method String Reference of a payment method, from payment_methods in Custom Field Definitions (e.g. "default4"). A value matching none of them records the deposit without payment method

Response

A JSON object indicating whether an error occurred during the process, along with the associated message.

Property Type Description
action String Indicates type of deposit action was created

Media

GET media

Returns the media of one object, or of your media library. Without object_type, it returns the media from your library, sorted by creation date from newest to oldest; each media then carries the object_type and object_reference it is attached to, and both are empty when the media is not linked to anything. The list is paginated, 50 media per page by default: choose any size from 1 to 250 with the limit query parameter, and call the route with the next_token query parameter to get the next page.

curl --location 'https://api.ezus.app/media?object_type=supplier&object_reference=supplier_reference' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.get(
  baseUrl + "/media?object_type=supplier&object_reference=supplier_reference",
  headers
);

This request returns a structured JSON object:

{
  "error": "false",
  "next_token": "",
  "size": 2,
  "data_size": 2,
  "page": 1,
  "medias": [
    {
      "reference": "media-beach-view",
      "media_name": "Beach view",
      "path_full": "https://ezus-media.s3.amazonaws.com/media/9a1a8617/1700000000000.jpg",
      "object_type": "supplier",
      "object_reference": "supplier_reference"
    },
    {
      "reference": "7f2c1b64-3d0e-4c8a-9b1f-2e5d6a7b8c9d",
      "media_name": "Lobby",
      "path_full": "https://ezus-media.s3.amazonaws.com/media/7f2c1b64/1700000001000.jpg",
      "object_type": "supplier",
      "object_reference": "supplier_reference"
    }
  ]
}

HTTP Endpoint

GET https://api.ezus.app/media

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Query Parameters

Parameter Type Description
next_token String Specify this parameter if you want to retrieve the following elements of a given list query. If this parameter is filled, other parameters are ignored.
limit Number Number of media per page, any integer from 1 to 250. Defaults to 50. Any other value is refused with an error. The next_token keeps it for the next pages.
object_type String The type of the object whose media you want. It must be one of: supplier, product, package, subdestination, step. It is mandatory when object_reference is provided. If no object is provided, the media library is returned.
object_reference String The reference of the object whose media you want. It is mandatory when object_type is provided. An unknown reference answers an error naming the object type.
reference Dynamic filter Filter on the media reference.
media_name Dynamic filter Filter on the media name.

All filters are cumulative (AND): a media must match every supplied filter to be returned.

Response

A JSON object containing the media information with properties like:

Property Type Description
next_token String A token will be returned if all media have not been returned. Use it in another call to access the following media
size Number The total number of media available with these filters
data_size Number Number of media returned on the current page
page Number The page number
medias Array An array of JSON objects, each representing a media (Media)

POST media-create

It creates a media (image) and adds it to your media library. The image is either downloaded from a public URL (path_full) or sent directly in the request, base64 encoded (image_base64). The media can optionally be attached to a supplier, a product, a package, a step or a subdestination: it is then always added in the last position of the object's media list. The body is either one media or a list of up to 10 media: each media of a list is created or refused on its own, and the response carries one result per media, in the order of the list.

curl --location 'https://api.ezus.app/media-create' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data-raw '{
    "reference": "media_reference",
    "media_name": "Hotel pool",
    "path_full": "https://example.com/images/hotel-pool.jpg",
    "object_type": "supplier",
    "object_reference": "supplier_reference"
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  reference: "media_reference",
  media_name: "Hotel pool",
  path_full: "https://example.com/images/hotel-pool.jpg",
  object_type: "supplier",
  object_reference: "supplier_reference",
};
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/media-create", body, headers);

This request returns a structured JSON object:

{
  "error": "false",
  "message": "ok",
  "action": "Media successfully created",
  "reference": "media_reference"
}

Request sending the image itself, base64 encoded:

{
  printf '{"media_name": "Hotel pool", "object_type": "supplier", "object_reference": "supplier_reference", "image_base64": "'
  base64 < hotel-pool.jpg | tr -d '\n'
  printf '"}'
} | curl --location 'https://api.ezus.app/media-create' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data-binary @-
const axios = require("axios");
const fs = require("fs");
const baseUrl = "https://api.ezus.app";

const body = {
  media_name: "Hotel pool",
  image_base64: fs.readFileSync("hotel-pool.jpg").toString("base64"),
  object_type: "supplier",
  object_reference: "supplier_reference",
};
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/media-create", body, headers);

Request with a list of media, on one or several objects:

curl --location 'https://api.ezus.app/media-create' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data-raw '[
    {
        "reference": "media_pool",
        "media_name": "Hotel pool",
        "path_full": "https://example.com/images/hotel-pool.jpg",
        "object_type": "supplier",
        "object_reference": "supplier_reference"
    },
    {
        "media_name": "Lobby",
        "image_base64": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==",
        "object_type": "supplier",
        "object_reference": "supplier_reference"
    },
    {
        "media_name": "Day 1",
        "path_full": "https://example.com/images/day-1.jpg",
        "object_type": "step",
        "object_reference": "project_step_reference"
    }
]'
const axios = require("axios");
const fs = require("fs");
const baseUrl = "https://api.ezus.app";

const body = [
  {
    reference: "media_pool",
    media_name: "Hotel pool",
    path_full: "https://example.com/images/hotel-pool.jpg",
    object_type: "supplier",
    object_reference: "supplier_reference",
  },
  {
    media_name: "Lobby",
    image_base64: fs.readFileSync("lobby.png").toString("base64"),
    object_type: "supplier",
    object_reference: "supplier_reference",
  },
  {
    media_name: "Day 1",
    path_full: "https://example.com/images/day-1.jpg",
    object_type: "step",
    object_reference: "project_step_reference",
  },
];
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/media-create", body, headers);

A list returns one result per media, in the order of the list:

{
  "error": "false",
  "message": "ok",
  "action": "3 media successfully created ; 0 media failed",
  "results": [
    {
      "error": "false",
      "reference": "media_pool"
    },
    {
      "error": "false",
      "reference": "7cf94544-7e56-4e94-93cc-822d2cd9056d"
    },
    {
      "error": "false"
    }
  ]
}

HTTP Endpoint

POST https://api.ezus.app/media-create

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

One JSON object with the parameters below, or a list of 1 to 10 such objects. A list is refused as a whole when it is empty, holds more than 10 media, gives the same reference twice, or holds an element that is not a JSON object; the field named in the error then carries the index of the element, as in [1].path_full. Any other error only concerns its own media. Each media gives exactly one of path_full and image_base64; both kinds can be mixed in one list.

Parameter Type Description
reference String Unique identifier of the media, it must be less than 36 characters long. If not provided, a reference is generated and returned in the response. This endpoint only works in creation mode: a reference one of your non-deleted media already carries answers that media (Duplicates). This field is ignored when object_type is step.
media_name String Required The name of the media, limited to 300 characters.
path_full String Required without image_base64 The URL of the image to download, limited to 500 characters. It must be an https:// URL on port 443 of a publicly reachable image; http:// URLs are refused. Redirects are followed to such URLs only, 3 at most, and the image must download within 20 seconds, uncompressed: an answer with a Content-Encoding such as gzip is refused. Supported formats are jpg, jpeg, png, gif and jfif, with a maximum size of 20 MB. Not allowed together with image_base64.
image_base64 String Required without path_full The image itself, base64 encoded (standard alphabet, with its = padding). Line breaks and a data:image/...;base64, prefix are accepted. Supported formats are jpg, jpeg, png, gif and jfif, as with path_full. The whole request is limited to 6 MB, which leaves room for about 4 MB of images: base64 makes a file a third larger. A larger request is refused with an HTTP 413 status; send larger images with path_full. Not allowed together with path_full.
object_type String The type of object to link the media to. It must be one of: supplier, product, package, subdestination, step. It is mandatory when object_reference is provided. If no object is provided, the media is only added to your media library.
object_reference String The reference of the object to link the media to. It is mandatory when object_type is provided. The media is added in last position of the object's media.

Response

A JSON object indicating whether an error occurred during the process, along with the associated message.

Property Type Description
action String If the media has been created, or Media already exists (Duplicates). With a list, how many media were created, already existed and failed
reference String The reference of the created media (provided or generated). Absent for a media attached to a step, and absent with a list
results Array Only with a list: one JSON object per media, in the order of the list. A created media carries error "false" and its reference (absent for a step); an existing media carries the answer Media already exists with its reference; a refused media carries error "true" and the message saying why. The media of a list are added to their object in the order of the list

Documents

PATCH documents-slide-attach

Attaches a presentation to a supplier, a product, a package, a sub-destination or a step, as its visual. The presentation is either a Google Slides presentation or a .pptx file at a public URL. A record carries one visual: attaching a presentation to a record that already has one replaces it. Send slide_url as null to detach the current visual. A replaced or detached visual is removed from Google Drive.

Ezus must be able to read the presentation: share a Google Slides presentation with anyone who has the link, and serve a .pptx over https from a public address, within 20 MB. A presentation Ezus cannot read is refused with the reason.

curl --location --request PATCH 'https://api.ezus.app/documents-slide-attach' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data '{
    "object_type": "supplier",
    "object_reference": "supplier_reference",
    "slide_url": "https://docs.google.com/presentation/d/10GoT7nVkSIScaHUQEPh-EyUms5o6D7bcgUYsJlyql94"
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  object_type: "supplier",
  object_reference: "supplier_reference",
  slide_url: "https://docs.google.com/presentation/d/10GoT7nVkSIScaHUQEPh-EyUms5o6D7bcgUYsJlyql94",
};
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.patch(baseUrl + "/documents-slide-attach", body, headers);

This request returns a structured JSON object:

{
  "error": "false",
  "message": "ok",
  "action": "Slide successfully attached",
  "visual_url": "https://docs.google.com/presentation/d/1kY3bXwQ2n8pLmNfR7tV0cZ5aH9eJ4dU6sG1oP2qI3w"
}

HTTP Endpoint

PATCH https://api.ezus.app/documents-slide-attach

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

Parameter Type Description
object_type String Required supplier, product, package, subdestination or step.
object_reference String Required The reference of the record, as the GET routes return it. For a step, the reference of a project step or of a sample step of the steps catalog.
slide_url String Required The presentation to attach: the URL of a Google Slides presentation, https://docs.google.com/presentation/d/<id>, or the https URL of a .pptx file. null detaches the current visual. Any other field in the body is refused, not ignored.

Response

Property Type Description
action String Slide successfully attached, Slide successfully updated (the record already had one), Slide successfully detached or No slide was attached (nothing to detach)
visual_url String The URL of the copy now linked to the record, the one the GET routes return as visual_url. Empty after a detach

POST documents-generate

Starts generating the quote (Google Sheets) or the proposal (Google Slides) of an alternative with a template of the account, as Ezus does, and answers the job that generates it, running. Follow the job with GET documents-jobs until it is finished: it then gives the links of the document.

curl --location 'https://api.ezus.app/documents-generate' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data '{
    "project_reference": "project_reference",
    "alternative_order": 0,
    "type": "proposal",
    "template_reference": "document_template_reference",
    "title": "Proposal - Lisbon"
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  project_reference: "project_reference",
  alternative_order: 0,
  type: "proposal",
  template_reference: "document_template_reference",
  title: "Proposal - Lisbon",
};
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/documents-generate", body, { headers });

This request returns a structured JSON object:

{
  "error": "false",
  "reference": "f7d42e86-bd57-4a23-b377-3395b3a1780e",
  "type": "proposal",
  "status": "running",
  "project_reference": "fa10312f-5be1-45d9-b9e1-810f6866c1e8",
  "template_reference": "95dae1cb-d216-11f1-88b0-0ac4b3f97db5",
  "title": "Proposal - Lisbon",
  "document_reference": null,
  "google_url": null,
  "pdf_url": null,
  "failure_reason": null,
  "created_at": "2026-10-27 15:59:46",
  "finished_at": null
}

HTTP Endpoint

POST https://api.ezus.app/documents-generate

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

Parameter Type Description
project_reference String Required The reference of a project of the account, not deleted
alternative_order Number The alternative order, as in project-documents: 0 for the main alternative, then the others by creation date. Defaults to 0
type String Required Document to generate. Possible values: quote (Google Sheets), proposal (Google Slides)
template_reference String Required The reference of a template of this type (GET document-templates), at most 100 characters
title String Required Title of the document, at most 100 characters, without surrounding spaces. When the account already has a proposal of this title, (1), (2)… is added to the title of the document

A project, an alternative or a template the account does not have is refused before any job starts, with an error naming the parameter.

Response

A Documents Job, running.

GET documents-jobs

Returns the document generation jobs of the account, the last started first, with their status and, once a job finished, the links of its document. Poll a job with its reference every few seconds: a quote takes up to about 30 seconds, a proposal up to a few minutes. The list is paginated, 50 jobs per page by default: choose any size from 1 to 250 with the limit query parameter, and call the route with the next_token query parameter to get the next page.

curl --location 'https://api.ezus.app/documents-jobs?reference=f7d42e86-bd57-4a23-b377-3395b3a1780e' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.get(baseUrl + "/documents-jobs?reference=f7d42e86-bd57-4a23-b377-3395b3a1780e", { headers });

This request returns a structured JSON object:

{
  "error": "false",
  "next_token": "",
  "size": 1,
  "data_size": 1,
  "page": 1,
  "documents_jobs": [
    {
      "reference": "f7d42e86-bd57-4a23-b377-3395b3a1780e",
      "type": "proposal",
      "status": "finished",
      "project_reference": "fa10312f-5be1-45d9-b9e1-810f6866c1e8",
      "template_reference": "95dae1cb-d216-11f1-88b0-0ac4b3f97db5",
      "title": "Proposal - Lisbon",
      "document_reference": "1472ffe3-cb9a-426d-ac3c-d567a627631e",
      "google_url": "https://docs.google.com/presentation/d/1wR8W39GHAX54-uNvDN8sZYZRfdN7c2S1vePVoS7owsg",
      "pdf_url": "https://docs.google.com/presentation/d/1wR8W39GHAX54-uNvDN8sZYZRfdN7c2S1vePVoS7owsg/export?format=pdf",
      "failure_reason": null,
      "created_at": "2026-10-27 15:59:46",
      "finished_at": "2026-10-27 16:00:07"
    }
  ]
}

HTTP Endpoint

GET https://api.ezus.app/documents-jobs

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Query Parameters

Parameter Type Description
next_token String Specify this parameter if you want to retrieve the following elements of a given list query. If this parameter is filled, other parameters are ignored.
limit Number Number of jobs per page, any integer from 1 to 250. Defaults to 50. Any other value is refused with an error. The next_token keeps it for the next pages.
reference String Exact match. The reference of a job, as documents-generate answered it
status String Exact match. Possible values: running, finished, failed. Any other value is refused with an error
finished_at Dynamic date filter Filter on the day the job ended, finished or failed, in Paris time. A running job never matches

All filters are cumulative (AND): a job must match every supplied filter to be returned.

Response

Property Type Description
next_token String A token will be returned if all jobs have not been returned. Use it in another call to access the following jobs
size Number The total number of jobs available with these filters
data_size Number Number of jobs returned on the current page
page Number The page number
documents_jobs Array Array of JSON jobs (Documents Job), the last started first

Templates

GET template-variables

Returns the variables a template can use, as the template editor of Ezus offers them: the syntax, the top-level variables, the entities they lead to, the formats a value can take, the collections a web page template loops over. The same variables serve Google Slides, Docs and Sheets templates, web page templates and mailbox templates. The custom fields and step categories a template reads are those of your account, returned by GET me with include=config: config.custom_fields and config.step_categories.

A variable is a path starting with the key of a top-level variable and going down through the keys of its entities, written between $$: days.{n} leads to the entity day, whose title gives $$days.2.title$$, the title of the second day.

curl --location 'https://api.ezus.app/template-variables' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.get(baseUrl + "/template-variables", { headers });

This request returns a structured JSON object:

{
  "error": "false",
  "syntax": [
    {
      "name": "variable",
      "pattern": "$$<path>$$",
      "example": "$$project.title$$",
      "description": "A path of keys joined by dots, starting with the key of a top-level variable and going down through the keys of its entities."
    },
    {
      "name": "custom_field",
      "pattern": "<path>.{{<reference>}}",
      "example": "$$project.{{features}}$$",
      "description": "Value of a custom field of the account, by its reference, on an entity naming a group of config.custom_fields of GET /me?include=config. A step reads the fields of its category, in config.step_categories. Web page templates write __<reference>__."
    }
  ],
  "variables": [
    {
      "key": "project",
      "label": "Project",
      "type": "object",
      "entity": "project",
      "formats": null
    },
    {
      "key": "days.{n}",
      "label": "Day",
      "type": "object",
      "entity": "day",
      "formats": null
    },
    {
      "key": "steps.{n}",
      "label": "Activity step",
      "type": "object",
      "entity": "step",
      "formats": null
    },
    {
      "key": "steps.list",
      "label": "Activity steps, as a list",
      "type": "list",
      "entity": null,
      "formats": "steps_list"
    },
    {
      "key": "today",
      "label": "Today",
      "type": "date",
      "entity": null,
      "formats": "date"
    }
  ],
  "entities": {
    "project": {
      "label": "Project",
      "variables": [
        {
          "key": "title",
          "label": "Title",
          "type": "text",
          "entity": null,
          "formats": null
        },
        {
          "key": "date_in",
          "label": "Start date",
          "type": "date",
          "entity": null,
          "formats": "date"
        },
        {
          "key": "project_manager",
          "label": "Operations manager",
          "type": "object",
          "entity": "manager",
          "formats": null
        }
      ],
      "custom_fields": "project"
    },
    "step": {
      "label": "Step",
      "variables": [
        {
          "key": "title",
          "label": "Title",
          "type": "text",
          "entity": null,
          "formats": null
        },
        {
          "key": "duration",
          "label": "Duration (days)",
          "type": "number",
          "entity": null,
          "formats": "duration"
        },
        {
          "key": "price.[sales]",
          "label": "Sales price, products not in option",
          "type": "amount",
          "entity": null,
          "formats": "sales_price"
        },
        {
          "key": "supplier",
          "label": "Supplier",
          "type": "object",
          "entity": "supplier",
          "formats": null
        }
      ],
      "custom_fields": "step_categories"
    }
  },
  "formats": {
    "date": [
      {
        "value": "[%d/%m/%Y]",
        "label": "DD/MM/YYYY"
      }
    ],
    "duration": [
      {
        "value": "[hours]",
        "label": "Hours"
      }
    ],
    "sales_price": [
      {
        "value": "all",
        "label": "All products"
      },
      {
        "value": "option",
        "label": "Products in option"
      }
    ]
  },
  "loops": [
    {
      "collection": "days",
      "label": "Days",
      "entity": "day"
    },
    {
      "collection": "activities",
      "label": "Steps of any type, by date",
      "entity": "step"
    }
  ]
}

HTTP Endpoint

GET https://api.ezus.app/template-variables

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Response

Property Type Description
syntax Array Rules of the syntax (Template Syntax)
variables Array Top-level variables, where every path starts (Template Variables)
entities Object Entities the variables lead to, by name (Template Entities)
formats Object Ways a value can be written, by name (Template Formats)
loops Array Collections a web page template loops over (Template Loops)

GET webpage-template

Returns a web page template of the account with its HTML source, as the template editor of Ezus shows it. The source uses the Ezus variables ($$project.title$$) and Jinja.

curl --location 'https://api.ezus.app/webpage-template?reference=webpage_template_reference' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const params = { reference: "webpage_template_reference" };
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.get(baseUrl + "/webpage-template", { params, headers });

This request returns a structured JSON object:

{
  "error": "false",
  "webpage_template": {
    "reference": "6071bc88-e8c8-4ca2-af25-4b3abfbedaa9",
    "type": "webpage",
    "name": "Price per traveller",
    "html": "<!DOCTYPE html>\n<html lang=\"en\">\n  <body>\n    Budget per traveller: $$budget.pax.incl_tax$$\n  </body>\n</html>\n",
    "created_at": "2026-08-07 20:07:59",
    "updated_at": "2026-10-24 09:35:03",
    "updated_by": "tommy@e-corp.com"
  }
}

HTTP Endpoint

GET https://api.ezus.app/webpage-template

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Query Parameters

Parameter Type Description
reference String Required The reference of the web page template, as webpage-templates lists it and webpage-templates-upsert returns it

Response

Property Type Description
webpage_template JSON The web page template (Webpage Template)

GET webpage-templates

Returns the web page templates of the account sorted by name, deleted ones excluded, without their HTML source: read it with webpage-template. The template editor of Ezus shows the reference of a template as its API field. The list is paginated, 50 templates per page by default: choose any size from 1 to 250 with the limit query parameter, and call the route with the next_token query parameter to get the next page.

curl --location 'https://api.ezus.app/webpage-templates' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.get(baseUrl + "/webpage-templates", { headers });

This request returns a structured JSON object:

{
  "error": "false",
  "next_token": "",
  "size": 2,
  "data_size": 2,
  "page": 1,
  "webpage_templates": [
    {
      "reference": "6071bc88-e8c8-4ca2-af25-4b3abfbedaa9",
      "type": "webpage",
      "name": "Price per traveller",
      "created_at": "2026-08-07 20:07:59",
      "updated_at": "2026-10-24 09:35:03",
      "updated_by": "tommy@e-corp.com"
    },
    {
      "reference": "fb45687a-3f22-48e7-bb86-40d66d3e16c2",
      "type": "webpage",
      "name": "Trip to Lisbon",
      "created_at": "2025-03-12 14:21:40",
      "updated_at": "2026-09-30 17:02:11",
      "updated_by": "elliot@e-corp.com"
    }
  ]
}

HTTP Endpoint

GET https://api.ezus.app/webpage-templates

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Query Parameters

Parameter Type Description
next_token String Specify this parameter if you want to retrieve the following elements of a given list query. If this parameter is filled, other parameters are ignored.
limit Number Number of templates per page, any integer from 1 to 250. Defaults to 50. Any other value is refused with an error. The next_token keeps it for the next pages.

Response

Property Type Description
next_token String A token will be returned if all templates have not been returned. Use it in another call to access the following templates
size Number The total number of templates of the account
data_size Number Number of templates returned on the current page
page Number The page number
webpage_templates Array Array of JSON web page templates (Webpage Template), without html

POST webpage-templates-upsert

Creates a web page template of the account, or updates one. Without reference, a template is created from name and html; when the account already has a template of this name, nothing is written and its reference is returned. With reference, the name, the html or both are replaced. Each write records the user of the token as the last editor.

curl --location 'https://api.ezus.app/webpage-templates-upsert' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data '{
    "name": "Trip page",
    "html": "<html><body><h1>$$project.title$$</h1></body></html>"
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  name: "Trip page",
  html: "<html><body><h1>$$project.title$$</h1></body></html>",
};
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/webpage-templates-upsert", body, { headers });

This request returns a structured JSON object:

{
  "error": "false",
  "message": "ok",
  "action": "Web page template successfully created",
  "reference": "d0fea1c9-7613-4b9c-a2f3-dcbc31d0001d"
}

HTTP Endpoint

POST https://api.ezus.app/webpage-templates-upsert

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

Parameter Type Description
reference String The reference of the template to update. Without it, a template is created. Any other field in the body is refused, not ignored
name String Name of the template, at most 100 characters. Required to create. Two templates of the account never share a name
html String HTML source of the template, at most 4194304 bytes once encoded in UTF-8. Required to create

Response

Property Type Description
action String Web page template successfully created, Web page template successfully updated or Web page template already exists (a template of the account has this name; nothing written, Duplicates)
reference String The reference of the template created, updated or already existing

POST webpage-templates-preview

Renders a web page template, or HTML not saved as a template, with the values of an alternative of a project, and returns the link of the rendered page. Nothing is published to the project or its client space. A template that cannot be rendered returns no link and the reason in warnings.

curl --location 'https://api.ezus.app/webpage-templates-preview' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data '{
    "reference": "webpage_template_reference",
    "project_reference": "project_reference",
    "alternative_order": 0
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  reference: "webpage_template_reference",
  project_reference: "project_reference",
  alternative_order: 0,
};
const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/webpage-templates-preview", body, { headers });

This request returns a structured JSON object:

{
  "error": "false",
  "url": "https://pages.ezus.io/e-corp/preview_2b74128b-9bf1-4790-85c7-ec2e596e58e5/index.html",
  "warnings": []
}

HTTP Endpoint

POST https://api.ezus.app/webpage-templates-preview

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

Parameter Type Description
reference String The reference of the template to render. Send it or html, not both
html String HTML source to render instead of a saved template, at most 4194304 bytes once encoded in UTF-8. Send it or reference, not both
project_reference String Required The reference of the project whose values fill the variables
alternative_order Integer Rank of the alternative of the project, from 0 (the first). Default: 0

Response

Property Type Description
url String Link of the rendered page. null when the template cannot be rendered
warnings Array Why the template cannot be rendered, such as Line 1 TemplateSyntaxError: unexpected '/'. Empty when the page is rendered

GET document-templates

Returns the templates the account generates its quotes and proposals with, quote templates first, each type sorted by name, deleted ones excluded. Generate a document from one of them with POST documents-generate. The list is paginated, 50 templates per page by default: choose any size from 1 to 250 with the limit query parameter, and call the route with the next_token query parameter to get the next page.

curl --location 'https://api.ezus.app/document-templates' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.get(baseUrl + "/document-templates", { headers });

This request returns a structured JSON object:

{
  "error": "false",
  "next_token": "",
  "size": 2,
  "data_size": 2,
  "page": 1,
  "document_templates": [
    {
      "reference": "1",
      "type": "quote",
      "name": "Detailed quote",
      "lang": null,
      "created_at": "2025-03-12 14:21:40",
      "updated_at": "2026-09-30 17:02:11"
    },
    {
      "reference": "95dae1cb-d216-11f1-88b0-0ac4b3f97db5",
      "type": "proposal",
      "name": "Seminar",
      "lang": "en",
      "created_at": "2026-08-07 20:07:59",
      "updated_at": "2026-10-24 09:35:03"
    }
  ]
}

HTTP Endpoint

GET https://api.ezus.app/document-templates

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Query Parameters

Parameter Type Description
type String Type of the templates listed. Possible values: quote, proposal. Both types are listed when it is not provided
next_token String Specify this parameter if you want to retrieve the following elements of a given list query. If this parameter is filled, other parameters are ignored.
limit Number Number of templates per page, any integer from 1 to 250. Defaults to 50. Any other value is refused with an error. The next_token keeps it for the next pages.

Response

Property Type Description
next_token String A token will be returned if all templates have not been returned. Use it in another call to access the following templates
size Number The total number of templates listed
data_size Number Number of templates returned on the current page
page Number The page number
document_templates Array Array of JSON document templates (Document Template)

Tasks

GET tasks

Returns the tasks of your account, sorted by due date in ascending order (oldest first). The list is paginated, 50 tasks per page by default: choose any size from 1 to 250 with the limit query parameter, and call the route with the next_token query parameter to get the next page.

curl --location 'https://api.ezus.app/tasks?is_done=false&assignee=tommy@e-corp.com&due_at_lte=2026-10-31' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const headers = {
  "x-api-key": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.get(
  baseUrl +
    "/tasks?is_done=false&assignee=tommy@e-corp.com&due_at_lte=2026-10-31",
  headers
);

This request returns a structured JSON object:

{
  "error": "false",
  "next_token": "",
  "size": 2,
  "data_size": 2,
  "page": 1,
  "tasks": [
    {
      "title": "Call the hotel back",
      "description": "Confirm the rooming list before the deposit",
      "due_at": "2026-10-07",
      "is_done": false,
      "assignee": {
        "email": "tommy@e-corp.com",
        "first_name": "Tommy",
        "last_name": "Atkins",
        "agency": "Paris Agency"
      },
      "created_by": {
        "email": "travel-design@e-corp.com",
        "first_name": "Jane",
        "last_name": "Doe",
        "agency": "Paris Agency"
      },
      "project": {
        "reference": "project_reference",
        "info_title": "Japan in autumn"
      },
      "client": {
        "reference": "client_reference",
        "company_name": "Moke International"
      },
      "created_at": "2026-09-30"
    },
    {
      "title": "Trip end date",
      "description": "",
      "due_at": "2026-10-08",
      "is_done": false,
      "assignee": {
        "email": "tommy@e-corp.com",
        "first_name": "Tommy",
        "last_name": "Atkins",
        "agency": "Paris Agency"
      },
      "created_by": "None",
      "project": {
        "reference": "project_reference_2",
        "info_title": "Costa Rica discovery"
      },
      "client": "None",
      "created_at": "2026-10-01"
    }
  ]
}

HTTP Endpoint

GET https://api.ezus.app/tasks

Header Parameters

Parameter Type Description
x-api-key String Required Your Ezus API key
Authorization String Required Your Bearer token

Query Parameters

Parameter Type Description
next_token String Specify this parameter if you want to retrieve the following elements of a given list query. If this parameter is filled, other parameters are ignored.
limit Number Number of tasks per page, any integer from 1 to 250. Defaults to 50. Any other value is refused with an error. The next_token keeps it for the next pages.
title Dynamic filter Filter on the title of the task.
assignee String Provide either the email address of the user the task is assigned to or "None" for the unassigned tasks. Expected format: "john.doe@e-corp.com" or "None".
created_by String Provide either the email address of the user who created the task or "None" for the tasks created automatically. Expected format: "john.doe@e-corp.com" or "None".
is_done Boolean true returns the completed tasks, false the tasks still to do. Without it, both are returned.
project_reference String Reference of the project the task is linked to.
client_reference String Reference of the client the task is linked to.
due_at Dynamic date filter Filter on the due date of the task. Expected format: "YYYY-MM-DD".
created_at Dynamic date filter Filter on the creation date of the task. Expected format: "YYYY-MM-DD".

All filters are cumulative (AND): a task must match every supplied filter to be returned.

Email addresses given to assignee and created_by must be URL-encoded: a + sent as is reads as a space, so jane+travel@e-corp.com is passed as jane%2Btravel%40e-corp.com.

Response

A JSON object containing the tasks information with properties like:

Property Type Description
next_token String A token will be returned if all tasks have not been returned. Use it in another call to access the following tasks
size Number The total number of tasks available with these filters
data_size Number Number of tasks returned on the current page
page Number The page number
tasks Array An array of JSON objects, each representing a task (Task)

Webhooks

GET webhooks

Retrieves a list of webhook endpoints, sorted by creation date from newest to oldest.

curl --location 'https://api.ezus.app/webhooks' \
--header 'X-API-KEY: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const headers = {
  "X-API-KEY": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.get(baseUrl + "/webhooks", headers);

This request returns a structured JSON object:

{
  "error": "false",
  "webhooks": [
    {
      "reference": "webhook_reference",
      "endpoint": "webhook_endpoint",
      "events_types": "projects.created,clients.created",
      "is_active": "true",
      "last_called_at": "2023-01-01 01:01:01"
    }
  ]
}

HTTP Endpoint

GET https://api.ezus.app/webhooks

Header Parameters

Parameter Type Description
X-API-KEY String Required Your Ezus API key
Authorization String Required Your Bearer token

Response

An array of JSON that contains your webhooks information.

Property Type Description
webhooks Array Array of JSON webhooks (Webhooks)

GET webhooks-last

Returns the latest event occurrence of a specified event type.

curl --location 'https://api.ezus.app/webhooks-last?event_type=projects.created' \
--header 'X-API-KEY: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const headers = {
  "X-API-KEY": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.get(baseUrl + "/webhooks-last?event_type=projects.created", headers);

This request returns a structured JSON object:

{
  "id": "event_id",
  "object": "event",
  "type": "projects.created",
  "field": "",
  "old_value": "",
  "new_value": "",
  "created": 1234567890,
  "trigger_reference": "pro.ezus.io;projects-create",
  "is_duplication": false,
  "data": {...}
}

HTTP Endpoint

GET https://api.ezus.app/webhooks-last

Header Parameters

Parameter Type Description
X-API-KEY String Required Your Ezus API key
Authorization String Required Your Bearer token

Query Parameters

Parameter Type Description
event_type String Required The event type to retrieve

Response

A JSON object indicating whether an error occurred during the process, along with the associated message. If successful, it returns the latest event occurrence of a specified event type (Events).

POST webhooks-upsert

It updates a webhook record if the provided reference or endpoint does match one of the webhooks in your account, otherwise it creates a new webhook record with the provided reference (or with a random one if no reference is provided).

curl --location 'https://api.ezus.app/webhooks-upsert' \
--header 'X-API-KEY: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data '{
    "reference": "webhook_reference",
    "endpoint": "https://webhook.webhook/",
    "is_active": "true",
    "events_types": "projects.created,clients.created"
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  reference: "webhook_reference",
  endpoint: "https://webhook.webhook/",
  is_active: "true",
  events_types: "projects.created,clients.created",
};
const headers = {
  "X-API-KEY": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.post(baseUrl + "/webhooks-upsert", body, headers);

This request returns a structured JSON object:

{
  "error": "false",
  "message": "ok",
  "action": "Webhook successfully created",
  "reference": "webhook_reference"
}

HTTP Endpoint

POST https://api.ezus.app/webhooks-upsert

Header Parameters

Parameter Type Description
X-API-KEY String Required Your Ezus API key
Authorization String Required Your Bearer token

Body Parameters (application/json)

Parameter Type Description
reference String If provided, the unique reference associated to the webhook you want to update or create (in case the one you provided has never been used). If no reference is provided, a webhook will be created with a random one. It must be a maximum of 100 characters.
endpoint String If provided, the endpoint associated to the webhook you want to update or create (in case the one you provided has never been used). This parameter is required if you create a new webhook and has to be unique. You cannot update the endpoint of an existing webhook. It must be an https URL on port 443, at most 200 characters, whose host resolves to public IP addresses only.
is_active String Status of the webhook true or false
events_types JSON The list of events to enable for this endpoint. At least 1 required, separated by commas if more than one. (Events)

Response

A JSON object indicating whether an error occurred during the process, along with the associated message.

Property Type Description
action String Indicates type of webhook action was created
reference String The reference for the webhook, which you should store for future updates or retrievals

DELETE webhooks-delete

It deletes a webhook record if the provided reference or endpoint does match one of the webhooks in your account.

curl --request "DELETE" \
--location 'https://api.ezus.app/webhooks-delete' \
--header 'X-API-KEY: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data '{
    "reference": "webhook_reference",
    "endpoint": "https://webhook.webhook/"
}'
const axios = require("axios");
const baseUrl = "https://api.ezus.app";

const body = {
  reference: "webhook_reference",
  endpoint: "https://webhook.webhook/",
};
const headers = {
  "X-API-KEY": "<YOUR_API_KEY>",
  Authorization: "Bearer <YOUR_TOKEN>",
};

axios.delete(baseUrl + "/webhooks-delete", body, headers);

This request returns a structured JSON object:

{
  "error": "false",
  "message": "ok",
  "action": "Webhook successfully deleted"
}

HTTP Endpoint

DELETE https://api.ezus.app/webhooks-delete

Header parameters

Parameter Type Description
X-API-KEY String Required Your Ezus API key
Authorization String Required Your Bearer token

Body parameters (application/json)

Parameter Type Description
reference String If provided, the unique reference associated to the webhook you want to delete
endpoint String If provided, the endpoint associated to the webhook you want to delete

Response

A JSON object indicating whether an error occurred during the process, along with the associated message.

Nested Resources

Account

"account": {
  "name": "E-Corp Travels",
  "currency": "EUR"
}
Property Type Description
name String Company name of the account
currency String Default currency of the account

Account Currencies

The currencies of the account and their exchange rates.

"currencies": {
  "reference": "EUR",
  "catalog": "EUR",
  "projects": "USD",
  "library": [
    { "code": "EUR", "name": "Euro", "rate": 1 },
    { "code": "USD", "name": "US dollar", "rate": 1.08 },
    { "code": "CHF", "name": "Swiss franc", "rate": 2.2223 }
  ]
}
Property Type Description
reference String Code of the reference currency, the one every rate is quoted against. The same as currency in Account
catalog String Code of the default currency of new catalog products
projects String Code of the default sales currency of new projects
library Array Currencies of the account, the reference first, then in the order they were added

Each currency:

Property Type Description
code String Code of the currency, as the currency of the write routes takes it. ISO 4217, except for a few Ezus codes such as CFA or BTC
name String English name of the currency
rate Number Amount of this currency worth 1 unit of the reference currency. 1 for the reference itself

Account Defaults

The settings of the account a new record is created with and its prices, margins and VAT are computed with. A setting the account never changed carries the value Ezus applies.

"default": {
  "lang": "french",
  "client_type": "enterprise",
  "activity_start": "09:00:00",
  "activity_end": "18:00:00",
  "activity_hours": "start_and_end",
  "step_title_accommodation_transportation": "supplier_name",
  "step_title_activity": "product_name",
  "step_description": "short",
  "price_display": "excluded_taxes",
  "margin_based_on": "sales_price",
  "margin_rate": 20,
  "margin_calculation": "per_product",
  "price_update_behavior": "adjust_margin_rate",
  "is_margin_rate_per_client_enabled": true,
  "vat_regime": "classic",
  "vat_rate": 20,
  "vat_rate_margin": 20,
  "vat_classic_calculation_mode": "line",
  "vat_not_applicable_is_recoverable": false,
  "commission_based_on": "sales_price",
  "project_global_supplements": {
    "fees": 1452,
    "fees_type": "flat",
    "discount": 0,
    "discount_type": "flat"
  },
  "purchase_invoices_based_on": "total_invoiced_purchase_price",
  "purchase_invoices_due_date": "day_plus_30",
  "create_payment_after_invoice": true,
  "paid_invoice_mention": null
}

General:

Property Type Description
lang String Default language, as the name of Account Languages
client_type String Type of a new client. Possible values: enterprise, individual, as the type of a client

Steps:

Property Type Description
activity_start String Start time of a new activity step, "HH:MM:SS". null when activity_hours is none
activity_end String End time of a new activity step, "HH:MM:SS". null unless activity_hours is start_and_end
activity_hours String Hours a new activity step gets. Possible values: none (no time), start_only (activity_start, no end), start_and_end
step_title_accommodation_transportation String Title of a new accommodation or transport step. Possible values: supplier_name, product_name
step_title_activity String Title of a new activity or extra step. Possible values: supplier_name, product_name
step_description String Description a new step takes from its product. Possible values: short, long. null when none is set

Budget:

Property Type Description
price_display String Prices shown in the budget. Possible values: excluded_taxes, included_taxes
margin_based_on String Price the margin rate is shown against. Possible values: sales_price, purchase_price
margin_rate Number Default margin rate, in percent of the price margin_based_on names, as the settings show it. sales_price: a sales price is the purchase price divided by 1 - margin_rate / 100; purchase_price: it is the purchase price times 1 + margin_rate / 100
margin_calculation String How the margin of a project is computed. Possible values: per_product, global
price_update_behavior String What changes when a price of a product is edited. Possible values: adjust_margin_rate (the margin rate follows), keep_margin_rate (the other price follows). null when none is set
is_margin_rate_per_client_enabled Boolean Whether a client can carry a margin rate of its own

VAT:

Property Type Description
vat_regime String VAT regime, as vat_regime on the product and item routes. Possible values: margin (VAT on the margin), classic (common law VAT), none (non applicable VAT). null when the account has no regime set
vat_rate Number Default VAT rate, in percent
vat_rate_margin Number VAT rate applied to the margin and to the fees, in percent
vat_classic_calculation_mode String Rate the classic regime applies. Possible values: line (the rate of each line), vat_rate_margin, vat_rate
vat_not_applicable_is_recoverable Boolean Whether the purchase VAT is recovered under the none regime

Commission and fees:

Property Type Description
commission_based_on String Price a commission in percent applies to. Possible values: sales_price, purchase_price
project_global_supplements JSON Fee and discount of a new project

project_global_supplements:

Property Type Description
fees Number Amount of the fee: a percentage or an amount in the reference currency, per fees_type
fees_type String Possible values: percentage, flat
discount Number Always 0: a new project starts without a discount
discount_type String Same as fees_type, percentage when the account has no fee type. Possible values: percentage, flat

Purchases:

Property Type Description
purchase_invoices_based_on String Purchase total the finances of a new project are computed from: the budget or the supplier invoices. Possible values: total_forecast_purchase_price, total_invoiced_purchase_price. null when none is set
purchase_invoices_due_date String Due date of a new supplier invoice. Possible values: none, day (its invoice date), day_plus_1, day_plus_2, day_plus_3, day_plus_4, day_plus_5, day_plus_7, day_plus_14, day_plus_30, day_plus_60, day_plus_90

Sales:

Property Type Description
create_payment_after_invoice Boolean Whether a client payment is created with a new invoice
paid_invoice_mention String Mention stamped on a paid invoice. Possible values: paid, settled. null when none

Account Deleted Users

The deleted users of the account, the last deleted first. A record created by a user who was deleted since still carries the email of that user: this list names it. An email appears once, and never when a live user of Account Users holds it again.

"users_deleted": [
  {
    "reference": "former@e-corp.com",
    "first_name": "Paul",
    "last_name": "Martin",
    "email": "former@e-corp.com",
    "role": "user",
    "is_technical_user": false
  }
]
Property Type Description
reference String Identifier of the user, its email, as the records it owned carry it
first_name String First name of the user, "" when none is set
last_name String Last name of the user, "" when none is set
email String Email of the user
role String Role the user had, as role in Authenticated User
is_technical_user Boolean Whether the user was a technical user, as is_technical_user in Account Users

Account Languages

The languages the account writes its descriptions in.

"languages": {
  "default": "french",
  "library": [
    { "code": "fr", "name": "french", "label": "French" },
    { "code": "us", "name": "american", "label": "English (US)" }
  ]
}
Property Type Description
default String name of the default language of the account, the one a new project is written in
library Array Languages activated in the language library of the account

Each language:

Property Type Description
code String Short code of the language. Possible values: fr, en, us, es, it, pt, de, nl, no, cu (the custom language)
name String Name of the language, the lang of a Langs entry on the write routes
label String English label of the language

Account Users

The users of the account, in the order they were created. A deactivated user is listed with is_active false; a deleted one is listed in Account Deleted Users instead.

"users": [
  {
    "reference": "tommy@e-corp.com",
    "first_name": "Tommy",
    "last_name": "Atkins",
    "email": "tommy@e-corp.com",
    "role": "admin",
    "is_active": true,
    "is_technical_user": false
  }
]
Property Type Description
reference String Identifier of the user on the write routes: the sales_manager_email of POST /projects-upsert, the user of POST /clients-upsert
first_name String First name of the user, "" when none is set
last_name String Last name of the user, "" when none is set
email String Email of the user
role String Role of the user, as role in Authenticated User
is_active Boolean Whether the user is active, false once deactivated
is_technical_user Boolean Whether the user is a technical user, not counted among the users of the account: flagged as such, or with an Ezus address (@ezus.io)

Authenticated User

"user": {
  "email": "tommy@e-corp.com",
  "first_name": "Tommy",
  "last_name": "Atkins",
  "role": "admin"
}
Property Type Description
email String Email of the user
first_name String First name of the user
last_name String Last name of the user
role String Role of the user. Ezus ships with super_admin, admin, user and collaborator; a role your account created itself keeps its own name

Address

"address": {
  "label": "58 Rue de Paradis",
  "city": "Paris",
  "state": "Île-de-France",
  "country": "France",
  "zip": "75010",
  "geo": {
    "x": 48.875761,
    "y": 2.348727
  }
}
Property Type Description
label String Street part of the address, as sent (the city, state, zip and country are returned in their own fields)
city String Name of the city
state String State, province or region, as free text (e.g. Texas, TX, Ontario). Stored only for an account that turned on State / province in addresses in its settings (off by default)
country String Name of the country, as free text (e.g. France). It is stored and returned as sent, not converted to a country code.
zip String Post code. At most 10 characters on suppliers-upsert, clients-upsert and project-steps-upsert
geo JSON Represents the geographical coordinates of the address or null if not geolocated. If provided, it consists of x (latitude, between -90 and 90) and y (longitude, between -180 and 180), both returning a Number with 6 decimals. On suppliers-upsert, clients-upsert and project-steps-upsert, geo is optional: omit it or send null to store the address without coordinates.

On project-steps-upsert, clients-upsert and suppliers-upsert, the address sent is the whole address of the step, client or supplier:

"address": {
  "city": "Chamonix-Mont-Blanc",
  "country": "France"
}

An address with only a city and a country, without coordinates. The street, zip, state and coordinates stored before are cleared.

"address": {
  "label": "58 Rue de Paradis",
  "city": "Paris",
  "state": "Île-de-France",
  "country": "France",
  "zip": "75010",
  "geo": {
    "x": 48.875832,
    "y": 2.348901
  }
}

Correcting only the coordinates: send the whole address again with the new geo.

Alternatives

"alternatives": [
  {
    "reference": "550e8400-e29b-41d4-a716-446655440000",
    "alternative_title": "Main Alternative",
    "lang": "fr-FR",
    "is_main": true,
    "is_sig": false,
    "trip_date_in": "2024-03-01",
    "trip_date_out": "2024-03-09",
    "trip_duration": 9,
    "trip_people": "15",
    "trip_destination_reference": "destination_reference",
    "trip_destination": "France",
    "trip_subdestination_reference ": "subdestination_reference",
    "trip_subdestination": "Paris",
    "trip_budget": 90000,
    "budget_actual": 88750,
    "budget_actual_excl_taxes ": 77950,
    "budget_margin_gross": 2500,
    "budget_margin_net": 1000,
    "global_commissions": [
      {
        "reference": "referral-2026",
        "title": "Business referral commission",
        "direction": "retroceded",
        "value_mode": "rate",
        "base": "sales",
        "value": 10.0,
        "supplier_reference": "supplier_reference",
        "filename": null,
        "file_url": null
      }
    ],
    "budget_purchases": 74500,
    "financial_invoiced": 48000,
    "financial_collected": 48000,
    "financial_purchases": 72820,
    "financial_spendings": 12820,
    "destinations": {
      "size": 3,
      "data": [
        {
          "reference": "destination_reference",
          "name": "France",
          "subdestination_reference": "subdestination_reference",
          "subdestination_name": "Paris"
        },
        {
          "reference": "destination_reference",
          "name": "France",
          "subdestination_reference": "subdestination_reference1-2",
          "subdestination_name": "Lyon"
        },
        {
          "reference": "destination_reference2",
          "name": "Italy",
          "subdestination_reference": "subdestination_reference2-1",
          "subdestination_name": "Milan"
        }
      ]
    },
    "client": {
      "reference": "client_reference",
      "type": "enterprise",
      "company_name": "MOKE INTERNATIONAL LIMITED",
      "first_name": "Jane",
      "last_name": "Doe",
      "email": "contact@moke-international.com"
    },
    "client_space": {
      "is_live": true,
      "url": "https://custom-domain.com/your-space-slug",
      "description": "Description of the client space",
      "image_url": "https://image.jpg"
    },
    "brand": {
      "title": "INTERNATIONAL LIMITED",
      "company_name": "MOKE INTERNATIONAL LIMITED",
      "address": {
        "label": "58 Rue de Paradis",
        "city": "Paris",
        "country": "France",
        "zip": "75010"
      },
      "email": "travel-design@e-corp.com",
      "phone": "0101010101",
      "website": "www.moke_ltd.com",
      "vat_number": "GB 240-635-038",
      "company_number": "09728676"
    }
  }
]
Property Type Description
reference String Unique reference of this alternative: (distinct from the root project reference at the top level of the GET project response).
alternative_title String Title of the alternative
lang String Alternative locale code (e.g. fr-FR, en-GB)
is_main Boolean If the alternative is the main alternative
is_sig Boolean If the alternative is in group mode (GIR): its travellers are split into groups (Groups)
trip_date_in Date Date of the beginning of this alternative, in a "YYYY-MM-DD" format string. If it's empty, the project has no dates
trip_date_out Date Date of the end of this alternative, in a "YYYY-MM-DD" format string. If it's empty, the project has no dates
trip_duration Number Number of days this alternative lasts
trip_people String Number of people
trip_destination_reference String Destination reference of the alternative. Note: For multi-destination alternatives, only the primary destination is returned.
trip_destination String Destination of the alternative. Note: For multi-destination alternatives, only the primary destination is returned.
trip_subdestination_reference String Subdestination reference of the alternative. Note: For multi-destination alternatives, only the primary subdestination is returned.
trip_subdestination String Subdestination of the alternative. Note: For multi-destination alternatives, only the primary subdestination is returned.
trip_budget Number Forecasted budget for the alternative (the one that is entered manually not the actual one)
budget_actual Number Actual budget for the alternative, inclusive of taxes
budget_actual_excl_taxes Number Actual budget for the alternative, excluding taxes
budget_margin_gross Number Gross margin for the alternative
budget_margin_net Number Net margin for the alternative, global commissions included (received ones added, retroceded ones deducted)
global_commissions Array Array of JSON global commissions of the alternative (Commissions), empty when it has none
budget_purchases Number Planned supplier purchases amount for the alternative (in project currency). This is a forecasted value, not actual spending
financial_invoiced Number Total amount invoiced to clients for the alternative (in project currency). Draft invoices are not included in this calculation
financial_collected Number Total amount collected from clients for the alternative (in project currency). Represents actual payments received
financial_purchases Number Actual supplier purchase costs for the alternative (in project currency). Corresponds to recorded supplier invoices
financial_spendings Number Actual spendings recorded for the alternative (in project currency). Includes all types of supplier payments (purchases, fees, etc.)
destinations JSON JSON including: size, Array of all destination (reference and name) and subdestination (subdestination_reference and subdestination_name) values
client JSON JSON including: reference, type (enterprise or individual), company_name, first_name, last_name and email, or "None" when the alternative has no client
client_space JSON JSON including: is_live (Boolean), url (empty string when not live; uses slug when available, otherwise ?id=; custom domain when configured, fallback to docs.ezus.io), description, image_url
brand JSON JSON object representing the brand (Brand) associated with the alternative

Brand

If no brand is associated with an alternative, the default values are taken from the user’s company settings.

"brand": {
  "title": "INTERNATIONAL LIMITED",
  "company_name": "MOKE INTERNATIONAL LIMITED",
  "address": {
    "label": "58 Rue de Paradis",
    "city": "Paris",
    "country": "France",
    "zip": "75010"
  },
  "email": "travel-design@e-corp.com",
  "phone": "0101010101",
  "website": "www.moke_ltd.com",
  "vat_number": "GB 240-635-038",
  "company_number": "09728676"
}
Property Type Description
title String Title of the brand
company_name String Name of the brand company
address JSON JSON object representing the address (Address) of the brand
email String Email of the brand
phone String Phone of the brand
website String Website link of the brand
vat_number String VAT number of the brand
company_number String Company registration number of the brand

Commissions

Global commissions of an alternative: amounts received from or paid back to a third party on the whole alternative, rather than on one item. They are read in the global_commissions array of each alternative of GET project and of the Project Financials of GET /projects?include=financials, and written with POST projects-commissions-upsert and DELETE projects-commissions-delete.

"global_commissions": [
  {
    "reference": "referral-2026",
    "title": "Business referral commission",
    "direction": "retroceded",
    "value_mode": "rate",
    "base": "sales",
    "value": 10.0,
    "supplier_reference": "supplier_reference",
    "filename": null,
    "file_url": null
  },
  {
    "reference": "partner-agency",
    "title": "Partner agency commission",
    "direction": "received",
    "value_mode": "amount",
    "base": null,
    "value": 250.0,
    "supplier_reference": null,
    "filename": "partner-agreement.pdf",
    "file_url": "https://ezus-bucket.s3.amazonaws.com/commissions/9309b349-6995-4aef-a5fc-cef89fee81fe/partner-agreement.pdf"
  }
]
Property Type Description
reference String Unique reference of the commission within its alternative. Commissions added in the Ezus app get a generated one. Duplicating a project gives the commissions of the copy new references.
title String Title of the commission
direction String received: the commission is paid to you and added to the net margin. retroceded: you pay it back to a third party and it is deducted from the net margin
value_mode String rate: a percentage of base. amount: a fixed amount in the project currency
base String For a rate only, what the percentage applies to: sales (sale price of the alternative, inclusive of taxes: budget_actual), purchase (planned purchases: budget_purchases) or margin_gross (gross margin: budget_actual minus budget_purchases). null for an amount
value Number Percentage (at most 100) or amount, with at most 2 decimals
supplier_reference String Reference of the supplier the commission is received from or paid back to, null if none
filename String Name of the attached file (contract, invoice...), null if none
file_url String Link to the attached file, null if none

Contacts

At most 10 contacts are returned in data: the main contact first, then the most recently created ones. size is the total number of contacts. POST /clients-upsert and POST /suppliers-upsert write one contact per call, the object below without the data wrapper.

"contacts": {
  "data": [
    {
      "reference": "contact_reference",
      "email": "contact@moke.com",
      "first_name": "Jane",
      "last_name": "Doe",
      "title": "CEO",
      "gender": "Ms",
      "phone": "0101010101",
      "phone2": "0606060606",
      "birth_date": "1986-09-17",
      "is_main": true
    },
    {
      "reference": "contact_reference",
      "email": "bob@proton.me",
      "first_name": "Bob",
      "last_name": "Morane",
      "title": "Project Manager",
      "gender": "Mr",
      "phone": "0202020202",
      "phone2": "0707070707",
      "birth_date": "1985-10-18",
      "is_main": false
    }
  ],
  "size": 2
}
Property Type Description
reference String Reference of the contact
email String Email of the contact
first_name String First name of the contact as a string
last_name String Last name of the contact as a string
title String Title of the contact as a string
gender String Mr, Ms or Undefined
phone String Phone number of the contact as a string
phone2 String Second phone number of the contact as a string
birth_date String Contact's date of birth in a "YYYY-MM-DD" format string (supplier contacts have no date of birth)
is_main Boolean True if this contact is the primary contact for the parent resource

Writing a contact

Send contact on POST /clients-upsert or POST /suppliers-upsert. mode defaults to insert_main. is_main is a boolean. A reference is at most 100 characters, email 200, first_name, last_name, title, phone and phone2 100 each. Supplier contacts have no birth_date.

mode reference What it does
insert_main (default) omitted Creates a contact and makes it the main contact. is_main: false adds it as a secondary contact and leaves the main contact unchanged.
upsert_main omitted Replaces every field of the current main contact, or creates it when the fiche has none. A field left out is saved empty.
insert optional Adds a secondary contact. is_main: true makes it the main contact. The reference you send is stored. Sending that same reference again updates this contact, so a catalogue import can be run again. On that second call, a field left out keeps its value.
update required Updates the contact with this reference. A field left out keeps its value.
delete required Removes the contact.

The first contact of a fiche is the main contact, including when is_main is false. is_main: true designates that contact as the main one. is_main: false never removes the current main contact: send is_main: true on the contact that should replace it.

insert_main and upsert_main with a reference update that contact the same way as update: a field left out keeps its value. An unknown reference, on update, delete, insert_main or upsert_main, is refused with REFERENCE_NOT_FOUND and nothing is created. When several contacts of the fiche share that reference, the call is refused.

Deleting the main contact makes the oldest remaining contact the main one. On an individual client, the fiche name becomes that contact's name. Deleting the last contact leaves the fiche without a main contact and clears the individual client's name. "contact": "0" clears the main contact and does not delete it.

A contact created without a reference receives one. Read it back with GET /client or GET /supplier, and send it to update or remove that contact.

Custom Field Definitions

The custom fields an account defined, one list per object type. A field is written and read by its reference, as the name of a Custom Fields entry. Each list is grouped by family, in the order the account sorts them: the fields without family first, then each family, each field in its order within its family.

"custom_fields": {
  "project": [
    {
      "name": "Trip theme",
      "reference": "trip-theme",
      "type": "select",
      "options": ["Incentive", "Seminar", "Leisure"],
      "default": "Seminar",
      "description": "Theme announced to the client",
      "family": "General"
    }
  ],
  "budget": [],
  "products": [],
  "packages": [],
  "suppliers": [],
  "clients": [],
  "travellers": [],
  "invoices": [],
  "payment_methods": [
    {
      "name": "Carte bancaire",
      "reference": "default1",
      "type": "text",
      "options": null,
      "default": null,
      "description": null,
      "family": "General"
    },
    {
      "name": "Chèque",
      "reference": "default2",
      "type": "text",
      "options": null,
      "default": null,
      "description": null,
      "family": "General"
    },
    {
      "name": "Espèce",
      "reference": "default3",
      "type": "text",
      "options": null,
      "default": null,
      "description": null,
      "family": "General"
    },
    {
      "name": "Virement",
      "reference": "default4",
      "type": "text",
      "options": null,
      "default": null,
      "description": null,
      "family": "General"
    },
    {
      "name": "Paypal",
      "reference": "default5",
      "type": "text",
      "options": null,
      "default": null,
      "description": null,
      "family": "General"
    },
    {
      "name": "Paiement mobile",
      "reference": "default6",
      "type": "text",
      "options": null,
      "default": null,
      "description": null,
      "family": "General"
    }
  ],
  "options": [
    {
      "name": "Option",
      "reference": "default1",
      "type": "text",
      "options": null,
      "default": null,
      "description": null,
      "family": "General"
    },
    {
      "name": "Sur demande",
      "reference": "default2",
      "type": "text",
      "options": null,
      "default": null,
      "description": null,
      "family": "General"
    }
  ],
  "texts": []
}
Property Type Description
project Array Fields of the project brief
budget Array Fields of the project budget
products Array Fields of the catalog products
packages Array Fields of the packages
suppliers Array Fields of the suppliers, whatever their family
clients Array Fields of the clients
travellers Array Fields of the travellers. POST /project-travellers-create only writes the text and number ones
invoices Array Fields of the invoices
payment_methods Array Payment methods of the account, one entry each. The reference is the payment_method of POST /deposits-create and POST /invoices-supplier-payments-create. The Ezus default ones, named in the account's default language, while the account has none of its own
options Array Option labels an item can carry, one entry each. The reference is the option_reference of POST /project-steps-items-upsert. The Ezus default ones, named in the account's default language, while the account has none of its own
texts Array Wordings the account renamed: name is its wording, default the Ezus one

Each field:

Property Type Description
name String Display name of the field
reference String Technical name of the field, the name to send in custom_fields on the write routes
type String Type of the field. Possible values: text, textarea, number, date, time, checkbox, select, multi_select, url, file
options Array Values a select or multi_select field accepts, to write exactly as listed. null for the other types
default Mixed Value of a new record: a string for text, textarea, select, url; a number for number; true or false for checkbox; "YYYY-MM-DD" for date; "HH:MM" for time; an array of options for multi_select. null when none is set, and always for file
description String Description of the field. null when none is set
family String Name of the family of the field, General when it has none

Field

A custom field of one object, as GET fields lists it and POST fields-create returns it: its object_type, then the properties of a field of Custom Field Definitions.

{
  "object_type": "product",
  "name": "Star rating",
  "reference": "star-rating",
  "type": "select",
  "options": ["3", "4", "5"],
  "default": "4",
  "description": "Official rating of the hotel",
  "family": "General"
}
Property Type Description
object_type String Object of the field. Possible values: project, product, supplier, client, traveller, step
step_type String Only for a step field: step type of its category, as sent to POST fields-create
step_category String Only for a step field: reference of its category (Step Categories)
reference String Technical name of the field: the name to send in custom_fields on the write route of its object

The other properties are those of each field of Custom Field Definitions. A step field has no family: it belongs to its category.

Custom Fields

"custom_fields": [
  {
    "name": "Text",
    "value": "Value"
  },
  {
    "name": "Number",
    "value": "42"
  },
  {
    "name": "Text area",
    "value": "Value of the text Area"
  },
  {
    "name": "Date",
    "value": "2012-12-21"
  },
  {
    "name": "Time",
    "value": "2006-10-07T12:06:56.568+01:00"
  },
  {
    "name": "URL link",
    "value": "https://urllink.com"
  },
  {
    "name": "File",
    "value": "https://urllink.com/files/document.pdf"
  },
  {
    "name": "Checkbox",
    "value": "true"
  },
  {
    "name": "Dropdown",
    "value": "ExactOption"
  },
  {
    "name": "MultipleDropdown",
    "value": "ExactOption1/-/ExactOption2"
  }
]

The technical name of a custom field can be found in the custom field edit modal. A value is at most 5000 characters; the options of a Multiple Dropdown count once joined by /-/.

Options Type Description
Text String Simple string like Text Area
Dropdown String The option must be written exactly as in the parameters, respecting the case
Multiple Dropdown String or Array The option must be written exactly as in the parameters, respecting the case, for Multiple Answer you should enter Option1/-/Option2/-/Option3 in a string, "/-/" should separate each options, or send an array of options, each a string: ["Option1", "Option2", "Option3"]. An array is accepted for this type only
Date String The date must be in a "YYYY-MM-DD" format string
Time String The time must be in a "YYYY-MM-DDTHH:MM:SS+01:00" format string
Checkbox String The checkbox must be a string: "true" (checked) OR "false" (unchecked)
Number String Number type should be a Number without other character
File String File must be an https:// URL on port 443 of a publicly reachable file, which Ezus downloads and stores. http:// URLs are refused. Redirects are followed to such URLs only, 3 at most. The file must download within 20 seconds and weigh at most 100 MB. Supported file extensions include: .pdf, .jpg, .jpeg, .png, .bmp, .gif, .docx, .doc, .msg, .odt, .rtf, .txt, .ppt, .pptx, .pptm, .csv, .xlsx

Category

"category": {
    "reference": "category_reference",
    "name": "Accommodation / Lodging",
    "subcategory_reference": "subcategory_reference",
    "subcategory_name": "Hotel Room"
}
Property Type Description
reference String The reference of the category
name String Name of the category
subcategory_reference String The reference of the sub-category
subcategory_name String Name of the sub-category

Categories

"categories": [
  {
    "reference": "category_reference",
    "name": "Experiences",
    "vat_rate": 20,
    "margin_rate": 25,
    "quantity": "P",
    "subcategories": [
      {
        "reference": "subcategory_reference",
        "name": "Relaxation",
        "vat_rate": 10,
        "margin_rate": 23.0769,
        "quantity": "P*N"
      }
    ]
  }
]

Each object represents a category with its associated sub-categories

Property Type Description
reference String The reference of the category
name String Name of the category
vat_rate Number VAT rate a product created in this category starts with
margin_rate Number Margin rate a product created in this category starts with, in percent of the sales price
quantity String Quantity a product created in this category starts with: a number or a formula, see Quantity formula
subcategories Array An array of JSON objects, each representing a sub-category with its reference, name, vat_rate, margin_rate and quantity

A category or a sub-category that leaves a rate to the account carries the account's default rate, and a quantity of 1 when it leaves the quantity unset, as the Ezus app does.

Config

The configuration of the account, returned by GET /me?include=config.

"config": {
  "project_statuses": {
    "ongoing": [
      {
        "name": "Quote sent",
        "reference": "quote-sent",
        "color": "#00b3ff"
      }
    ],
    "archived": [
      {
        "name": "Paid",
        "reference": "paid",
        "color": "#7ed321"
      }
    ],
    "template": [
      {
        "name": "Seminar",
        "reference": "seminar",
        "color": "#e25050"
      }
    ]
  },
  "project_supplier_statuses": [
    {
      "name": "To contact",
      "reference": "to-contact",
      "color": "#00b3ff"
    },
    {
      "name": "Validated",
      "reference": "validated",
      "color": "#7ed321"
    },
    {
      "name": "Paid",
      "reference": "paid",
      "color": "#7ed321"
    }
  ],
  "notes_default": {
    "project": "Budget and dates to confirm with the client",
    "products": "",
    "packages": "",
    "suppliers": "Ask for the group rates",
    "clients": ""
  },
  "custom_fields": {
    "project": [
      {
        "name": "Trip theme",
        "reference": "trip-theme",
        "type": "select",
        "options": ["Incentive", "Seminar", "Leisure"],
        "default": "Seminar",
        "description": "Theme announced to the client",
        "family": "General"
      }
    ],
    "budget": [],
    "products": [],
    "packages": [],
    "suppliers": [],
    "clients": [],
    "travellers": [],
    "invoices": [],
    "payment_methods": [
      {
        "name": "Carte bancaire",
        "reference": "default1",
        "type": "text",
        "options": null,
        "default": null,
        "description": null,
        "family": "General"
      },
      {
        "name": "Chèque",
        "reference": "default2",
        "type": "text",
        "options": null,
        "default": null,
        "description": null,
        "family": "General"
      },
      {
        "name": "Espèce",
        "reference": "default3",
        "type": "text",
        "options": null,
        "default": null,
        "description": null,
        "family": "General"
      },
      {
        "name": "Virement",
        "reference": "default4",
        "type": "text",
        "options": null,
        "default": null,
        "description": null,
        "family": "General"
      },
      {
        "name": "Paypal",
        "reference": "default5",
        "type": "text",
        "options": null,
        "default": null,
        "description": null,
        "family": "General"
      },
      {
        "name": "Paiement mobile",
        "reference": "default6",
        "type": "text",
        "options": null,
        "default": null,
        "description": null,
        "family": "General"
      }
    ],
    "options": [
      {
        "name": "Option",
        "reference": "default1",
        "type": "text",
        "options": null,
        "default": null,
        "description": null,
        "family": "General"
      },
      {
        "name": "Sur demande",
        "reference": "default2",
        "type": "text",
        "options": null,
        "default": null,
        "description": null,
        "family": "General"
      }
    ],
    "texts": []
  },
  "seasons_groups": [
    {
      "name": "Summer",
      "reference": "summer",
      "seasons": [
        {
          "name": "High season",
          "reference": "high_season",
          "limit_start": "2026-07-01",
          "limit_end": "2026-08-31",
          "is_yearly": true
        }
      ]
    }
  ],
  "categories": [
    {
      "reference": "category_reference",
      "name": "Experiences",
      "vat_rate": 20,
      "margin_rate": 25,
      "quantity": "P",
      "subcategories": [
        {
          "reference": "subcategory_reference",
          "name": "Relaxation",
          "vat_rate": 10,
          "margin_rate": 23.0769,
          "quantity": "P*N"
        }
      ]
    }
  ],
  "step_categories": {
    "accommodation": [
      {
        "name": "Hotel",
        "reference": "hotel",
        "is_favorite": true,
        "custom_fields": [
          {
            "name": "Check-in time",
            "reference": "check-in-time",
            "type": "time",
            "options": null,
            "default": "15:00",
            "description": null
          }
        ]
      }
    ],
    "transport": [],
    "activity": [],
    "extra": []
  },
  "languages": {
    "default": "french",
    "library": [
      { "code": "fr", "name": "french", "label": "French" },
      { "code": "us", "name": "american", "label": "English (US)" }
    ]
  },
  "currencies": {
    "reference": "EUR",
    "catalog": "EUR",
    "projects": "USD",
    "library": [
      { "code": "EUR", "name": "Euro", "rate": 1 },
      { "code": "USD", "name": "US dollar", "rate": 1.08 },
      { "code": "CHF", "name": "Swiss franc", "rate": 2.2223 }
    ]
  },
  "invoice_numbering": [
    {
      "counter_name": "Invoices",
      "format": "$$yyyy$$$$mm$$$$n$$",
      "counter_size": 4,
      "next_number": 208,
      "reset": "never"
    }
  ],
  "reference_numbering": {
    "enabled": true,
    "projects": [
      {
        "counter_name": "MICE",
        "format": "$$yyyy$$$$mm$$$$n$$-MICE$$ppp$$",
        "counter_size": 5,
        "next_number": 12,
        "reset": "yearly"
      }
    ],
    "clients": [],
    "suppliers": []
  },
  "legal_entity": {
    "company_name": "E-Corp Travels",
    "contact": {
      "website": "https://e-corp.com",
      "phone": "0601020304",
      "email": "contact@e-corp.com"
    },
    "address": {
      "label": "58 Rue de Paradis",
      "city": "Paris",
      "zip": "75010",
      "country": {
        "label": "France",
        "code": "FR",
        "stripe_sepa_enabled": true,
        "electronic_invoicing_enabled": true
      }
    },
    "billing": {
      "vat_number": "FR00123456789",
      "company_number": "12345678900011",
      "invoice_bank": "E-Bank",
      "invoice_location": "Paris",
      "invoice_iban": "FR76 3000 6000 0112 3456 7890 189",
      "invoice_bic": "AGRIFRPP"
    }
  },
  "default": {
    "lang": "french",
    "client_type": "enterprise",
    "activity_start": "09:00:00",
    "activity_end": "18:00:00",
    "activity_hours": "start_and_end",
    "step_title_accommodation_transportation": "supplier_name",
    "step_title_activity": "product_name",
    "step_description": "short",
    "price_display": "excluded_taxes",
    "margin_based_on": "sales_price",
    "margin_rate": 20,
    "margin_calculation": "per_product",
    "price_update_behavior": "adjust_margin_rate",
    "is_margin_rate_per_client_enabled": true,
    "vat_regime": "classic",
    "vat_rate": 20,
    "vat_rate_margin": 20,
    "vat_classic_calculation_mode": "line",
    "vat_not_applicable_is_recoverable": false,
    "commission_based_on": "sales_price",
    "project_global_supplements": {
      "fees": 1452,
      "fees_type": "flat",
      "discount": 0,
      "discount_type": "flat"
    },
    "purchase_invoices_based_on": "total_invoiced_purchase_price",
    "purchase_invoices_due_date": "day_plus_30",
    "create_payment_after_invoice": true,
    "paid_invoice_mention": null
  },
  "users": [
    {
      "reference": "tommy@e-corp.com",
      "first_name": "Tommy",
      "last_name": "Atkins",
      "email": "tommy@e-corp.com",
      "role": "admin",
      "is_active": true,
      "is_technical_user": false
    }
  ],
  "users_deleted": [
    {
      "reference": "former@e-corp.com",
      "first_name": "Paul",
      "last_name": "Martin",
      "email": "former@e-corp.com",
      "role": "user",
      "is_technical_user": false
    }
  ]
}
Property Type Description
project_statuses JSON Project statuses of the account, per group (Project Statuses)
project_supplier_statuses Array Statuses a supplier of a project can take (Project Supplier Statuses)
notes_default JSON Notes a new project, product, package, supplier or client starts with (Default Notes)
custom_fields JSON Custom fields of the account, per object type (Custom Field Definitions)
seasons_groups Array Preset seasons of the account, per group (Seasons Groups)
categories Array Categories of the account, each with its sub-categories, as GET categories returns them (Categories)
step_categories JSON Step categories of the account, per step type (Step Categories)
languages JSON Default and active languages of the account (Account Languages)
currencies JSON Currency settings and exchange rates of the account (Account Currencies)
invoice_numbering Array Counters numbering the invoices of the account (Invoice Numbering)
reference_numbering JSON Counters of the automatic references of projects, clients and suppliers (Reference Numbering)
legal_entity JSON Company, contact, address and billing details of the account (Legal Entity)
default JSON Business defaults of the account, the settings a new record and its prices are computed with (Account Defaults)
users Array Users of the account (Account Users)
users_deleted Array Deleted users of the account, who may still own records (Account Deleted Users)

Default Notes

The notes a new record starts with, one per object, as set in the settings of the account. Plain text, line breaks as \n.

"notes_default": {
  "project": "Budget and dates to confirm with the client",
  "products": "",
  "packages": "",
  "suppliers": "Ask for the group rates",
  "clients": ""
}
Property Type Description
project String Default notes of a new project, "" when none is set
products String Default notes of a new catalog product, "" when none is set
packages String Default notes of a new package, "" when none is set
suppliers String Default notes of a new supplier, "" when none is set
clients String Default notes of a new client, "" when none is set

Destination

"destination": {
  "reference": "destination_reference",
  "name": "France",
  "subdestination_reference": "subdestination_reference",
  "subdestination_name": "Paris"
}
Property Type Description
reference String The reference of the destination
name String Name of the destination
subdestination_reference String The reference of the sub-destination
subdestination_name String Name of the sub-destination

Destinations

"destinations": [
  {
    "reference": "destination_reference",
    "name": "France",
    "subdestinations": [
      {
        "reference": "subdestination_reference",
        "name": "Paris",
        "visual_url": "https://docs.google.com/presentation/d/10GoT7nVkSIScaHUQEPh-EyUms5o6D7bcgUYsJlyql94"
      }
    ],
    "langs": [
      {
        "lang": "french",
        "name": "Un pays intéressant"
      }
    ]
  }
]

Each object represents a destination with its associated sub-destinations

Property Type Description
reference String The reference of the destination
name String Name of the destination
subdestinations Array An array of JSON objects, each representing a sub-destination with its reference, its name and its visual_url (URL of the Google Slides visual linked to the sub-destination, empty when it has none)
langs Array Array of JSON langs (Langs) - only name supported in this case

Document Template

"document_template": {
  "reference": "95dae1cb-d216-11f1-88b0-0ac4b3f97db5",
  "type": "proposal",
  "name": "Seminar",
  "lang": "en",
  "created_at": "2026-08-07 20:07:59",
  "updated_at": "2026-10-24 09:35:03"
}
Property Type Description
reference String The reference of the template. A quote template is named by its number, such as "1". An account without quote templates of its own lists the Ezus one, "0"
type String Type of the template. Possible values: quote, proposal
name String Name of the template
lang String Language of a proposal template. null for a quote template, which follows the language of the alternative
created_at String Creation date in a "YYYY-MM-DD hh:mm:ss" format string
updated_at String Date of the last change in a "YYYY-MM-DD hh:mm:ss" format string

Documents Job

{
  "reference": "91dd4bd6-3a72-4505-8ffe-2f20f6d6c106",
  "type": "quote",
  "status": "failed",
  "project_reference": "7108a16e-dff6-46ee-b216-90cc63634267",
  "template_reference": "29",
  "title": "Quote - Lisbon",
  "document_reference": null,
  "google_url": null,
  "pdf_url": null,
  "failure_reason": "This account invoices electronically and the discount of this alternative exceeds its fees: lower the discount before generating a quote",
  "created_at": "2026-10-27 15:57:24",
  "finished_at": "2026-10-27 15:57:25"
}
Property Type Description
reference String The reference of the job
type String Document the job generates. Possible values: quote, proposal
status String Possible values: running, finished, failed. A job not ended 30 minutes after it started is failed
project_reference String The reference of the project
template_reference String The reference of the template the document is generated with (Document Template)
title String The title asked for the document
document_reference String The reference of the document, as in project-documents. Set once the job is finished, and for a failed proposal whose presentation is incomplete. null otherwise, and once the document is deleted in Ezus
google_url String Link of the Google document: Google Sheets for a quote, Google Slides for a proposal. null when document_reference is
pdf_url String Link downloading the document as a PDF. null when document_reference is
failure_reason String Why the job failed, one of the reasons below. null unless the job is failed
created_at String Start date in a "YYYY-MM-DD hh:mm:ss" format string, Paris time
finished_at String End date in a "YYYY-MM-DD hh:mm:ss" format string, Paris time. null while the job is running
failure_reason What to do
This account invoices electronically and its e-invoicing provider account is not set up yet: finish it in Ezus before generating a quote Finish the e-invoicing setup in Ezus, then start a new job
This account invoices electronically and the discount of this alternative exceeds its fees: lower the discount before generating a quote Lower the discount of the alternative, then start a new job
An image of the project could not be placed: the presentation is incomplete. Replace the image in Ezus, then generate the document again The presentation exists without that image: its links are set
The generation did not end within 30 minutes Start a new job
Ezus could not generate the document Start a new job; contact Ezus if it fails again

Group Lines

"items": [
  {
    "reference": "item_reference",
    "project_step_reference": "project_step_reference",
    "name": "item_title",
    "pax": 3,
    "quantity": 9
  }
]

The lines attributed to a group, in the order of the program. A line whose formula uses the variable T has a quantity per group: T is the number of pax of the group on the line, where P is the number of people of the project. quantity is that formula evaluated for the group, rounded to two decimals.

Property Type Description
reference String The reference of the item (Items)
project_step_reference String The reference of the step of the item (Steps)
name String Name of the item
pax Number Number of pax of the group on this line. The whole group unless fewer pax were attributed
quantity Number Quantity of the line for the group, its formula evaluated with T equal to pax. null when the formula does not use T or divides by zero

Groups

"groups": [
  {
    "reference": "project_group_reference",
    "name": "Group A",
    "pax": 1,
    "primary_traveller_reference": "traveller_reference",
    "travellers": [
      {
        "reference": "traveller_reference",
        "first_name": "Emily",
        "last_name": "Johnson",
        "email": "emily.johnson@example.com"
      }
    ],
    "items": [
      {
        "reference": "item_reference",
        "project_step_reference": "project_step_reference",
        "name": "item_title",
        "pax": 1,
        "quantity": 3
      }
    ],
    "invoices": [
      {
        "reference": "invoice_reference"
      }
    ]
  }
]

The groups of an alternative in group mode (GIR), in the order of the project. An alternative outside group mode has no group.

Property Type Description
reference String The reference of the group
name String Name of the group
pax Number Number of travellers in the group
primary_traveller_reference String The reference of the traveller who is the main contact of the group. null when the group has no traveller or when its main contact is the project client
travellers Array Travellers of the group, each with reference, first_name, last_name and email
items Array Lines attributed to the group (Group Lines)
invoices Array Invoices of the group, each with its reference

Invoice Numbering

The counters numbering the invoices of the account when they are finalized, each shaped as a Numbering Counter, the default one first. An empty list when the account has none.

"invoice_numbering": [
  {
    "counter_name": "Invoices",
    "format": "$$yyyy$$$$mm$$$$n$$",
    "counter_size": 4,
    "next_number": 208,
    "reset": "never"
  }
]

Invoices Amounts

"forecast": {
  "is_automatic": true,
  "purchase": 0.0,
  "commission": 0.0,
  "vat_deducted": 0.0,
  "amount_ht": 1000.0
}
"actual": {
  "is_automatic": true,
  "purchase": null,
  "commission": null,
  "vat_deducted": null,
  "amount_ht": null
}

These objects provides insights into the invoice amounts, differentiating between actual figures and forecasts. Actual figures are available when the associated project is closed and the invoice is marked as completed or paid. Otherwise, null values are displayed.

Property Type Description
is_automatic Boolean Automatically use the figures of the project to which this invoice/credit_note is linked
purchase Number Forecasted / Actual purchase
commission Number Forecasted / Actual commission
vat_deducted Number Forecasted / Actual deductible VAT
amount_ht Number Forecasted / Actual amount excluding taxes

Invoices Lines

"lines": [
  {
    "title": "Private Suite at Hôtel Ritz Paris",
    "quantity": 1,
    "price": 1200,
    "price_excl_taxes": 1000,
    "description": "Luxury private suite accommodation at Hôtel Ritz Paris including premium amenities and concierge services.",
    "tax_rate": 20,
    "tax_regime": {
      "name": "classic",
      "category": "S",
      "comment": ""
    }
  }
]

These objects represent the individual invoice lines associated with the invoice or credit note.

Property Type Description
title String Title or short label of the invoiced service or product. When present, the fee line is returned with the title "Main fee" and the discount line with the title "Main discount".
quantity Number Quantity billed for this invoice line
price Number Total amount including taxes
price_excl_taxes Number Total amount excluding taxes
description String Detailed description of the invoiced service or product
tax_rate Number Tax rate applied to the line item, expressed as a percentage.
tax_regime.name String Tax profile applied to the invoice line. Possible values: none, margin, classic
tax_regime.category String Tax category code associated with the invoice line
tax_regime.comment String Additional tax-related information or comment

Items

"items": [
  {
    "reference": "item_reference",
    "name": "item_title",
    "product_reference": "product_reference",
    "supplier_reference": "supplier_reference",
    "quantity": 2,
    "quantity_formula": "[P/2]",
    "purchase_price": 150,
    "purchase_price_excl_taxes": 125,
    "sales_price": 200,
    "sales_price_excl_taxes": 166.67,
    "is_optional": true,
    "option": {
      "reference": "on_demand",
      "name": "On demand"
    },
    "notes": "Notes about the item",
    "booked": false
  }
]

The items array represents a collection of items associated with a step. The fields purchase_price, purchase_price_excl_taxes, sales_price, and sales_price_excl_taxes represent the price per unit of the item. To calculate the total cost or total sales value for an item, multiply the unit price by the quantity.

All prices returned by this endpoint are expressed in the project’s currency. If the items are in different currencies, conversion must be performed using the exchange rates available in the project’s currency library.

Property Type Description
reference String The reference of the item
name String Name of the item
product_reference String The product reference associated with the item
supplier_reference String The supplier reference associated with the item
quantity Number Quantity of the item
quantity_formula String Formula the quantity is calculated from (e.g. "[P/2]"). A plain number (e.g. "2") when the quantity is fixed. See Quantity formula
purchase_price Number The unit purchase price of the item (including taxes)
purchase_price_excl_taxes Number The unit purchase price of the item (excluding taxes)
sales_price Number The unit sales price of the item (including taxes)
sales_price_excl_taxes Number The unit sales price of the item (excluding taxes)
is_optional Boolean Indicates whether the item is optional. If true, the item does not contribute to the final purchase or sales price.
option JSON Option of the item, with its reference and its name. null when the item is not an option
notes String Notes about the item
booked Boolean Indicates whether the item has been booked / reserved.

Langs

"langs": [
  {
    "lang": "american",
    "name": "My American product version",
    "short_description": "Short American Description",
    "long_description": "Long American Description"
  }
]
Property Type Description
lang String Language name in lower case. Possible lang property values are: french, english, american, spanish, italian, portuguese, german, dutch, norwegian
name String Title of the object in this language. At most 100 characters, 200 on project-steps-upsert
short_description String Short description of the object in this language. At most the short description length of your account (500 characters by default), and never more than 5000 characters
long_description String Long description of the object in this language. At most the long description length of your account (5000 characters by default), and never more than 65,535 bytes once encoded in UTF-8

The company the account invoices as. A value the account never filled is null.

"legal_entity": {
  "company_name": "E-Corp Travels",
  "contact": {
    "website": "https://e-corp.com",
    "phone": "0601020304",
    "email": "contact@e-corp.com"
  },
  "address": {
    "label": "58 Rue de Paradis",
    "city": "Paris",
    "zip": "75010",
    "country": {
      "label": "France",
      "code": "FR",
      "stripe_sepa_enabled": true,
      "electronic_invoicing_enabled": true
    }
  },
  "billing": {
    "vat_number": "FR00123456789",
    "company_number": "12345678900011",
    "invoice_bank": "E-Bank",
    "invoice_location": "Paris",
    "invoice_iban": "FR76 3000 6000 0112 3456 7890 189",
    "invoice_bic": "AGRIFRPP"
  }
}
Property Type Description
company_name String Company name
contact JSON Website, phone and generic email
address JSON Address of the company
billing JSON Details printed on its invoices

contact:

Property Type Description
website String Website of the company
phone String Phone of the company
email String Generic email of the company

address:

Property Type Description
label String Street address
city String City
zip String Postal code
country JSON Country of the company. null when none is set

address.country:

Property Type Description
label String English name of the country
code String ISO 3166-1 alpha-2 code of the country
stripe_sepa_enabled Boolean Whether Stripe offers SEPA direct debit in this country
electronic_invoicing_enabled Boolean Whether Ezus supports electronic invoicing in this country

billing:

Property Type Description
vat_number String VAT number of the company
company_number String Registration number of the company
invoice_bank String Bank printed on the invoices
invoice_location String Place of issue printed on the invoices
invoice_iban String IBAN printed on the invoices
invoice_bic String BIC printed on the invoices

Media

"medias": [
  {
    "reference": "media-beach-view",
    "media_name": "Beach view",
    "path_full": "https://ezus-media.s3.amazonaws.com/media/9a1a8617/1700000000000.jpg",
    "object_type": "supplier",
    "object_reference": "supplier_reference"
  }
]
Property Type Description
reference String The reference given at creation through media-create. When the media was added from Ezus, it is the unique id of the media. Empty for a media of a step
media_name String The name of the media
path_full String The URL of the image
object_type String The type of the object the media is attached to. Possible values: supplier, product, package, subdestination, step. When reading the media library, an empty value means the media is not linked to anything
object_reference String The reference of the object the media is attached to. Empty when the media is not linked to anything

Medias

Only the last 10 medias are returned in this object.

"medias": {
  "data": [
    {
      "media_name": "img.jpeg",
      "path_full": "https://link-img.jpeg"
    }
  ],
  "size": 1
}
Property Type Description
media_name String Title of the media
path_full String Media URL. This is a pre-signed URL that expires after 30 minutes

Numbering Counter

A counter of the account, shared by Invoice Numbering and Reference Numbering. Reading it never consumes a number.

{
  "counter_name": "MICE",
  "format": "$$yyyy$$$$mm$$$$n$$-MICE$$ppp$$",
  "counter_size": 5,
  "next_number": 12,
  "reset": "yearly"
}
Property Type Description
counter_name String Name of the counter. Default when it has none
format String Pattern of the numbers, as stored, with the placeholders below
counter_size Integer Minimum number of digits of $$n$$, zero padded: 4 turns 12 into 0012
next_number Integer Number the counter will issue next
reset String When the counter goes back to 1. Possible values: never, monthly (on the 1st of each month), yearly (on January 1st)

The placeholders of format, replaced when a number is issued:

Placeholder Replaced by
$$yyyy$$ Year, 4 digits
$$yy$$ Year, 2 digits
$$mm$$ Month, 2 digits
$$m$$ Month, without leading zero
$$dd$$ Day of the month, 2 digits
$$d$$ Day of the month, without leading zero
$$n$$ The number, padded to counter_size digits
$$c$$ First 3 letters of the client company name, in capitals. Projects only
$$dest$$ First 3 letters of the destination, in capitals. Projects only
$$p$$ Number of travellers. Projects only
$$pp$$ Number of travellers, 2 digits. Projects only
$$ppp$$ Number of travellers, 3 digits. Projects only

Products

Only the last 10 products are returned in this object.

"products": {
  "data": [
    {
      "reference": "product_reference",
      "title": "2-bed room with breakfast"
    }
  ],
  "size": 1
}
Property Type Description
reference String The reference of the product
title String The title of the product

Project Config

The settings the prices of a project are computed with, returned by GET /project?include=config. Each alternative carries its own; a setting the alternative leaves to the account carries the account value, as default in Account Defaults.

"config": {
  "currencies": {
    "reference": "EUR",
    "projects": "USD",
    "library": [
      { "code": "EUR", "name": "Euro", "rate": 1 },
      { "code": "GBP", "name": "Pounds sterling", "rate": 0.87 },
      { "code": "USD", "name": "US dollar", "rate": 2.1 }
    ]
  },
  "alternatives": [
    {
      "reference": "550e8400-e29b-41d4-a716-446655440000",
      "alternative_title": "Main Alternative",
      "is_main": true,
      "default": {
        "price_display": "excluded_taxes",
        "margin_based_on": "sales_price",
        "margin_calculation": "per_product",
        "vat_regime": "margin",
        "vat_rate": 20,
        "vat_rate_margin": 20,
        "vat_classic_calculation_mode": "line",
        "vat_not_applicable_is_recoverable": false,
        "commission_based_on": "purchase_price",
        "project_global_supplements": {
          "fees": 5,
          "fees_type": "percentage",
          "discount": 0,
          "discount_type": "flat"
        },
        "purchase_invoices_based_on": "total_forecast_purchase_price"
      }
    },
    {
      "reference": "7d2c3a1e-4f5b-4c6d-8e9f-0a1b2c3d4e5f",
      "alternative_title": "Alternative 2",
      "is_main": false,
      "default": {
        "price_display": "included_taxes",
        "margin_based_on": "sales_price",
        "margin_calculation": "global",
        "vat_regime": "classic",
        "vat_rate": 10,
        "vat_rate_margin": 20,
        "vat_classic_calculation_mode": "vat_rate",
        "vat_not_applicable_is_recoverable": false,
        "commission_based_on": "purchase_price",
        "project_global_supplements": {
          "fees": 150,
          "fees_type": "flat",
          "discount": 0,
          "discount_type": "flat"
        },
        "purchase_invoices_based_on": "total_forecast_purchase_price"
      }
    }
  ]
}
Property Type Description
currencies JSON Currency of the project and the exchange rates frozen on it
alternatives Array Settings of each alternative, in the order and with the reference of alternatives in the project (Alternatives)

currencies:

Property Type Description
reference String Code of the reference currency, the one every rate is quoted against
projects String Code of the sales currency of the project
library Array The reference first, then the rates frozen on the project in the order they were added, each shaped as a currency of Account Currencies. Only the reference when the project has no rate of its own

Each alternative:

Property Type Description
reference String Reference of the alternative
alternative_title String Title of the alternative
is_main Boolean Whether it is the main alternative
default JSON Settings the alternative is priced with

default carries these keys of Account Defaults, with the same possible values:

Property Set per alternative
price_display Yes
margin_based_on Yes
margin_calculation Yes
vat_regime Yes
vat_rate Yes
vat_rate_margin No, always the account value
vat_classic_calculation_mode Yes
vat_not_applicable_is_recoverable Yes
commission_based_on No, always the account value
project_global_supplements Yes, always the alternative value. A flat fee or discount is an amount in the currency of the project
purchase_invoices_based_on Yes

Project Documents

"documents": [
  {
    "type": "proposal",
    "title": "Proposal - Lisbon",
    "url": "https://docs.google.com/presentation/d/1wR8W39GHAX54-uNvDN8sZYZRfdN7c2S1vePVoS7owsg/export?format=pdf",
    "reference": "9b2f4c1e-6a8d-4f0b-8c3e-2d7a5e1f9b40",
    "status": "ready",
    "google_url": "https://docs.google.com/presentation/d/1wR8W39GHAX54-uNvDN8sZYZRfdN7c2S1vePVoS7owsg"
  }
]
Property Type Description
type String Type of the document. Possible values: quote, proposal, voucher, descriptif, custom (a file attached to the project), other
title String Title of the document
url String Link downloading the document as a PDF. Before a generated document is ready, it does not lead to the document
reference String The reference of a document Ezus generated, as a Documents Job gives it. null for a file attached to the project
status String Possible values: ready, generating, failed. A file attached to the project is always ready. failed: an image of the project could not be placed and the document is incomplete; replace the image, then generate the document again
google_url String Link of the Google document. null until the document is ready, and for a file attached to the project

Project Financials

The figures of the main alternative of a project, returned by GET /projects?include=financials. The keys are those of Alternatives; every amount is in the currency of the project.

"financials": {
  "margin_calculation": "per_product",
  "budget_actual": 88750,
  "budget_actual_excl_taxes": 77950,
  "budget_margin_gross": 2500,
  "budget_margin_net": 1000,
  "global_commissions": [
    {
      "reference": "referral-2026",
      "title": "Business referral commission",
      "direction": "retroceded",
      "value_mode": "rate",
      "base": "sales",
      "value": 10.0,
      "supplier_reference": "supplier_reference",
      "filename": null,
      "file_url": null
    }
  ],
  "budget_purchases": 74500,
  "financial_invoiced": 48000,
  "financial_collected": 48000,
  "financial_purchases": 72820,
  "financial_spendings": 12820
}
Property Type Description
margin_calculation String How the margin of the main alternative is computed. Possible values: per_product, global
budget_actual Number Actual budget for the main alternative, inclusive of taxes
budget_actual_excl_taxes Number Actual budget for the main alternative, excluding taxes
budget_margin_gross Number Gross margin for the main alternative
budget_margin_net Number Net margin for the main alternative, global commissions included (received ones added, retroceded ones deducted)
global_commissions Array Array of JSON global commissions of the main alternative (Commissions), empty when it has none
budget_purchases Number Planned supplier purchases amount for the main alternative. This is a forecasted value, not actual spending
financial_invoiced Number Total amount invoiced to clients for the main alternative. Draft invoices are not included in this calculation
financial_collected Number Total amount collected from clients for the main alternative. Represents actual payments received
financial_purchases Number Actual supplier purchase costs for the main alternative. Corresponds to recorded supplier invoices
financial_spendings Number Actual spendings recorded for the main alternative. Includes all types of supplier payments (purchases, fees, etc.)

Project Statuses

The statuses a project of the account can take, in three groups. An account that never edited its statuses gets the Ezus default ones.

"project_statuses": {
  "ongoing": [
    {
      "name": "Quote sent",
      "reference": "quote-sent",
      "color": "#00b3ff"
    }
  ],
  "archived": [],
  "template": []
}
Property Type Description
ongoing Array Statuses of the projects in progress
archived Array Statuses of the archived projects
template Array Statuses of the templates, the projects listed with from_programs_catalog=true on GET /projects

Each status:

Property Type Description
name String Display name of the status, as info_stage returns it on a project
reference String Technical name of the status, the value info_stage_reference takes on GET /projects and POST /projects-upsert
color String Color of the status, hexadecimal. null when none is set

Project Supplier Statuses

The statuses a supplier of a project can take, to follow where the agency stands with each supplier of a project. An account that never edited its statuses gets the Ezus default ones.

"project_supplier_statuses": [
  {
    "name": "To contact",
    "reference": "to-contact",
    "color": "#00b3ff"
  }
]

Each status:

Property Type Description
name String Display name of the status, as supplier_stage on GET /invoice-supplier
reference String Technical name of the status, as supplier_stage_reference on GET /invoice-supplier
color String Color of the status, hexadecimal. null when none is set

Quota

The daily quota of the API key of the call, returned by GET /me?include=quota. null when no daily quota applies to the key.

"quota": {
  "limit": 10000,
  "used": 1669,
  "remaining": 8331,
  "resets_at": "2026-09-20T00:00:00Z",
  "requests_per_second": 100
}
Property Type Description
limit Integer Calls the key may make per day
used Integer Calls of the key counted today
remaining Integer Calls the key may still make today
resets_at String When the count starts over: the next midnight, UTC
requests_per_second Integer Calls the key may make per second

Reference Numbering

The counters giving a reference to a project, a client or a supplier created without one, each shaped as a Numbering Counter.

"reference_numbering": {
  "enabled": true,
  "projects": [
    {
      "counter_name": "MICE",
      "format": "$$yyyy$$$$mm$$$$n$$-MICE$$ppp$$",
      "counter_size": 5,
      "next_number": 12,
      "reset": "yearly"
    }
  ],
  "clients": [],
  "suppliers": []
}
Property Type Description
enabled Boolean Whether the account gives automatic references. When false, the three lists are empty
projects Array Counters of the projects, the default one first
clients Array Counters of the clients, the default one first
suppliers Array Counters of the suppliers, the default one first

Scopes

One entry per permission of the role of the user, keyed by the permission name, so the keys depend on that role. Each value is a three-digit code, one digit per action, in the order read, edit, delete.

"scopes": {
  "projects": "333",
  "clients": "310",
  "travellers": "333",
  "suppliers": "333",
  "invoices": "300",
  "tasks": "333",
  "catalog": "333",
  "models": "300",
  "library": "333",
  "invoices_suppliers": "300",
  "territories": "333",
  "categories": "333",
  "invoices_finalize": "000",
  "invoices_stats": "000",
  "stripe_payments": "000",
  "projects_close": "333",
  "steps_catalog": "333",
  "settings": "000",
  "billing_team": "000",
  "export": "333",
  "templates_edit": "333",
  "client_space": "333"
}
Digit Access
0 None
1 Records the user owns
2 Records the user owns, plus the ones nobody owns
3 Full

"clients": "310" reads as: sees every client, edits only their own, deletes none. A permission that is simply on or off, such as invoices_finalize, is 333 or 000.

The permissions the API serves:

Permission Covers
projects Projects
clients Clients
travellers Travellers
suppliers Suppliers
invoices Client invoices and deposits
tasks Tasks
catalog Catalog: products and packages
models Document and email models
library Media library
invoices_suppliers Supplier invoices and their payments
territories Destinations and subdestinations
categories Categories
invoices_finalize Finalizing a client invoice
invoices_stats Invoicing statistics
stripe_payments Stripe payments
projects_close Closing a project
steps_catalog The catalog of steps of a project
settings Account settings
billing_team Subscription, billing and team management
export Exports
templates_edit Documents edition
client_space The client space

A call outside the scopes of the user returns what that user may see, which can be an empty list, not an error.

Seasons Groups

The preset seasons of the account, one entry per group in the order the account sorts them, each with its seasons in their order. A season carries the keys of a seasonal tariff, ready to send on POST /product-seasons-upsert.

"seasons_groups": [
  {
    "name": "Summer",
    "reference": "summer",
    "seasons": [
      {
        "name": "High season",
        "reference": "high_season",
        "limit_start": "2026-07-01",
        "limit_end": "2026-08-31",
        "is_yearly": true
      }
    ]
  }
]
Property Type Description
name String Display name of the group
reference String Technical name of the group, unique in the account
seasons Array Seasons of the group. Empty when it has none

Each season:

Property Type Description
name String Display name of the season, the name of a seasonal tariff
reference String Technical name of the season, unique in the account
limit_start String Start date of the season, "YYYY-MM-DD". null when none is set
limit_end String End date of the season, "YYYY-MM-DD". null when none is set
is_yearly Boolean Whether the season recurs every year: only the day and month of its dates count

Steps

The steps are sorted by their creation date, with the most recently created appearing first.

"steps": [
  {
    "reference": "activity_reference",
    "sample_step_reference": "sample_step_reference",
    "type": "activity",
    "name": "activityTitle",
    "category": "restaurant",
    "category_reference": "restaurant",
    "date_start": "2024-10-01 10:00:00",
    "date_end": "2024-10-01 12:00:00",
    "people": 4,
    "visual_url": "https://docs.google.com/presentation/d/10GoT7nVkSIScaHUQEPh-EyUms5o6D7bcgUYsJlyql94",
    "address": {
      "label": "58 Rue de Paradis",
      "city": "Paris",
      "state": "Île-de-France",
      "country": "France",
      "zip": "75010",
      "geo": {
        "x": 48.875761,
        "y": 2.348727
      }
    },
    "supplier": {
      "reference": "",
      "company_name": ""
    },
    "description": {
      "short": "Short description of the activity",
      "long": "Long description of the activity"
    },
    "langs": [
      {
        "lang": "english",
        "name": "activity title",
        "short_description": "Short description of the activity",
        "long_description": "Long description of the activity"
      }
    ],
    "items": [
      {
        "reference": "item_reference",
        "name": "item_title",
        "product_reference": "product_reference",
        "supplier_reference": "supplier_reference",
        "quantity": 2,
        "quantity_formula": "[P/2]",
        "purchase_price": 150,
        "purchase_price_excl_taxes": 125,
        "sales_price": 200,
        "sales_price_excl_taxes": 166.67,
        "is_optional": false,
        "option": null,
        "notes": "Notes about the item",
        "booked": false
      }
    ],
    "items_count": 1,
    "medias": ["https://image.jpg", "https://image2.jpg"],
    "custom_fields": [
      {
        "name": "CustomField",
        "value": "Value"
      }
    ],
    "tags": [
      {
        "reference": "evening",
        "type": "step",
        "name": "Evening"
      }
    ],
    "duration_minutes": 120,
    "created_at": "2026-10-07 10:40:32",
    "updated_at": "2026-10-14 09:12:05"
  }
]
Property Type Description
reference String The reference of the activity
sample_step_reference String The reference of the sample step of the catalog this step was created from. Empty when the step was not created from a sample step, or when that sample step has been deleted.
type String Type of the step activity accommodation transport or extra
name String Name of the step
category String Category of the step
category_reference String Reference of the category of the step, the value given as category to POST project-steps-upsert. Empty when the step has no category.
date_start String Date of the beginning of this step, in a "YYYY-MM-DD HH:MM:SS" format string. If it's empty, the step has no dates.
date_end String Date of the end of this step, in a "YYYY-MM-DD HH:MM:SS" format string. If it's empty, the step has no dates or no end.
people Number Number of people
visual_url String URL of the Google Slides visual linked to the step, empty when it has none
address JSON JSON object representing the address (Address) of the step, including longitude and latitude. Note: Longitude and latitude are only returned by this step object.
description JSON JSON object representing the short and long description of the step
supplier JSON The supplier of an accommodation or a transport step: reference and company_name, each an empty string when not set. Always empty for an activity or an extra, whose suppliers are those of its items.
destination JSON The destination of the step: reference, name, subdestination_reference and subdestination_name, each an empty string when not set. Only returned for the sample steps of the catalog (from_steps_catalog=true).
langs Array Array of JSON langs (Langs): the name and descriptions of the step in each language it is written in. For a sample step of the catalog (from_steps_catalog=true), description stays in the default language of the account. For a project step, the language of the project is always listed and carries the name and description of the step.
items Array Array of JSON items (Items)
items_count Number Number of items of the step, also returned when items is excluded.
medias Array Array of strings representing the images URLs associated with the step
custom_fields Array Array of JSON custom fields (Custom fields)
tags Array Array of the tags set on the step, each with reference, type (always step) and name, as returned by GET tags.
duration_minutes Number Duration of the step in minutes, from date_start to date_end. null for an extra, and for a step without hours or without an end.
created_at String Creation date of the step, in a "YYYY-MM-DD HH:MM:SS" format string.
updated_at String Last update date of the step, in a "YYYY-MM-DD HH:MM:SS" format string.

Step Categories

The categories a step of the account can take, one list per step type, each with the custom fields its steps carry. Extra steps share the categories of the activity steps, so extra lists the same ones as activity. A category is created or updated with POST step-categories-upsert, its fields are created with POST fields-create.

"step_categories": {
  "accommodation": [
    {
      "name": "Hotel",
      "reference": "hotel",
      "is_favorite": true,
      "custom_fields": [
        {
          "name": "Check-in time",
          "reference": "check-in-time",
          "type": "time",
          "options": null,
          "default": "15:00",
          "description": null
        }
      ]
    }
  ],
  "transport": [],
  "activity": [],
  "extra": []
}
Property Type Description
accommodation Array Categories of the accommodation steps, type accom on POST /project-steps-upsert
transport Array Categories of the transport steps, type transport on POST /project-steps-upsert
activity Array Categories of the activity steps, type activity on POST /project-steps-upsert
extra Array Categories of the extra steps, the same as activity

Each category:

Property Type Description
name String Display name of the category, as category returns it on GET /project-steps
reference String Technical name of the category, the category to send on POST /project-steps-upsert with a step of that type
is_favorite Boolean Whether it is the default category of its step type, the one a step created without category gets
custom_fields Array Custom fields of the steps of this category, each shaped as a field of Custom Field Definitions, without family. Empty when it has none

Supplements

The supplements of the project. Today only the main fee and main discount are returned by the API.

"supplements": {
  "fees": [
    {
      "reference": "fee_reference",
      "label": "Main fee",
      "mode": "flat",
      "value": 2000,
      "amount": 2000,
      "amount_excl_taxes": 1666.67,
      "notes": "Some notes"
    }
  ],
  "discounts": [
    {
      "reference": "discount_reference",
      "label": "Main discount",
      "mode": "percentage",
      "value": 10,
      "amount": 1000,
      "amount_excl_taxes": 833.33,
      "notes": "Some notes"
    }
  ]
}
Property Type Description
reference String The reference of the fee/discount. For the main one it is with this format: alternative_reference-main_fee/main_discount
label String The label of the fee/discount. For the main one it is with this format: Main fee/Main discount. If the project is in global calculation mode: the label will be Global margin for the main fee.
mode String The mode of the fee/discount. It can be flat or percentage. If the project is in global calculation mode: the mode will be flat for the main fee.
value Number The value of the fee/discount. If the mode is flat, it represents a fixed amount. If the mode is percentage, it represents a percentage applied to the project sales price.
amount Number The amount of the fee/discount. If the mode is flat, it is equal to the value. If the mode is percentage, it is calculated as value% of the project sales price.
amount_excl_taxes Number The amount of the fee/discount excluding taxes.
notes String Additional notes or comments about the fee/discount.

Task

"tasks": [
  {
    "title": "Call the hotel back",
    "description": "Confirm the rooming list before the deposit",
    "due_at": "2026-10-07",
    "is_done": false,
    "assignee": {
      "email": "tommy@e-corp.com",
      "first_name": "Tommy",
      "last_name": "Atkins",
      "agency": "Paris Agency"
    },
    "created_by": "None",
    "project": {
      "reference": "project_reference",
      "info_title": "Japan in autumn"
    },
    "client": "None",
    "created_at": "2026-09-30"
  }
]
Property Type Description
title String Title of the task
description String Description of the task. Empty when none
due_at Date Due date of the task. Format: "YYYY-MM-DD". Empty when the task has no due date
is_done Boolean true if the task is completed, false otherwise
assignee JSON JSON object representing the user the task is assigned to (User). None when the task is unassigned
created_by JSON JSON object representing the user who created the task (User). None when the task was created automatically, for example from a project template
project JSON JSON object with the reference and the info_title of the project the task is linked to. None when the task is not linked to a project
client JSON JSON object with the reference and the company_name of the client the task is linked to. None when the task is not linked to a client
created_at Date Creation date of the task. Format: "YYYY-MM-DD"

Tags

"tags": [
  {
    "reference": "partner",
    "type": "client",
    "name": "Partner"
  },
  {
    "reference": "premium",
    "type": "package",
    "name": "Premium"
  },
  {
    "reference": "mice",
    "type": "product",
    "name": "MICE"
  },
  {
    "reference": "mice",
    "type": "supplier",
    "name": "MICE"
  }
]
Property Type Description
reference String The tag reference matches the technical name of the tag
type String Tag type. Possible values: product, supplier, client, package, step
name String Display name of the tag

Travellers

"travellers": [
  {
    "reference": "traveller_reference",
    "email": "emily.johnson@example.com",
    "first_name": "Emily",
    "last_name": "Johnson",
    "phone": "+1-555-123-4567",
    "project_group_reference": "project_group_reference",
    "custom_field1": "value1.1",
    "custom_field2": "value2.1"
  },
  {
    "reference": "traveller_reference",
    "email": "michael.smith@example.com",
    "first_name": "Michael",
    "last_name": "Smith",
    "phone": "+1-555-987-6543",
    "project_group_reference": null,
    "custom_field1": "value1.2",
    "custom_field2": "value2.2"
  }
]

reference and project_group_reference are response only: POST project-travellers-create refuses them. On that route, email is at most 200 characters, first_name, last_name and phone 100 each, and a custom field value 5000.

Property Type Description
reference String The reference of the traveller. Response only
email String The email of the traveller
first_name String The first name of the traveller
last_name String The last name of the traveller
phone String The phone number of the traveller
project_group_reference String The reference of the group of the traveller in group mode (GIR) (Groups). null when it has no group. Response only
custom_fields String The custom fields and the assigned values. Varies with number of custom fields.

Unattributed

"unattributed": {
  "travellers": [
    {
      "reference": "traveller_reference",
      "first_name": "Michael",
      "last_name": "Smith",
      "email": "michael.smith@example.com"
    }
  ],
  "items": [
    {
      "reference": "item_reference",
      "project_step_reference": "project_step_reference",
      "name": "item_title"
    }
  ],
  "invoices": []
}

What no group of an alternative holds. A line attributed to some groups only is not listed. Every list is empty for an alternative outside group mode (GIR).

Property Type Description
travellers Array Travellers without a group, each with reference, first_name, last_name and email
items Array Lines attributed to no group, each with reference, project_step_reference and name
invoices Array Invoices without a group, each with its reference

Suppliers

Only the last 10 suppliers are returned in this object.

"suppliers": {
  "data": [
    {
      "reference": "supplier_reference",
      "company_name": "The best hotel"
    }
  ],
  "size": 1
}
Property Type Description
reference String The reference of the supplier
company_name String The company name of the supplier

Tariffs

"tariffs": [
  {
    "reference": "tariff_reference",
    "type": "default",
    "name": "",
    "purchase_price": "100",
    "margin_rate": "33.33",
    "sales_price": "150",
    "limit_start": "",
    "limit_end": "",
    "is_yearly": false,
    "children": [
      {
        "reference": "tariff_reference",
        "type": "custom",
        "name": "",
        "purchase_price": "100",
        "margin_rate": "33.33",
        "sales_price": "150",
        "limit_start": "0",
        "limit_end": "11",
        "is_yearly": false
      },
      {
        "reference": "tariff_reference",
        "type": "custom",
        "name": "",
        "purchase_price": "100",
        "margin_rate": "23.08",
        "sales_price": "130",
        "limit_start": "12",
        "limit_end": "Infinity",
        "is_yearly": false
      }
    ]
  },
  {
    "reference": "tariff_reference",
    "type": "season",
    "name": "tariff season",
    "purchase_price": "100",
    "margin_rate": "16.66",
    "sales_price": "120",
    "limit_start": "2026-05-01",
    "limit_end": "2026-08-31",
    "is_yearly": true,
    "children": [
      {
        "reference": "tariff_reference",
        "type": "custom",
        "name": "",
        "purchase_price": "100",
        "margin_rate": "9.09",
        "sales_price": "110",
        "limit_start": "0",
        "limit_end": "10",
        "is_yearly": false
      },
      {
        "reference": "tariff_reference",
        "type": "custom",
        "name": "",
        "purchase_price": "100",
        "margin_rate": "16.66",
        "sales_price": "120",
        "limit_start": "11",
        "limit_end": "Infinity",
        "is_yearly": false
      }
    ]
  }
]
Property Type Description
reference String A unique reference of this tariff
type String A tariff can be default, custom OR season.
name String Name of the tariff (only seasonal tariffs have a name)
purchase_price String Purchase price including taxes
margin_rate String The margin rate is based on the sales price
sales_price String Sales price including taxes
limit_start String Indicates the starting point of a tariff rule either the start date of a seasonal tariff or the lower bound of a level for a custom tariff.
limit_end String Indicates the end point of a tariff rule either the end date of a seasonal tariff or the upper bound of a level for a custom tariff. When set to Infinity, it designates the final level of a flat-rate or open-ended tariff.
is_yearly Boolean Indicates if the seasonal tariff recurs every year . This field is only applicable when type is season, For default or custom tariffs, this field is always false.
children Array Children are sub-tariffs contained by this tariff. They may be seasonal tariff or default tariff when they are flat rate tariff.

Template Syntax

The rules of the syntax of template variables, returned by GET template-variables. conditional_block, line_break and repeated_slide only apply to Google Slides and mailbox templates, loop only to web page templates.

"syntax": [
  {
    "name": "format",
    "pattern": "<path>.<format>",
    "example": "$$days.1.date.[%d/%m/%Y]$$",
    "description": "How the value is written, one of the formats the variable names. Without one, the value is written its default way."
  },
  {
    "name": "loop",
    "pattern": "{% for <item> in <collection> %}...{% endfor %}",
    "example": "{% for day in days %}{{ day.title }}{% for step in day.steps %}{{ step.title }}{% endfor %}{% endfor %}",
    "description": "Web page templates only, in sandboxed Jinja: loops and conditions over the collections of loops. An item holds the keys of its entity, its lists are nested collections ({{ step.images[0] }}), its formats keys ({{ step.duration.[hours] }}), its custom fields step.custom_fields."
  }
]
Property Type Description
name String Name of the rule. Possible values: variable, index, format, custom_field, conditional_block, line_break, repeated_slide, loop
pattern String How the rule is written
example String The rule written in a template
description String What the rule does

Template Variables

A variable of a template: one of the top-level variables of GET template-variables, or one of the variables of an entity of Template Entities. Both have this shape.

"variables": [
  {
    "key": "date",
    "label": "Date",
    "type": "date",
    "entity": null,
    "formats": "date"
  },
  {
    "key": "product.{n}",
    "label": "Product",
    "type": "object",
    "entity": "product",
    "formats": null
  }
]
Property Type Description
key String What the variable adds to the path, after a dot. {n} stands for a position from 1: product.{n} is written product.1, product.2... Any other part is written as is, brackets included: [name], price.[sales]
label String Display name of the variable, in English
type String What the variable writes. Possible values: text, number, amount, percentage, date, time, image (the URL of an image, placed as an image in Google Slides and Docs), url, boolean (1 or 0), list (one line per element), object (an entity, whose variables follow the key)
entity String Name of the entity of Template Entities an object leads to. null for the other types
formats String Name of the formats of Template Formats the value accepts after its key. null when it has none

Template Entities

The entities the template variables lead to, by name, returned by GET template-variables. The variables of an entity follow the key leading to it: steps.{n} leads to step, whose supplier leads to supplier, whose title gives $$steps.1.supplier.title$$.

"entities": {
  "payment": {
    "label": "Payment",
    "variables": [
      {
        "key": "amount",
        "label": "Amount",
        "type": "amount",
        "entity": null,
        "formats": null
      },
      {
        "key": "%",
        "label": "Share of the total",
        "type": "percentage",
        "entity": null,
        "formats": null
      },
      {
        "key": "date",
        "label": "Date",
        "type": "date",
        "entity": null,
        "formats": "date"
      }
    ],
    "custom_fields": null
  }
}
Property Type Description
label String Display name of the entity, in English
variables Array Variables of the entity (Template Variables)
custom_fields String Group of config.custom_fields of GET me whose references the entity accepts as {{<reference>}}: project, clients, travellers, suppliers, products or packages. step_categories for a step, which accepts the fields of its own category in config.step_categories. null when it takes none

Template Formats

The ways a value can be written, by name, returned by GET template-variables. A format is written after the variable, with a dot: $$days.1.date.[%d/%m/%Y]$$. Without one, the value is written its default way: a date in the date format of the account, an image framed as the account frames images, a long description, a duration in days.

"formats": {
  "image": [
    {
      "value": "[crop]",
      "label": "Cropped to the frame"
    },
    {
      "value": "[center]",
      "label": "Centered in the frame"
    }
  ],
  "products": [
    {
      "value": "option",
      "label": "Products in option"
    },
    {
      "value": "option.{{<reference>}}",
      "label": "Products of one option, a reference of config.custom_fields.options of GET /me?include=config"
    },
    {
      "value": "no_option",
      "label": "Products not in option"
    }
  ]
}
Property Type Description
value String What to write after the variable and a dot. {{<reference>}} stands for the reference of an entry of config.custom_fields.options of GET me
label String Display name of the format, in English

Template Loops

The collections a web page template loops over with Jinja, returned by GET template-variables. An item holds the keys of its entity: {% for day in days %}{{ day.title }}{% endfor %}. A day also holds its own activities, steps, accomodations, transports and destinations to loop over, a step and a supplier their products, a supplier its contacts.

"loops": [
  {
    "collection": "days",
    "label": "Days",
    "entity": "day"
  },
  {
    "collection": "activities",
    "label": "Steps of any type, by date",
    "entity": "step"
  },
  {
    "collection": "steps",
    "label": "Activity steps",
    "entity": "step"
  }
]
Property Type Description
collection String Name of the collection in the template. Possible values: days, activities, steps, accomodations, transports, extras, destinations, suppliers, travellers
label String Display name of the collection, in English
entity String Entity of Template Entities an item of the collection holds the keys of

Token

"token": {
  "issued_at": "2026-09-19T10:00:00Z",
  "expires_at": "2026-09-19T22:00:00Z"
}
Property Type Description
issued_at String When the token was issued, UTC
expires_at String When the token expires, UTC

User

One of the following options: None, Everyone, User Group or the following JSON object corresponding to an active Ezus user of this account.

"user": {
  "email": "tommy@e-corp.com",
  "first_name": "Tommy",
  "last_name": "Atkins",
  "agency": "Paris Agency"
}
Property Type Description
email String Email of the user
first_name String First name of the user
last_name String Last name of the user
agency String User's affiliated agency

Webhooks

"webhooks": [
  {
    "reference": "webhook_reference",
    "endpoint": "webhook_endpoint",
    "events_types": "projects.created,clients.created",
    "is_active": "true",
    "last_called_at": "2023-01-01 01:01:01"
  }
]
Property Type Description
reference String The reference of the webhook
endpoint String The endpoint URL of the webhook
events_types String The list of events for this endpoint (Events)
is_active String The status of the webhook true or false
last_called_at String The webhook last called date in a "YYYY-MM-DD hh:mm:ss" format string

Webpage Template

"webpage_template": {
  "reference": "6071bc88-e8c8-4ca2-af25-4b3abfbedaa9",
  "type": "webpage",
  "name": "Price per traveller",
  "html": "<!DOCTYPE html>\n<html lang=\"en\">\n  <body>\n    Budget per traveller: $$budget.pax.incl_tax$$\n  </body>\n</html>\n",
  "created_at": "2026-08-07 20:07:59",
  "updated_at": "2026-10-24 09:35:03",
  "updated_by": "tommy@e-corp.com"
}
Property Type Description
reference String The reference of the template
type String Type of the template. Possible values: webpage
name String Name of the template
html String HTML source of the template. Empty for a template whose source was never saved
created_at String Creation date in a "YYYY-MM-DD hh:mm:ss" format string
updated_at String Date of the last change in a "YYYY-MM-DD hh:mm:ss" format string
updated_by String Email of the user who last changed the template. null when that user no longer exists

Events

Basic event information

This section provides an overview of the fundamental details related to a webhook event, including its unique identifier, type, creation timestamp, trigger source, and whether it's a duplication.

{
  "id": "event_id",
  "object": "event",
  "type": "projects.created",
  "field": "",
  "old_value": "",
  "new_value": "",
  "created": 1234567890,
  "trigger_reference": "pro.ezus.io;projects-create",
  "is_duplication": false,
  "data": {...}
}
Property Type Description
id String Unique identifier for the event
object String The object of the event. The event's target object is currently limited to event but in the future, webhooks will become capable of being triggered by various other events.
type String The type of the event
field String This is only displayed if the event is an update. The name of the field that was updated.
old_value String This is only displayed if the event is an update. The previous value of the updated field.
new_value String This is only displayed if the event is an update. The updated field's new value.
created Number Time at which the object was created. Measured in seconds since the Unix epoch.
trigger_reference String The trigger of the event. Indicates the source or origin from which the event was initiated.
is_duplication Boolean Indicates whether the event originates from a duplication
data String Detailed information about the event. For more in-depth details, please refer to the sections below.

projects.created

This event is triggered whenever a project is either created or duplicated.

{
  "data": {
    "reference": "project_reference",
    "info_number": "202306001-P",
    "info_title": "Paris fashion week 2024",
    "trip_date_in": "2024-03-01",
    "trip_date_out": "2024-03-09",
    "trip_duration": "9",
    "trip_budget": "90000",
    "trip_people": "15"
  }
}
Property Type Description
reference String The reference of the project
info_number String File number that appears in the project record. Not to be confused with reference
info_title String The title of the project
trip_date_in String Date of the beginning of this alternative, in a "YYYY-MM-DD" format string. If it's empty, the project has no dates.
trip_date_out String Date of the end of this alternative, in a "YYYY-MM-DD" format string. If it's empty, the project has no dates.
trip_duration String Number of days this project lasts
trip_budget String Forecasted budget for the alternative (the one that is entered manually not the actual one)
trip_people String Number of people

projects.updated

This event is triggered whenever a project is updated. This event is triggered only by specific fields within projects, including: info_title, info_stage, info_notes, info_number, currency, sales_manager, and projects_manager.

POST projects-upsert triggers it too, once per field it changes among info_title, info_stage, info_notes, info_number and sales_manager, with the trigger_reference api.ezus.app;projects-upsert. A field sent with its current value triggers nothing.

{
  "data": {
    "reference": "project_reference",
    "info_number": "202306001-P",
    "info_title": "Paris fashion week 2024"
  }
}
Property Type Description
reference String The reference of the project
info_number String File number that appears in the project record. Not to be confused with reference
info_title String The title of the project

clients.created

This event is triggered whenever a client is created.

{
  "data": {
    "reference": "client_reference",
    "info_number": "202306001-C",
    "type": "enterprise",
    "company_name": "MOKE INTERNATIONAL LIMITED",
    "email": "contact@moke-international.com",
    "first_name": "Jane",
    "last_name": "Doe",
    "gender": "Ms",
    "phone": "0101010101",
    "birth_date": "1986-09-17"
  }
}
Property Type Description
reference String The reference of the client
info_number String File number that appears in the client record. Not to be confused with reference
type String The type of the client can be either "enterprise" or "individual"
company_name String Name of the company of the client
email String Email of the main contact of the client
first_name String First name of the main contact of the client
last_name String Last name of the main contact of the client
gender String Mr, Ms or Undefined
phone String Phone number of the contact as a string
birth_date String Contact's date of birth in a "YYYY-MM-DD" format string

clients.updated

This event is triggered whenever a client is updated. This event is triggered only by specific fields within clients, including: company_name, website, vat_number, company_number, info_notes, info_number and user.

{
  "data": {
    "reference": "client_reference",
    "info_number": "202306001-C",
    "company_name": "MOKE INTERNATIONAL LIMITED"
  }
}
Property Type Description
reference String The reference of the client
info_number String File number that appears in the client record. Not to be confused with reference
company_name String Name of the client's company

invoices.finalized

This event is triggered whenever an invoice is finalized (its stage goes from draft to completed).

{
  "data": {
    "reference": "invoice_reference",
    "info_number": "2023_101010",
    "type": "credit_note",
    "origin_reference": "origin_reference",
    "origin_info_number": "2023_101009",
    "stage": "completed",
    "created_date": "2023-10-10",
    "send_date": "2023-10-10",
    "due_date": "2023-10-10",
    "currency": "EUR",
    "amount_ttc": 1200.0,
    "amount_ht": 1000.0,
    "vat": 200.0,
    "project_reference": "project_reference",
    "url": "https://ezus.io/2023_101010.pdf",
    "xml_url": "https://ezus.io/2023_101010.xml",
    "alternative": {
      "sort_order": "0",
      "title": "Main Alternative"
    }
  }
}
Property Type Description
reference String The reference of the invoice
info_number String Title of the invoice
type String Type of the invoice invoice or credit_note
origin_reference String This is only displayed if the type of the invoice is a credit_note. The reference of the origin invoice.
origin_info_number String This is only displayed if the type of the invoice is a credit_note. Title of the origin invoice.
stage String Stage of the invoice draft completed or paid
created_date String Date of the creation of this invoice, in a "YYYY-MM-DD" format
send_date String Sent date of this invoice, in a "YYYY-MM-DD" format
due_date String Due date of this invoice, in a "YYYY-MM-DD" format
currency String The ISO 4217 currency code representing the currency you utilize (Link to doc)
amount_ttc Number Amount of the invoice including taxes
amount_ht Number Amount of the invoice excluding taxes
vat Number VAT amount of the invoice
project_reference String The reference of the project linked to this invoice
url String URL of the invoice .pdf file
xml_url String URL of the invoice .xml file (UBL) sent on the e-invoicing network, null when the invoice is not an e-invoice
alternative JSON JSON including: sort_order and title

invoices_suppliers.attached

This event is triggered whenever a file is added to a supplier invoice.

{
  "data": {
    "reference": "invoice_supplier_reference",
    "has_attachement": true,
    "filename": "2023_101010.pdf",
    "url": "https://ezus.io/2023_101010.pdf",
    "created_date": "2023-10-10",
    "due_date": "2023-10-20",
    "send_date": "2023-10-15",
    "currency": "EUR",
    "amount_ttc": 1200.0,
    "amount_ht": 1000.0,
    "vat": 200.0,
    "supplier_reference": "supplier_reference",
    "project_reference": "project_reference",
    "alternative": {
      "sort_order": "0",
      "title": "Main Alternative"
    }
  }
}
Property Type Description
reference String The reference of the supplier invoice
has_attachement Boolean true if a file is attached (filename and url are both set), false otherwise
filename String Filename of the supplier invoice
url String URL of the supplier invoice file
created_date String Date of the creation of this supplier invoice, in a "YYYY-MM-DD" format
due_date String Due date of this supplier invoice, in a "YYYY-MM-DD" format
send_date String Sent date of this supplier invoice, in a "YYYY-MM-DD" format
currency String The ISO 4217 currency code representing the currency you utilize (Link to doc)
amount_ttc Number Amount of the supplier invoice including taxes
amount_ht Number Amount of the supplier invoice excluding taxes
vat Number VAT amount of the supplier invoice
supplier_reference String The reference of the supplier linked to this supplier invoice
project_reference String The reference of the project linked to this supplier invoice
alternative JSON JSON including: sort_order and title

Filtering

List endpoints accept query-parameter filters. Each endpoint lists its available filters and labels each one with its type: a plain exact match, a dynamic (text) filter, or a dynamic date filter. Some are additionally flagged as linked-record filters, meaning they only match objects whose linked entity has not been deleted.

Encoding Filter Values

Filter suppliers named Hotel à 20% & Spa:

curl --get "https://api.ezus.io/suppliers" \
  --data-urlencode "company_name=Hotel à 20% & Spa" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Authorization: Bearer YOUR_TOKEN"
const params = new URLSearchParams({ company_name: "Hotel à 20% & Spa" });
const response = await fetch(`https://api.ezus.io/suppliers?${params}`, {
  headers: {
    "x-api-key": "YOUR_API_KEY",
    Authorization: "Bearer YOUR_TOKEN",
  },
});

Filter values must be URL-encoded, as encodeURIComponent or URLSearchParams do. Hotel à 20% & Spa is sent as company_name=Hotel%20%C3%A0%2020%25%20%26%20Spa.

Character Encoded Sent unencoded
% %25 HTTP 400 Bad Request with an empty body: the request never reaches the API
& %26 Ends the value; the rest is read as another query parameter
+ %2B Read as a space
# %23 Ends the URL; the rest of the value and every parameter after it are not sent
space %20 Rejected by most HTTP clients
à, é… UTF-8 %C3%A0, %C3%A9…

A value that is not encoded is not detected: the API answers for the request it received, which is not the one you meant.

%, _ and \ are matched as themselves, never as wildcards: reference_like=A_1 matches A_1, not AB1.

A query parameter whose value is only whitespace (e.g. company_name_like=%20) is refused with an error naming it: {"error": "true", "message": "company_name_like cannot be only whitespace"}.

Linked-Record Filters

Across list endpoints, some filters target a linked record (e.g. the client, project or alternative attached to an invoice) rather than the returned object itself.

By default, a list includes objects whose linked record has been deleted: the object still exists (e.g. an invoice remains even if the client or project linked to it has been deleted).

But a linked-record filter only matches objects whose linked record still exists. As a result, applying such a filter excludes objects attached to a deleted linked record (e.g. filtering invoices on a project start date in June 2026 will not return invoices linked to deleted projects that started in June 2026).

Filtering on a linked-record field therefore narrows results to objects whose linked record is not deleted.

This holds for an empty value too: it matches objects whose linked record has that field empty, never objects without a linked record. GET projects?client_name_like= returns the projects whose client has an empty name, not the projects without a client.

Each endpoint indicates which of its filters are linked-record filters.

Unsupported Filters

A query parameter that an endpoint does not list is ignored. The request still succeeds and returns the same results as without it, with one warning per ignored parameter.

This also applies to a listed filter with an operator that does not exist (e.g. email_foo) or that does not fit its type (e.g. created_date_like).

next_token never raises a warning. A pagination parameter other than limit and next_token is refused with an error instead (see Unsupported Pagination Parameters).

Dynamic Filters

Some filters can be marked as Dynamic filter. When a filter is dynamic, it only accepts String values, and you can append operator suffixes directly to the query parameter name.

Let’s take the email field as an example.
If it’s defined as a dynamic filter, you can use different comparison operators in the query parameter name:

Operator Suffix Description Example
Equals Filters that aren’t marked as dynamic default to equals, meaning it will match values exactly email=contact@moke-international.com
Equals _eq Exact match email_eq=contact@moke-international.com
Starts with _starts Field value starts with... email_starts=contact
Ends with _ends Field value ends with... email_ends=international.com
Contains _like Field value contains... email_like=moke

Dynamic Date Filters

Some date filters can be marked as Dynamic date filter. They follow the same suffix mechanism as text Dynamic filters, but with date comparison operators. Values must be provided in YYYY-MM-DD format.

Operator Suffix Description Example
Equals Filters that aren’t marked as dynamic default to equals, meaning it will match values exactly created_date=2026-01-15
Equals _eq Exact date created_date_eq=2026-01-15
After _gt Strictly after created_date_gt=2026-01-01
On or after _gte On or after (incl.) created_date_gte=2026-01-01
Before _lt Strictly before created_date_lt=2026-02-01
On or before _lte On or before (incl.) created_date_lte=2026-01-31

A date range is obtained by combining two suffixes, e.g. created_date_gte=2026-01-01&created_date_lte=2026-03-31.

Dynamic Number Filters

Some number filters can be marked as Dynamic number filter. They take the same suffixes as Dynamic date filters. Values are numbers, e.g. 90 or 1.5; any other value is refused with an error naming the filter.

Operator Suffix Description Example
Equals Filters that aren’t marked as dynamic default to equals, meaning it will match values exactly duration_minutes=90
Equals _eq Exact value duration_minutes_eq=90
Greater than _gt Strictly greater duration_minutes_gt=60
Greater than or equal to _gte Greater or equal (incl.) duration_minutes_gte=60
Less than _lt Strictly less duration_minutes_lt=240
Less than or equal to _lte Less or equal (incl.) duration_minutes_lte=240

A range is obtained by combining two suffixes, e.g. duration_minutes_gte=60&duration_minutes_lte=240.

Pagination

List endpoints return their results one page at a time. Each page carries:

Property Type Description
next_token String Token of the next page. Empty or null on the last page
size Number Total number of objects matching the filters
data_size Number Number of objects on this page
page Number The page number, from 1

Page Size

Read the products 200 at a time:

curl --location 'https://api.ezus.app/products?limit=200' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'Authorization: Bearer <YOUR_TOKEN>'
const response = await fetch("https://api.ezus.app/products?limit=200", {
  headers: {
    "x-api-key": "<YOUR_API_KEY>",
    Authorization: "Bearer <YOUR_TOKEN>",
  },
});

limit sets the number of objects per page: any integer from 1 to 250. Without it, a page holds 50 objects. GET project-steps is the exception: 10 steps per page by default, up to 100.

A value out of range, or that is not an integer, is refused with an error:

{
  "error": "true",
  "message": "limit must be an integer from 1 to 250"
}

Next Pages

To get the next page, call the endpoint again with only the next_token of the previous answer. The token keeps the filters, include and limit of the first call: any other parameter sent with it is not read.

Unsupported Pagination Parameters

limit and next_token are the only pagination parameters. Any other one (page, page_size, per_page, offset, skip, cursor…) is refused with an error instead of being ignored:

{
  "error": "true",
  "message": "per_page is not supported: set the page size with limit, from 1 to 250, and read the next page with next_token"
}

An endpoint that is not paginated, such as GET categories, refuses limit too: limit is not supported: this route is not paginated.

Date Format

All dates in our API follow the YYYY-MM-DD format. Our database stores dates in Central European Time (CET/CEST - UTC+1/UTC+2).

Date format specifications

Date filters

Date filters allow you to retrieve objects based on specific dates or date ranges.

Single date filter:

Date range filter:

Rate Limits

Daily rate limit

For security reasons, the API allows you to make 10,000 calls per day, unless your plan allows more. The day is the calendar day in UTC: the count starts over at midnight UTC. This limit is called later "daily rate limit".

GET /me?include=quota tells your daily rate limit, how many calls are left today and when the count starts over (Quota). Its count runs about one hour behind your calls.

Burst rate limit

Additionally, the API is protected by a burst rate limit. This means you can't make more than 100 requests per second, unless your plan allows more.

Repeated identical calls

The upsert endpoints answer an identical call made within 3 seconds of the first one with the answer of the first call, without running it again. Two calls are identical when they come from the same API user with the same body and the same query string. This protects your data when a workflow fires the same call twice by mistake.

As a consequence, within those 3 seconds:

After 3 seconds, an identical call runs again. To update an object right after creating it, change the body (any field) or wait 3 seconds.

This applies to categories-upsert, subcategories-upsert, clients-upsert, destinations-upsert, subdestinations-upsert, projects-upsert, project-steps-upsert, project-steps-items-upsert, products-upsert, product-seasons-upsert, packages-upsert, step-categories-upsert, suppliers-upsert, invoices-supplier-upsert and webhooks-upsert.

Warnings

The Ezus API uses the following warning message format in the message field: {code}_{field}. Where:

Multiple warnings are separated by a comma.

The Ezus API uses the following warning codes:

Warning Code Meaning
skip A field has been skipped

Here is a warning message example:

{
  "error": "false",
  "message": "skip_company_number,skip_vat_number",
  "action": "Client successfully updated",
  "reference": "client_reference"
}

In this case, the fields company_number and vat_number have been skipped during the update of the client. This is due to the fact that these fields are not used for an individual client type. Therefore, these fields have been ignored and not updated.

Ignored Query Parameters

On a GET endpoint, each query parameter the endpoint does not support (see Unsupported Filters) adds a warning to the message field. A POST, PUT, PATCH or DELETE route refuses any query parameter instead, login and token aside (see Body only).

Warning: The filter '{parameter}' does not exist and was ignored

Multiple warnings are separated by a comma. message is absent when every query parameter is supported.

{
  "error": "false",
  "next_token": "<NEXT_TOKEN>",
  "size": 85,
  "data_size": 50,
  "page": 1,
  "suppliers": [...],
  "message": "Warning: The filter 'company_name_like' does not exist and was ignored,Warning: The filter 'capacity_like' does not exist and was ignored"
}

In this case, GET suppliers?company_name_like=Tren&capacity_like=10 returned every supplier: neither filter is supported by this endpoint.

References

Every object you write through the API is identified by its reference, unique among the objects of its kind in your account. Send your own when you create the object, for instance its identifier in your system, or let Ezus generate one and store the one answered. Send it again to update the object: an import that sends the same call twice then updates the object instead of creating it twice (see Duplicates).

Length

Each write route gives the maximum length of its reference with the parameter, counted in characters. A longer reference is refused with an error giving the maximum, e.g. reference must be at most 100 characters, and nothing is saved: a reference is never cut.

Characters

A reference is a string and accepts any character. Letters without accents, digits, -, _ and . keep it unambiguous: prefer them, since references are compared as below.

Comparison

References are compared without their case, their accents and the spaces at their end. CRM-42, crm-42 and crm-42 name the same object, so do Café and cafe, or Straße and strasse: a call sending crm-42 updates, or answers in mode create, the object created with CRM-42, and never creates a second one.

Spaces at the start, - and _ count: crm-42, crm-42 and crm_42 are three references. Emojis and the other characters beyond the Basic Multilingual Plane are all compared as equal: avoid them.

Body only

reference, mode and every other parameter of a POST, PUT, PATCH or DELETE route go in the JSON body. Except on login and token, a parameter sent in the query string of these routes is refused, and nothing is done:

{
  "error": "true",
  "message": "Query parameters are not supported on this route, send them in the JSON body: mode"
}

Duplicates

A create never duplicates an object of your account. When the object a call would create already exists, nothing is created or updated, and the call answers the existing object:

{
  "error": "false",
  "message": "ok",
  "action": "Supplier already exists",
  "reference": "supplier_reference"
}

On every route below, action is <Object> already exists and reference is the reference of the existing object.

Duplicate keys

Route Object The object already exists when
tags-create Tag a tag of the type has the name
suppliers-upsert Supplier a supplier has the company_name, or the contact.first_name of a supplier sent without company_name
clients-upsert Client an enterprise client: a client has the company_name. An individual client: a client has the first name, last name and email of its main contact
packages-upsert Package a package has the title
products-upsert Product a product of the same supplier (supplier_reference, or none) has the title
product-seasons-upsert Season a season of the product has the name, limit_start and limit_end. The prices are not compared and stay unchanged
destinations-upsert Destination a destination has the name
subdestinations-upsert Subdestination a sub-destination of the destination has the name
categories-upsert Category a category has the name
subcategories-upsert Subcategory a sub-category of the category has the name
step-categories-upsert Step category a step category of the type has the name. activity and extra share their categories
fields-create Field a field of the object_type, or of the step_category for a step field, has the name. Tags are not compared
project-steps-upsert with from_steps_catalog Project step a sample step of the steps catalog has the name
webpage-templates-upsert Web page template a web page template has the name

Names and titles are compared without the spaces around them, whatever their case and accents. When several objects match, the oldest one is answered.

On an upsert route, the key is looked up only when reference matches no object: a reference that matches updates that object. Renaming an object to the key of another object is refused with an error.

Mode create

On every route taking a mode, create with a reference that matches an existing object answers that object the same way. This includes projects-upsert, project-steps-upsert, project-steps-items-upsert, projects-commissions-upsert and invoices-supplier-upsert, whose objects have no duplicate key. media-create and invoices-supplier-payments-create only create: a reference an existing media or payment carries answers it the same way (Media already exists, Supplier invoice payment already exists).

Lists

A list sent to suppliers-upsert, products-upsert, project-steps-items-upsert or media-create is answered object by object in results, in the order of the list. Each entry is the answer the object gets alone, an existing object included, and an existing object does not stop the list:

{
  "error": "false",
  "message": "ok",
  "action": "1 product successfully created ; 0 product successfully updated ; 1 product already exists ; 0 product failed",
  "references": ["product_reference", "7cf94544-7e56-4e94-93cc-822d2cd9056d"],
  "results": [
    {
      "error": "false",
      "message": "ok",
      "action": "Product already exists",
      "reference": "product_reference"
    },
    {
      "error": "false",
      "message": "ok",
      "action": "Product successfully created",
      "reference": "7cf94544-7e56-4e94-93cc-822d2cd9056d"
    }
  ]
}

Errors

The Ezus API uses the following error codes:

Error Code Meaning
200 error="true" error message explained in the "message" string
400 Bad Request -- Your request is invalid.
403 Forbidden -- The request was blocked by our firewall, or an API key is missing or invalid.
500 Internal Server Error -- We had a problem with our server. Try again later.

The Ezus API uses the following error messages:

Error Message Meaning
This <'OBJECT'> has been deleted The object you try to access has been deleted
Forbidden Your request was rejected due to missing or invalid API key, or blocked by security rules.

Some errors also carry a type key, a stable code to branch on instead of the message:

Type Meaning
REFERENCE_NOT_FOUND mode is update and reference matches no object. Nothing is created or updated.
AMBIGUOUS_EMAIL_REFERENCE Several clients or suppliers have a primary contact with the email sent as reference. Nothing is created or updated.

Each text a route stores has a maximum length, given in its parameters. A longer text is refused with an error naming the field and its maximum, e.g. website must be at most 100 characters, and nothing is saved: a text is never cut. Lengths are counted in characters as the text is stored: in a name, a title, a website or a contact field, a double quote " is stored as two characters. A maximum given in bytes counts the text encoded in UTF-8.

A request is refused with error="true" and nothing is done when a parameter name, in the query string or anywhere in the body, is longer than 36 characters (Invalid input: API parameter name cannot exceed 36 characters for security reasons.), or when the body nests objects or arrays more than 50 levels deep (Invalid input: Data structure exceeds maximum depth of 50 levels.). On a POST, PUT, PATCH or DELETE route other than login and token, it is also refused when it carries a query parameter (Query parameters are not supported on this route, send them in the JSON body: mode): see Body only.