DWELLO PAYMENTS INTEGRATION GUIDE

From portal access to a reliable payment workflow.

This checklist covers the deliberate path: create the right environment assets, build an idempotent request flow, configure a receiver, prove it in test, and then launch production.

1Key + verified bank
2Create + store RequestID
3Webhook + reconciliation
01

Credentials and bank setup

Create isolated test and production assets.

Sign in to the Dwello Payments portal. Use its environment selector deliberately: test and production use separate API keys and bank tokens.

  1. Create an API key.Generate a key in the target environment and place it in your server-side secret store. A key begins with DP-; treat the full value as a password.
  2. Add a deposit bank.Use Plaid Link or the manual verification path. A bank token becomes usable for payment requests only after the bank is active and verified.
  3. Copy the bank token safely.Associate it with the same environment as the API key. Never mix a test bank token with a production key, or vice versa.
  4. Record ownership.Document the Dwello environment, credential owner, deployment secret location, and rotation procedure in your operational runbook.
Environment boundaryStart in Test. Use a production API key and production bank token only after your business workflow, webhook receiver, and reconciliation process have been accepted for launch.
02

Build the workflow

Create once, persist identifiers, and track the outcome.

1

Create an internal payment record

Generate your own reference number and a unique idempotency token before calling Dwello. Persist both before sending the HTTP request.

2

Create the payment request

Call POST /api/Request/Create with one debtor contact method, an active verified bank token, an amount in CAD, and your reference.

3

Store the request GUID

On a successful response, save requestID alongside your record. This is the key used by retrieval, webhook processing, and support.

4

Reconcile the result

Use the webhook as a prompt and GET /api/Request/{RequestID} as the detailed record. Complete your own payment state only after applying your reconciliation rule.

Do not use a create response as proof of payment.It confirms creation of a payment request, not completion. A completed request is represented by Status: "Completed".

Request preparation

Validate fields before your first request.

Use these limits for POST /api/Request/Create. Required values must not be blank. The payment-text notes describe API validation and bank-compatible input rules.

FieldTypeRequiredRules and behaviour
referenceNumberstringYesUp to 50 characters. No field-specific character filter is applied. Prefer letters, digits, hyphens or underscores for portable identifiers. Returned in webhooks and retrieval responses.
debtorFirstNamestringYesUp to 30 characters. English/French letters, spaces and permitted punctuation; follow the payment-text rules below.
debtorLastNamestringYesUp to 50 characters. English/French letters, spaces and permitted punctuation; follow the payment-text rules below. Provide with the debtor identity.
debtorEmailAddressstringOne contact method5–60 characters. Use an ASCII email address with one @ and a dotted domain; no accents, commas or spaces. Provide either this field or debtorMobilePhoneNumber, not both.
debtorMobilePhoneNumberstringOne contact methodExactly 10 ASCII digits (0–9), including area code. No country code, +, spaces, parentheses or hyphens. Provide either this field or debtorEmailAddress, not both.
creditorEmailAddressstringNo5–60 characters when supplied; the same ASCII email rules as debtorEmailAddress. This is the creditor/requestor notification address. If omitted, the API uses the authenticated user's email; do not copy the debtor email unless intentional.
bankTokenstringYesCopy the issued token unchanged: 32 lowercase hexadecimal characters (0–9, a–f), without GUID hyphens. Must identify an active, verified deposit bank belonging to the API-key account.
languagePreferencestringNoTwo letters: en or fr (English/French). Use lowercase for bank compatibility; default is en.
requestDateISO 8601 datetimeNoISO 8601 datetime with an explicit UTC Z, for example 2026-09-09T16:05:00Z. Defaults to current UTC time. Do not label local time as UTC.
endCreditorNamestringYesUp to 50 characters (storage limit). Individual/company name shown to the payer; follow the payment-text rules below.
reminderFrequencyintegerNoFrom 1 to 5. Defaults to 5.
reminderCountintegerNoFrom 1 to 5. Defaults to 5.
amountnumberYesPositive CAD amount, at most 10000.00 under the supplied Bulk Request guide, with at most two decimal places. Send a JSON number using a decimal point; no currency sign or thousands separators. These limits are enforced by the API.
emailBodystringNoUp to 420 characters, exported in up to three 140-character memo elements. Use the payment-text rules and bank-compatible memo punctuation below. Omit, send null or an empty string when no memo is needed.
idempotencyTokenstringNoMaximum 50 characters; no dedicated character filter is applied. Prefer letters, digits, hyphens or underscores (a GUID is suitable). Reuse the exact value for the same business request. Duplicate tokens for the same account are rejected, rather than returning the original success response.
Payment text: characters and length For debtorFirstName, debtorLastName, endCreditorName and emailBody, use plain text with English/French letters, digits and spaces. Send actual accented characters in UTF-8 JSON, not HTML entities. Limits include spaces and punctuation. The API rejects these characters: < > % { } [ ] & # \ ". It also rejects the substrings http:, https:, javascript, function, return and www, case-insensitively, even inside a longer word. For bank-compatible memos, use these supported punctuation characters: . ! @ / ; : , ' $ = ^ ? * ( ), plus French characters. Line breaks are allowed in the bank memo format. Emoji, smart quotes, em/en dashes and hyphens are rejected in memos; use a space or colon instead. Names allow ordinary hyphens. The API enforces these lengths and character rules and returns field-specific validation errors. Supply both debtor name fields and exactly one debtor contact method. Names and memos accept ASCII letters and digits, the French accented letters À Â Æ Ç É È Ê Ë Î Ï Ô Œ Ù Û Ü Ÿ (and lowercase equivalents), spaces and the punctuation listed above. Names also allow hyphens; memos allow CR/LF line breaks. Other characters, including tabs, are rejected. A valid request still requires an active, verified bank belonging to your account.
03

