PATCH /funding-sessions/{id}. By the end of this guide you can create a request, track it to settled or failed, and reconcile the inflow in your own records.
You need an approved entity with a CAD account, and the payer’s name and email address. To find the account, call GET /accounts and use the id of the account whose currency is CAD. See Accounts.
At a glance
- You create a funding session. Nuvion emails the payer an Interac e-Transfer request.
- The payer accepts or declines the request from their bank. A request settles only after the payer accepts it, so the time to settle depends mostly on when the payer responds.
- You call
PATCH /funding-sessions/{id}until the status issettledorfailed. Each call returns the current status:processingwhile the payer hasn’t responded,pending_settlementonce the payer has accepted, thensettledorfailed. Stop after 3 days. - When the session is
settled, you credit your own records once, using the inflow to reconcile. - A settled session also sends
inflows.completedandfunding_sessions.updatedwebhooks. A declined or unanswered session sends none. Treat a webhook as a prompt to check, and pollPATCHas the source of truth.
Step 1: Create the funding session
POST /funding-sessions with funding_type: "interac". Amounts are in the smallest currency unit, so 10000 is CAD 100.00. country_code and redirect_url aren’t needed for Interac.
Response
checkout_url. The payer completes the payment from the email, and reference_number identifies the Interac request. requires_authentication is false for Interac sessions. See Create a funding session for every field.
If the create call fails or times out
Retry with the sameunique_reference. If a session with that reference already exists, whether it is open or failed, the call returns 409 error_duplicate_resource and doesn’t send the payer another request. Find the existing session with the lookup in Step 3. Don’t change the unique_reference to retry, or the payer can receive two requests.
Rules for Interac requests
A
400 has no field detail, so an unsupported meta.name, an amount outside the range and a repeat request all look the same. Check the rules above for each. A 422 names the field.
What the payer sees
The payer needs a Canadian bank account that supports Interac e-Transfer. They receive an Interac e-Transfer request at the address inmeta.email, which doesn’t have to be a Canadian address. The email shows:
- A greeting that uses
meta.name. - The amount and currency.
- Your
narrationas the message. - The requester, which is the sender the payer approves or declines, and the request date and expiry date.
- Two actions: respond to the request by choosing a financial institution, or decline it.
narration, and tells the payer to contact you with questions. The email arrives after the request expires, not at the moment it expires, and Nuvion sends no webhook for an expired session. Call PATCH to read the outcome.
Step 2: Check the outcome with PATCH
PATCH /funding-sessions/{id} is the only call that refreshes an Interac session. It takes no request body and never starts another payment. GET /funding-sessions/{id} returns the state Nuvion last stored and never checks with the payment provider, so a GET can show awaiting_user or processing after the payer has declined the request or it has expired.
A new session stays awaiting_user until your first PATCH. Call PATCH when the payer tells you they’ve paid. If you have no signal from the payer, call it every few minutes. Stop when the session is settled or failed. PATCH returns 201 on success.
201 Response
A session that fails because the payer declined has no
failure object, and its inflow keeps status_reason: "awaiting_user_input".
Repeating PATCH is safe. After the session leaves the pending state, a repeat call returns 400 error_funding_request_not_pending. Read the final status with GET /funding-sessions/{id}.
Poll until the session is final
Each example takes the session ID as its argument and reads your API key fromNUVION_API_KEY. It calls PATCH, falls back to GET when the session has already ended, and stops on settled, failed, expired or cancelled. Otherwise it waits three minutes and calls PATCH again. The JavaScript example needs Node 18 or later, the Python example uses the requests package, and the Go example needs Go 1.21 or later.
Step 3: Reconcile the inflow
Reconciling means matching the money in your account to the order that caused it. Every funding session has one inflow transaction, which Nuvion creates with the session. Credit your own records only when the session issettled.
1. Look up the inflow
Filter transfers by theunique_reference you sent when you created the session.
2. Check that it matches
Before you act on the inflow, confirm all of the following:data.datahas exactly one item.meta.funding_session_idis the ID of the session you created.amountandcurrencyare what you requested.
3. Read the inflow’s status and fee
The inflow should agree with the session status fromPATCH. What to do for each status is in Step 2.
applicable_fee is 0 until the session settles. Afterwards it is the fee your fee rules charge for the collection, so don’t assume it stays 0. The examples here show 100, which is CAD 1.00. The account is credited the payer’s amount less applicable_fee. Read the fee from the inflow after settled and record it, and account for it when you set your own platform fee.
A settled session also sends inflows.completed to your webhook endpoint with the same inflow, and a funding_sessions.updated event for the session. A declined session sends neither.
inflows.completed
4. Credit once
Key the credit on yourunique_reference, so that running the check twice can’t credit the same order twice. See Find the inflow for a session for the inflow’s fields, and Confirm state before acting.
Collect into a customer’s account
If you run a platform, you can collect straight into one of your customers’ accounts, so a payer pays that customer directly. Create the funding session with your own API key, and setentity_id to the customer’s entity and account_id to that customer’s CAD account. The request is the same as in Step 1 with those two fields added, and the response has the same fields. See Managing child entities.
PATCH /funding-sessions/{id} with your own key. To look up the inflow, pass the customer’s entity_id as well, or the lookup returns no results.
Test end to end
An Interac request has three possible outcomes. The sandbox can produce two of them. A payment that settles needs a real Canadian bank account, so test it in production.
Before every run, give the request an email address you can open and a
narration or amount you haven’t used for that address. A repeat of an earlier request returns 400 error_validation_invalid_format, so change the narration for each run.
Test a decline in the sandbox
- Create a session with your own email address in
meta.email. - Open the Interac email and decline the request.
- Call
PATCH /funding-sessions/{id}. The session moves tofailed, and the inflow moves tofailedtoo.
Test an expiry in the sandbox
- Create a session with your own email address in
meta.email, and don’t respond to the request. - Call
PATCH /funding-sessions/{id}while the request is open. The status staysprocessing. - Wait two days, then call
PATCHagain. The session isfailed, and the inflow isfailedwithstatus_reason: "awaiting_user_input". - Look for the second Interac email. It arrives after the request expires, not at the moment it expires.
Test a settled payment in production
You can’t complete an Interac payment in the sandbox. Before general release, make one small live payment in production:- Create a session for the minimum amount,
100(CAD 1.00), with an email address you can open. - Accept the request from a Canadian bank account that supports Interac e-Transfer.
- Call
PATCH /funding-sessions/{id}until the status issettled. The firstPATCHreturnsprocessing, and the next returnspending_settlementonce the payer accepts. - Look up the inflow as in Step 3. It is
successful, andapplicable_feeshows what the collection cost. - Check that your webhook endpoint received
inflows.completedandfunding_sessions.updated.
Troubleshooting
Before you go live
- Call
PATCHon a schedule for every open session, and stop when the session issettledorfailed. - Use a different narration or amount for each request to the same payer.
- Remove accents and other unsupported characters from
meta.namebefore sending it. - Credit your own records once, only after
settled, and key the credit onunique_reference. - Don’t rely on webhooks alone to learn the outcome. If you also consume
inflows.completed, verify the signature and de-duplicate onx-nuvion-event-id. See Webhooks.
What’s next
Funding sessions
All funding rails, statuses and webhooks.
Funding Session API reference
Full endpoint documentation for creating, updating, and retrieving funding sessions.
Send a payout
Send CAD to a recipient by Interac.

