MyInvoice2u icon

MyInvoice2u

MyInvoice2U action operations: Authentication, Invoice management, and Customer operations

Invoice → Cancel Invoice

AI-generated

Overview

This node operation allows users to cancel invoices using different modes. It supports independent cancellation or voiding by searching invoices with Supplier TIN and Document Number, and also supports an automated process for Shopify orders to cancel and then void invoices sequentially. This is useful for businesses needing to manage invoice cancellations accurately and efficiently, including integration with Shopify order data.

Use Case Examples

  1. Cancel an invoice by providing the Supplier TIN and Document Number along with a cancellation reason.
  2. Void an invoice independently by specifying the Supplier TIN and Document Number.
  3. Automatically cancel and void Shopify orders by providing Shopify order data and cancellation reasons.

Properties

Name Meaning
operationMode Select the mode of cancellation operation: independent cancel, independent void, or Shopify auto cancel and void.
independentCancelTin Supplier Taxpayer Identification Number used to search the invoice for cancellation.
independentCancelDocNum Invoice Code Number used to search and cancel the invoice.
independentCancelCode Reason code for cancelling the invoice, such as wrong buyer details, wrong invoice details, or other reasons.
independentCancelReason Detailed reason for the invoice cancellation provided by the user.
independentVoidTin Supplier Taxpayer Identification Number used to search the invoice for voiding.
independentVoidDocNum Invoice Code Number used to search and void the invoice.
shopifyData JSON data containing Shopify order information to be used for cancelling and voiding invoices.
shopifyCancelCode Reason code for cancelling Shopify orders, similar to independent cancel codes.
shopifyCancelReason Reason provided for cancelling Shopify orders.
shopifyTin Business Tax Identification Number (TIN) used for void operations on Shopify orders.

Output

JSON

  • status - Status of the cancellation or void operation.
  • message - Detailed message or response from the cancellation or void operation.
  • invoiceId - Identifier of the invoice that was cancelled or voided.

Dependencies

  • An API key credential for authenticating with the invoice management service.

Troubleshooting

  • Ensure that the Supplier TIN and Document Number are correctly provided and match existing invoices to avoid search failures.
  • Verify that the cancellation or void reason codes are valid and supported by the service.
  • For Shopify operations, ensure the Shopify order data JSON is correctly formatted and contains necessary invoice information.
  • Common errors include 'Unknown invoice operation' if the operation parameter is incorrect, or 'Unknown resource' if the resource parameter is invalid. These can be resolved by selecting the correct resource and operation in the node configuration.

Discussion