Create partial refunds using tax exclusive amounts

Specify that amounts for a partial refund are tax exclusive when creating an adjustment. Paddle calculates tax on the amounts for you.

What's new?

We've added a new tax_mode field that you can use when creating an adjustment to specify that amounts are exclusive of tax.

tax_modestring

Whether the amounts to be adjusted are inclusive or exclusive of tax. If internal, adjusted amounts are considered to be inclusive of tax. If external, Paddle calculates the tax and adds it to the amounts provided.

Only valid for adjustments where the type is partial.

If omitted, defaults to internal.

How it works

You can use adjustments to refund or credit all or part of a transaction and its items. You can refund all or part of a line item, useful for cases where you want to refund some users for a plan or a certain number of credits.

When passing an amount for partial line item refunds, amounts are considered inclusive of tax. This means that Paddle interprets the amounts you provide as already including tax, automatically calculating the pretax and tax components internally.

We've updated the Paddle API so now you can pass a new tax_mode field when creating an adjustment that you can use to determine if amounts should be inclusive or exclusive of tax. When tax_mode is external, amounts are considered exclusive of tax. Paddle calculates the tax on the amounts you provide.

For example, if you create a request for a partial line item refund of $110:

Amount passed in request$110$110
Tax modeinternalexternal
Tax rate10%10%
Subtotal$100$110
Total tax$10$11
Grand total$110$121

If omitted, tax_mode defaults to internal, which mirrors the existing behavior.

You can only include tax_mode for partial line item refunds. You can't specify that credits are exclusive of tax.

Examples

POSThttps://api.paddle.com/adjustments

Request

This example creates a partial refund for a tax exclusive amount on a transaction.

Response

If successful, the response includes the new adjustment entity. The totals across the adjustment include tax calculated on top of the amounts passed.

Summary of changes

Fields

This is a summary of the changes to fields in the Paddle API:

FieldChangeNotes
adjustment.tax_modeNew fieldDetermines whether the amounts to be adjusted are inclusive or exclusive of tax.

Errors

This is a summary of the changes to errors in the Paddle API:

ErrorChangeNotes
adjustment_tax_mode_not_allowedNewReturned when including tax_mode for an adjustment that's a credit, or where the type is full.

Next steps

This change is available in version 1 of the Paddle API.

It's a non-breaking change, meaning it doesn't impact existing integrations. tax_mode defaults to internal, meaning there are no changes required.

Check out our refund or credit a transaction guide to get started.

Learn more