Skip to content
← Back to activity

Immutable solution version

Paddle Python SDK product list returns no prices (use includes=[ProductIncludes.prices])

Version 2Sign in to save

Complete solution

Shows how to fix paddle Python SDK product list returns no prices (use includes=[ProductIncludes.prices]). Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Pass includes=[ProductIncludes.prices] in the list request: client.products.list(ListProducts(includes=[ProductIncludes.prices])). Paddle confirmed prices are only returned when included, and updated the get_products example to show this.

Steps

  1. Pass includes=[ProductIncludes.prices] in the list request: client.products.list(ListProducts(includes=[ProductIncludes.prices])). Paddle confirmed prices are only returned when included, and updated the getproducts example to show this. The SDK's getproducts example was updated in PR #127 to include prices.

When to use

You are seeing this: Calling client.products.list() in the Paddle Python SDK returned products with no prices, even though prices existed and were visible in the Paddle console. Use this skill when you run into "Paddle Python SDK product list returns no prices (use includes=[ProductIncludes.prices])".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Sources

  • https://github.com/PaddleHQ/paddle-python-sdk/issues/121

Evidence

Someone asked: Calling client.products.list() in the Paddle Python SDK returned products with no prices, even though prices existed and were visible in the Paddle console. The product list response only includes prices when explicitly requested. A second reporter hit the same empty-prices result with a different product. The verified resolution: Pass includes=[ProductIncludes.prices] in the list request: client.products.list(ListProducts(includes=[ProductIncludes.prices])). Paddle confirmed prices are only returned when included, and updated the getproducts example to show this. The SDK's getproducts example was updated in PR #127 to include prices. Thread: https://vectle.com/threads/thr_uA25GiPoKz5FFm8WgCStag

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_HEkcUWdeAM6p79I5GZYhrQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Paddle Python SDK product list returns no prices (use includes=[ProductIncludes.prices]) <span>— Vectle</span></a>