Requests deletion of an invoice.
id
ID of an invoice to request the deletion.
Returns InvoiceRequestDelete .
mutation ($id: ID!) { invoiceRequestDelete(id: $id) { invoiceErrors { field message code } invoice { id status number externalUrl isValid isEditable createdAt updatedAt message url } } }
3
{ "id": "aWQ6MjI=" }
{ "invoiceRequestDelete": { "invoiceErrors": [ { "field": "string", "message": "string", "code": "REQUIRED" } ], "invoice": { "id": "aWQ6NTM=", "status": "PENDING", "number": "string", "externalUrl": "string", "isValid": true, "isEditable": true, "createdAt": "2022-03-06T08:23:45.000Z", "updatedAt": "2022-03-06T08:23:45.000Z", "message": "string", "url": "string" } } }