Zum Hauptinhalt springen
GET
/
invoices
/
{id}
/
items
Rechnungspositionen abrufen
curl --request GET \
  --url https://api.comstruct.com/v1/invoices/{id}/items \
  --header 'X-API-Key: <api-key>'
{
  "items": [
    {
      "index": 0,
      "id": 123,
      "product_number": "<string>",
      "title": "<string>",
      "description": "<string>",
      "type": "REMOVAL",
      "quantity": 123,
      "unit": "<string>",
      "unit_net_price": 123,
      "net_price": 123,
      "deducted_quantity": 123,
      "deducted_unit_net_price": 123,
      "deducted_net_price": 123,
      "delivery_number": "<string>",
      "delivery_date": "2023-12-25",
      "item_position": 123,
      "matched_delivery_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "matched_product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "matched_price": true,
      "matched_quantity": true,
      "discount": 123,
      "special_discount": 123,
      "comment": "<string>",
      "account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "llm_factual_match_reason": "<string>",
      "llm_factual_match_status": "<string>",
      "positions": [
        {}
      ]
    }
  ]
}
Gibt die Rechnungspositionen für eine Rechnung zurück (items, nach index sortiert). Nicht in GET /invoices oder GET /invoices/{id} enthalten.

Autorisierungen

X-API-Key
string
header
erforderlich

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.

Pfadparameter

id
integer
erforderlich

Rechnungs-ID (Integer)

Antwort

Erfolgreich

items
object[]
erforderlich

Rechnungspositionen sortiert nach index