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
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.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 typeQuery parameters
The ID of the account that the transaction belongs to.Allowable values: An existing
accountIdOptional additional information to return in the results.Allowable values:
bankFeedDetails, annotations, attachmentsThe 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 a200 response containing a single transaction object.
Sample response (payment)
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.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’stransactionType field. This can return:
- Card transactions (
transactionType: "Marqeta") - ReturnsresourceType: "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
Get an order by origin order ID
Retrieve an order transaction using the origin order ID (string format likeF6VOXCZ1AMND). This returns the payment transaction associated with the specified order ID.
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=boxTransactionwith thetransactionBox.id(UUID) - This directly queries the TransactionBox table - Using
type=transactionwith a transaction ID wheretransactionTypeis “Boxes” - This returns credit/debit transactions through the Transaction model
Get a transaction with additional details
Retrieve a payment transaction with optional additional information like annotations and attachments.Example responses by type
Payment transaction response:type=order) returns the same payment transaction structure shown above, using the originOrderId (e.g., F6VOXCZ1AMND) as the identifier.
Card transaction response:
Error responses
| Status code | Description |
|---|---|
404 | The transaction was not found. This can occur if the id doesn’t exist, if the type doesn’t match the ID format, or if the transaction doesn’t belong to the specified accountId. |
400 | Bad request. This can occur if a required parameter is missing (e.g., accountId) or if the type value is not one of the allowable values. |