Skip to main content

accountingImportItems

Imports every item from the connected accounting provider.

Enqueues a background import and returns a server-generated processId. Follow processStatusUpdates(processId:) or query processStatus(processId:) for completion and per-item failures.

Business Rules​

  • The integration must belong to this company, be active, and be able to supply accounting items.
  • Importing refreshes the stored provider copy of every item. A provider item whose code matches a product's code is linked to it, and an accounting item is created for a match that has none. An item already linked takes the provider's values unless Endless is the accounting source of truth.
  • The process completes after every item in the import has been handled.

Error Scenarios​

  • **NOT_FOUND**: the integration does not exist for this company.
  • **VALIDATION**: the integration cannot supply accounting items, or it is inactive.

Permissions Required​

  • accounting:import_item permission.
accountingImportItems(
input: ImportItemsInput!
): AsynchronousActionResponse!

Arguments​

accountingImportItems.input ● ImportItemsInput! non-null input common​

Parameters for ImportItems

Type​

AsynchronousActionResponse object common​

Asynchronous action response type