Customer Operations

API interactions to manage customers (create registration link, retrieve and delete data).

Create Card Registration Link

Generates a link for a customer to register their card.


Request URL

Production: https://h2h.bamboopayment.com/api/v1/customers/account-link

Stage: https://h2h.stage.bamboopayment.com/api/v1/customers/account-link


Method: POST

Headers

⚠️

Remember to include the Merchant Private Key in the request headers.

For more details, refer to our Authentication Guide

Body

ParameterTypeRequired?Description
customerobjectYesCustomer information to be registered
accountLinkTypestringYesMust be "qr" to indicate a QR registration link
validForMinutesintegerNoValidity time for the link (default: 15 minutes)

Customer Object

ParameterTypeRequired?Description
customer → identifierstringNoUnique identifier for the customer (e.g., email)
customer → EmailstringNoCustomer's email address. Prefills the Email field on step 2 (Additional data)
customer → firstNamestringNoCustomer's first name. Prefills First name
customer → lastNamestringNoCustomer's last name. Prefills Last name
customer → DocumentTypestringNoDocument type code, combining document + country (e.g., "DNI.AR"). Prefills Document type
customer → DocumentNumberstringNoCustomer's document number. Prefills Document number
customer → phoneNumberstringNoCustomer's phone number, including country code. Prefills Phone
customer → AddressobjectNoCustomer's address. See Address Object below
customer → ExternalCustomerIdstringNoMerchant's own internal customer identifier, used to reference this customer in future transactions

Address Object

ParameterTypeRequired?Description
customer → Address → detailstringNoStreet address
customer → Address → countrystringNoISO 3166-1 alpha-2 country code. For example: Argentina AR, Uruguay UY. Prefills Country
customer → Address → statestringNoState/province. Prefills State
customer → Address → citystringNoCity. Prefills City
customer → Address → postalCodestringNoPostal/ZIP code. Prefills Postal code

Example Request

{
  "customer": {
    "identifier": "[email protected]",
    "email": "[email protected]",
    "firstName": "Juan",
    "lastName": "Pérez",
    "documentTypeId": 2,
    "documentNumber": "11211234",
    "phoneNumber": "27101234",
    "BillingAddress": {
      "detail": "Rambla 1234",
      "country": "UY",
      "state": "Montevideo",
      "city": "Montevideo",
      "postalCode": "11300"
    }
  },
  "accountLinkType": "qr"
}

Example Response

{
  "customerId": "7c35b44a-844e-40f1-84bd-004404f6bd98",
  "redirectUrl": "https://checkout.stage.bamboopayment.com/#?customerId=7c35b44a-844e-40f1-84bd-004404f6bd98",
  "validForMinutes": 15,
  "isSuccess": true
}

Retrieve Customer Data

Fetches the data of a previously registered customer.

Request URL

`GET /customers/{CustomerIdentifier}`

Headers

⚠️

Remember to include the Merchant Private Key in the request headers.

For more details, refer to our Authentication Guide


Example Request

GET https://h2h.stage.bamboopayment.com/api/v1/customers/juan.perez%40gmail.com

Example Response

{
  "customer": {
    "identifier": "[email protected]",
    "email": "[email protected]",
    "firstName": "Juan",
    "lastName": "Pérez",
    "documentTypeId": 2,
    "documentNumber": "11211234",
    "phoneNumber": "27101234",
    "billingAddress": {
      "detail": "Rambla 1234",
      "country": "Uruguay",
      "state": "Montevideo",
      "city": "Montevideo",
      "postalCode": "11300"
    }
  },
  "isSuccess": true
}

Delete Customer Data

Deletes all information associated with a customer.

Request URL

`DELETE /customers/{CustomerIdentifier}`

Headers

⚠️

Remember to include the Merchant Private Key in the request headers.

For more details, refer to our Authentication Guide


Example Request

DELETE https://h2h.stage.bamboopayment.com/api/v1/customers/juan.perez%40gmail.com

Example Response

{
  "isSuccess": true
}


Did this page help you?