Paddle Billing
Search

Create an adjustment

posthttps://api.paddle.com/adjustments

Creates an adjustment for one or more transaction items.

You can create adjustments to refund or credit all or part of a transaction and its items:

  • Refunds return an amount to a customer's original payment method. You can create refund adjustments for transactions that are completed.
  • Credits reduce the amount that a customer has to pay for a transaction. You can create credit adjustments for manually-collected transactions that are billed or past_due.

You can create adjustments to refund transactions that are completed, or to reduce the amount to due on manually-collected transactions that are billed or past_due. Most refunds for live accounts are created with the status of pending_approval until reviewed by Paddle, but some are automatically approved. For sandbox accounts, Paddle automatically approves refunds every ten minutes.

Adjustments can apply to some or all items on a transaction. You'll need the Paddle ID of the transaction to create a refund or credit for, along with the Paddle ID of any transaction items (details.line_items[].id).

If successful, your response includes a copy of the new adjustment entity.

Request Body

actionstringrequired

How this adjustment impacts the related transaction.

reasonstringrequired

Why this adjustment was created. Appears in the Paddle dashboard. Retained for record-keeping purposes.

transaction_idstringrequired

Paddle ID of the transaction that this adjustment is for, prefixed with txn_.

Automatically-collected transactions must be completed; manually-collected transactions must have a status of billed or past_due

You can't create an adjustment for a transaction that has a refund that's pending approval.

typestring

Type of adjustment. Use full to adjust the grand total for the related transaction. Include an items array when creating a partial adjustment. If omitted, defaults to partial.

itemsarray[object] or null

List of transaction items to adjust. Required if type is not populated or set to partial.

item_idstringrequired

Paddle ID for the transaction item that this adjustment item relates to, prefixed with txnitm_.

typestringrequired

Type of adjustment for this transaction item. tax adjustments are automatically created by Paddle. Include amount when creating a partial adjustment.

amountstring or null

Amount adjusted for this transaction item. Required when item type is partial.

Response

dataobject

Represents an adjustment entity.

idstring

Unique Paddle ID for this adjustment entity, prefixed with adj_.

actionstring

How this adjustment impacts the related transaction.

typestring

Type of adjustment. Use full to adjust the grand total for the related transaction. Include an items array when creating a partial adjustment. If omitted, defaults to partial.

transaction_idstring

Paddle ID of the transaction that this adjustment is for, prefixed with txn_.

subscription_idstring or null

Paddle ID for the subscription related to this adjustment, prefixed with sub_. Set automatically by Paddle based on the subscription_id of the related transaction.

customer_idstring

Paddle ID for the customer related to this adjustment, prefixed with ctm_. Set automatically by Paddle based on the customer_id of the related transaction.

reasonstring

Why this adjustment was created. Appears in the Paddle dashboard. Retained for record-keeping purposes.

credit_applied_to_balanceboolean or null

Whether this adjustment was applied to the related customer's credit balance. Only returned for credit adjustments.

currency_codestring

Three-letter ISO 4217 currency code for this adjustment. Set automatically by Paddle based on the currency_code of the related transaction.

statusstring

Status of this adjustment. Set automatically by Paddle.

Most refunds for live accounts are created with the status of pending_approval until reviewed by Paddle, but some are automatically approved. For sandbox accounts, Paddle automatically approves refunds every ten minutes.

Credit adjustments don't require approval from Paddle, so they're created as approved.

itemsarray[object]

List of items on this adjustment. Required if type is not populated or set to partial.

totalsobject

Breakdown of the total for an adjustment.

payout_totalsobject or null

Breakdown of how this adjustment affects your payout balance.

tax_rates_usedarray[object]

List of tax rates applied for this adjustment.

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.

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.