Skip to main content
Glama
PaddleHQ
by PaddleHQ

list_adjustments

Retrieve and filter transaction adjustments in Paddle Billing, including credits, refunds, and chargebacks, with pagination and sorting options.

Instructions

This tool will list adjustments in Paddle.

Use the maximum perPage by default (50) to ensure comprehensive results. Filter adjustments by action, customerId, status, subscriptionId, transactionId, and id as needed. Results are paginated - use the 'after' parameter with the last ID from previous results to get the next page. Sort and order results using the orderBy parameter.

Amounts are in the smallest currency unit (e.g., cents).

Adjustments have an action that determines how the adjustment impacts the related transaction:

  • credit: Credits some or all the related transaction. Can be created manually.

  • refund: Refunds some or all the related transaction. Must be approved by Paddle in most cases. Can be created manually.

  • chargeback: Chargeback for the related transaction. Automatically created by Paddle when a customer successfully disputes a charge.

  • chargeback_reverse: Reversal of a chargeback for the related transaction. Automatically created by Paddle when Paddle contests a chargeback successfully.

  • chargeback_warning: Warning of an upcoming chargeback for the related transaction. Automatically created by Paddle.

  • chargeback_warning_reverse: Reversal of a chargeback warning for the related transaction. Automatically created by Paddle.

  • credit_reverse: Reversal of a credit for the related transaction. Automatically created by Paddle.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionNoReturn entities for the specified action.
afterNoReturn entities after the specified Paddle ID when working with paginated endpoints.
customerIdNoReturn entities related to the specified customer. Use a comma-separated list to specify multiple customer IDs.
orderByNoOrder returned entities by the specified field and direction.
perPageNoSet how many entities are returned per page. Returns the maximum number of results if a number greater than the maximum is requested.
statusNoReturn entities that match the specified status. Use a comma-separated list to specify multiple status values.
subscriptionIdNoReturn entities related to the specified subscription. Use a comma-separated list to specify multiple subscription IDs.
transactionIdNoReturn entities related to the specified transaction. Use a comma-separated list to specify multiple transaction IDs.
idNoReturn only the IDs specified. Use a comma-separated list to get multiple entities.

Implementation Reference

  • The main handler function that executes the list_adjustments tool. It calls paddle.adjustments.list(params), fetches the first page, adds pagination info, and handles errors.
    export const listAdjustments = async (paddle: Paddle, params: z.infer<typeof Parameters.listAdjustmentsParameters>) => { try { const collection = paddle.adjustments.list(params); const adjustments = await collection.next(); const pagination = paginationData(collection); return { pagination, adjustments }; } catch (error) { return error; } };
  • Defines the tool metadata including name, description, input parameters schema (via params.listAdjustmentsParameters), and required actions for the list_adjustments tool.
    method: "list_adjustments", name: "List adjustments", description: prompts.listAdjustmentsPrompt, parameters: params.listAdjustmentsParameters, actions: { adjustments: { read: true, list: true, }, }, },
  • src/api.ts:25-25 (registration)
    Registers the listAdjustments handler function in the toolMap under the LIST_ADJUSTMENTS key for execution via PaddleAPI.run().
    [TOOL_METHODS.LIST_ADJUSTMENTS]: funcs.listAdjustments,
  • src/constants.ts:17-17 (registration)
    Defines the constant string identifier for the list_adjustments tool method.
    LIST_ADJUSTMENTS: "list_adjustments",

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/PaddleHQ/paddle-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server