Updates a transaction by its ID. Only transactions with status `draft` or `ready` can be updated.
paddle_update_transaction(
id,
status = NULL,
customer_id = NULL,
address_id = NULL,
business_id = NULL,
custom_data = NULL,
currency_code = NULL,
collection_mode = NULL,
discount_id = NULL,
billing_details = NULL,
payment_terms = NULL,
billing_period = NULL,
items = NULL,
checkout_url = NULL,
include = NULL
)
Character. Required. Paddle ID of the transaction (e.g. `"txn_abc123"`).
Character. Optional. `"billed"` or `"canceled"`.
Character. Optional Paddle IDs.
Named list. Optional.
Character. Optional. `"USD"`, `"EUR"`, or `"GBP"` if `collection_mode = "manual"`.
Character. Optional. `"automatic"` or `"manual"`.
Character. Optional.
List. Optional, see API.
List with `interval` and `frequency`. Shortcut to fill `billing_details$payment_terms`.
List with `starts_at` and `ends_at` in RFC 3339 format. Optional.
List of objects with `price_id` and `quantity`. Optional.
Character. Optional.
Character vector of related entities to return. Optional.
A list with updated transaction data and metadata.
if (FALSE) { # paddle_has_token()
set_paddle_mode("sandbox")
result <- paddle_create_transaction(
items = list(
list(price_id = "price_123", quantity = 1)
)
)
}