---
title: "Update an order item"
method: PATCH
path: "/api/v1/sa/inventory/purchase-order-items/{id}"
tags: ["Purchase Orders"]
---

# Update an order item

`PATCH /api/v1/sa/inventory/purchase-order-items/{id}`

## Request

- Base URL: `https://app.sellerassistant.app` (the document declares no server; this is the origin it was published from)
- URL: `https://app.sellerassistant.app/api/v1/sa/inventory/purchase-order-items/{id}`
- Auth: one of:
  - API key in query parameter `api_key`
  - API key in header `X-Api-Key`

A change of the cost or the count moves the totals of the order, and the offer of the supplier follows the new cost.

## Path parameters

- `id` integer, required

## Request body

- object
  - `unit_cost` number
  - `unit_count` integer
  - `sku` string, nullable

## Response `200`

The item

- object
  - `data` PurchaseOrderItem: One line of a purchase order.
    - `id` integer
    - `purchase_order_id` integer
    - `internal_product_id` string, nullable: The inventory product the line points at. It is the same id the matches and the history of a product use.
    - `title` string, nullable
    - `image_url` string, nullable
    - `asin` string, nullable
    - `upc` string, nullable
    - `ean` string, nullable
    - `sku` string, nullable
    - `identifier` string, nullable
    - `unit_cost` number, float, nullable: Null means not known, which is not the same as zero.
    - `unit_count` integer
    - `total_cost` number, float, nullable
    - `selling_price` number, float, nullable
    - `profit_fba` number, float, nullable
    - `profit_marketplace_id` string, nullable
    - `profit_calculated_at` string, date-time, nullable
    - `created_at` string, date-time, nullable
    - `updated_at` string, date-time, nullable

## Other responses

- `400`: Bad request - validation failed or invalid parameters
- `403`: Access denied - insufficient permissions, invalid API key, or the API request limit is used up (`public_api_key_limit`)
- `404`: Resource not found
- `429`: Too many requests - rate limit exceeded

---

[API](https://skmtc.dev/sellerassistant/apis/seller-assistant-public-api.md) · [All operations](https://skmtc.dev/sellerassistant/apis/seller-assistant-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sellerassistant/apis/seller-assistant-public-api/revisions/5b3ecdbcadb6?raw)
