# Invoices ## Resume collection for an invoice - [PUT /invoices/{invoiceId}:resume_collection](https://developer.adfin.com/products/direct-integration/direct-integration-api-reference/invoices/resumeinvoicecollection.md): Starts collection of every payment request raised for this invoice by the named methods again. Those payment requests keep being collected even while the customer as a whole is paused. Methods that are not named keep their current state. ## Pause collection for an invoice - [PUT /invoices/{invoiceId}:pause_collection](https://developer.adfin.com/products/direct-integration/direct-integration-api-reference/invoices/pauseinvoicecollection.md): Stops collection of every payment request raised for this invoice by the named methods, leaving the customer's other invoices alone. Methods that are not named keep collecting, and a method that is already paused stays as it is. ## Get an invoice by its id - [GET /invoices/{id}](https://developer.adfin.com/products/direct-integration/direct-integration-api-reference/invoices/getinvoice.md) ## Update an invoice - [PUT /invoices/{id}](https://developer.adfin.com/products/direct-integration/direct-integration-api-reference/invoices/putinvoice.md) ## Void an invoice - [PUT /invoices/{id}:void](https://developer.adfin.com/products/direct-integration/direct-integration-api-reference/invoices/voidinvoice.md) ## Manually mark an invoice as paid - [PUT /invoices/{id}:mark-as-paid](https://developer.adfin.com/products/direct-integration/direct-integration-api-reference/invoices/markinvoiceaspaid.md) ## Activate (send) an invoice - [PUT /invoices/{id}:activate](https://developer.adfin.com/products/direct-integration/direct-integration-api-reference/invoices/activateinvoice.md) ## Retrieve a list of invoices by filter - [GET /invoices](https://developer.adfin.com/products/direct-integration/direct-integration-api-reference/invoices/getinvoices.md) ## Create an invoice - [POST /invoices](https://developer.adfin.com/products/direct-integration/direct-integration-api-reference/invoices/createinvoice.md) ## Preview instalment plan for an invoice - [POST /invoices/{invoiceId}/instalments/preview](https://developer.adfin.com/products/direct-integration/direct-integration-api-reference/invoices/previewinstalmentforinvoice.md) ## Import a credit note - [POST /invoices/{invoiceId}/credit_notes](https://developer.adfin.com/products/direct-integration/direct-integration-api-reference/invoices/importcreditnote.md): Apply a credit note from another system to an invoice. The credit note lowers the amount due. The invoice must still take payments. ## Get the collection preferences for an invoice - [GET /invoices/{invoiceId}/collection_preferences](https://developer.adfin.com/products/direct-integration/direct-integration-api-reference/invoices/getinvoicecollectionpreferences.md): The values in force, after the agent's settings and every override are resolved. ## Reset the collection preferences for an invoice - [DELETE /invoices/{invoiceId}/collection_preferences](https://developer.adfin.com/products/direct-integration/direct-integration-api-reference/invoices/deleteinvoicecollectionpreferences.md): Clears every override, not only these settings, including any set by Adfin or in the Adfin app. To turn a single setting off, PATCH it with an enabled of false instead. A pause set with :pause_collection survives. ## Change the collection preferences for an invoice - [PATCH /invoices/{invoiceId}/collection_preferences](https://developer.adfin.com/products/direct-integration/direct-integration-api-reference/invoices/patchinvoicecollectionpreferences.md): A field left out of the body is unchanged. partialPayments takes at most one of minimumAmount or minimumPercentage. statements, mandateReminders, cardReminders and directDebitEncouragement can only be set on the customer. ## Get the file for a specific invoice - [GET /invoices/{id}/file](https://developer.adfin.com/products/direct-integration/direct-integration-api-reference/invoices/getfile.md) ## Cancel an imported credit note - [DELETE /invoices/{invoiceId}/credit_notes/{creditNoteId}](https://developer.adfin.com/products/direct-integration/direct-integration-api-reference/invoices/cancelimportedcreditnote.md): Cancel a credit note imported through the API. The amount returns to the amount due of the invoice.