Actions7
- Authentication Actions
- Invoice Actions
- Customer Actions
Invoice → Refund Invoice
AI-generatedOverview
This node operation handles refunding an invoice within the Mi2u system. It supports two modes: Independent Mode, where the user provides the Supplier TIN and Document Number to search and refund the invoice automatically, and Data Input Mode, where the user provides existing invoice data (such as original invoice number, UUID, and full invoice data) from a previous Mi2uSearch node or manual input to process the refund. This node is useful for automating invoice refund processes in accounting or financial workflows, ensuring accurate and efficient handling of refunds.
Use Case Examples
- In Independent Mode, a user inputs the Supplier TIN and Document Number, and the node searches for the invoice and processes the refund automatically.
- In Data Input Mode, a user passes invoice data obtained from a Mi2uSearch node to refund a specific invoice without needing to re-enter invoice identifiers.
Properties
| Name | Meaning |
|---|---|
| Operation Mode | Determines how the invoice information is provided for the refund operation, either by independent search or by using existing invoice data. |
| Supplier TIN | Supplier Taxpayer Identification Number used to search the invoice in Independent Mode. |
| Document Number | Invoice Code Number used to search the invoice in Independent Mode. |
| Original Invoice Number | The invoice number of the original invoice to refund, used in Data Input Mode. |
| Original Invoice UUID | The UUID of the original invoice to refund, used in Data Input Mode. |
| Invoice Data | Complete Mi2uSearch response or decodedContent directly, used in Data Input Mode to provide invoice details for refunding. |
Output
JSON
refundStatus- Status of the refund operationrefundDetails- Details of the refunded invoice, including identifiers and amountserror- Error information if the refund operation fails
Dependencies
- Mi2u API authentication and access
Troubleshooting
- Ensure that the Supplier TIN and Document Number are correctly provided in Independent Mode to avoid search failures.
- In Data Input Mode, verify that the invoice data is complete and correctly formatted to prevent refund errors.
- Common errors include invalid invoice identifiers, missing required fields, or API authentication issues. Check credentials and input data for correctness.