Home / Servers / Stripe API / get_credit_notes_preview_lines
Retrieve a credit note preview's line items
An MCP tool from the Stripe API server, hosted on mcp.hjlabs.in.
Retrieve a credit note preview's line items When retrieving a credit note preview, you’ll get a lines property containing the first handful of those items. This URL you can retrieve the full (paginated) list of line items. [GET /v1/credit_notes/preview/lines]
Name on the gateway: stripe_api__get_credit_notes_preview_lines · read-only.
Parameters
| Name | Type | Description |
|---|---|---|
amount | integer | The integer amount in cents (or local equivalent) representing the total… |
credit_amount | integer | The integer amount in cents (or local equivalent) representing the amount to… |
effective_at | integer | The date when this credit note is in effect. Same as created unless… |
email_type | credit_note | none | Type of email to send to the customer, one of credit_note or none and the… |
ending_before | string | A cursor for use in pagination. ending_before is an object ID that defines… |
expand | array | Specifies which fields in the response should be expanded. |
invoice required | string | ID of the invoice. |
limit | integer | A limit on the number of objects to be returned. Limit can range between 1 and… |
lines | array | Line items that make up the credit note. One of amount, lines, or… |
memo | string | The credit note's memo appears on the credit note PDF. |
metadata | object | Set of key-value pairs that you can attach to an object. This can be useful… |
out_of_band_amount | integer | The integer amount in cents (or local equivalent) representing the amount that… |
reason | duplicate | fraudulent | order_change | product_unsatisfactory | Reason for issuing this credit note, one of duplicate, fraudulent… |
refund_amount | integer | The integer amount in cents (or local equivalent) representing the amount to… |
refunds | array | Refunds to link to this credit note. |
shipping_cost | object | When shipping_cost contains the shipping_rate from the invoice, the… |
starting_after | string | A cursor for use in pagination. starting_after is an object ID that defines… |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "stripe_api__get_credit_notes_preview_lines",
"arguments": {
"invoice": "…"
}
}Or connect the Stripe API server directly, which lists 606 tools including this one:
claude mcp add --transport http hj-stripe-api https://mcp.hjlabs.in/mcp/stripe-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the retrieve a credit note preview's line items tool with amount set to ….