
Paddle API Integration Guide (2026): Keys, Pagination, and Incremental Sync
Step-by-step Paddle Billing API integration: scoped API keys, cursor pagination, rate limits, incremental sync, webhooks, and a no-code path to PostgreSQL.
The Paddle API is one of the friendlier billing APIs to start with. For your own account there is no OAuth dance (Paddle's OAuth is for building apps that other Paddle accounts connect to), the responses are consistent, and the docs are good. The difficulty shows up later, when you try to keep a copy of your Paddle data current: page sizes vary by entity, and most list endpoints cannot tell you what changed since your last run.
This guide walks through a working integration end to end: creating a properly scoped API key, making your first call, paging through results, staying inside the rate limits, pulling only changed records where Paddle allows it, and verifying webhooks where it does not. Every limit and parameter below is taken from Paddle's developer documentation.
It targets Paddle Billing, the current platform at api.paddle.com. If your account is still on Paddle Classic, that is a separate platform with its own API, and none of the endpoints below apply to it.
What the Paddle API Is
A REST API that returns JSON, with two base URLs:
| Environment | Base URL |
|---|---|
| Live | https://api.paddle.com |
| Sandbox | https://sandbox-api.paddle.com |
Sandbox and live are separate accounts with separate data and separate API keys, so build and test against sandbox, then swap the key and base URL for production.
The resources you will care about for billing data are grouped much like Paddle's dashboard: catalog (products, prices, discounts), customers (customers, addresses, businesses), billing (transactions, subscriptions, adjustments), and events (the event log and notification settings). Transactions are the centre of it: every charge, renewal and refund hangs off one.
Step 1: Create a Scoped API Key
Create keys in the Paddle dashboard under My account > Settings > Authentication, on the API keys tab. The key is shown once, so copy it straight into your secrets store; if you lose it, revoke it and make a new one. Three details matter.
Permissions. Paddle API keys carry granular permissions named entity.read and entity.write. For a read-only data integration, grant only the read permissions you need, for example customer.read, subscription.read, transaction.read, product.read, price.read, discount.read and adjustment.read. A request the key is not permitted to make returns a 403, which is exactly what you want if the key ever leaks. Keys created before 6 May 2025 are legacy keys and do not support permissions, so create a new one rather than reusing an old key.
Expiry. Keys can expire, and Paddle strongly recommends setting one. The default is 90 days from creation, with a maximum of one year. Put the expiry date somewhere your team will see it, because an expired key fails exactly like a revoked one. If you turn on Rotatable when you create a key (it cannot be changed later), you can rotate its secret through the Paddle API or AWS Secrets Manager instead of making a new key.
Format. Keys look like pdl_live_apikey_... or pdl_sdbx_apikey_.... The environment is in the prefix, which makes a useful sanity check: a sandbox key against the live base URL will never work, and your code can catch that before the first request.
Do not confuse API keys with client-side tokens. Client-side tokens are meant for Paddle.js in the browser and only cover checkouts and previews. Anything reading your billing data is server-side and uses an API key.
Step 2: Make Your First API Call
Authentication is a Bearer header. Add a Paddle-Version header too: the current version is 1, and without the header Paddle uses your account's default version, which is the kind of implicit setting that breaks things quietly when it changes.
curl "https://sandbox-api.paddle.com/customers?per_page=5" \
-H "Authorization: Bearer $PADDLE_API_KEY" \
-H "Paddle-Version: 1"
Every list response has the same shape: a data array of entities and a meta object carrying a request_id and, for lists, pagination details.
{
"data": [
{
"id": "ctm_01h8441jn5pcwrfhwh78jqt8hk",
"email": "sam@example.com",
"status": "active",
"created_at": "2026-08-14T10:02:11.000Z",
"updated_at": "2026-09-02T16:40:05.000Z"
}
],
"meta": {
"request_id": "0ac1d0c3-4b19-4e2a-bd8e-0c6e1f2f1a0b",
"pagination": {
"per_page": 5,
"next": "https://sandbox-api.paddle.com/customers?after=ctm_01h8441jn5pcwrfhwh78jqt8hk&per_page=5",
"has_more": true,
"estimated_total": 1284
}
}
}
IDs carry a type prefix (ctm_ for customers, sub_ for subscriptions, txn_ for transactions, pro_ for products), which makes logs and foreign keys easy to read.
Step 3: Page Through Results
Paddle uses cursor pagination. The rule from the docs is simple: follow meta.pagination.next until has_more is false. The next URL already carries your original query parameters plus the after cursor, so you do not rebuild it yourself, and you should never infer the last page from a short page.
Page sizes are where people get caught. They differ by entity:
| Endpoint | Default per_page | Maximum |
|---|---|---|
| Most list endpoints (customers, subscriptions, products, prices) | 50 | 200 |
| Transactions | 30 | 30 |
| Adjustments | 10 | 50 |
Transactions are usually your largest table and have the smallest maximum page, so a full read of a busy account is a lot of requests. If you do not need totals, send Skip-Count: true, which skips the count query behind estimated_total and speeds up large lists.
A minimal pager in TypeScript:
const BASE = 'https://api.paddle.com';
const headers = {
Authorization: `Bearer ${process.env.PADDLE_API_KEY}`,
'Paddle-Version': '1',
'Skip-Count': 'true',
};
async function listAll<T>(path: string): Promise<T[]> {
const results: T[] = [];
let url: string | null = `${BASE}${path}`;
while (url) {
const res = await fetch(url, { headers });
if (!res.ok) throw new Error(`Paddle ${res.status}: ${await res.text()}`);
const body = await res.json();
results.push(...body.data);
url = body.meta.pagination.has_more ? body.meta.pagination.next : null;
}
return results;
}
const subscriptions = await listAll('/subscriptions?per_page=200');
Step 4: Handle Rate Limits and Errors
The platform limit is 240 requests per minute per IP address. Exceed it and you get a 429 with the error code too_many_requests and a Retry-After header, and that IP is blocked for 60 seconds. The preview endpoints for pricing and transactions have a higher limit of 1,000 per minute, which does not help a data sync.
Two practical consequences:
- The limit is per IP, not per key. Several jobs on one server share one budget, and so do several Paddle accounts synced from the same machine.
- Back off on
Retry-After, not a guess. A retry loop that ignores the header just extends the block.
Errors share one shape, which makes them easy to handle generically:
{
"error": {
"type": "request_error",
"code": "not_found",
"detail": "Entity pro_01gsz97mq9pa4fkyy0wqenepkz not found",
"documentation_url": "https://developer.paddle.com/errors/shared/not_found"
},
"meta": {
"request_id": "9346b365-4cad-43a6-b7c1-48ff6a1c7836"
}
}
Log meta.request_id with every failure. It is the first thing Paddle support will ask for.
Step 5: Sync Incrementally (Where Paddle Lets You)
This is the step that decides how much work a Paddle sync really is.
Transactions support it. The list transactions endpoint accepts updated_at with [GTE], [GT], [LTE] and [LT] operators, plus order_by=updated_at[ASC]. Store the newest updated_at you have seen, and next run ask for everything updated since:
async function transactionsSince(since: string) {
const params = new URLSearchParams({
'updated_at[GTE]': since,
order_by: 'updated_at[ASC]',
per_page: '30',
});
return listAll(`/transactions?${params}`);
}
Use [GTE] rather than [GT] and upsert on id. Re-reading the boundary record is harmless; missing one is not.
Most other entities do not. According to the API reference, list customers, list subscriptions, list products and list adjustments have no updated_at or created_at filter. You cannot ask Paddle "which subscriptions changed since yesterday" through those endpoints. That leaves three options:
- Re-read the whole list each run. Simple and correct, and fine at small scale thanks to the 200-per-page maximum. It gets expensive in requests as the account grows.
- Read the event log.
GET /eventsreturns events from the last 90 days only, filterable byevent_typeand by time withfromandto. Walking it from your last run lets you find which subscriptions or customers changed, then fetch those records. Miss a 90-day window, though, and those events are gone, so you still need a full re-read as a fallback. - Listen to webhooks. Paddle pushes changes as they happen. Covered next.
In practice most integrations combine them: incremental transactions, a periodic full read of the smaller tables, and webhooks if something needs to react in real time.
Step 6: Verify Webhooks Properly
Paddle calls webhooks notifications. You create a notification destination in the dashboard, choose the events, and Paddle posts to your endpoint with a Paddle-Signature header:
Paddle-Signature: ts=1671552777;h1=eb4d0dc8853be92b7f063b9f3ba5233eb920a09459b6e6b2c26705b4364db151
Verification, per Paddle's docs: build the string ts:raw_body from the timestamp and the raw, untouched request body, compute an HMAC-SHA256 of it with the destination's secret key, and compare it with the h1 value. The SDKs also reject timestamps more than five seconds off, which blocks replayed requests.
Use the official helper rather than rolling your own. Paddle ships server-side SDKs for Node.js, Python, Go and PHP; in Node it is paddle.webhooks.unmarshal(rawBody, secret, signature). The most common bug is a body-parsing middleware that turns the body into JSON before verification, after which the signature can never match. Paddle webhooks vs database sync has a full Express handler and covers when webhooks are the wrong tool.
Watch the Amounts
Money in Paddle Billing arrives as strings of integer minor units: "2900" means 29.00 in a two-decimal currency. Totals live in nested objects such as details.totals.total on a transaction. Store them as integers or NUMERIC, never floats, and convert per currency, because not every currency has two decimal places.
Once transactions are in Postgres, monthly revenue by currency is one query. Against a paddle_transactions table with the total stored as text:
SELECT
DATE_TRUNC('month', billed_at) AS month,
currency_code,
COUNT(*) AS transactions,
SUM(total::NUMERIC) / 100 AS revenue
FROM paddle_transactions
WHERE status = 'completed'
AND billed_at IS NOT NULL
GROUP BY month, currency_code
ORDER BY month DESC, currency_code;
The / 100 assumes two-decimal currencies; group by currency_code so a zero-decimal currency does not quietly skew a total.
The Hard Parts
A first version takes an afternoon. What keeps costing time afterwards:
- Change detection outside transactions. Without
updated_atfilters, you are choosing between full re-reads, a 90-day event log, and webhooks, and usually running more than one. - Page-size limits. Thirty transactions per request adds up on a busy account, and it shares a 240-per-minute IP budget with everything else on that server.
- Key expiry. A key with a 90-day default expiry is good security and a scheduled outage if nobody rotates it.
- Schema mapping. Nested objects, string amounts and per-entity shapes all need mapping into tables, and the mapping needs revisiting as Paddle adds fields.
- Sandbox and live parity. Two accounts, two keys, two base URLs, two sets of test data.
None of it is hard on its own. Together it is a small system to own. The hidden cost of rolling your own puts numbers on that.
A Simpler Path: Sync Paddle to PostgreSQL with No Code
If what you actually want is Paddle data in Postgres, Codeless Sync does the whole pipeline. Create a read-only Paddle key with the permissions above, paste it in, choose a table, and Codeless Sync creates it in your database (Supabase, Neon, Prisma Postgres, AWS RDS, Railway or any PostgreSQL host) and fills it.
It covers seven Paddle tables: transactions, subscriptions, customers, products, prices, discounts and adjustments. Pagination, retries on 429 and incremental reads on transactions are handled for you, the full API payload is kept in a data JSONB column, and there is no webhook endpoint to host. Paid plans add scheduled syncs (daily, weekly or monthly, plus 12-hourly on Business) at a flat $19, $29 or $99 a month, and the free plan syncs Paddle customers and subscriptions manually so you can see real data first. How to export Paddle data to a database compares it with the other ways to get the same result.
Frequently Asked Questions
How do I authenticate with the Paddle API?
Send your API key in an Authorization: Bearer header, and add Paddle-Version: 1 to pin the API version. Keys are created in the Paddle dashboard under My account > Settings > Authentication, carry entity.read and entity.write permissions, and are prefixed pdl_live_apikey_ or pdl_sdbx_apikey_ depending on the environment.
What are the Paddle API rate limits?
240 requests per minute per IP address, with a higher limit of 1,000 per minute on the pricing and transaction preview endpoints. Going over returns a 429 with a Retry-After header and blocks the IP for 60 seconds. Separately, chargeable subscription updates are limited to 20 per hour and 100 per 24 hours per subscription.
How many records can I fetch per request?
Up to 200 on most list endpoints (default 50), but transactions are capped at 30 per request and adjustments at 50 (default 10). Follow meta.pagination.next until has_more is false.
How do I get only the records that changed?
For transactions, filter with updated_at[GTE] and sort with order_by=updated_at[ASC]. Customers, subscriptions, products and adjustments have no updated-at filter, so you either re-read them, walk the events endpoint (which only keeps the last 90 days), or process webhooks.
Do Paddle API keys expire?
They can, and Paddle recommends it. The default expiry is 90 days from creation and the maximum is one year, so plan key rotation into your integration from the start.
Can I sync Paddle data to PostgreSQL without writing code?
Yes. Codeless Sync connects with a read-only Paddle API key and syncs transactions, subscriptions, customers, products, prices, discounts and adjustments into any PostgreSQL database, on a schedule, with the tables created for you.
Wrapping Up
The Paddle API rewards a careful first build: scoped keys with an expiry you will remember, Paddle-Version pinned, pagination driven by has_more, incremental reads on transactions and a deliberate plan for everything else. If you need Paddle inside your product, that is time well spent.
If you only need Paddle data in a database you can query, skip the build. Start free with Codeless Sync and have your first Paddle table in about five minutes.
Questions or feedback? Feel free to reach out. If you found this helpful, you can try Codeless Sync for free.