Skip to main content

The new Dwolla API V2 SDK, as generated by this fork of swagger-codegen.

Version

1.0.9

Installation

dwollaswagger is available on PyPi, and therefore can be installed automagically via pip.

To install via pip:

pip install dwollaswagger

To add to ``requirements.txt`` and make this a permanent dependency of your package:

YourApp
SomeLibrary==1.2.3
dwollaswagger>=1.0.0
pip install -r requirements.txt

To install directly from source:

git clone https://github.com/Dwolla/dwolla-swagger-python && cd dwolla-swagger-python && python setup.py install

OS X users may need to run ``setup.py`` as a privileged user.

Quickstart

dwollaswagger makes it easy for developers to hit the ground running with our API. Before attempting the following, you should ideally create an application key and secret.

Configuring a client

To get started, all you need to set is the access_token and host values.

dwollaswagger.configuration.access_token = 'token'

# For UAT/Sandbox
client = dwollaswagger.ApiClient('https://api-uat.dwolla.com')

# For Production
client = dwollaswagger.ApiClient('https://api.dwolla.com')

List 10 customers

Now that we’ve set up our client, we can use it to make requests to the API. Let’s retrieve 10 customer records associated with the authorization token used.

dwollaswagger.configuration.access_token = 'token'
client = dwollaswagger.ApiClient('https://api-uat.dwolla.com')

customers_api = dwollaswagger.CustomersApi(client)
my_custies =  customers_api.list(limit=10)

my_custies will be a Python list that consists of Customer objects.

Creating a new customer

To create a customer, we can either provide a dict with the expected values, or a CreateCustomer object.

customers_api = dwollaswagger.CustomersApi(client)

location = customers_api.create(body = {
    'firstName': "Jennifer",
    'lastName': "Smith",
    'email': "jsmith@gmail.com",
    'phone': "7188675309"})

or

customers_api = dwollaswagger.CustomersApi(client)

new_cust = dwollaswagger.CreateCustomer
new_cust.first_name = "Jennifer"
new_cust.last_name = "Smith"
new_cust.email = "jsmith@gmail.com"
new_cust.phone = "7188675309"

location = customers_api.create(body=new_cust)

location will contain a URL to your newly created resource (HTTP 201 / Location header).

Modules

dwolla-python-swagger contains API modules which allow the user to make requests, as well as models which are DAOs that the library uses to serialize responses.

API

Each API module is named in accordance to (Dwolla’s API Spec and encapsulates all of the documented functionality.

  • AccountsApi

  • BusinessclassificationsApi

  • CustomersApi

  • DocumentsApi

  • EventsApi

  • FundingsourcesApi

  • RootApi

  • TransfersApi

  • WebhooksApi

  • WebhooksubscriptionsApi


API objects take an ApiClient argument, which you created here.

Example

doc_api = dwollaswagger.DocumentsApi(your_client_object)

Models

Each model represents the different kinds of requests and responses that can be made with the Dwolla API.

  • AccountInfo

  • Amount

  • ApplicationEvent

  • BaseObject

  • BusinessClassification

  • BusinessClassificationListResponse

  • CreateCustomer

  • CreateFundingSourceRequest

  • CreateWebhook

  • Customer

  • CustomerListResponse

  • Document

  • DocumentListResponse

  • EventListResponse

  • FundingSource

  • FundingSourceListResponse

  • HalLink

  • Money

  • Transfer

  • TransferListResponse

  • TransferRequestBody

  • Unit

  • UpdateCustomer

  • VerificationToken

  • VerifyMicroDepositsRequest

  • Webhook

  • WebhookAttempt

  • WebhookEventListResponse

  • WebhookHeader

  • WebhookHttpRequest

  • WebhookHttpResponse

  • WebhookListResponse

  • WebhookRetry

  • WebhookRetryRequestListResponse

  • WebhookSubscription

README

In order for the library’s README file to display nicely on PyPi, we must use the *.rst file format. When making changes to this README file, please use this tool to convert the *.md file to *.rst, and make sure to keep both files updated.

Changelog

1.0.9 * API schema updated, CustomersAPI supports Customer search, new softDelete method in FundingSourcesApi.

1.0.8 * API schema updated, new MasspaymentsApi and MasspaymentitemsApi. New MassPayment and MassPaymentItem models.

1.0.7 * API schema updated, TransfersApi has new endpoints for cancel a transfer and get a transfer’s fees, new OndemandauthorizationsApi. * Existing MicroDeposits and Documents models updated, new FacilitatorFeeRequest, Authorization, and UpdateTransfer models.

1.0.6 * Patch datetime issue in Models.

1.0.5 * API schema error fixed, FundingSource object now has _embedded key to fix serialization issues.

1.0.4 * API schema updated, CustomersApi has new endpoints for IAV verification. * Existing Customer related models updated, new VerificationToken model. * (release skipped, features in 1.0.5)

1.0.3 * API schema updated, RootApi now added. * Changed auth_token to access_token in compliance with RFC-6749 recommended nomenclature.

1.0.2 * API schema updated, new methods in FundingsourcesApi. * All methods which take Swagger variables in path (e.g, /resource/{id}) can now be passed a resource URL to make it easier for HAL-styled API consumption. * More idiomatic response logic for HTTP 201 responses. * Fix syntax error in README

1.0.1 * API schema updated, new methods in CustomersApi and TransfersApi

1.0.0 * Initial release.

Credits

This wrapper is semantically generated by a fork of swagger-codegen. - swagger-codegen contributors - David Stancu

License

Copyright 2015 Swagger Contributors, David Stancu

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Release files for dwollaswagger 1.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dwollaswagger 1.0.9
File Size Uploaded
dwollaswagger-1.0.9.tar.gz 20.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dwollaswagger 1.0.9
File Interpreter ABI Platform
dwollaswagger-1.0.9-py2-none-any.whl Python 2 none any Details

Total release size: 111.8 kB

Release files / dwollaswagger-1.0.9.tar.gz

Download URL dwollaswagger-1.0.9.tar.gz
Size 20.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9f5806eef8afa0c6f7dbd0bf9231673ad283bf60d6295746681ee692de770146
BLAKE2b-256 checksum
How to use checksums
e70019c7a8ba587a86f87ec845fc1611f071ab0ab59a06591d144fcb7c8e9d5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / dwollaswagger-1.0.9-py2-none-any.whl

Download URL dwollaswagger-1.0.9-py2-none-any.whl
Size 91.1 kB
Tags Python 2
SHA-256 checksum
How to use checksums
995ead86c53461c8cab53112da1e19c56cb8a856c8a244b3b97b5506e5974c47
BLAKE2b-256 checksum
How to use checksums
643930e3a1395597307b35b334e93345dcbb7ba8395e3a692187349eb3df3021
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.9 This release

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page