Draft ChargeKeep deposits from signed PandaDoc proposals

Create a draft ChargeKeep invoice for just the USD deposit in a signed PandaDoc proposal and record its invoice ID in MySQL.

20 stepsSalesFinance

Free to start, no card required.

How it works

  1. When this happens

    Receive a completed proposal

    PandaDoc

  2. Step 1 · Code

    Set the deposit proposal template

  3. Step 2

    Check the signed document reference

    Follows the first path that matches

    • Completed document received

      1. Step 3 · PandaDoc

        Read the signed proposal terms

      2. Step 4 · Code

        Verify the signer and deposit terms

      3. Step 5

        Check the signed deposit amount

        Follows the first path that matches

        • Signed proposal specifies a deposit

          1. Step 6 · ChargeKeep

            Read the ChargeKeep billing contact

          2. Step 7 · Code

            Confirm the billing contact signed

          3. Step 8

            Check the billing identity

            Follows the first path that matches

            • Signer matches the billing contact

              1. Step 9 · PandaDoc

                Recheck the signed deposit agreement

              2. Step 10 · Code

                Check for revised proposal terms

              3. Step 11

                Check the signed terms again

                Follows the first path that matches

                • Deposit terms still match

                  1. Step 12 · MySQL

                    Claim this proposal’s deposit

                  2. Step 13 · Code

                    Check the deposit reservation

                  3. Step 14

                    Check for a previous invoice run

                    Follows the first path that matches

                    • First claim for this proposal

                      1. Step 15 · Code

                        Prepare the signed deposit line

                      2. Step 16 · ChargeKeep

                        Draft only the agreed deposit

                      3. Step 17 · Code

                        Verify the draft amount and number

                      4. Step 18 · MySQL

                        Save the draft invoice reference

                      5. Step 19 · Code

                        Confirm the saved invoice reference

                    • Otherwise

                      Nothing happens

                • Otherwise

                  Nothing happens

            • Otherwise

              Nothing happens

        • Otherwise

          Nothing happens

    • Otherwise

      Nothing happens

Before you start

Choose a signing-only PandaDoc proposal template with one client signer, USD pricing and visible DepositAmountUSD and DepositDueISO variables (date YYYY-MM-DD). Enter the template ID and set chargekeep_contact_id as internal document metadata from billing, then reserve invoice numbers starting PD-DEP- for this workflow. Create deposit_invoice_receipts(document_id VARCHAR(64) PRIMARY KEY, invoice_id BIGINT NULL) in MySQL and reconcile any empty receipt in ChargeKeep before retrying it.

Accounts to connect

See all 144 in Sales

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