getCreditNotes
List credit notes, newest first. Pass invoiceRef for the credit notes of one invoice or locationRef for those of a location, not both; without either it lists the credit notes of every location in the network. A credit note reduces or gives back what an issued invoice billed: of its totalAmount, prePaymentAmount lowered the invoice's amount due and postPaymentAmount was given back through refunds, creditAmount (added to the customer's balance) or outOfBandAmount (returned outside Spacebring). Get invoiceRef from getInvoices. Call getLocations to list locations, or getLocation to fetch one by locationId. Never invent UUIDs; only use values from prior tool responses.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "getCreditNotes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of credit notes per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. | |
| status | No | Filter by credit note status: issued (in effect) or voided (cancelled and no longer valid). Comma-separated, one or more of: issued, voided. | |
| createDate | No | Filter by create date (createDate). Provide gte, lte ISO datetimes. | |
| invoiceRef | No | UUID of the invoice whose credit notes to list. | |
| locationRef | No | UUID of the location whose credit notes to list. Without invoiceRef or locationRef, lists the credit notes of the whole network. | |
| nextPageToken | No | Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| creditNotes | Yes | ||
| nextPageToken | No | Pass it back as nextPageToken, with the same filters, to get the next page. Absent on the last page. |