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 DESCfor now (the merged paginator doesn't yet honour Spatie'ssortparam).
Request
Responses
- 200
- 401
- 403
- 404
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.