Credit Cards

Learn how to process card payments in Brazil with Bamboo, including request parameters, response examples, and testing cards

This page describes Brazil-specific requirements for the Create a Purchase operation. Refer to the create a Purchase guide for the full parameter list and base definitions.


🔁

This payment methods use an API flow. The response to the purchase request will include the final status (COMPLETED, REJECTED, etc.), without redirection.


Mandatory fields for Brazil

The following fields are required in addition to the global mandatory parameters.

PropertyTypeDescription
DescriptionstringRequired by acquirers in Brazil. Format: MerchantName+OrderId+[merchantUrl].
CustomerFirstNamestringRequired for anti-fraud validation.
CustomerLastNamestringRequired for anti-fraud validation.
CustomerDocumentTypestringMust be CPF.BR (individual) or CNPJ.BR (company).
CustomerDocumentNumberstringCPF: 11 digits, CNPJ: 14 digits.
CustomerPhoneNumberstringMust include area code, digits only.
CustomerAddressStatestringTwo-letter state code (e.g. SP, RJ).
CustomerAddressCitystringCity of residence.
CustomerAddressAddressDetailstringStreet + number + complement.
CustomerAddressPostalCodestringPostal code without hyphens.
⚠️

Transactions missing these parameters will be rejected by acquirers in Brazil.



Request example using Token

To test this endpoint, use the API Reference or the Postman Collection

{
  "TrxToken": "OT__6dHAgJo6qeg62qIroA7H7_f_NWZZ6IEx4jiYpVJ8SzQ_",
  "UniqueID": "order-2025-001",
  "Capture": true,
  "TargetCountryISO": "BR",
  "Currency": "BRL",
  "Amount": 10000,
  "Installments": 1,
  "Order": "CH2025-001",
  "Description": "LojaExemplo",
  "Customer": {
    "FirstName": "João",
    "LastName": "Silva",
    "DocumentType": "CPF.BR",
    "DocumentNumber": "08333762921",
    "Email": "[email protected]",
    "PhoneNumber": "11987654321",
    "Address": {
      "Country": "BR",
      "City": "São Paulo",
      "State": "SP",
      "PostalCode": "01310200",
      "AddressDetail": "Avenida Paulista 1000"
    }
  },
  "CustomerIP": "190.10.224.231",
  "AntifraudData": {
    "AntifraudFingerprintId": "0046f17b-197a-4d63-8b6b-6082cdd557ff"
  }
}

Request example using Card Data

To test this endpoint, use the API Reference or the Postman Collection

{
    "CardData": {
        "CardHolderName": "João Silva",
        "Pan": "4984123412341234",
        "CVV": "123",
        "Expiration": "12/29",
        "Email": "[email protected]",
        "Document": "12345678901"
    },
    "UniqueID": "paymentID3022",
    "Capture": true,
    "TargetCountryISO": "BR",
    "Currency": "BRL",
    "Amount": 25000,
    "Installments": 2,
    "Order": "CH2023-001",
    "Description": "Compra de teste",
    "Customer": {
        "FirstName": "João",
        "LastName": "Silva",
        "ReferenceCode": "JS-001",
        "PhoneNumber": "11987654321",
        "DocumentNumber": "12345678901",
        "DocumentType": "CPF.BR",
        "Email": "[email protected]",
        "Address": {
            "Country": "BR",
            "City": "São Paulo",
            "State": "SP",
            "PostalCode": "01310-200",
            "AddressDetail": "Avenida Paulista 1000"
        }
    }
}


Response parameters


Testing cards

Use the following cards to simulate the different status of the purchase.

BrandPANCVVExpiration Date
Mastercard555566667777888412312/29
Visa498412341234123412312/29

💳

To ensure successful testing, please use the following specific details: docNumber: 13394559358 and docType: CPF. Failure to use these details may result in unsuccessful transactions.


Discover the API

Once you’re familiar with how to create a purchase, you can test your integration using our API Reference: