Skip to main content

List Transactions

GET 

/api/magento2/integration-instances/:magento2IntegrationInstance/transactions

Paginated UNION of invoices + credit memos. Each row carries a type discriminator and a magento_admin_url deep-link that points at the correct admin section (invoice vs credit memo) on the storefront.

Path params:

  • magento2IntegrationInstance (required, integer) — Magento 2 IntegrationInstance ID.

Notes:

  • Implementation uses an in-memory merge of the two Eloquent queries (suitable for typical merchant volumes). For high-volume tenants the repository will swap to DB::query()->fromSub(...->unionAll(...)) without changing the API contract.
  • The order is eager-loaded so the cell renderer doesn't N+1.
  • Sort is fixed at magento_created_at DESC for now (the merged paginator doesn't yet honour Spatie's sort param).

Request

Responses

OK

Response Headers
    Content-Type