---
title: "Create a sales opportunity line item"
method: POST
path: "/v1/finance/salesOpportunities/{salesOpportunityId}/lineItems"
tags: ["SalesOpportunities"]
---

# Create a sales opportunity line item

`POST /v1/finance/salesOpportunities/{salesOpportunityId}/lineItems`

## Request

- Base URL: `https://api.bigchange.com`
- URL: `https://api.bigchange.com/v1/finance/salesOpportunities/{salesOpportunityId}/lineItems`
- Auth: HTTP bearer

Create a new sales opportunity line item (required scope finance:write)

## Path parameters

- `salesOpportunityId` integer, required

## Headers

- `Customer-Id` integer, required

## Request body

- CreateSalesOpportunityLineItemModel: Represents a model that holds information about creating a sales opportunity line item
  - `contactId` integer, nullable: The unique identifier of the contact associated with this sales opportunity line item
  - `quantity` number, double, required: The quantity of the sales opportunity line item
  - `description` string: Description of the sales opportunity line item
  - `taxId` integer, nullable: Tax identifier (must exist and not be deleted for customer). Nullable
  - `unitCost` number, double, nullable: Unit cost (nullable, non-negative)
  - `unitSellingPrice` number, double: Unit selling price (non-negative)
  - `nominalCodeId` integer, nullable: Nominal code identifier (must exist and not be deleted for customer)
  - `departmentCodeId` integer, nullable: Department code identifier (must exist and not be deleted for customer)

## Response `201`

Created

- PostResponseInt64: Represents a response for a POST request, containing the ID of the newly created record
  - `id` integer: Identifier of the newly created record

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `422`: Unprocessable Content
- `500`: Internal Server Error

---

[API](https://skmtc.dev/bigchange/apis/bigchange-dx.md) - [All operations](https://skmtc.dev/bigchange/apis/bigchange-dx/llms.txt) - [OpenAPI document](https://skmtc.dev/bigchange/apis/bigchange-dx/revisions/b262bfdb1dd0?raw)
