Skip to main content
GET

Get a production order

Scope:inventory:production-orders.read
https://api.holded.com/api/v2/production-orders/{productionOrderId}

Retrieves the full details of a single production order by its unique identifier.

Parameters

Path parameters

productionOrderIdstringrequired

Production Order ID (24-char hex ObjectId)

Request

python
import requests

url = "https://api.holded.com/api/v2/production-orders/{productionOrderId}"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

response = requests.get(url, headers=headers)
print(response.json())

Responses

Response

json
{
  "id": "507f1f77bcf86cd799439011",
  "document_number": "string",
  "contact_id": "string",
  "contact_name": "string",
  "supplier_id": "string",
  "supplier_name": "string",
  "description": "string",
  "date": "2024-01-15",
  "due_date": "2024-02-15",
  "cost": "150.00",
  "currency": "EUR",
  "tags": [
    "string"
  ],
  "manufacturing_pipeline_id": "string",
  "manufactured_product": {
    "product_id": "string",
    "name": "string",
    "sku": "string",
    "kind": "string",
    "quantity": "10.00",
    "variant_ids": [
      {
        "id": "string",
        "units": 0
      }
    ]
  },
  "source_warehouse_id": "string",
  "destination_warehouse_id": "string",
  "is_built": false,
  "is_valued": false,
  "notes": "string",
  "language": "es",
  "subtotal": "150.00",
  "total": "150.00",
  "materials": [
    {
      "product_id": "string",
      "service_id": "string",
      "name": "string",
      "description": "string",
      "price": "10.00",
      "units": "5.00",
      "type": "product",
      "sku": "string",
      "barcode": "string",
      "factory_code": "string"
    }
  ],
  "files": [
    "string"
  ],
  "from": {
    "id": "string",
    "doc_type": "string"
  },
  "converted_to": [
    {
      "id": "string",
      "doc_type": "string"
    }
  ],
  "number_line_id": "string",
  "design_id": "string",
  "is_pdf": false,
  "user_id": "string"
}

Success responses

200Production order foundapplication/json
object
idstring
document_numberstring
contact_idstring | null
contact_namestring | null
supplier_idstring | null
supplier_namestring | null
descriptionstring
datestring<date> | null

Issue date in ISO 8601 format

due_datestring<date> | null

Due date in ISO 8601 format

coststring

Total cost as a decimal string

currencystring
tags[]string[]
manufacturing_pipeline_idstring | null
manufactured_productobject | null
product_idstring
namestring
skustring
kindstring
quantitystring
variant_ids[]object[]
source_warehouse_idstring | null
destination_warehouse_idstring | null
is_builtboolean
is_valuedboolean
notesstring
languagestring
subtotalstring

Subtotal as a decimal string

totalstring

Total as a decimal string

materials[]object[]
product_idstring | null
service_idstring | null
namestring
descriptionstring | null
pricestring
unitsstring
typestring
Enum:productserviceline
skustring | null
barcodestring | null
factory_codestring | null
files[]string[] | null
fromobject | null

Source document this production order was created from

idstring
doc_typestring
converted_to[]object[] | null
idstring
doc_typestring
number_line_idstring | null
design_idstring | null
is_pdfboolean
user_idstring | null

Error responses

401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
404Production order not foundapplication/json
429Rate limit exceededapplication/json