Docs

Filter to see single purchase transactions

Get a list of transactions that aren't related to a subscription when working with the API. Use this to see transactions for single purchases.

Product area

  • Transactions

Tooling

  • API

Released

October 3, 2023

Status

Released

API version

Version 1

What's new?

We updated the Paddle API so that now you can pass null as a value to the subscription_id query parameter when listing transactions. You can use this to filter to see single purchase transactions that aren't related to a subscription.

GET /transactions?subscription_id=null
subscription_id array[string] or null

Return entities related to the specified subscription. Use a comma-separated list to specify multiple subscription IDs. Pass null to return entities that aren't related to any subscription

How it works

Transactions and subscriptions are closely related entities in Paddle. For example:

Where a transaction and a subscription are related, the subscription_id is included against the transaction for your reference. You can filter to see a transactions for particular subscriptions using the subscription_id query parameter when listing transactions.

You can also use Paddle to sell single purchases that don't create new subscriptions or relate to an existing subscription. This might include ebooks, software downloads, or other digital goods. Where transactions are for single purchases, the subscription_id is null.

Previously, there was no way to filter to see single purchases in Paddle.

Now, you can pass null as a value when using the subscription_id query parameter when listing transactions to see them. Paddle returns transactions that aren't related to a subscription. Combine with the status parameter with the value completed to see transactions for single purchases.

GET /transactions?status=completed&subscription_id=null
status array[string]

Return entities that match the specified status. Use a comma-separated list to specify multiple status values

subscription_id array[string] or null

Return entities related to the specified subscription. Use a comma-separated list to specify multiple subscription IDs. Pass null to return entities that aren't related to any subscription

Next steps

This change is available in version 1 of the Paddle API.

It's a non-breaking change, meaning it doesn't impact existing integrations.

You can list transactions using the API to start using the new accepted query parameter value.

Summary of changes

Entity Field Change Type
List transactions subscription_id ~ Updated Field
Accepts null to filter for non-subscription transactions.

Was this page helpful?