Get Purchase

Retrieve original purchase data or full transaction history including refunds and chargebacks using Bamboo’s Purchase and Lifecycle APIs.

Bamboo provides multiple endpoints to retrieve purchase information, depending on the level of detail required.

💡

These endpoints are helpful for reconciliation and troubleshooting. For real-time transaction updates, Bamboo recommends using webhooks.



Retrieve Original Purchase

The Get Purchase operation returns the original purchase data, including status, amount, and authorization info. It does not include refunds, chargebacks, or related transaction types.


Request

Each endpoint requires your private key in the header for authorization. No request body is required.


Response Parameters

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

ParameterTypeDescription
TransactionIdstringUnique identifier for the transaction. A 19-digit number sent as a string for compatibility.
ResultstringOutcome of the transaction. Possible values: COMPLETED or ACTION_REQUIRED. See the Action object for instructions.
StatusstringCurrent status of the transaction (e.g., Approved, Rejected).
ErrorCodestringError code if the transaction was rejected.
ErrorDescriptionstringDetailed description of the error if the transaction was rejected.
CreatedstringTimestamp of when the transaction was created, in ISO 8601 format.
AuthorizationDatestringTimestamp of when the transaction was authorized, in ISO 8601 format.
AuthorizationCodestringUnique code provided by the issuer to confirm the transaction authorization.
AmountintegerTotal transaction amount.
CurrencystringCurrency code used for the transaction. May differ from the request currency based on business agreements.
InstallmentsintegerNumber of payment installments for the transaction.
TaxableAmountintegerAmount subject to taxes.
TipintegerTip amount, if applicable.
UrlstringLink to access additional transaction details.
MetadataOutobjectAdditional metadata returned with the transaction response.
ActionobjectDetails of required actions when Result is ACTION_REQUIRED.
PaymentMethodobjectInformation about the payment method used for the transaction.

Response Example

{
  "TransactionId": "79632697147789184",
  "Result": "COMPLETED",
  "Status": "APPROVED",
  "ErrorCode": null,
  "ErrorDescription": null,
  "Created": "2024-08-07T17:51:54.620",
  "AuthorizationDate": "2024-08-07T17:51:56.879",
  "AuthorizationCode": "839936",
  "Amount": 25000,
  "Currency": "BRL",
  "Installments": 2,
  "TaxableAmount": null,
  "Tip": null,
  "Url": "https://api.stage.bamboopayment.com/Purchase/79632697147789184",
  "MetadataOut": null,
  "Action": null,
  "PaymentMethod": {
    "Brand": "Visa",
    "CardOwner": "João Silva",
    "Bin": "450799",
    "IssuerBank": "Banco do Brasil",
    "Type": "CreditCard",
    "Expiration": "203008",
    "Last4": "4905"
  }
}


Full Purchase History

The Get Purchase Details operation retrieves the full lifecycle of a purchase, including the original purchase information, all related refunds, any chargeback associated with the transaction, etc.

📘

This endpoint is useful for auditing, troubleshooting, and post-settlement analysis. It is publicly available, but is not required for normal payment flow.


Endpoint

GET /Purchase/details/{transactionId}

The {transactionId} must refer to the original purchase. To retrieve a refund or chargeback directly, use GET /Transaction/{id} instead.


Response Fields

FieldTypeDescription
PurchaseobjectOriginal purchase object.
RefundsarrayList of refund transactions tied to the purchase.
ChargebackobjectChargeback object, if present.
StatusstringConsolidated status based on the full transaction lifecycle.
CurrencystringCurrency of the transaction.
AuthorizationAmountnumberOriginal authorized amount.
CaptureAmountnumberTotal captured amount.
RefundAmountnumberSum of all refunded amounts.
TaxableAmountnumberTaxable portion of the transaction.

Example Response

{
  "Purchase": {
    "TransactionId": "79632697147789184",
    "Result": "COMPLETED",
    "Status": "APPROVED",
    "AuthorizationDate": "2025-10-20T15:58:46.601Z",
    "AuthorizationCode": "839936",
    "Created": "2025-10-20T15:58:46.601Z",
    "Amount": 25000,
    "Currency": "COP",
    "Installments": 1,
    "Url": "https://api.stage.bamboopayment.com/Purchase/79632697147789184",
    "PaymentMethod": {
      "Brand": "Efecty",
      "Type": "PhysicalNetwork"
    }
  },
  "Refunds": [
    {
      "TransactionId": "79632697147789185",
      "Result": "COMPLETED",
      "Status": "APPROVED",
      "AuthorizationDate": "2025-10-22T13:20:01.601Z",
      "Amount": 25000,
      "Currency": "COP"
    }
  ],
  "Chargeback": null,
  "Status": "REFUNDED",
  "Currency": "COP",
  "AuthorizationAmount": 25000,
  "CaptureAmount": 25000,
  "RefundAmount": 25000,
  "TaxableAmount": 0
}


Discover the API

Choose the appropriate endpoint depending on the type of data you want to retrieve.