Customer Profiles

Manage customers in Bamboo: create, retrieve, update, and delete customer data, and work with stored cards for recurring or one-click purchases.

Customers are used to store payer information and associate one or more payment methods (card tokens) with a unique profile. A customer can be created, queried, updated, and linked to stored cards for one-click or recurring purchases.


Create a Customer

Create a customer profile to store payer information and enable future card registrations. To generate a recurring token (Commerce Token), a customer must first be registered in Bamboo, use the following endpoint:


Request URL

EnvironmentEndpoint
Staginghttps://api.stage.bamboopayment.com/v3/api/customer
Productionhttps://api.bamboopayment.com/v3/api/customer


Request Parameters

PropertyTypeMandatory?Description
EmailstringYesCustomer email address.
CustomerIdintegerNoInternal customer identifier.
FirstNamestringNoCustomer first name.
LastNamestringNoCustomer last name.
ExternalCustomerIdstringNoMerchant reference identifier for the customer.
PhoneNumberstringNoCustomer phone number.
DocumentTypestringNoCustomer document type (e.g., CI.UY, DNI.AR, CPF.BR).
DocumentNumberstringNoCustomer document number.
SessionIdstringNoSession identifier issued by Bamboo for customer-related flows.
AddressobjectNoCustomer address information.
AddressCountrystringNoCountry name (e.g., Uruguay).
AddressCountryIsoCodestringNoTwo-letter ISO country code (e.g., UY).
AddressStatestringNoDepartment, state, or region.
AddressCitystringNoCity of residence.
AddressAddressDetailstringNoFull street address including number and complement.
AddressPostalCodestringNoPostal code.

Request Example

To test this endpoint, use the API Reference for Customers

{
  "Email": "[email protected]",
  "CustomerId": 0,
  "FirstName": "Lucía",
  "LastName": "Pérez",
  "ExternalCustomerId": "CLI-UY-001",
  "PhoneNumber": "098123456",
  "DocumentType": "CI.UY",
  "DocumentNumber": "45678912",
  "SessionId": null,
  "Address": {
    "Country": "Uruguay",
    "CountryIsoCode": "UY",
    "State": "Montevideo",
    "City": "Montevideo",
    "AddressDetail": "Av. Rivera 1234",
    "PostalCode": "11300"
  }
}



Response

The API returns the newly created customer profile, including:

PropertyTypeDescription
EmailstringCustomer email address.
CustomerIdintegerUnique identifier generated for the customer.
FirstNamestringCustomer first name.
LastNamestringCustomer last name.
ExternalCustomerIdstringMerchant reference identifier for the customer.
PhoneNumberstringCustomer phone number.
DocumentTypestringDocument type used by the customer.
DocumentNumberstringCustomer document number.
SessionIdstringSession identifier associated with the customer flow.
AddressobjectCustomer address information.
AddressCountrystringCountry name.
AddressCountryIsoCodestringTwo-letter ISO country code.
AddressStatestringDepartment, state, or region.
AddressCitystringCity of residence.
AddressAddressDetailstringFull street address including number and complement.
AddressPostalCodestringPostal code.

Example Response

{
  "Email": "[email protected]",
  "CustomerId": 249205,
  "FirstName": "Lucía",
  "LastName": "Pérez",
  "ExternalCustomerId": "CLI-UY-001",
  "PhoneNumber": "098123456",
  "DocumentType": "CI.UY",
  "DocumentNumber": "45678912",
  "SessionId": "CT_3a9217b3-98f5-4f6d-9f59-0e12b55fc921",
  "Address": {
    "Country": "Uruguay",
    "CountryIsoCode": "UY",
    "State": "Montevideo",
    "City": "Montevideo",
    "AddressDetail": "Av. Rivera 1234",
    "PostalCode": "11300"
  }
}


One-Click Recurring Purchases

Some card schemes and issuers allow transactions to be processed without sending a Verification Code (CVV) after the card has been registered. In these cases, the stored CommerceToken can be used for one-click or recurring purchases.

If the issuer requires a Verification Code, the CVV must be requested from the payer during the purchase flow, as it cannot be stored on Bamboo's servers.

To collect the Verification Code, refer to the flow described in the CVV Form.




Get a Customer

Retrieve customer information using the CustomerId, the customer’s email address, or the merchant-defined ExternalCustomerId.


Endpoints


Response Parameters

The response returns the same Customer object returned by the Create Customer operation.
For the full field definitions, review the _Create Customer_ response or test the endpoint directly in the API Reference.




Delete a Customer

Remove a stored card (payment profile) associated with an existing customer. This operation permanently disables the payment method linked to the provided token.


Endpoint

Production

https://api.bamboopayment.com/v3/api/Customer/customer/PaymentProfile/{token}

Staging

https://api.stage.bamboopayment.com/v3/api/Customer/customer/PaymentProfile/{token}

Path Parameters

PropertyTypeMandatory?Description
tokenstringYesCommerceToken of the payment profile to be deleted.

📘

The value used must be a valid CommerceToken with the format: CT_string


Response

To validate the result, retrieve the customer again using Get Customer and confirm that the payment profile is no longer listed.




Discover the API