Skip to content

Rippling: List card transactions

Rippling restApi.listCardTransactions: arguments, response, policy and SDK examples.

← Rest API operations · Get started

Operation rippling.rest_api.list_card_transactions

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

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

import { App } from "@alter-ai/sdk";
import { RipplingIntegration } from "@alter-ai/rippling";
async function execute(input: Parameters<RipplingIntegration["restApi"]["listCardTransactions"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new RipplingIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.restApi.listCardTransactions(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_rippling import RipplingIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = RipplingIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.rest_api.list_card_transactions(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
queryobjectOptionalAdditional keys: not allowed
query.filterstringOptional
query.expandstringOptional
query.order_bystringOptional
query.limitintegerOptionalDefault: 50
Maximum: 100
Minimum: 1
query.cursorstringOptional

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

FieldTypePresenceDescription and constraints
$objectRoot
__metaModelOptionalExpand List Sites — response body — meta
next_linkstringOptionalA link to the next page of responses.
Format: uri
resultsarrayOptional
results[]ModelEach itemExpand Upload a receipt to a card transaction — response body

Referenced models: Upload a receipt to a card transaction — response body, List Sites — response body — meta

28 more schemas are linked from the tables above, on the schema pages.

Upload a receipt to a card transaction — response body
FieldTypePresenceDescription and constraints
$objectRootA Finance card transaction or authorization the caller can see.

An authorization is a pending hold the card network places at the time of purchase. A card transaction
is the posted charge. List returns both; retrieve returns one by ID. A transaction the
caller cannot see returns 404, the same as one that does not exist.
PATCH `/card-transactions/{id}/` accepts only `line_items` and replaces the entire list.
Request `amount` and `tax_amount` are decimal strings (for example `"75.00"`), not Currency
objects. GET responses return those fields as Currency objects (`currency_type` + `value`).
The sum of request `amount` values must equal the transaction's merchant amount.
accounting_datestringOptionalDate the transaction is booked in the accounting system, as an ISO 8601 date (YYYY-MM-DD).
approval_statusstringOptionalApproval status of the transaction. `DRAFT`: not submitted for approval. `PENDING`: awaiting required information or submission before approval. `REQUESTED`: submitted and awaiting approval. `APPROVED`: approved. `REJECTED`: rejected. `FINALIZED`: finalized for payment. `ACTIONED`: payment or reimbursement completed. `CANCELLED`: cancelled. `FAILED`: payment failed. Null for card authorizations.
Known values: DRAFT, PENDING, REQUESTED, APPROVED, REJECTED, FINALIZED, ACTIONED, CANCELLED, FAILED
attachmentsarrayOptionalOther attached files, including filenames and recorded upload metadata.
attachments[]ModelEach itemExpand Update a bill — response body — attachments item
authorization_statestringOptionalState of the card authorization. `PENDING`: an active hold awaiting completion. `CLOSED`: the authorization was declined, or it completed and was replaced by a posted card transaction. `REVERSED`: the authorization was reversed and the hold released. `EXPIRED`: the hold expired without completion. Null for posted card transactions.
Known values: PENDING, CLOSED, REVERSED, EXPIRED
card_idstringOptionalID of the Finance card used. No public API is currently available to retrieve this card.
company_amountobjectOptionalAmount in the company's headquarters currency. The `value` is a decimal string.
company_amount.currency_typestringOptionalThe currency type, ex: USD, EUR, etc.
company_amount.valueJSONOptional
company_amount.value (anyOf 1)numberAlternativeThe decimal amount for the currency.
company_amount.value (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
created_atstringRequired within parentRecord creation date
entity_idstringOptionalID of the legal entity the transaction belongs to. Use it with `/company-legal-entities/{id}/`.
gl_sync_statestringOptionalState of the sync to the accounting system. `NOT_FINALIZED`: not ready for accounting review. `FOR_REVIEW`: ready for accounting review. `PENDING_SYNC`: sync is in progress. `SYNCED`: synced to the accounting system. `ERROR`: sync failed. `DO_NOT_SYNC`: marked to be excluded from sync. `EXPORTED`: exported for accounting. `NOT_SYNCABLE`: this record cannot be synced. `AUTO_SYNC`: ready to be synced automatically. Null when no sync state is set.
Known values: NOT_FINALIZED, FOR_REVIEW, PENDING_SYNC, SYNCED, ERROR, DO_NOT_SYNC, EXPORTED, NOT_SYNCABLE, AUTO_SYNC
gl_vendorobjectOptionalVendor in the connected accounting system.
gl_vendor.gl_vendor_idstringOptionalID of the vendor in the accounting system.
gl_vendor.idstringOptionalID of the accounting vendor in Rippling.
gl_vendor.namestringOptionalName of the vendor in the accounting system.
idstringRequired within parentIdentifier field
line_itemsarrayOptionalCategory splits of the transaction amount. Updates replace the entire list.
line_items[]ModelEach itemExpand Update a bill — response body — line items item
memostringOptionalMemo entered on the transaction.
merchant_amountobjectOptionalAmount charged by the merchant, in the merchant currency. The `value` is a decimal string.
merchant_amount.currency_typestringOptionalThe currency type, ex: USD, EUR, etc.
merchant_amount.valueJSONOptional
merchant_amount.value (anyOf 1)numberAlternativeThe decimal amount for the currency.
merchant_amount.value (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
receiptsJSONOptional
receipts (anyOf 1)arrayAlternativeReceipt files attached to the transaction, in display order, up to 5. Empty when there are none. Null when the caller cannot read the transaction's receipts.
receipts (anyOf 1)[]ModelEach itemExpand Update a card transaction — response body — receipts array item
receipts (anyOf 2)nullAlternative
transaction_datestringOptionalWhen the purchase or authorization happened, as an ISO 8601 date-time in UTC.
transaction_typestringOptional`CARD_TRANSACTION`: a posted card charge. `CARD_AUTHORIZATION`: a hold placed by the card network before the charge posts.
Known values: CARD_TRANSACTION, CARD_AUTHORIZATION
updated_atstringRequired within parentRecord update date
vendorModelOptionalExpand Update a card transaction — response body — vendor
vendor_idstringOptionalID of the Finance vendor. Use it with `/finance-vendors/{id}/`.
workerModelOptionalExpand Update a card transaction — response body — worker
worker_idstringOptionalID of the worker who made the transaction. Use it with `/workers/{id}/`.

Referenced models: Update a bill — response body — line items item, Update a bill — response body — attachments item, Update a card transaction — response body — receipts array item, Update a card transaction — response body — vendor, Update a card transaction — response body — worker

List Sites — response body — meta
FieldTypePresenceDescription and constraints
$objectRootA list of redacted fields.
redacted_fieldsarrayOptional
redacted_fields[]objectEach item
redacted_fields[].namestringOptionalThe name for the redacted field
redacted_fields[].reasonstringOptionalThe reason for the redaction
Update a bill — response body — attachments item
FieldTypePresenceDescription and constraints
$objectRootA Finance transaction attachment with recorded upload details.
file_namestringOptionalOriginal file name, when recorded.
uploaded_atstringOptionalWhen the attachment was uploaded, as an ISO 8601 date-time in UTC, when recorded.
uploaded_by_idstringOptionalID of the worker who uploaded the attachment. Use it with `/workers/{id}/`.
urlstringRequired within parentURL for accessing the file.
Update a card transaction — response body — receipts array item
FieldTypePresenceDescription and constraints
$objectRootA receipt file attached to a card transaction.
content_typeJSONOptional
content_type (anyOf 1)stringAlternativeMIME type of the receipt file, such as `application/pdf`. Null when it cannot be determined.
content_type (anyOf 2)nullAlternative
file_nameJSONOptional
file_name (anyOf 1)stringAlternativeName of the receipt file. Null when it was not recorded.
file_name (anyOf 2)nullAlternative
preview_urlJSONOptional
preview_url (anyOf 1)stringAlternativeURL of an image preview of the receipt. Null when the receipt is itself an image or no preview is available. Like `url`, the link is signed and expires.
preview_url (anyOf 2)nullAlternative
urlstringRequired within parentURL of the original receipt file, such as the uploaded PDF. The link is signed and expires, so fetch the transaction again for a current link instead of storing it.
Update a card transaction — response body — vendor
FieldTypePresenceDescription and constraints
$objectRootVendor details. Expand with `card-transactions.read` and `finance-vendors.read`.

Expandable field
created_atstringRequired within parentRecord creation date
idstringRequired within parentIdentifier field
is_archivedbooleanOptionalWhether the vendor is archived. Archived vendors remain available for historical references.
logostringOptionalURL of the vendor's logo. Null when no logo is available.
namestringOptionalCanonical name of the Finance vendor. Name eq, ne, and in filters also match alternate names.
updated_atstringRequired within parentRecord update date
Update a bill — response body — line items item dimension choices value
FieldTypePresenceDescription and constraints
$objectRoot
dimension_namestringOptionalName of the dimension, such as Department.
labelstringOptionalDisplay name of the selected dimension value.
valuestringOptionalID of the selected value. For `DEPARTMENT` use `/departments/{id}/`, for `WORK_LOCATION` use `/work-locations/{id}/`, and for a custom job dimension use `/job-codes/{id}/`.

SDK function policy ID: rippling.rest_api.list_card_transactions. Catalog operation: list-card-transactions. 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: ["card-transactions.read"]

Provider entitlements: ["Spend_Management_Platform_API"]

Pinned headers: {"Rippling-Api-Version": "2024-08-01"}

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 how our website, product, and documentation are used.

Performance diagnostics

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

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

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