---
title: "Get Next Draft Id"
method: GET
path: "/api/v1/materials/next-draft-id"
tags: ["v1", "Materials"]
---

# Get Next Draft Id

`GET /api/v1/materials/next-draft-id`

## Request

- Base URL: `https://api.jeevyfabrication.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jeevyfabrication.com/api/v1/materials/next-draft-id`
- Auth: none declared

Return a unique, sequential DRAFT id for a (project, vendor) pair.

Mints via next_vendor_draft_id(), a per-(project, vendor) counter mirroring
next_vendor_po_number()'s per-project one. Called once per vendor group at
Raise-PO time for any group headed to qs_state='approval' (no real
po_number exists yet — see chk_mmi_approval_no_po_number) so two separate
raises to the same vendor no longer collapse into one grouping key.

## Query parameters

- `project_id` integer, required
- `vendor` string, required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api.md) - [All operations](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/revisions/ad9a01abeac9?raw)
