Skip to main content
POST
/
purchase-orders
Bestellungen erstellen
curl --request POST \
  --url https://api.comstruct.com/v1/purchase-orders \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
[
  {
    "contract_number": "PO-2024-001",
    "title": "Concrete Materials Order",
    "supplier": {
      "external_id": "SUPPLIER-123456"
    },
    "purchase_order_items": [
      {
        "external_id": "ITEM-001",
        "project_number": "PROJECT-KTR-789",
        "title": "Concrete C25/30",
        "quantity": 50,
        "net_price": 1000,
        "price_per_unit": 20,
        "product": {
          "title": "Concrete",
          "unit": "m3"
        }
      }
    ]
  }
]
'
{
  "message": "Purchase Order data received successfully"
}

Documentation Index

Fetch the complete documentation index at: https://developer.comstruct.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-Key
string
header
required

API-Schlüssel zur Authentifizierung. Kontaktieren Sie Ihren Customer Success Manager, um einen API-Schlüssel zu erhalten.

Jeder Endpunkt erfordert spezifische Berechtigungen (Scopes); die erforderlichen Scopes werden pro Endpunkt angezeigt.

Body

application/json
supplier
object
required
contract_number
string
required
purchase_order_items
object[]
required
Minimum array length: 1
title
string | null
alternative_contract_number
string | null
payment_term_number
string | null
created_at
string<date-time> | null

Response

Bestellungsdaten erfolgreich empfangen

message
string
Example:

"Purchase Order data received successfully"