Overview
Paid posts every transaction in your bank account directly into Slack, Teams, email or your own webhooks.
Paid is a service built and hosted by Volley that makes it easy to connect your bank account to channels where your team works. You can use Paid to send notifications about debits or credits in your bank account to services like Slack, Teams, or your own systems via secure webhooks.
You don't have to be a Volley customer to use Paid, and you can set it up yourself in a few minutes by authorising connections to your bank and adding the channels where you want to get notified.
Paid runs on Volley's direct connections to New Zealand banks under the Consumer Data Right (CDR). Volley is an accredited requestor of account data and payments under the CDR and is ISO 27001 certified.
Paid's access to your bank account is strictly read-only and this is enforced by security rules at your bank. There's no way for money to leave your account as a result of using Paid.
How it works
- Connect your bank. Authorise Paid to read your account's transactions through open banking.
- Choose a destination. Pick Slack, Teams, email or a webhook endpoint for notifications.
- Get notified. Each time a transaction occurs on your account, Paid sends a notification to your destinations.
Paid refreshes your bank transactions on an adaptive schedule designed around New Zealand Settlement Before Interchange (SBI) interbank clearing windows. We'll let you know when we can see that funds are in your account, but this could be 1-2 hours after a payment has been sent to you.
Webhooks
Paid sends webhooks to your backend via an HTTP POST request. The format of a webhook for transactions received by Paid is below.
{
"type": "transaction.received",
"version": "1",
"data": {
"id": "txnd_8c4563239013f6c9bbef6d1fcbbe4a26efb38defd378b542ebd0944e3143eb39",
"direction": "credit",
"amount": {
"value": "1240.70 NZD",
"formatted": "$1240.70"
},
"description": "Payment from James McCann",
"pcr": {
"particulars": "INV-234",
"code": "",
"reference": ""
},
"counterparty": {
"name": "James McCann",
},
"bank_account": {
"id": "paidaccount_wh73OibCZNCY2hp8dJCVA",
"account_number": "01-1234-1234567-00",
"account_name": "Acme Ltd"
},
"booked_at": "2026-10-14T11:41:04+13:00",
"received_at": "2026-10-14T11:41:04+13:00"
}
}Paid webhooks have the following shape
Authentication
Webhook requests from Paid are signed using Ed25519 following the Standard Webhooks specification. This allows you to check the request legitimately came from Paid, preventing malicious use or spoofing.
Each request includes the following headers:
webhook-id: notification_2kJ8fQ0sV9aXcN4mT7bLp
webhook-timestamp: 1792021264
webhook-signature: v1a,K5oZfzN95Z9UVu1EsfQmfVNQhnkZ2pj9o9NDN/H/pI4M...| Header | Description |
|---|---|
webhook-id | A unique ID for the event. This is the same across retries, so you can use it to ignore duplicates. |
webhook-timestamp | The time the request was sent, as Unix seconds. |
webhook-signature | The base64 encoded Ed25519 signature, prefixed with v1a,. |
You can find your webhook's public key in the Paid app after creating your webhook. Public keys
are prefixed with whpk_. Unlike a shared secret, your public key can only be used to verify
signatures and doesn't need to be kept secret.
Validating the signature
To validate the signature on an incoming webhook request:
- Remove the
whpk_prefix from your public key and base64 decode it to get the raw 32-byte Ed25519 public key. - Remove the
v1a,prefix from thewebhook-signatureheader and base64 decode it. - Build the signed content by joining the
webhook-idheader, thewebhook-timestampheader and the raw request body with a., e.g.{webhook-id}.{webhook-timestamp}.{body}. - Verify the signature over the signed content using the public key.
You should also reject requests with a webhook-timestamp more than 5 minutes old to prevent replay attacks.
#!/bin/bash
PAYLOAD='<Webhook HTTP request body>'
WEBHOOK_ID='<webhook-id header>'
WEBHOOK_TIMESTAMP='<webhook-timestamp header>'
WEBHOOK_SIGNATURE='v1a,... <webhook-signature header>'
PUBLIC_KEY='whpk_... <Your webhook public key>'
printf '\x30\x2a\x30\x05\x06\x03\x2b\x65\x70\x03\x21\x00' > public_key.der
echo -n "${PUBLIC_KEY#whpk_}" | base64 -d >> public_key.der
echo -n "${WEBHOOK_SIGNATURE#v1a,}" | base64 -d > signature.bin
printf '%s.%s.%s' "$WEBHOOK_ID" "$WEBHOOK_TIMESTAMP" "$PAYLOAD" > signed_content.txt
if openssl pkeyutl -verify -pubin -inkey public_key.der -keyform DER -rawin \
-in signed_content.txt -sigfile signature.bin > /dev/null; then
echo "Valid"
else
echo "Invalid"
fi // Requires the BouncyCastle.Cryptography package
using Org.BouncyCastle.Crypto.Parameters;
using Org.BouncyCastle.Crypto.Signers;
[HttpPost]
public async Task<IActionResult> Webhook()
{
using var reader = new StreamReader(Request.Body);
string payload = await reader.ReadToEndAsync();
string id = Request.Headers["webhook-id"];
string timestamp = Request.Headers["webhook-timestamp"];
string signature = Request.Headers["webhook-signature"];
string publicKey = Configuration["PaidWebhookPublicKey"];
if (WebhookValidator.ValidateWebhook(payload, id, timestamp, signature, publicKey))
{
// Process webhook
return Ok();
}
return Unauthorized();
}
public static class WebhookValidator
{
public static bool ValidateWebhook(string payload, string id, string timestamp, string signature, string publicKey)
{
try
{
long sentAt = long.Parse(timestamp);
if (Math.Abs(DateTimeOffset.UtcNow.ToUnixTimeSeconds() - sentAt) > 300)
{
return false;
}
byte[] keyBytes = Convert.FromBase64String(publicKey.Substring("whpk_".Length));
byte[] signatureBytes = Convert.FromBase64String(signature.Substring("v1a,".Length));
byte[] signedContent = Encoding.UTF8.GetBytes($"{id}.{timestamp}.{payload}");
var verifier = new Ed25519Signer();
verifier.Init(false, new Ed25519PublicKeyParameters(keyBytes, 0));
verifier.BlockUpdate(signedContent, 0, signedContent.Length);
return verifier.VerifySignature(signatureBytes);
}
catch
{
return false;
}
}
} func webhookHandler(w http.ResponseWriter, r *http.Request) {
body, _ := io.ReadAll(r.Body)
payload := string(body)
id := r.Header.Get("webhook-id")
timestamp := r.Header.Get("webhook-timestamp")
signature := r.Header.Get("webhook-signature")
publicKey := os.Getenv("PAID_WEBHOOK_PUBLIC_KEY")
if validateWebhook(payload, id, timestamp, signature, publicKey) {
processWebhook(payload)
w.WriteHeader(http.StatusOK)
return
}
w.WriteHeader(http.StatusUnauthorized)
}
func validateWebhook(payload, id, timestamp, signature, publicKey string) bool {
sentAt, err := strconv.ParseInt(timestamp, 10, 64)
if err != nil {
return false
}
if age := time.Since(time.Unix(sentAt, 0)); age > 5*time.Minute || age < -5*time.Minute {
return false
}
keyBytes, err := base64.StdEncoding.DecodeString(strings.TrimPrefix(publicKey, "whpk_"))
if err != nil || len(keyBytes) != ed25519.PublicKeySize {
return false
}
signatureBytes, err := base64.StdEncoding.DecodeString(strings.TrimPrefix(signature, "v1a,"))
if err != nil {
return false
}
signedContent := []byte(id + "." + timestamp + "." + payload)
return ed25519.Verify(ed25519.PublicKey(keyBytes), signedContent, signatureBytes)
}
func processWebhook(payload string) {
println("Processing webhook:", payload)
} class WebhookController < ApplicationController
skip_before_action :verify_authenticity_token
def receive
payload = request.body.read
id = request.headers['webhook-id']
timestamp = request.headers['webhook-timestamp']
signature = request.headers['webhook-signature']
public_key = ENV['PAID_WEBHOOK_PUBLIC_KEY']
if WebhookValidator.validate(payload, id, timestamp, signature, public_key)
process_webhook(payload)
head :ok
else
head :unauthorized
end
end
private
def process_webhook(payload)
Rails.logger.info "Processing webhook: #{payload}"
end
end
class WebhookValidator
ED25519_DER_PREFIX = ['302a300506032b6570032100'].pack('H*')
def self.validate(payload, id, timestamp, signature, public_key)
return false if [id, timestamp, signature, public_key].any?(&:nil?)
return false if (Time.now.to_i - timestamp.to_i).abs > 300
begin
key_bytes = Base64.strict_decode64(public_key.delete_prefix('whpk_'))
key = OpenSSL::PKey.read(ED25519_DER_PREFIX + key_bytes)
signature_bytes = Base64.strict_decode64(signature.delete_prefix('v1a,'))
key.verify(nil, signature_bytes, "#{id}.#{timestamp}.#{payload}")
rescue
false
end
end
end const express = require('express');
const crypto = require('crypto');
const app = express();
app.use('/webhook', express.raw({ type: 'application/json' }));
app.post('/webhook', (req, res) => {
const payload = req.body.toString();
const id = req.headers['webhook-id'];
const timestamp = req.headers['webhook-timestamp'];
const signature = req.headers['webhook-signature'];
const publicKey = process.env.PAID_WEBHOOK_PUBLIC_KEY;
if (validateWebhook(payload, id, timestamp, signature, publicKey)) {
processWebhook(payload);
res.status(200).send('OK');
} else {
res.status(401).send('Unauthorized');
}
});
const ED25519_DER_PREFIX = Buffer.from('302a300506032b6570032100', 'hex');
function validateWebhook(payload, id, timestamp, signature, publicKey) {
if (!id || !timestamp || !signature || !publicKey) return false;
if (Math.abs(Date.now() / 1000 - Number(timestamp)) > 300) return false;
try {
const key = crypto.createPublicKey({
key: Buffer.concat([
ED25519_DER_PREFIX,
Buffer.from(publicKey.replace(/^whpk_/, ''), 'base64'),
]),
format: 'der',
type: 'spki',
});
return crypto.verify(
null,
Buffer.from(`${id}.${timestamp}.${payload}`),
key,
Buffer.from(signature.replace(/^v1a,/, ''), 'base64')
);
} catch {
return false;
}
}
function processWebhook(payload) {
console.log('Processing webhook:', payload);
}Transaction history
Paid lets you retrieve up to two years of transaction history for your connected bank accounts via the Paid API. This is useful for backfilling your system before you receiving webhooks.
Authentication
All requests to the Paid API must be authenticated using an API key. You can generate an API key in your Paid settings. Your key will only be displayed to you once, so you'll need to securely store it within your own backend.
Include your key as a Bearer token in the Authorization header of each request.
Authorization: Bearer ${PAID_API_KEY}Keep your keys secret
API keys are secret credentials that grant access to your bank account data. They should only be used in a secure server-side environment, never exposed or embedded in client-side code or committed to public repositories.
Listing accounts
Retrieve the bank accounts you've connected to Paid. You'll need an account's id to retrieve
its transactions.
{
"accounts": [
{
"id": "paidaccount_wh73OibCZNCY2hp8dJCVA",
"bank": "anz",
"account_number": "01-1234-1234567-00",
"account_name": "Acme Ltd"
}
]
}Listing transactions
Retrieve transactions for a bank account for a given date range, newest first. Transactions have
the same shape as the data in webhooks.
{
"transactions": [
{
"id": "txnd_8c4563239013f6c9bbef6d1fcbbe4a26efb38defd378b542ebd0944e3143eb39",
"direction": "credit",
"amount": {
"value": "1240.70 NZD",
"formatted": "$1240.70"
},
"description": "Payment from Jan Doe",
"pcr": {
"particulars": "INV-234",
"code": "",
"reference": ""
},
"counterparty": {
"name": "Jan Doe"
},
"bank_account": {
"id": "paidaccount_wh73OibCZNCY2hp8dJCVA",
"account_number": "01-1234-1234567-00",
"account_name": "Acme Ltd"
},
"booked_at": "2026-03-14T11:41:04+13:00"
}
],
"cursor": {
"next": "eyJmcm9tIjoiMjAyNi0wMS0wMSIsInRvIjoiMjAyNi0wMi0yNyJ9"
}
}| Parameter | Description |
|---|---|
from | The start date as YYYY-MM-DD, inclusive. Required unless cursor is set, and can be at most two years ago. |
to | The end date as YYYY-MM-DD, inclusive. Defaults to today. |
cursor | The cursor.next value from a previous response. When set, from and to are ignored. |
All dates are in New Zealand time.
Pagination
Each page covers up to 31 days of transactions. While cursor.next is not null, call the
endpoint again with ?cursor= set to that value to retrieve the next older page. A page can be
empty while cursor.next is still set, so keep paging until it's null.
Transaction IDs are stable and match the IDs in webhooks, so you can safely combine a backfill
with webhooks by ignoring any transaction whose id you've already seen.
MCP
Paid has a remote MCP server which lets you connect your bank accounts to AI assistants like Claude and ChatGPT. You can ask about your transactions in chat, or have your assistant set up a webhook while it builds your app.
https://paid.nz/mcpAdd this URL as a custom connector in your assistant, then sign in to Paid and approve access. You don't need to share an API key, and you can revoke access at any time in your Paid settings.
Like the rest of Paid, the MCP server is read-only for your bank accounts and has no way to move money. It provides the following tools:
| Tool | Description |
|---|---|
get_me | Get your Paid profile. |
list_accounts | List the bank accounts connected to Paid. |
list_transactions | List transactions for a bank account, with the same parameters and pagination as the Paid API. |
get_webhook | Get your webhook, if one exists. |
create_webhook | Create a webhook for a public HTTPS endpoint. Each user can have one webhook. |
delete_webhook | Delete your webhook. |
When your assistant is building an app that needs transaction history, the MCP server guides it to have your app call the Paid API directly rather than copying data through chat. You'll be asked to create an API key and store it in your app's secrets. You should never paste your API key into a chat.
Support
For help using Paid, or any other queries, please contact us directly via support@volley.nz.