Centum v2 icon

Centum v2

Consumes Centum API

Actions76

Órdenes Compra → Create

AI-generated

Summary

Create a purchase order in Centum ERP with supplier, document and delivery dates, delivery time slot, and one or more article lines. Article IDs, quantities, prices, and discount percentages are entered as comma-separated lists; optional document numbering, branch, and purchase operator details can also be supplied.

Inputs

  • Supplier ID (required) — Supplier to associate with the purchase order.
  • Article IDs — Comma-separated positive article IDs. Spaces are ignored.
  • Article quantities — Comma-separated positive quantities corresponding to the article IDs.
  • Article prices — Comma-separated positive prices corresponding to the article IDs.
  • Article discount percentages 1–3 — Three optional comma-separated discount lists. Values must be from 0 to 100 and correspond to the article lines.
  • Document date (required) — Date of the purchase order document.
  • Delivery date (required) — Date the order is to be delivered.
  • Due date (required) — Document due date.
  • Delivery time slot ID (required) — Delivery time slot for the order.
  • Purchase operator ID — Purchase operator associated with the order; defaults to 0.
  • Physical branch ID — Branch ID; defaults to an empty value.
  • Document letter, number, and point of sale — Optional document identification fields; each defaults to an empty value or 0.
  • Debug Options — Optionally enable sanitized request metadata logging, filter logged requests by URL text, and include the request body in debug logs.

Output shape

A single item containing the created purchase order response.

The source pack shows the operation implementation only by signature, so the exact response fields and any output simplification are not visible.

Links

Discussion