Retrieves a paginated list of transactions from the Paddle API.

paddle_list_transactions(
  after = NULL,
  id = NULL,
  customer_id = NULL,
  subscription_id = NULL,
  invoice_number = NULL,
  origin = NULL,
  status = NULL,
  collection_mode = NULL,
  billed_at = NULL,
  created_at = NULL,
  updated_at = NULL,
  order_by = NULL,
  include = NULL,
  per_page = NULL
)

Arguments

after

Character. Paddle ID cursor for pagination. Optional.

id

Character vector of transaction IDs. Optional.

customer_id

Character vector of customer IDs. Optional.

subscription_id

Character vector of subscription IDs or `"null"` to fetch unlinked. Optional.

invoice_number

Character vector of invoice numbers. Optional.

origin

Character vector of origins. Optional.

status

Character vector of statuses. Must be one of `"draft"`, `"ready"`, `"billed"`, `"paid"`, `"completed"`, `"canceled"`, `"past_due"`. Optional.

collection_mode

Character. Must be one of `"automatic"` or `"manual"`. Optional.

billed_at

Character. RFC 3339 datetime or filter (e.g., "billed_at[LT]=2023-01-01T00:00:00Z"). Optional.

created_at

Character. Same format as billed_at. Optional.

updated_at

Character. Same format as billed_at. Optional.

order_by

Character. Must be one of `billed_at[ASC|DESC]`, `created_at[ASC|DESC]`, `id[ASC|DESC]`, `updated_at[ASC|DESC]`. Optional.

include

Character vector. Must be one of `"address"`, `"adjustments"`, `"adjustments_totals"`, `"available_payment_methods"`, `"business"`, `"customer"`, `"discount"`. Optional.

per_page

Integer. Max results per page (max 200). Optional.

Value

A list containing transactions and pagination metadata.

Examples

if (FALSE) { # paddle_has_token()
set_paddle_mode("sandbox")
result <- paddle_list_transactions()
}