This step assumes you’ve created a Customer for the user that you’ve authenticated or will authenticate with Plaid. Using the processor_token
obtained from the previous step, you’ll pass this in as the value of the plaidToken
request parameter; along with a funding source name
in the request to create a funding source for a Customer.
var customerUrl =
"https://api-sandbox.dwolla.com/customers/AB443D36-3757-44C1-A1B4-29727FB3111C";
var requestBody = {
plaidToken: "processor-sandbox-161c86dd-d470-47e9-a741-d381c2b2cb6f",
name: "Jane Doe’s Checking",
};
dwolla
.post(`${customerUrl}/funding-sources`, requestBody)
.then((res) => res.headers.get("location")); // => 'https://api-sandbox.dwolla.com/funding-sources/375c6781-2a17-476c-84f7-db7d2f6ffb31'
Once you’ve received a successful response from the API, you’ll use the unique funding source URL to identify the Customer’s bank when initiating ACH transfers.
Use sandbox environment to test API requests.
All funds transfers made using the Dwolla Platform are performed by a financial institution partner, and any funds held in a Dwolla Balance are held by a financial institution partner. Learn more about our financial institution partners.