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)

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": "Uruguay",
      "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
}