Documentation Index
Fetch the complete documentation index at: https://developers.dwolla.com/llms.txt
Use this file to discover all available pages before exploring further.
dwolla-php is available on Packagist with source code available on our GitHub page.
Getting Started
Installation
The SDK relies on Composer to manage its dependencies. To install the SDK and add it as a dependency to an existingcomposer.json file:
Initialization
Before any API requests can be made, you must first determine which environment you will be using, as well as fetch the application key and secret. To fetch your application key and secret, please visit one of the following links:- Production: https://dashboard.dwolla.com/applications
- Sandbox: https://dashboard-sandbox.dwolla.com/applications
Dwolla with your application credentials:
Making Requests
Once you’ve created aDwolla client, you can make requests using the SDK methods.
High-Level SDK Methods
The PHP SDK provides strongly-typed methods for all Dwolla API operations:Authentication
The SDK supports multiple authentication schemes:OAuth2 Client Credentials (Recommended)
Application Access Token Creation
When creating application access tokens, you’ll need to provide Basic Authentication at the request level:Working with Transfers
Working with Funding Sources
Error Handling
The SDK provides comprehensive error handling with typed exception classes:Errors\APIException exception, which has the following properties:
| Property | Type | Description |
|---|---|---|
$message | string | The error message |
$statusCode | int | The HTTP status code |
$rawResponse | ?\Psr\Http\Message\ResponseInterface | The raw HTTP response |
$body | string | The response content |
Server Selection
You can specify which Dwolla environment to use:| Name | Server | Description |
|---|---|---|
prod | https://api.dwolla.com | Production server |
sandbox | https://api-sandbox.dwolla.com | Sandbox server |
Available Resources and Operations
The SDK provides access to the following resources:- Root - API entry point
- Tokens - Application access token management
- Accounts - Account details, funding sources, transfers, mass payments, and exchanges
- Customers - Customer management, beneficial owners, documents, funding sources, transfers, labels, KBA, and exchanges
- Beneficial Owners - Beneficial owner management and documents
- Business Classifications - Business classification lookup
- Documents - Document retrieval
- Events - Event listing and retrieval
- Exchange Partners - Exchange partner management
- Exchanges - Exchange resource management and sessions
- Exchange Sessions - Exchange session management
- Funding Sources - Funding source management, balances, micro-deposits, and VAN routing
- KBA - Knowledge-based authentication
- Labels - Label management, ledger entries, and reallocations
- Mass Payments - Mass payment initiation and management
- Transfers - Transfer initiation, retrieval, cancellation, and fee management
- Webhooks - Webhook retrieval and retry management
- Webhook Subscriptions - Webhook subscription management
- Sandbox Simulations - Bank transfer processing simulation (Sandbox only)
Community
- If you have any feedback, please reach out to us on our forums or by creating a GitHub issue.
- While we value open-source contributions to this SDK, this library is generated programmatically. Any manual changes added to internal files will be overwritten on the next generation. We look forward to hearing your feedback. Feel free to open a PR or an issue with a proof of concept and we’ll do our best to include it in a future release.