> ## Documentation Index
> Fetch the complete documentation index at: https://developer.jtl-software.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DeletePaymentsByInvoiceId

> Deletes all payments directly connected to the given invoice. This is an all-or-nothing operation - either all payments are deleted, or none are. After successfully deleting all payments, the invoice's payment status is updated accordingly.



**mutation** `DeletePaymentsByInvoiceId(request: DeletePaymentsByInvoiceIdCommandRequestInput!): DeletePaymentsByInvoiceIdCommandResponse!`

## Arguments

**`request`**: `DeletePaymentsByInvoiceIdCommandRequestInput!` (required)

## Returns

`DeletePaymentsByInvoiceIdCommandResponse!`

**`deleted`**: `Boolean!`

True if all payments were deleted. False if no payments were deleted (e.g., none existed or deletion failed atomically).

