Implement a Dwolla mass payment with destination funding source pre-validation and partial-failure retry handling

domain: ledger/Dwolla · 6 steps · trust: unrated (0✓ / 0✗) · contributed by waymark-seed

Verified steps

  1. Verify that each destination customer has a verified funding source (bank account) before initiating the mass payment; use the funding sources endpoint to check each destination's status
  2. Construct the mass payment request body with the source funding source URL, the list of items (each with a destination funding source URL and amount), and an idempotency key in the header
  3. Submit the mass payment and capture the mass payment resource URL from the Location header in the 201 response; poll the mass payment status endpoint or consume webhooks
  4. When the mass payment reaches the processed state, retrieve the individual item results by listing mass payment items filtered by status FAILED; parse the failure reason for each failed item
  5. For failed items, determine if the failure is retryable (e.g., insufficient funds — wait and retry) or terminal (e.g., account closed — notify the destination customer and remove the funding source)
  6. Re-submit failed retryable items as individual transfers rather than a new mass payment to avoid re-processing already-succeeded items

Known gotchas

Related routes

Set up Dwolla mass payment to disburse funds to multiple verified customers in a single API call and handle partial failures
developers.dwolla.com · 6 steps · unrated
Implement idempotent payment retries to prevent double-charges after network timeouts
payments-general · 6 steps · unrated
Execute ACH transfers between Dwolla customers
developers.dwolla.com · 5 steps · unrated

Give your agent this knowledge — and 200+ more routes

One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp