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.
DWELLO PAYMENTS INTEGRATION GUIDE
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.
Key + verified bankCreate + store RequestIDWebhook + reconciliationCredentials and bank setup
Sign in to the Dwello Payments portal. Use its environment selector deliberately: test and production use separate API keys and bank tokens.
DP-; treat the full value as a password.Build the workflow
Generate your own reference number and a unique idempotency token before calling Dwello. Persist both before sending the HTTP request.
Call POST /api/Request/Create with one debtor contact method, an active verified bank token, an amount in CAD, and your reference.
On a successful response, save requestID alongside your record. This is the key used by retrieval, webhook processing, and support.
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.
Status: "Completed".Request preparation
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.
| Field | Type | Required | Rules and behaviour |
|---|---|---|---|
referenceNumber | string | Yes | Up 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. |
debtorFirstName | string | Yes | Up to 30 characters. English/French letters, spaces and permitted punctuation; follow the payment-text rules below. |
debtorLastName | string | Yes | Up to 50 characters. English/French letters, spaces and permitted punctuation; follow the payment-text rules below. Provide with the debtor identity. |
debtorEmailAddress | string | One contact method | 5–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. |
debtorMobilePhoneNumber | string | One contact method | Exactly 10 ASCII digits (0–9), including area code. No country code, +, spaces, parentheses or hyphens. Provide either this field or debtorEmailAddress, not both. |
creditorEmailAddress | string | No | 5–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. |
bankToken | string | Yes | Copy 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. |
languagePreference | string | No | Two letters: en or fr (English/French). Use lowercase for bank compatibility; default is en. |
requestDate | ISO 8601 datetime | No | ISO 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. |
endCreditorName | string | Yes | Up to 50 characters (storage limit). Individual/company name shown to the payer; follow the payment-text rules below. |
reminderFrequency | integer | No | From 1 to 5. Defaults to 5. |
reminderCount | integer | No | From 1 to 5. Defaults to 5. |
amount | number | Yes | Positive 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. |
emailBody | string | No | Up 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. |
idempotencyToken | string | No | Maximum 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. |
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.
Webhook configuration
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.
{
"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.Accept JSON over HTTPS. Return an explicit 2xx response once the notification is safely queued or recorded.
Deduplicate. Make webhook handling safe to run more than once for the same RequestID and status.
Do not block the request. Queue slow database, email, or accounting work after a quick acknowledgement.
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.
Test and reconcile
UserCancelled without treating it as completed.Production launch