---
title: "Add Component"
method: POST
path: "/api/packages/{package_id}/components"
tags: ["packages"]
---

# Add Component

`POST /api/packages/{package_id}/components`

## Request

- Base URL: `https://api.pointifytravels.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pointifytravels.com/api/packages/{package_id}/components`
- Auth: none declared

Add a component to a package.

## Path parameters

- `package_id` string, required

## Request body

- AddComponentRequest
  - `type` string, required
  - `supplier` string, nullable
  - `cost_to_agency` number, nullable
  - `retail_price` number, nullable
  - `details` object, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pointifytravels/apis/pointify-deal-engine.md) · [All operations](https://skmtc.dev/pointifytravels/apis/pointify-deal-engine/llms.txt) · [OpenAPI document](https://skmtc.dev/pointifytravels/apis/pointify-deal-engine/revisions/4350142a4216?raw)
