Payments

June 8, 2026 ยท View on GitHub

(payments)

Overview

Available Operations

  • list - List Payments
  • get - Get Payment

list

List payments.

Scopes: payments:read

Example Usage

from polar_sdk import Polar


with Polar(
    access_token="<YOUR_BEARER_TOKEN_HERE>",
) as polar:

    res = polar.payments.list(organization_id="1dbfc517-0bbf-4301-9ba8-555ca42b9737", page=1, limit=10)

    while res is not None:
        # Handle items

        res = res.next()

Parameters

ParameterTypeRequiredDescription
organization_idOptionalNullable[models.PaymentsListQueryParamOrganizationIDFilter]:heavy_minus_sign:Filter by organization ID.
checkout_idOptionalNullable[models.PaymentsListQueryParamCheckoutIDFilter]:heavy_minus_sign:Filter by checkout ID.
order_idOptionalNullable[models.PaymentsListQueryParamOrderIDFilter]:heavy_minus_sign:Filter by order ID.
customer_idOptionalNullable[models.PaymentsListQueryParamCustomerIDFilter]:heavy_minus_sign:Filter by customer ID.
statusOptionalNullable[models.PaymentsListQueryParamStatusFilter]:heavy_minus_sign:Filter by payment status.
methodOptionalNullable[models.MethodFilter]:heavy_minus_sign:Filter by payment method.
customer_emailOptionalNullable[models.CustomerEmailFilter]:heavy_minus_sign:Filter by customer email.
pageOptional[int]:heavy_minus_sign:Page number, defaults to 1.
limitOptional[int]:heavy_minus_sign:Size of a page, defaults to 10. Maximum is 100.
sortingList[models.PaymentSortProperty]:heavy_minus_sign:Sorting criterion. Several criteria can be used simultaneously and will be applied in order. Add a minus sign - before the criteria name to sort by descending order.
retriesOptional[utils.RetryConfig]:heavy_minus_sign:Configuration to override the default retry behavior of the client.

Response

models.PaymentsListResponse

Errors

Error TypeStatus CodeContent Type
models.HTTPValidationError422application/json
models.SDKError4XX, 5XX*/*

get

Get a payment by ID.

Scopes: payments:read

Example Usage

from polar_sdk import Polar


with Polar(
    access_token="<YOUR_BEARER_TOKEN_HERE>",
) as polar:

    res = polar.payments.get(id="<value>")

    # Handle response
    print(res)

Parameters

ParameterTypeRequiredDescription
idstr:heavy_check_mark:The payment ID.
retriesOptional[utils.RetryConfig]:heavy_minus_sign:Configuration to override the default retry behavior of the client.

Response

models.Payment

Errors

Error TypeStatus CodeContent Type
models.ResourceNotFound404application/json
models.HTTPValidationError422application/json
models.SDKError4XX, 5XX*/*