Advanced

Getting a Paddle Customer ID

The easiest way to get a Paddle Customer ID is to use the Boathouse API.

If you prefer to call the Paddle API directly instead of our API send a POST request to the Paddle Customer API (using your Paddle API key) to authenticate:

HTTP POST to https://api.paddle.com/customers
Bearer: <Your Paddle API Key>
{
  "email": "[email protected]" // replace with the customer's email
}

Paddle will return a JSON object with the customer id (starts with "ctm_").

Store this id alongside the account information in your database.

{
  "data": {
    "id": "ctm_123example",
  },
}

The Paddle Customer ID is used for the checkout process and accessing the billing portal.

Previous
Addding a Paddle Checkout