---
title: "Add a line item to an order"
method: POST
path: "/admin/orders/{order_id}/line-items"
tags: ["Orders"]
---

# Add a line item to an order

`POST /admin/orders/{order_id}/line-items`

## Request

- Base URL: `https://api.presscart.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.presscart.com/admin/orders/{order_id}/line-items`
- Auth: HTTP bearer

Add a new line item to an unpaid order. Order totals will be recalculated.

## Path parameters

- `order_id` string, uuid, required

## Request body

- object
  - `product_id` string, uuid, nullable, required
  - `quantity` number, required
  - `price` number, nullable, required
  - `internal_cost` number, nullable
  - `is_add_on` boolean, nullable
  - `linked_order_line_item_id` string, uuid, nullable

## Response `201`

Line item added successfully

- OrderLineItem
  - `id` string, uuid, required
  - `order_id` string, uuid, required
  - `product_id` string, uuid, nullable, required
  - `quantity` number, required
  - `price` number, nullable, required
  - `internal_cost` number, nullable, required
  - `is_add_on` boolean, nullable
  - `linked_order_line_item_id` string, uuid, nullable, required
  - `source` string, nullable, required
  - `niche_snapshot` object, nullable, required
    - `version` 1, required
    - `outlet_niche_id` string, uuid, required
    - `niche` 'CRYPTO' | 'CBD' | 'GAMBLING' | 'ADULT_CONTENT' | 'SUPPLEMENTS' | 'MEDICAL' | 'INVESTING' | 'POLITICAL' | 'WEIGHT_LOSS' | 'GRAY_AREA_SERVICES', required
    - `multiplier` string, required
    - `parent_unit_price_cents` integer, required
    - `surcharge_unit_price_cents` integer, required
    - `display_name` string, required
  - `created_at` union, required
    - string, nullable
    - string
    - unknown
  - `updated_at` union, required
    - string, nullable
    - string
    - unknown
  - `deleted_at` union, required
    - string, nullable
    - string
    - unknown

---

[API](https://skmtc.dev/presscart/apis/presscart-prod-api.md) · [All operations](https://skmtc.dev/presscart/apis/presscart-prod-api/llms.txt) · [OpenAPI document](https://skmtc.dev/presscart/apis/presscart-prod-api/revisions/2154581d845e?raw)
