Skip to main content
Use an Interac funding session to collect CAD from a payer. Nuvion sends the payer an Interac e-Transfer request by email; the payer accepts it from their Canadian bank, and you confirm the outcome by calling 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

  1. You create a funding session. Nuvion emails the payer an Interac e-Transfer request.
  2. 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.
  3. You call PATCH /funding-sessions/{id} until the status is settled or failed. Each call returns the current status: processing while the payer hasn’t responded, pending_settlement once the payer has accepted, then settled or failed. Stop after 3 days.
  4. When the session is settled, you credit your own records once, using the inflow to reconcile.
  5. A settled session also sends inflows.completed and funding_sessions.updated webhooks. A declined or unanswered session sends none. Treat a webhook as a prompt to check, and poll PATCH as 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
The response has no 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 same unique_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 in meta.email, which doesn’t have to be a Canadian address. The email shows:
  • A greeting that uses meta.name.
  • The amount and currency.
  • Your narration as 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.
In the sandbox, the request comes from a shared test sender, not from your business, and the expiry date is two days after the request. In production, a request expires three days after you create it. If the payer doesn’t respond before then, Interac sends them a second email saying the request has expired. It repeats the amount, the date of the request and your 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 from NUVION_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 is settled.

1. Look up the inflow

Filter transfers by the unique_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.data has exactly one item.
  • meta.funding_session_id is the ID of the session you created.
  • amount and currency are what you requested.

3. Read the inflow’s status and fee

The inflow should agree with the session status from PATCH. 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
See Event types for the full payload schema.

4. Credit once

Key the credit on your unique_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 set entity_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.
The inflow belongs to the customer’s entity and account. You still call 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.
To hold the money before it reaches the customer, or to pay a customer who isn’t on Nuvion, collect into your own account instead and then pay out. Use a book transfer to another Nuvion account, or an Interac payout from Send a payout.

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

  1. Create a session with your own email address in meta.email.
  2. Open the Interac email and decline the request.
  3. Call PATCH /funding-sessions/{id}. The session moves to failed, and the inflow moves to failed too.

Test an expiry in the sandbox

  1. Create a session with your own email address in meta.email, and don’t respond to the request.
  2. Call PATCH /funding-sessions/{id} while the request is open. The status stays processing.
  3. Wait two days, then call PATCH again. The session is failed, and the inflow is failed with status_reason: "awaiting_user_input".
  4. Look for the second Interac email. It arrives after the request expires, not at the moment it expires.
Production works the same way with a three-day window.

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:
  1. Create a session for the minimum amount, 100 (CAD 1.00), with an email address you can open.
  2. Accept the request from a Canadian bank account that supports Interac e-Transfer.
  3. Call PATCH /funding-sessions/{id} until the status is settled. The first PATCH returns processing, and the next returns pending_settlement once the payer accepts.
  4. Look up the inflow as in Step 3. It is successful, and applicable_fee shows what the collection cost.
  5. Check that your webhook endpoint received inflows.completed and funding_sessions.updated.
See Sandbox and testing for the other sandbox behaviors.

Troubleshooting


Before you go live

  • Call PATCH on a schedule for every open session, and stop when the session is settled or failed.
  • Use a different narration or amount for each request to the same payer.
  • Remove accents and other unsupported characters from meta.name before sending it.
  • Credit your own records once, only after settled, and key the credit on unique_reference.
  • Don’t rely on webhooks alone to learn the outcome. If you also consume inflows.completed, verify the signature and de-duplicate on x-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.