Skip to content

Ramp: List transactions

Ramp transaction.getTransactionsCanonicalListWithPagination: arguments, response, policy and SDK examples.

← transaction operations · Get started · OpenAPI downloads

Contract 2026-10-27 · Operation ramp.get_transactions_canonical_list_with_pagination

Provider route: GET /developer/v1/transactions. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/ramp with npm, or alter-sdk-ramp with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { RampIntegration } from "@alter-ai/ramp";
async function execute(input: Parameters<RampIntegration["transaction"]["getTransactionsCanonicalListWithPagination"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new RampIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.transaction.getTransactionsCanonicalListWithPagination(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_ramp import RampIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = RampIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.transaction.get_transactions_canonical_list_with_pagination(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
queryobjectOptionalAdditional keys: not allowed
query.sk_category_idintegerOptionalOne of: 1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 2, 20, 21, 23, 24, 25, 26, 27, 28, 29, 3, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 4, 40, 41, 42, 43, 44, 5, 6, 7, 8, 9
query.department_idstringOptionalFormat: uuid
query.limit_idstringOptionalFormat: uuid
query.location_idstringOptionalFormat: uuid
query.merchant_idstringOptionalFormat: uuid
query.card_idstringOptionalFormat: uuid
query.spend_program_idstringOptionalFormat: uuid
query.statement_idstringOptionalFormat: uuid
query.approval_statusstringOptionalOne of: AWAITING_EMPLOYEE, AWAITING_EMPLOYEE_CHANGES_REQUESTED, AWAITING_EMPLOYEE_MISSING_ITEMS, AWAITING_EMPLOYEE_REPAYMENT_FAILED, AWAITING_EMPLOYEE_REPAYMENT_REQUESTED, AWAITING_REVIEWER, FULLY_APPROVED
query.statestringOptionalOne of: ALL, CLEARED, COMPLETION, DECLINED, ERROR, PENDING, PENDING_INITIATION
query.user_idstringOptionalFormat: uuid
query.awaiting_approval_by_user_idstringOptionalFormat: uuid
query.sync_statusstringOptionalOne of: NOT_SYNC_READY, SYNCED, SYNC_READY
query.has_been_approvedbooleanOptional
query.all_requirements_met_and_approvedbooleanOptional
query.has_statementbooleanOptional
query.synced_afterstringOptionalFormat: date-time
query.min_amountJSONOptional
query.min_amount (oneOf 1)stringAlternativeFormat: decimal
query.min_amount (oneOf 2)numberAlternative
query.has_no_sync_commitsbooleanOptional
query.max_amountJSONOptional
query.max_amount (oneOf 1)stringAlternativeFormat: decimal
query.max_amount (oneOf 2)numberAlternative
query.from_datestringOptionalFormat: date-time
query.to_datestringOptionalFormat: date-time
query.trip_idstringOptionalFormat: uuid
query.accounting_field_selection_idstringOptionalFormat: uuid
query.entity_idstringOptionalFormat: uuid
query.requires_memobooleanOptional
query.include_countbooleanOptionalDefault: false
query.include_merchant_databooleanOptional
query.order_by_date_ascbooleanOptional
query.order_by_date_descbooleanOptional
query.order_by_amount_ascbooleanOptional
query.order_by_amount_descbooleanOptional
query.startstringOptional
query.page_sizeintegerOptionalDefault: 20

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand List transactions — response body

Referenced models: List transactions — response body

SDK function policy ID: ramp.get_transactions_canonical_list_with_pagination. Catalog operation: get_transactions_canonical_list_with_pagination. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Required provider scopes: ["transactions:read"]

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.