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
customeridentifierstringNoUnique identifier for the customer (e.g., email)
customerEmailstringNoCustomer's email address. Prefills the Email field on step 2 (Additional data)
customerfirstNamestringNoCustomer's first name. Prefills First name
customerlastNamestringNoCustomer's last name. Prefills Last name
customerDocumentTypestringNoDocument type code, combining document + country (e.g., "DNI.AR"). Prefills Document type
customerDocumentNumberstringNoCustomer's document number. Prefills Document number
customerphoneNumberstringNoCustomer's phone number, including country code. Prefills Phone
customerAddressobjectNoCustomer's address. See Address Object below
customerExternalCustomerIdstringNoMerchant's own internal customer identifier, used to reference this customer in future transactions

Address Object

ParameterTypeRequired?Description
customerAddressdetailstringNoStreet address
customerAddresscountrystringNoISO 3166-1 alpha-2 country code. For example: Argentina AR, Uruguay UY. Prefills Country
customerAddressstatestringNoState/province. Prefills State
customerAddresscitystringNoCity. Prefills City
customerAddresspostalCodestringNoPostal/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?