Paddle Billing
Search

Update a transaction

Updates a transaction using its ID.

You can update transactions that are draft or ready. billed and completed transactions are considered records for tax and legal purposes, so they can't be changed. You can either:

  • Create an adjustment to record a refund or credit for a transaction.
  • Cancel a billed transaction by sending a PATCH request to set status to canceled.

The transaction status may only be set to billed or canceled. Other statuses are set automatically by Paddle. Set a manually-collected transaction to billed to mark it as finalized. This is essentially issuing an invoice. At this point, it becomes a legal record so you can't make changes to it. Paddle automatically assigns an invoice number, creates a related subscription, and sends it to your customer.

When making changes to items on a transaction, send the complete list of items that you'd like to be on a transaction — including existing items. For each item, send an object containing price_id and quantity. Paddle responds with the full price object for each item. See: Work with lists

If successful, your response includes a copy of the updated transaction entity.

Path Parameters

transaction_idstringrequired

Paddle ID of the transaction entity to work with.

Query Parameters

includearray[string]

Include related entities in the response. Use a comma-separated list to specify multiple entities.

Request Body

statusstring

Status of this transaction. You may set a transaction to billed or canceled. Billed transactions cannot be changed.

For manually-collected transactions, marking as billed is essentially issuing an invoice.

customer_idstring or null

Paddle ID of the customer that this transaction is for, prefixed with ctm_.

address_idstring or null

Paddle ID of the address that this transaction is for, prefixed with add_.

business_idstring or null

Paddle ID of the business that this transaction is for, prefixed with biz_.

custom_dataobject or null

Your own structured key-value data.

currency_codestring

Supported three-letter ISO 4217 currency code. Must be USD, EUR, or GBP if collection_mode is manual.

collection_modestring

How payment is collected for this transaction. automatic for checkout, manual for invoices.

discount_idstring or null

Paddle ID of the discount applied to this transaction, prefixed with dsc_.

billing_detailsobject or null

Details for invoicing. Required if collection_mode is manual.

enable_checkoutboolean

Whether the related transaction may be paid using a Paddle Checkout.

purchase_order_numberstring

Customer purchase order number. Appears on invoice documents.

additional_informationstring or null

Notes or other information to include on this invoice. Appears on invoice documents.

payment_termsobject

How long a customer has to pay this invoice once issued.

intervalstringrequired

Unit of time.

frequencyintegerrequired

Amount of time.

billing_periodobject or null

Time period that this transaction is for. Set automatically by Paddle for subscription renewals to describe the period that charges are for.

starts_atstring<date-time>required

RFC 3339 datetime string of when this period starts.

ends_atstring<date-time>required

RFC 3339 datetime string of when this period ends.

itemsarray[object]

Add a non-catalog price for a non-catalog product in your catalog to a transaction. In this case, the product and price that you're billing for are specific to this transaction.

quantityintegerrequired

Quantity of this item on the transaction.

price_idstringrequired

Paddle ID of an existing catalog price to add to this transaction, prefixed with pri_.

checkoutobject or null

Paddle Checkout details for this transaction. You may pass a URL when creating or updating an automatically-collected transaction, or when creating or updating a manually-collected transaction where billing_details.enable_checkout is true.

urlstring or null

Checkout URL to use for the payment link for this transaction. Pass the URL for an approved domain, or null to set to your default payment URL.

Paddle returns a unique payment link composed of the URL passed or your default payment URL + _?txn= and the Paddle ID for this transaction.

Response

dataobject

Represents a transaction entity with included entities.

idstring

Unique Paddle ID for this transaction entity, prefixed with txn_.

statusstring

Status of this transaction. You may set a transaction to billed or canceled, other statuses are set automatically by Paddle. Automatically-collected transactions may return completed if payment is captured successfully, or past_due if payment failed.

customer_idstring or null

Paddle ID of the customer that this transaction is for, prefixed with ctm_.

address_idstring or null

Paddle ID of the address that this transaction is for, prefixed with add_.

business_idstring or null

Paddle ID of the business that this transaction is for, prefixed with biz_.

custom_dataobject or null

Your own structured key-value data.

currency_codestring

Supported three-letter ISO 4217 currency code. Must be USD, EUR, or GBP if collection_mode is manual.

originstring

Describes how this transaction was created.

subscription_idstring or null

Paddle ID of the subscription that this transaction is for, prefixed with sub_.

invoice_idstring or null

Paddle ID of the invoice that this transaction is related to, prefixed with inv_. Used for compatibility with the Paddle Invoice API, which is now deprecated. This field is scheduled to be removed in the next version of the Paddle API.

invoice_numberstring or null

Invoice number for this transaction. Automatically generated by Paddle when you mark a transaction as billed where collection_mode is manual.

collection_modestring

How payment is collected for this transaction. automatic for checkout, manual for invoices.

discount_idstring or null

Paddle ID of the discount applied to this transaction, prefixed with dsc_.

billing_detailsobject or null

Details for invoicing. Required if collection_mode is manual.

billing_periodobject or null

Time period that this transaction is for. Set automatically by Paddle for subscription renewals to describe the period that charges are for.

itemsarray[object]

List of items on this transaction. For calculated totals, use details.line_items.

detailsobject

Calculated totals for a transaction, including proration, discounts, tax, and currency conversion. Considered the source of truth for totals on a transaction.

paymentsarray[object]

List of payment attempts for this transaction, including successful payments. Sorted by created_at in descending order, so most recent attempts are returned first.

checkoutobject or null

Paddle Checkout details for this transaction. Returned for automatically-collected transactions and where billing_details.enable_checkout is true for manually-collected transactions; null otherwise.

created_atstring<date-time>

RFC 3339 datetime string of when this entity was created. Set automatically by Paddle.

updated_atstring<date-time>

RFC 3339 datetime string of when this entity was updated. Set automatically by Paddle.

billed_atstring<date-time> or null

RFC 3339 datetime string of when this transaction was marked as billed. null for transactions that are not billed or completed. Set automatically by Paddle.

addressobject

Address for this transaction. Returned when the include parameter is used with the address value and the transaction has an address_id.

adjustmentsarray[object]

Represents an adjustment entity.

adjustments_totalsobject

Object containing totals for all adjustments on a transaction. Returned when the include parameter is used with the adjustments_totals value.

businessobject

Business for this transaction. Returned when the include parameter is used with the business value and the transaction has a business_id.

customerobject

Customer for this transaction. Returned when the include parameter is used with the customer value and the transaction has a customer_id.

discountobject

Discount for this transaction. Returned when the include parameter is used with the discount value and the transaction has a discount_id.

available_payment_methodsarray[string]

List of available payment methods for this transaction. Returned when the include parameter is used with the available_payment_methods value.

metaobject

Information about this response.

request_idstring

Unique ID for the request relating to this response. Provide this when contacting Paddle support about a specific request.