Table of Contents
- Key Highlights
- Introduction
- How the Charge vaulted payment for B2B order action actually works
- Vaulted payments and security: what the merchant and buyer should know
- Typical use cases: where automated vaulted charging delivers the most value
- Designing a Shopify Flow workflow to charge vaulted payments: a practical recipe
- Handling failures, disputes, and partial payments
- Integrating automated collections into accounting and ERP systems
- Testing and rollout: runbooks for safe deployment
- Legal and compliance considerations every merchant must address
- Best practices and operational checklist
- Alternatives and complementary solutions
- Real-world scenarios and numbers: what you can expect
- Troubleshooting common issues
- Scaling beyond the first 90 days
- FAQ
Key Highlights
- The Charge vaulted payment for B2B order action charges a customer’s stored (vaulted) credit card or debits a vaulted bank account when an order with payment terms becomes due.
- Implementing this Flow action reduces manual collections, shortens days sales outstanding (DSO), and requires upfront setup: vaulted payment methods on the customer, correct payment-term configuration, and Flow access on a supported plan.
Introduction
Wholesale relationships rely on trust, predictable terms, and reliable cash flow. When a retailer places a Net 30 or Net 60 order, merchants must balance generous payment terms with efficient collections. Automating the moment a payment becomes due solves a persistent operational gap: manual invoicing and chasing customers drains time and increases errors.
Shopify’s Flow system includes an action specifically for this problem: Charge vaulted payment for B2B order. That action enables stores to charge a customer’s vaulted credit card or debit a vaulted bank account automatically when payment terms mature. Used correctly, the action streamlines receivables, reduces administrative overhead, and preserves business relationships by handling routine collections without manual intervention.
This article explains how the action works, when to deploy it, how to design an effective Flow recipe around it, and how to manage common failure modes and compliance requirements. Real-world examples and operational best practices guide implementation and testing so you can move from pilot to scale with confidence.
How the Charge vaulted payment for B2B order action actually works
At its core, this Flow action triggers a payment attempt against a stored payment method when an order’s payment terms indicate it’s time to collect. The two supported vaulted payment types are:
- Vaulted credit card: a tokenized card stored securely by Shopify (or the configured payment provider) for that customer.
- Vaulted bank account: a stored bank routing/account token used for ACH or similar bank-debit transactions.
Key behaviors to expect:
- The action attempts to capture the outstanding balance (or the configured amount) on the due date or when the Flow is triggered by a relevant event.
- If the charge succeeds, the order moves into a paid/settled state and standard transaction records are created for reconciliation.
- If the charge fails, the Flow can log the failure, tag the order or customer, send notifications, and trigger remediation steps (retry schedules, manual collection tasks).
Practical implications:
- A customer must already have a vaulted payment method. If none exists, the Flow must branch to alternative workflows such as email reminders, invoice attachments, or collection tasks.
- Payment attempts are subject to the rules of the underlying payment processor: retry windows, error codes, dispute options, and refund policies remain governed by that processor and relevant banking regulations.
- The merchant’s Shopify plan must permit use of Flow. Verify plan eligibility and app permissions before planning full automation.
Vaulted payments and security: what the merchant and buyer should know
Vaulted payment methods mean customer payment details are stored as tokens rather than raw card or bank numbers. Tokenization prevents exposure of sensitive data and limits the scope of PCI compliance obligations for merchants.
Security fundamentals:
- The token references primary account data retained by a vaulting service tied to Shopify or a third-party gateway. Tokens cannot be reversed to reveal full PAN (Primary Account Number).
- Tokenization reduces merchant risk but does not remove obligations: merchants must obtain customer authorization to store and charge a payment method according to card network rules and banking regulations.
- For bank debits (ACH), merchants must maintain valid authorization records. ACH requires written or electronic authorization that allows debiting the specified account according to the stated schedule or conditions.
Operational security controls:
- Limit who in your organization can create or modify Flows that charge payments. Use role-based access controls and audit logs.
- Apply least-privilege principles for staff access to customer payment pages and order management screens.
- Keep detailed logs of charge attempts, responses, and retries for reconciliation and dispute defense.
Regulatory notes:
- ACH and other bank debit systems have strict return deadlines and re-presentment rules. Factor those into your handling of failed debits.
- Laws governing electronic signatures and authorizations vary by jurisdiction. Ensure that customer onboarding and order terms clearly record consent to vaulted charges.
- Card network rules impose specific requirements on recurring or stored credential billing. Confirm compliance with Visa, Mastercard, and other schemes when implementing charge automations for B2B customers.
Typical use cases: where automated vaulted charging delivers the most value
Automated charging for vaulted payments fits several common B2B scenarios. These examples illustrate practical gains and caveats.
-
Wholesale distributors with Net terms A food distributor sells to independent grocers on Net 30 terms. Rather than generate and send invoices manually, the distributor configures Flow to charge stored cards on the 30th day. The result: predictable cash receipts and fewer follow-ups.
-
Repeat replenishment for retail chains A beverage supplier ships weekly inventory to a regional chain with a monthly net term. Charging vaulted bank accounts on the invoice due date reduces bookkeeping work when dozens of store locations must be reconciled each month.
-
Capital-intensive manufacturers offering extended terms A manufacturer supplies equipment with Net 60 terms. Using vaulted payments, the manufacturer performs an automated charge at maturity while continuing to offer flexible purchase terms for loyal accounts.
-
Mixed-mode billing: deposits + final balance Some merchants collect a deposit at order creation, then use the vaulted payment to collect the remaining balance on delivery or after inspection. Flow can coordinate that second charge when terms specify a later due date.
Where automation may be inappropriate:
- New customers without established payment history or approval should not be automatically charged; manual review is wise.
- High-value discretionary orders may require bespoke credit review or signed authorization prior to charging.
- Customers in jurisdictions with restrictive consumer-protection rules may need explicit additional consent before automated charges.
Designing a Shopify Flow workflow to charge vaulted payments: a practical recipe
Shopify Flow is a visual automation engine composed of triggers, conditions, and actions. The following recipe outlines a robust workflow for charging vaulted payments for B2B orders.
Preconditions (what to prepare before building the Flow)
- Confirm Flow is available on your Shopify plan and that you have admin rights to create workflows.
- Ensure your store uses Shopify’s B2B features or the wholesale channel where vaulted payments can be stored.
- Verify customers have vaulted payment methods (cards or bank accounts) on file.
- Standardize your payment-term nomenclature (Net 30, Net 45, COD, etc.) in order metadata or tags so Flows can detect due dates reliably.
- Configure notification templates (email/SMS) for charge attempts and failures.
Workflow outline (step-by-step)
- Trigger: “Order payment due” or a scheduled trigger based on order.created with a condition checking the due date equals today.
- Condition: Does the order have payment terms that require delayed capture? (Check order tags / metafields.)
- Condition: Does the customer have a vaulted payment method? If no:
- Action: Tag order with “no-vaulted-payment”
- Action: Send invoice or payment-request email to customer
- Action: Create task or notification for AR team
- End workflow branch
- If yes:
- Action: Attempt Charge vaulted payment for B2B order (primary action)
- Action: Wait for response (the Flow should evaluate the outcome)
- Condition: Payment succeeded?
- If yes:
- Action: Add tag “payment-collected”
- Action: Send receipt email to customer
- Action: Post transaction information to ERP via webhook or app integration
- If no:
- Action: Add tag “charge-failed”
- Action: Send failure notification to customer with remediation options (update card, pay by link)
- Action: Create AR follow-up ticket or schedule retry
- Optionally: Attempt retry schedule (e.g., 3 tries at 48-hour intervals) or escalate to manual collection after nth failure
- If yes:
Practical tips for Flow configuration
- Use metafields instead of free-text order notes for payment-term data to avoid parsing errors.
- Implement idempotent logic to prevent multiple simultaneous charges for the same due date (e.g., set a “charge-attempted” tag before calling the charge action).
- Record the transaction ID and processor response in order metafields for auditing.
- Use environment indicators (test vs production) so you can safely test without affecting live accounts.
Example decision tree (simplified)
- Trigger: scheduled daily scan for orders with due_date == today
- If customer.vaulted_payment == true -> Attempt charge
- If attempt.success -> mark paid, notify, reconcile
- If attempt.failed -> tag, notify, retry or escalate
- If customer.vaulted_payment == false -> notify customer to add payment method; create AR ticket
Handling failures, disputes, and partial payments
Automated charging reduces manual effort but introduces new operational needs. A systematic approach to handling failures and disputes preserves cash flow and customer relationships.
Common failure reasons
- Insufficient funds or credit limit exceeded
- Expired or cancelled card
- Revoked authorization by the customer
- ACH return due to incorrect account details
- Processor flags: suspected fraud, velocity limits, or regulatory blocks
Immediate handling steps on a failed charge
- Capture the processor error code and human-readable message in order logs.
- Notify the customer with clear instructions: how to update a vaulted payment method, pay via an alternate link, or contact your AR team.
- Schedule retries with exponential backoff. For ACH, avoid excessive re-presentments that attract penalties.
- Escalate high-value or repeated failures to a human reviewer for collection outreach.
Disputes and chargebacks
- Automated charges can be disputed; maintain detailed sales records, signed agreements, invoices, delivery confirmations, and any proof of acceptance.
- When a chargeback arrives, preserve all documentation and engage the processor’s dispute resolution channel quickly.
- Disputes for subscription-like or recurring vaulted charges often require clearer evidence of customer authorization. Keep records of acceptance of payment terms and consent to vaulting.
Partial payments and staged captures
- If you need to capture only a portion of the outstanding amount (for example, holdback agreements), confirm whether the charge action supports partial capture or if you must perform a separate transaction for the specific amount.
- Use order-level metadata to track amounts already charged and remaining balances to avoid duplicate captures.
Refunds and adjustments
- Build a reconciliation process to handle refunds initiated after an automated capture. Flow can be extended to automatically issue credits or prompt manual refunds under defined conditions (e.g., product returns).
- Link refund actions back to the original transaction ID so your payment processor and accounting system can reconcile correctly.
Integrating automated collections into accounting and ERP systems
Automated charging gains strategic value when payment events flow into accounting and ERP systems in near-real time. Integration removes duplicate data entry, reduces reconciliation errors, and improves visibility.
Integration patterns
- Webhooks: Configure Flow to send structured webhook payloads on success/failure events to an integration endpoint that writes transactions into the ERP.
- Middleware/connectors: Use an integration platform (e.g., Celigo, MuleSoft, or Zapier for smaller setups) to translate Shopify events into accounting entries.
- Direct API sync: For advanced setups, post transaction details directly into the ledger system using secure APIs.
What to sync
- Transaction ID and status (authorized, captured, failed, refunded)
- Charge amount and currency
- Payment method token reference (masked for security)
- Order number and line items for audit trails
- Timestamps for charge attempts and retries
- Processor response codes and messages for exception handling
Reconciliation best practices
- Match payment transactions to invoices by order number and transaction ID.
- Implement bank statement reconciliation that recognizes the payment processor’s settlement timing (settlements may post later than capture).
- Maintain a short list of exceptions for manual review, such as partial captures, refunds, and disputed charges.
Real-world example A regional appliance distributor integrated Flow with an ERP using middleware. When a vaulted charge succeeded, middleware created a payment receipt in the ERP, closed the receivable, and triggered inventory restocking logic. The integration reduced manual reconciliation from several hours per week to near-zero, enabling the finance team to focus on exceptions and credit review.
Testing and rollout: runbooks for safe deployment
A structured rollout prevents costly mistakes and customer friction. Test thoroughly in sandbox environments before shifting flows to production.
Testing checklist
- Create a staging environment or test store configured with Flow in test mode.
- Add test customers with vaulted test cards and bank accounts (use gateway-provided sandbox credentials).
- Simulate payment-term lifecycles: create orders with varying due dates and run scheduled triggers.
- Test failure scenarios: expired card, insufficient funds, invalid bank account.
- Confirm idempotency by attempting to run the Flow twice for the same due date and verify only a single charge is attempted.
- Validate notifications (both success and failure) and ensure templates contain clear instructions and correct branding.
Pilot rollout
- Start with a small segment of customers: low-risk accounts with prior consent and vaulted payments.
- Monitor rate of charge success, failed attempts, and customer complaints for the first 30–90 days.
- Expand the rollout gradually, using lessons learned to refine retry logic, notification cadence, and escalation thresholds.
Operational runbooks
- Define roles: who monitors daily charge dashboards, who handles exceptions, and who updates Flow logic.
- Establish a retry policy: number of attempts, wait intervals, and escalation steps.
- Document steps for manual collection when Flow cannot complete payment.
- Keep an audit trail: who changed the Flow and when, especially for billing workflows.
Monitoring metrics to track
- Days Sales Outstanding (DSO)
- Charge success rate per attempt and cumulatively
- Number of retries per collected invoice
- Time to resolution for failed charges
- Dispute/chargeback rate on automated charges
Legal and compliance considerations every merchant must address
Automated charging affects contracts, consumer protections, and payments rules. Review these legal points before enabling charging flows.
Authorization and consent
- Obtain explicit authorization to charge stored payment methods. This can be accepted during account creation, checkout, or via signed agreements.
- Ensure the terms define when charges may be attempted (e.g., upon due date) and whether retries are permitted.
Payment-network rules
- Card networks and ACH operators set rules for storing credentials, recurring billing, and re-presentment. Review applicable network guides for compliance.
- For cross-border payments, ensure compliance with local rules governing electronic debits.
Data protection and privacy
- Storing customer billing preferences and masked payment identifiers is acceptable, but do not store PAN or raw account numbers in your systems.
- Be transparent about how you store and use payment information in your privacy policy.
Tax and invoicing
- Automated payment does not remove invoicing obligations. Provide timely invoices and any legally required tax documentation to your customer.
- In jurisdictions that require invoicing before payment, confirm your workflow issues invoices prior to attempting a charge.
Jurisdictional limits
- Some countries limit the ability to debit bank accounts across borders or require additional authorizations for recurring payments. Confirm legal permissibility with counsel if you handle international customers.
Record retention
- Keep records of authorizations, invoices, delivery confirmations, and charge outcomes for the period required by local law and card network rules.
Best practices and operational checklist
Use the following checklist to ensure a resilient, customer-friendly implementation.
Pre-launch
- Verify Flow availability and merchant permissions.
- Confirm customers have valid vaulted payment methods.
- Standardize payment-term metadata and due-date calculations.
- Draft customer-facing consent language and notification templates.
Flow design
- Implement idempotency safeguards to prevent double-charges.
- Branch for cases without vaulted payments and automate alternate collection paths.
- Log full processor responses to order metafields for auditability.
- Keep retry logic reasonable and compliant with processor rules.
Customer communication
- Notify customers in advance of upcoming automated charges (reminder 7 days and 48 hours before due date).
- Provide clear instructions to update vaulted payment methods if a charge fails.
- Offer alternative payment options (bank transfer, wire, manual card entry) when appropriate.
Operations
- Assign clear ownership for monitoring charge outcomes and handling exceptions.
- Maintain a dashboard with KPIs: success rate, DSO, retries, disputes.
- Schedule periodic reviews of Flow logic in response to business changes or processor policy updates.
Security and governance
- Use role-based access controls and audit logs for Flow creation and modification.
- Rotate credentials for any middleware integrations and limit scope of API keys.
- Ensure TLS encryption for all integration endpoints and webhook receivers.
Alternatives and complementary solutions
Automated charging is one approach to collections. Evaluate alternatives or complementary tools depending on business complexity.
Manual invoicing and human collections
- Still appropriate for high-risk accounts, new customers, or unusually large transactions. Use automated charging only after a credit approval process.
Third-party AR automation platforms
- Dedicated accounts-receivable platforms offer workflows for invoicing, collection scoring, dunning, and integrated phone/email outreach. They can be complementary if you need advanced dispute handling or legal collections.
Subscription or recurring-billing apps
- If orders are regularly recurring with identical amounts, subscription platforms may offer richer lifecycle management than a per-order charge action.
Payment authorization at checkout
- For some merchants, capturing payment at purchase (rather than extending terms) suits cash-flow requirements. Preauthorization and capture at fulfillment can also be used for staged-charge scenarios.
Hybrid models
- Use automated vaulted charging for the majority of routine Net-term customers while routing exceptions and large accounts to ERP-based workflows with manual review.
Real-world scenarios and numbers: what you can expect
Scenario 1: Regional wholesaler adopting vaulted charging for Net 30 accounts
- Starting point: 1,000 wholesale orders/month, average invoice $1,200, current DSO 35 days, AR team of three spending 20 hours/week on collections.
- After automation: success rate 92% on first try, DSO drops to 25 days, AR team time on routine collections falls by 60%.
- Business impact: quicker cash flow enabled a 15% increase in inventory turnover and a small reduction in short-term borrowing.
Scenario 2: Distributor using vaulted ACH for national retail partners
- Starting point: 200 monthly invoices with bank debit as preferred method; high cost for manual check processing.
- After automation: ACH debits succeed 88% of the time on first attempt; manual intervention limited to exceptions; bank fees reduced and remittance reconciliation simplified.
These hypothetical outcomes depend on front-end factors (customer payment data quality, authorization clarity) and back-end processing (gateway reliability, retry policies). Expect to iterate on retry schedules and customer communications to optimize success rates.
Troubleshooting common issues
Issue: Flow attempts multiple charges and double-bills
- Probable cause: Missing idempotency safeguard or parallel Flows for the same trigger.
- Fix: Add a “charge-attempted” tag or metafield before calling the charge action and condition the Flow to skip when that marker exists.
Issue: Customers report charges they did not authorize
- Probable cause: Authorization language unclear or absent at signup/checkout.
- Fix: Pause automated charging for the affected account, investigate records for consent, and update onboarding flows to capture explicit authorization.
Issue: High charge failure rate
- Probable cause: Outdated payment credentials or insufficient pre-charge validation.
- Fix: Send pre-due notifications prompting customers to confirm or update payment methods; validate card BIN and bank routing where possible; consider incremental billing or different payment channels.
Issue: Reconciliation mismatches
- Probable cause: Settlement timing mismatch between capture and settlement, or missing transaction IDs in the ERP mapping.
- Fix: Ensure transaction IDs are pushed to the ERP and reconcile against bank benefits on the deposit date rather than capture date when necessary.
Scaling beyond the first 90 days
Once the basic usage proves effective, refine and scale:
- Expand the automated charging to additional customer segments: approved new accounts, repeat purchasers, regionally-focused customers, and program participants.
- Enhance analytics: implement dashboards for success rates, churn correlation with late payments, and revenue impact of faster collections.
- Consider dynamic payment-term policies: offer early-pay discounts or tiered terms and automate the necessary charging logic.
- Integrate customer-credit scoring to decide which customers qualify for automated charging versus manual collection.
FAQ
Q: What is a vaulted payment? A: A vaulted payment is a stored, tokenized representation of a customer’s payment method—a credit card or bank account—held by the payment processor or Shopify. Tokens allow merchants to reference the payment method for future charges without exposing sensitive card or account details.
Q: Can the Charge vaulted payment for B2B order action collect partial amounts? A: Behavior depends on the merchant’s configuration and the capabilities of the payment processor. Some setups allow specifying an amount, while others default to the outstanding balance. Test your Flow in a sandbox to confirm how the action handles partial versus full captures.
Q: What happens if there is no vaulted payment on file? A: The Flow should detect this condition and branch to alternate actions: send an invoice or payment-request email, tag the order for manual follow-up, and create a task for your AR team.
Q: Are there retries built into the action? A: The action records success or failure, but retry logic is implemented in the Flow design. Create a retry branch that waits a defined period and attempts the charge again, or escalate to manual collection after a set number of attempts.
Q: How do I test this automation without charging real customers? A: Use Shopify’s test environment or a staging store with test gateway credentials and sandbox payment tokens. Create test customers and simulate due dates to verify Flow behavior for both success and failure scenarios.
Q: What legal authorizations are required to charge vaulted payments? A: Obtain explicit customer authorization to store and charge payment methods. For bank debits, document written or electronic authorization per bank network rules. Confirm country-specific regulations and card network rules for stored-credential billing.
Q: Which merchants can use this Flow? A: Merchants on Shopify plans that include Flow access and that use B2B/wholesale features can implement this action. Verify plan eligibility and any app permissions needed before deployment.
Q: How is a failed charge communicated to the customer? A: Your Flow should send a templated notification explaining the failure, the reason if available, and instructions on updating payment details or paying via an alternative channel. It should also record the failure for AR follow-up.
Q: Will automated charging increase dispute or chargeback risk? A: Any card or debit charge carries dispute risk. Proper authorization records, clear customer communication, and accurate invoicing reduce disputes. Maintain detailed logs and receipts to support dispute defenses.
Q: What integration options exist for recording successful charges? A: Use webhooks, middleware connectors, or direct API calls to push transaction details (transaction ID, amount, order number) into your ERP or accounting system for automated reconciliation.
Q: Should I notify customers before attempting the automated charge? A: Yes. Best practice is to send advance reminders (for example 7 days and 48 hours before the due date) and a receipt when the charge succeeds. Advance notification reduces surprise, improves customer experience, and lowers failure rates due to outdated payment methods.
Q: Can I schedule automated charges for different terms (Net 30, Net 60)? A: Yes, design your Flow to evaluate the order’s payment-term metadata and schedule charges accordingly. Use metafields or standardized tags to identify the correct due date and trigger the charge only when that date arrives.
Q: How do I handle refunds after an automated charge? A: Issue refunds through your Shopify admin or payment processor referencing the original transaction ID. Ensure refunds are recorded in the ERP and that inventory and accounting adjustments are made.
Q: What metrics should I monitor after enabling automated charging? A: Track DSO, charge success rate, average number of retries per invoice, dispute/chargeback rate, time to resolution for failed charges, and AR team hours saved.
Q: What are alternatives if automated charging is not suitable? A: Options include manual invoicing with human collections, third-party AR automation software, subscription billing apps (for recurring identical amounts), or prepayment at checkout.
Q: How can I reduce failed charges? A: Keep vaulted payment methods up to date, notify customers before charges, validate payment details where possible, employ intelligent retry logic, and maintain an escalation path to human collection for exceptions.
Q: Is storing vaulted payment methods PCI compliant? A: Vaulting relies on tokenization and provider-managed storage, which reduces PCI scope for the merchant but does not eliminate compliance obligations. Work with your payment provider and legal counsel to ensure full compliance with PCI DSS and local data-protection laws.
Q: Does the action work across currencies and international payments? A: The action attempts to charge the order amount in the order currency. Cross-border payments, currency conversion, and settlement depend on your payment processor and the merchant’s account configuration. Verify international support for vaulted bank debits and card processing ahead of deployment.
Automated charging of vaulted payments for B2B orders streamlines collections without sacrificing control. Thoughtful Flow design, careful testing, and strong customer communication convert what used to be a recurring headache—manual AR—into predictable, auditable cash flow. Use the checklists and recipe above to build a secure, measurable, and customer-friendly automation that fits your business cadence.