Get a Purchase

GET Purchase allows merchants to promptly address transaction discrepancies and retrieve the details of a specific purchase transaction.

Get Purchase by Transaction ID

You must invoke a GET request to the following URLs according to your needs.

Request URL

  • Production: https://api.bamboopayment.com/v3/api/Purchase/{{TransactionId}}
  • Stage: https://api.stage.bamboopayment.com/v3/api/Purchase/{{TransactionId}}

Where {{TransactionId}} is the identifier of the transaction you want to retrieve.


Remember to include your merchant’s Private Key in the request headers.
For more details, check our Authentication Guide.

Get Purchase by Order

You can retrieve transaction details using the merchant’s order identifier by making a GET request to the following endpoints.

Request URL

You must invoke a GET request to the following URLs according to your needs.

  • Production: https://api.bamboopayment.com/v3/api/Purchase/order/{{Order}}
  • Stage: https://api.stage.bamboopayment.com/v3/api/Purchase/order/{{Order}}

Where {{Order}} is the merchant order identifier for the transaction you want to retrieve.


Remember to include your merchant’s Private Key in the request headers.
For more details, check our Authentication Guide.

Get Purchase by Unique ID

You can retrieve transaction details using a custom unique identifier by making a GET request to the following endpoints.

Request URL

You must invoke a GET request to the following URLs according to your needs.

  • Production: https://api.bamboopayment.com/v3/api/Purchase/uniqueId/{{UniqueId}}
  • Stage: https://api.stage.bamboopayment.com/v3/api/Purchase/uniqueId/{{UniqueId}}

Where {{UniqueID}} is the custom unique identifier for the transaction you want to retrieve.


Remember to include your merchant’s Private Key in the request headers.
For more details, check our Authentication Guide.

Response parameters

The response structure for this operation is identical to the standard purchase response. This ensures consistency across different transaction types and simplifies integration processes.

ParameterTypeDescription
TransactionIdstringUnique identifier for the transaction. A 19-digit number sent as a string for compatibility.
ResultstringOutcome of the transaction. 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.
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"
    }
}
footer
Last modified December 20, 2024

© Bamboo | All rights reserved 2024