Mutation
mutation DeletePaymentsByInvoiceId($request: DeletePaymentsByInvoiceIdCommandRequestInput!) {
DeletePaymentsByInvoiceId(request: $request) {
deleted
}
}Variables
{
"request": {
"invoiceId": "id"
}
}Response
{
"data": {
"DeletePaymentsByInvoiceId": {
"deleted": true
}
}
}Mutations
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
deleted
Boolean!
True if all payments were deleted. False if no payments were deleted (e.g., none existed or deletion failed atomically).
Mutation
mutation DeletePaymentsByInvoiceId($request: DeletePaymentsByInvoiceIdCommandRequestInput!) {
DeletePaymentsByInvoiceId(request: $request) {
deleted
}
}Variables
{
"request": {
"invoiceId": "id"
}
}Response
{
"data": {
"DeletePaymentsByInvoiceId": {
"deleted": true
}
}
}Was this page helpful?