Skip to main content

Get a single transaction

GET /v2/activity/{type}/{id}

Request

Use this request to get a single transaction for a given account, type, and ID. This endpoint allows you to retrieve a specific transaction by its ID and type.
Sample request
Request structure

Path parameters

type
string
required
The type of activity to retrieve.Allowable values: transaction, payment, order, boxTransaction Note: When using type=transaction, the API automatically determines the transaction subtype based on the transaction ID. It can return card transactions (Marqeta), BVNK transactions, or credit/debit transactions (Boxes) depending on the transaction’s transactionType.
id
string
required
The ID of the activity to retrieve. The ID format depends on the type: - For transaction: use the transactionId (UUID). The API will determine if it’s a card, BVNK, or credit/debit transaction based on the transaction’s type. - For payment: use the paymentId (integer) - For order: use the originOrderId (string, e.g., F6VOXCZ1AMND) - For boxTransaction: use the transactionBox.id (UUID)Allowable values: An existing ID for the specified type

Query parameters

accountId
string
required
The ID of the account that the transaction belongs to.Allowable values: An existing accountId
include
array of strings
Optional additional information to return in the results.Allowable values: bankFeedDetails, annotations, attachments
personId
array of strings (uuid)
The ID of the person to work with. Use commas to pass multiple values. Has to be URL encoded.Allowable values: An existing personId in UUID format (e.g., 34edaf73-49be-4669-83ee-1b1f8c680d29)

Response

If your request is successful, you’ll receive a 200 response containing a single transaction object.
Sample response (payment)
The response structure varies depending on the transaction type. For card transactions (resourceType: "card"), the response includes cardTransaction and merchant objects. For box transactions (resourceType: "box"), the response includes transaction box details. See the example responses below for complete structures for each type.

Examples

Get a payment transaction

Retrieve a payment transaction using the payment ID. Payment IDs are integers.
This returns a payment transaction with details like beneficiary information, amount, currency, and order details.

Get a transaction by transaction ID

Retrieve a transaction using the transaction ID (UUID format). The API automatically determines the transaction type based on the transaction’s transactionType field. This can return:
  • Card transactions (transactionType: "Marqeta") - Returns resourceType: "card" with card transaction details, merchant information, and transaction group data
  • BVNK transactions (transactionType: "Bvnk") - Returns BVNK transaction details with transaction group and box transaction data
  • Credit/debit transactions (transactionType: "Boxes") - Returns credit/debit transaction details with transaction box information
Example: Card transaction response - Returns a card transaction with details like merchant information, card details, local amount, and transaction status. Example: BVNK transaction response - Returns a BVNK transaction with details like remitter name, settlement amounts, and transaction group information. Example: Credit/debit transaction response - Returns a credit/debit transaction with transaction box details, creditor/debtor account information, and payment type.

Get an order by origin order ID

Retrieve an order transaction using the origin order ID (string format like F6VOXCZ1AMND). This returns the payment transaction associated with the specified order ID.
This returns a payment transaction (resourceType: "payment") that contains the order details, payment information, beneficiary details, and order events.

Get a box transaction

Retrieve a box transaction (internal account movement) using the box transaction ID (UUID format). Box transactions represent credits, debits, and internal transfers. Note: Box transactions can be accessed in two ways:
  • Using type=boxTransaction with the transactionBox.id (UUID) - This directly queries the TransactionBox table
  • Using type=transaction with a transaction ID where transactionType is “Boxes” - This returns credit/debit transactions through the Transaction model
This returns a box transaction with details like transaction type (credit/debit), amount, currency, payment type, creditor/debtor account information, and running balance.

Get a transaction with additional details

Retrieve a payment transaction with optional additional information like annotations and attachments.
This returns the standard payment transaction response, plus annotation details (if any) and attachment information with signed URLs for downloading attachments. When annotations is included, the transaction carries an annotationGroup whose annotationValues resolve the annotation field title and type inline — and, for dropdown fields, the selected option’s dropdownValue (name) and dropdownCode (your accountancy / general-ledger code):
annotationValue (dropdown field)
For the full annotation response shape and the mapping from annotationFieldType to its value property, see Annotations.

Example responses by type

Payment transaction response:
Order query response: Querying by order (type=order) returns the same payment transaction structure shown above, using the originOrderId (e.g., F6VOXCZ1AMND) as the identifier. Card transaction response:
Box transaction response:

Error responses

For more information about this request and its response, see the API reference.