Xentral icon

Xentral

Interact with Xentral ERP API

Actions196

Goods Receipt → Create for Purchase Order

AI-generated

Summary

Create a goods receipt in Xentral for a specified purchase order by providing its ID and optional additional fields such as the receipt date and positions, formatted as a JSON array.

Inputs

  • Purchase Order ID (required) — Specify the ID of the purchase order for which to create the goods receipt.
  • Date — Optionally set the goods receipt date as an ISO 8601 date string.
  • Positions (JSON) — Optionally provide a JSON array of positions, each specifying product IDs, quantities, and related stock movements, for the goods receipt.
  • Max Pages — When returning all records (e.g., in list operations), controls the maximum number of API pages to fetch. Not applicable for this create operation but exposed in UI when returnAll is true.

Output shape

a single goods receipt record as returned by the API

The operation sends a create request to the Xentral API endpoint for goods receipts linked to a purchase order and returns the details of the created goods receipt. Additional optional fields must be provided in the correct format (e.g., positions as JSON). No pagination applies here.

Links

Discussion