Skip to main content

requestPurchaseOrdersExport

Requests an asynchronous purchase orders export for the current brand.

The export is processed in the background and generates a CSV file with the purchase orders and their line items. Each purchase order produces one row per PO item, with PO-level data repeated. Purchase orders without items are included with empty item fields.

Use the returned process_id to track the export progress.

Authentication

Requires a logged-in user with access to the brand.

Filters

  • **status**: Filter by PO status (DRAFT, ISSUED, CONFIRMED, etc.).
  • **milestone**: Filter by milestone (PRE_PRODUCTION, PRODUCTION, etc.).
  • **financial_status**: Filter by financial status (UNPAID, PARTIALLY_PAID, PAID).
  • **include_archived**: Include archived purchase orders in the export.

Possible Errors

  • **You must be logged in**: Authentication is required.
  • **Brand is required**: The X-Brand-Id header must be provided.
requestPurchaseOrdersExport(
input: RequestPurchaseOrdersExportInput!
): AsynchronousActionResponse!

Arguments

requestPurchaseOrdersExport.input ● RequestPurchaseOrdersExportInput! non-null input

Parameters for RequestPurchaseOrdersExport

Type

AsynchronousActionResponse object

Asynchronous action response type