DokumentationErste Schritte

Schnellstart

Melden Sie sich an und legen Sie mit dem SDK Ihre erste Bestellung an, für jeden Lieferanten, abgeglichen mit dem Erhaltenen.

Melden Sie sich an und legen Sie Ihre erste Bestellung an, bei einem beliebigen Lieferanten. Die Konsole und die SDKs rufen dieselbe /v1-API auf, die Sie auch mit einem eingeschränkten API-Schlüssel aufrufen können (wie Sie einen erzeugen, steht unter KI-Agenten). Manche Aktionen erfordern immer eine in Pleaxy angemeldete Person, nie einen API-Schlüssel: Freigeben, Ändern von Freigabeabläufen oder der Autonomie sowie das Erfassen einer Zahlung.

quickstart.ts
import { Pleaxy } from "@pleaxy/sdk";

// The base URL is the origin only: the SDK adds /v1/workspaces/<Workspace ID>.
const pleaxy = new Pleaxy({
  baseUrl: "https://api.pleaxy.ai",
  apiKey: process.env.PLEAXY_API_KEY, // "<keyId>.<secret>"
  workspaceId: process.env.PLEAXY_WORKSPACE_ID, // Company profile → Workspace ID
});

// A purchase order to any supplier. A supplier not on Pleaxy yet is emailed the
// order and invited at supplierContactEmail when it is sent. With three_way, its
// invoices are checked against this order, what you receive against it and any
// contract you hold with them.
const po = await pleaxy.purchaseOrders.createPurchaseOrder({
  supplier: "Northgate Steel",
  supplierContactEmail: "orders@northgate-steel.example",
  matching: "three_way",
  lineItems: [
    {
      scopeType: "custom",
      name: "Hot-rolled steel plate, 10 mm",
      ruleType: "quantity",
      lineType: "goods",
      unit: "t",
      unitPrice: 920,
      qty: 20,
      nteAmount: 0,
      paymentTerms: "Net 30",
      validFrom: "2026-01-01",
      validUntil: "2026-12-31",
    },
  ],
});

// po.status is "pending_approval" while your approval flow runs, then
// "awaiting_fulfillment". Autonomy, if on, can approve it straight away.

// Each invoice against the order is checked against it, what was received and
// the contract (and, for a cloud or AI provider you connect, the usage it
// metered). Why one matched or is held:
const [invoice] = await pleaxy.invoices.listInvoices();
if (invoice) console.log(await pleaxy.invoices.getInvoiceReconciliation(invoice.id));

In Ihrer Sprache verfügbar

Jedes SDK wird aus derselben OpenAPI-Spezifikation generiert wie die API-Referenz und bleibt so immer synchron mit der API – nutzen Sie eines der sechs, die wir selbst pflegen, oder generieren Sie einen Client für jede andere Sprache.

RustOffiziell
pleaxy
TypeScriptOffiziell
@pleaxy/sdk
PythonOffiziell
pleaxy
GoOffiziell
github.com/pleaxyai/pleaxy-sdk/go
JavaOffiziell
ai.pleaxy:pleaxy-java
RubyOffiziell
pleaxy
Installationsanleitung & Quickstarts ansehen →
Kontakt aufnehmen