---
title: "Create Purchase Order"
method: POST
path: "/api/v1/scm/purchase-orders"
tags: ["SCM"]
---

# Create Purchase Order

`POST /api/v1/scm/purchase-orders`

## Request

- Base URL: `https://api.compteam.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.compteam.io/api/v1/scm/purchase-orders`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

## Request body

- PurchaseOrderCreate
  - `vendor_id` string, uuid, required
  - `po_number` string, nullable
  - `order_date` string, date, nullable
  - `currency` string, nullable
  - `shipping_cost` union
    - number
    - string
  - `import_cost` union
    - number
    - string
  - `items` PurchaseOrderItemCreate[], required
    - `line_type` 'goods' | 'service', required
    - `material_id` string, uuid, nullable
    - `description` string, nullable
    - `quantity` integer, required
    - `location_id` string, uuid, nullable
    - `unit_price` union, required
      - number
      - string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/compteam/apis/c-team-api.md) · [All operations](https://skmtc.dev/compteam/apis/c-team-api/llms.txt) · [OpenAPI document](https://skmtc.dev/compteam/apis/c-team-api/revisions/4bd27c892655?raw)
