---
title: "Create add-on"
method: POST
path: "/draft_trips/{trip_uuid}/options"
tags: ["Add-ons"]
---

# Create add-on

`POST /draft_trips/{trip_uuid}/options`

## Request

- Base URL: `https://api.wetravel.com/v2`
- URL: `https://api.wetravel.com/v2/draft_trips/{trip_uuid}/options`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Api-Key`

Create Add-on

## Path parameters

- `trip_uuid` string, required

## Request body

- object
  - `data` CreateOption: Create Add-on
    - `name` string, required: Name of the add-on option
    - `description` string: Description of the add-on option
    - `price` integer, required: Price of the add-on option
    - `price_type` string: Type of the add-on option, can be "option" or "personal_option"
    - `quantity` integer: Quantity of the add-on option. You can set it to null for "unlimited" value. (NOTE: setting "null" value is not possible in this editor)
    - `days_before_departure` integer: Whether this add-on has a booking deadline. The deadline is defined in relation to the trip start date. E.g. if this setting is set to “5” and the trip starts on January 15, then the booking deadline will be January 10.

## Response `201`

Successfully created

- object
  - `data` Option: Add-on model
    - `id` string: ID of the add-on option
    - `trip_uuid` string, required: Unique ID of the trip
    - `name` string, required: Name of the add-on option
    - `description` string: Description of the add-on option
    - `price` integer, required: Price of the add-on option
    - `price_type` string: Type of the add-on option, can be "option" or "personal_option"
    - `quantity` integer: Quantity of the add-on option. You can set it to null for "unlimited" value. (NOTE: setting "null" value is not possible in this editor)
    - `days_before_departure` integer: Whether this add-on has a booking deadline. The deadline is defined in relation to the trip start date. E.g. if this setting is set to “5” and the trip starts on January 15, then the booking deadline will be January 10.
    - `created_at` integer: Time at which the object was created. Measured in seconds since the Unix epoch.

---

[API](https://skmtc.dev/wetravel/apis/trips-builder-api.md) - [All operations](https://skmtc.dev/wetravel/apis/trips-builder-api/llms.txt) - [OpenAPI document](https://skmtc.dev/wetravel/apis/trips-builder-api/revisions/57bdbcf06273?raw)
