Introduction
What a payment request is
A payment request asks someone (the payer) to pay you by Interac e-Transfer. The payer is emailed a link to pay, and once they pay, the money is credited to your own wallet: a wallet of the user the API key belongs to.
Payment requests are incoming only: they bring money in. To send money out, use an e-Transfer, an EFT or a wire.
Every request is signed with your API key as described in Authentication.
Making a request
POST /v1/etransfer-requests{
"fundingSourceId": "8d46fc63-27e7-47f5-b48d-fb72c16fa10b",
"amount": "250.00",
"payerName": "Jane Doe",
"payerEmail": "[email protected]",
"description": "Invoice 1042"
}| Field | Rules |
|---|---|
fundingSourceId | One of your own active wallets that can receive payment requests. Otherwise a 400. |
amount | From 5.00 to 25,000.00, at most 2 decimals, and more than the payment request fee. |
payerName | Required. |
payerEmail | A valid email address, 6 to 50 characters. The payer is emailed the link to pay here. |
description | Required. Shown to the payer. 5 to 200 characters: letters, digits, spaces and .#,$@'. |
A request that breaks a rule is refused with a 400 and a message saying which.
The response is the request, normally pending:
{
"id": "3c82b8da-475b-40ed-9237-38b674cb106f",
"fundingSourceId": "8d46fc63-27e7-47f5-b48d-fb72c16fa10b",
"amount": "250.00",
"currency": "CAD",
"payerName": "Jane Doe",
"payerEmail": "[email protected]",
"description": "Invoice 1042",
"status": "pending",
"interacReferenceNumber": "CA1MRqUtGbXd",
"paymentUrl": "https://...",
"transactionId": null,
"failureReason": null,
"expiresAt": 1793438400000,
"completedAt": null,
"createdAt": 1793265600000
}paymentUrl: the link the payer was emailed.failureReason: set on apendingrequest when the payer couldn't be emailed; re-send it (see below).expiresAt,completedAt,createdAt: Unix time in milliseconds.
A request can't be cancelled once made. Unpaid, it expires after 48 hours.
When the request can't be made
If Interac can't make the request, the call returns an error, and the request is kept with status failed and its failureReason. Find it with GET /v1/etransfer-requests?status=failed and re-send it.
Fees
The payment request fee comes from your tariff and is taken from the payment when it arrives: the wallet is credited the amount less the fee. Quote it before making the request:
POST /v1/funding-sources/calculate-fee{ "amount": "250.00", "category": "requestEtransfer" }Knowing when a request is paid
A paid request creates a transaction in your wallet, of category etransferRequest, which:
- fires the
transactionCreatedwebhook, when you have a webhook URL registered, and - shows on the request:
GET /v1/etransfer-requests/{id}returns itpaid, with thetransactionIdit was credited as andcompletedAt.
The request is marked paid just after its transaction is created, so a request fetched the instant the webhook arrives may not read paid yet; fetch it again shortly.
Payment requests have no webhook of their own. To follow requests, poll GET /v1/etransfer-requests?status=pending,processing, or use transactionCreated.
Re-sending a request
POST /v1/etransfer-requests/{id}/resend- A
failedrequest is sent to Interac again as the same request (sameid), with a fresh 48 hours. - A
pendingrequest that hasn't expired has the same payment link emailed to the payer again, at most once every 10 minutes. - Any other request can't be re-sent (
400): make a new one.
Listing requests
GET /v1/etransfer-requests?status=pending,processing&sort=descending&page=0&pageSize=20status: comma-separated statuses to include (all when left out).sort: by creation date,descending(default) orascending.page(from 0) andpageSize(1 to 100, default 20).
Request statuses
status | Meaning |
|---|---|
pending | Sent to the payer, not paid yet. |
processing | The payer has paid; the money has not landed yet. |
paid | Paid and credited to the wallet (transactionId). |
expired | Not paid within 48 hours. |
declined | The payer declined it. |
failed | The request could not be made (failureReason). Re-send it. |