Get Transaction

Retrieve any transaction in Bamboo using its TransactionId. Supports purchases, refunds, and chargebacks. Ideal for webhooks or reconciliation flows.

Get Transaction by ID

Retrieve any transaction (including Purchase, Refund, or Chargeback) using its unique identifier. This endpoint is useful when the transaction type is unknown or when processing webhooks and reconciliation workflows using a single TransactionId.


What is a Transaction?

In Bamboo, a Transaction represents a financial operation processed through the platform. There are three main types:

TypeDescription
PURCHASEA payment request initiated using a card or alternative payment method.
REFUNDA reversal of a completed purchase, either full or partial.
CHARGEBACKA dispute initiated by the cardholder with their issuing bank.

Use this endpoint to retrieve any transaction by its unique ID, including purchases, refunds, and chargebacks.

If the transaction is a purchase, you may also use a dedicated endpoint to retrieve only the original operation or the full lifecycle.


Request

Perform a GET request to the following endpoint:

EnvironmentURL
Productionhttps://api.bamboopayment.com/v3/api/transaction/{TransactionId}
Staginghttps://api.stage.bamboopayment.com/v3/api/transaction/{TransactionId}

Replace {TransactionId} with the 19-digit identifier of the transaction.


Response Parameters

The response structure is identical to the standard Purchase response, ensuring consistency across different transaction types and simplifying integrations.

ParameterTypeDescription
TransactionIdstringUnique identifier of the transaction.
TypestringTransaction type. Values: PURCHASE, REFUND, or CHARGEBACK.
ResultstringCOMPLETED or ACTION_REQUIRED. See the Action object if applicable.
StatusstringTransaction status: APPROVED, REJECTED, PENDING, etc.
ErrorCodestringShort error code if the transaction failed.
ErrorDescriptionstringDetailed error message if the transaction failed.
CreatedstringISO 8601 timestamp when the transaction was created.
AuthorizationDatestringISO 8601 timestamp of authorization, if applicable.
AuthorizationCodestringCode provided by the acquirer or processor confirming the authorization.
AmountintegerTotal amount in minor units (e.g., cents).
CurrencystringISO 4217 currency code (e.g., ARS, USD, BRL).
InstallmentsintegerNumber of installments if the transaction was made in multiple payments.
TaxableAmountintegerPortion of the amount subject to tax.
TipintegerTip amount included in the transaction, if any.
UrlstringURL for viewing the transaction in Bamboo Console (available in staging).
MetadataOutobjectAdditional metadata, e.g. bank info for APM refunds.
ActionobjectAdditional steps required to complete the transaction (e.g., redirection URL).
PaymentMethodobjectDetails of the payment method used: brand, issuer, type, masked PAN, expiration, etc.


Response Examples

Purchase (Card)

{
  "TransactionId": "79632697147789184",
  "Type": "PURCHASE",
  "Result": "COMPLETED",
  "Status": "APPROVED",
  "AuthorizationCode": "839936",
  "Amount": 25000,
  "Currency": "BRL",
  "Installments": 2,
  "PaymentMethod": {
    "Brand": "Visa",
    "CardOwner": "João Silva",
    "Bin": "450799",
    "IssuerBank": "Banco do Brasil",
    "Type": "CreditCard",
    "Expiration": "203008",
    "Last4": "4905"
  }
}

Refund Cards

{
  "TransactionId": "148906700189999616",
  "Type": "REFUND",
  "Result": "COMPLETED",
  "Status": "APPROVED",
  "AuthorizationCode": "148906702232630112",
  "Amount": -2058800,
  "Currency": "COP",
  "Installments": 1,
  "PaymentMethod": {
    "Brand": "Visa",
    "CardOwner": "Juan Gonzalez",
    "Bin": "450799",
    "IssuerBank": "Banco do Brasil",
    "Type": "CreditCard",
    "Expiration": "203008",
    "Last4": "4905"
  }
}

Refund for Alternative Payment Methods

{
  "TransactionId": "148906700189999616",
  "Type": "REFUND",
  "Result": "COMPLETED",
  "Status": "APPROVED",
  "Amount": -2058800,
  "Currency": "COP",
  "MetadataOut": {
    "RefundBankAccountNumber": "132132********2132",
    "RefundBankId": "1063",
    "RefundBankName": "BANCO FINANDINA S.A.",
    "RefundBankAccountType": "Saving"
  },
  "PaymentMethod": {
    "Brand": "PseAvanza",
    "Type": "BankTransfer"
  }
}

📘

For APM refunds, the MetadataOut object contains refund details such as account number and bank name.


Chargeback

{
  "TransactionId": "200000000000000001",
  "Type": "CHARGEBACK",
  "Result": "COMPLETED",
  "Status": "PENDING",
  "AuthorizationDate": "2025-10-27T14:35:00.000",
  "AuthorizationCode": "",
  "Amount": 25000,
  "Currency": "BRL",
  "Installments": 1,
  "PaymentMethod": {
    "Brand": "Visa",
    "CardOwner": "John Doe",
    "Bin": "450799",
    "IssuerBank": "Banco del Sol",
    "Type": "CreditCard",
    "Expiration": "202912",
    "Last4": "4905"
  },
  "MetadataOut": {}
}

📘

Chargeback transactions are returned with status PENDING by default.
Use this response to track dispute creation and associate it with the original purchase.


Discover the API