# Get available credits for invoice List credit memos that can be applied to an invoice. Returns credits for the same customer with remaining balance and matching currency. Endpoint: GET /invoices/{id}/available-credits Version: 1.0.0 Security: BearerAuth ## Path parameters: - `id` (string, required) Resource ID (UUID) or client key Example: "550e8400-e29b-41d4-a716-446655440000" ## Query parameters: - `by` (string) Specify lookup type for faster retrieval. If omitted, defaults to looking up by ID first, then falls back to client key if not found. Use by=key when you know you're providing a client key for best performance. Enum: "id", "key" ## Response 200 fields (application/json): - `availableCredits` (array, required) - `availableCredits.id` (string) - `availableCredits.reference` (string,null) - `availableCredits.remainingBalance` (number) - `availableCredits.currency` (string) - `availableCredits.memoDate` (string) - `availableCredits.notes` (string,null) - `totalAvailable` (number, required) Total available credit balance ## Response 401 fields (application/json): - `error` (string, required) Error code - `message` (string, required) Human-readable error message ## Response 404 fields (application/json): - `error` (string, required) Error code - `message` (string, required) Human-readable error message