---
title: "Create package"
method: POST
path: "/draft_trips/{trip_uuid}/packages"
tags: ["Packages"]
---

# Create package

`POST /draft_trips/{trip_uuid}/packages`

## Request

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

Create Package

## Path parameters

- `trip_uuid` string, required

## Request body

- object
  - `data` CreatePackage: Create Package
    - `name` string, required: Name of the package
    - `deposit` integer: Deposit price of the package, please use the payment plan field instead
    - `price` integer, required: Price of the package
    - `quantity` integer: Max available quantity of the package. You can set it to null for "unlimited" value. (NOTE: setting "null" value is not possible in this editor)
    - `description` string: Description of the package
    - `participants_per_package` integer: Number of participants per package.
    - `days_before_departure` integer: Whether this package 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` Package: Package model
    - `id` string: ID of the package
    - `trip_uuid` string, required: Unique ID of the trip
    - `name` string, required: Name of the package
    - `deposit` integer: Deposit price of the package, please use the payment plan field instead
    - `price` integer, required: Price of the package
    - `quantity` integer: Max available quantity of the package. You can set it to null for "unlimited" value. (NOTE: setting "null" value is not possible in this editor)
    - `description` string, required: Description of the package
    - `days_before_departure` integer: Whether this package 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)
