Flag paid Kiwify sales with a rejected Spedy NFS-e

Give tax staff the invoice and order IDs when a rejected service invoice belongs to a Kiwify sale that is still paid.

10 stepsFinanceE-commerce

Free to start, no card required.

How it works

  1. When this happens

    Receive an invoice rejection

    Spedy

  2. Step 1 · Code

    Match issuer and order reference

  3. Step 2

    Check whether to continue

    Follows the first path that matches

    • Linked Kiwify invoice

      1. Step 3 · Spedy

        Read the current NFS-e

      2. Step 4 · Code

        Verify the rejection is current

      3. Step 5

        Check whether to continue

        Follows the first path that matches

        • Rejection confirmed

          1. Step 6 · Kiwify

            Read the current Kiwify sale

          2. Step 7 · Code

            Check the current sale status

          3. Step 8

            Check whether to continue

            Follows the first path that matches

            • Sale still paid

              1. Step 9 · Mattermost

                Notify the tax channel

            • Otherwise

              Nothing happens

        • Otherwise

          Nothing happens

    • Otherwise

      Nothing happens

Before you start

Enter the production issuer’s CNPJ and Spedy signing secret, and have your API integration issue invoices with integrationId set to kiwify: followed by the full order UUID. Connect sales read access for the matching Kiwify merchant and a private Mattermost channel. Check the RPS with the municipality before issuing again.

Accounts to connect

See all 200 in Finance

Your first automationstarts with one sentence.

Start free with 1,000 credits, no card needed. Rather have it done for you? Our team builds it.

Use template