Webhook configuration

Build a fast, idempotent receiver.

Set your HTTPS receiver URL in the Payments portal under Keys and Webhooks. Dwello posts a JSON notification for the current terminal delivery states: Completed and UserCancelled.

Example notification

application/json
{
  "RequestID": "1f3da3f9-6bb1-46d9-9e2a-3846b877965e",
  "ReferenceNumber": "invoice-1042",
  "Date": "2026-08-03T15:42:18.247-04:00",
  "Status": "Completed",
  "Amount": 125.00
}
RequestIDSave as your receiver idempotency key, paired with the status.
ReferenceNumberMatch to your internal business record.
StatusUse the exact status string; the API reference lists the complete status enum.
AmountOriginal requested amount, in CAD.
1

Accept JSON over HTTPS. Return an explicit 2xx response once the notification is safely queued or recorded.

2

Deduplicate. Make webhook handling safe to run more than once for the same RequestID and status.

3

Do not block the request. Queue slow database, email, or accounting work after a quick acknowledgement.

4

Reconcile through the API. Use the request retrieval endpoint before irreversible fulfilment or accounting actions.

The sender accepts 2xx as successful and retries failed deliveries up to five times after the initial attempt, waiting 1, 2, 4, 8, and 16 seconds. Retries reuse the same payload and run in-process; they do not survive a service restart. No signature header is provided. Handle duplicate deliveries and use request retrieval for periodic reconciliation.

04

Test and reconcile

Prove both the happy path and recovery path.

Create a requestVerify that a valid request returns a GUID and your reference is retained.
Prevent duplicatesRetry a simulated timeout with the same idempotency token and confirm that your system does not create a second business payment.
Retrieve by GUIDFetch the request and display the returned status, dates, and credits correctly.
Handle cancellationExercise cancellation while the request is eligible and handle UserCancelled without treating it as completed.
Receive a webhookUse the portal's test-send action, verify 2xx handling, and confirm duplicate receiver safety.
Reconcile dailyCompare your internal records with request retrieval results and investigate any unmatched request IDs.
05

Production launch

Switch environments only when operations are ready.

Before enabling production

  • Use production-specific API key and verified bank token.
  • Store secrets in deployment configuration, not application code.
  • Confirm HTTPS certificate validation and outbound network access.
  • Set alerts for failed requests, webhook errors, and reconciliation exceptions.

After enabling production

  • Monitor initial payment requests and webhook acknowledgements.
  • Reconcile request statuses against your ledger or accounting system.
  • Rotate or revoke keys promptly when roles, systems, or exposure risk changes.
  • Keep request IDs and your reference numbers available for support investigations.
Reference materialUse the API reference for field-level contracts, error handling, exact webhook fields, and the customer-facing request lifecycle.