Check a QuickBooks Sandbox payment split in GitLab CI

Report whether a test payment settled the right amounts on two sandbox invoices and kept the expected unapplied balance.

14 stepsFinanceProduct and engineering

Free to start, no card required.

How it works

  1. When this happens

    CI finishes the test payment setup

    Webhook

  2. Step 1 · Code

    Check the CI fixture references

  3. Step 2 · GitLab

    Read the signed request’s CI pipeline

  4. Step 3 · Code

    Verify the test project and commit

  5. Step 4

    Check the authorized pipeline

    Follows the first path that matches

    • Same project, branch and commit

      1. Step 5 · QuickBooks Online (Sandbox)

        Read the first test invoice

      2. Step 6 · QuickBooks Online (Sandbox)

        Read the second test invoice

      3. Step 7 · QuickBooks Online (Sandbox)

        Read the test payment and its links

      4. Step 8 · Code

        Check allocation and unapplied credit

      5. Step 9 · GitLab

        Check the existing CI test result

      6. Step 10 · Code

        Check whether the result changed

      7. Step 11

        Check if GitLab needs a new status

        Follows the first path that matches

        • New test outcome

          1. Step 12 · GitLab

            Report the sandbox check on the commit

          2. Step 13 · Code

            Confirm the status on the same commit

        • Otherwise

          Nothing happens

    • Otherwise

      Nothing happens

Before you start

Set a shared webhook header, GitLab project and branch, sandbox customer and currency. Have CI create invoices for 100 and 70, then apply 60 and 20 from one payment of 90, with PrivateNote set to ar-qa:PIPELINE_ID:SHA on all three records. Send pipelineId, sha, paymentId, firstInvoiceId and secondInvoiceId to the webhook after the writes.

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