Skip to content
⌘K
InboxAsk a human

Webhook Notifications

Updated by Lukas Dumskis

A webhook notification is a REST PUT request sent to the merchant’s backend system at the URL configured in the merchant application settings. Webhooks are triggered when a payment reaches a final state.

The following payment statuses generate webhook notifications:

  • COMPLETED

  • SETTLED

  • FAILED

💡 Important
The SETTLED status is returned only when using a virtual account.

  • Use the COMPLETED webhook to notify customers about a successful payment.

  • Use the SETTLED status strictly for internal operational or reconciliation purposes.


Delivery Rules

Volume webhooks are delivered reliably:

  • A webhook will be resent until the receiving endpoint responds with HTTP status 200 OK. Retries follow an exponential backoff strategy, starting after 1 second, then 2 seconds, 4 seconds, 8 seconds, 16 seconds, and continuing to increase until a maximum retry interval of 3 hours is reached. Once this maximum interval is reached, Volume will continue retrying delivery every 3 hours for up to 15 days, or until a successful 200 OK response is received.

  • Any other response (including timeouts or network errors) is treated as a failure and will trigger a retry.

Your endpoint must therefore be prepared to handle duplicate webhook calls.


Payload Structure

When implementing webhook consumers, ensure your serialization logic ignores unknown properties. This prevents failures if additional fields are added in the future.

Example Payload

{ "paymentId": "e4a16e48-18ea-4574-acba-1580510465bc", "merchantPaymentId": "1648156842-USER447", "paymentStatus": "SETTLED", "errorDescription": null, "paymentRequest": { "amount": 100.00, "currency": "GBP", "reference": "51568136484643VL1O" }, "paymentRefundData": { "accountHolderName": "John Doe", "accountIdentifications": [ { "type": "ACCOUNT_NUMBER", "number": "12345678" }, { "type": "SORT_CODE", "number": "123456" } ] }, "paymentMetadata": { "email": "email@mail.com" }, "applicationId": "41f75930-ef98-40d8-b6f7-5ee2b01bd3b3", "isExternal": false }

Field Reference

Field

Type

Description

paymentId

string (UUID)

Unique payment identifier

merchantPaymentId

string (optional)

Merchant-defined payment ID

paymentStatus

string

COMPLETED, SETTLED, or FAILED

errorDescription

string (optional)

Error details when status is FAILED

paymentRequest.amount

number

Payment amount

paymentRequest.currency

string

Currency code

paymentRequest.reference

string (optional)

Payment reference

paymentRefundData.accountHolderName

string (optional)

Payer account holder name

paymentRefundData.accountIdentifications

object[] (optional)

Bank account identifiers

paymentMetadata

object (optional)

Merchant-defined metadata

applicationId

string (UUID)

Application identifier

isExternal

boolean

Indicates manual bank transfer (external payment)


Security

Request Signature Verification

Each webhook request includes an Authorization header containing a digital signature of the request payload.

  • The payload is signed using Volume’s private key

  • You verify it using Volume’s public key

Why verification matters

Signature verification ensures:

  1. Authenticity – the message originated from Volume

  2. Integrity – the payload has not been modified in transit


Signature Format

The Authorization header has the following format:

Authorization: {algorithm} {signature}

Example:

Authorization: SHA256withRSA psQ647Ru7aa43dtyj0nAgFcvKq7KuDL6qE9SjNAdMH+hqJ4...

Public Key Endpoints

Use the appropriate public key depending on your environment:

  • Sandbox
    https://api.sandbox.volumepay.io/.well-known/signature/pem

  • Live
    https://api.volumepay.io/.well-known/signature/pem

The key is provided in PKCS#8 PEM format.


Payload Handling Warning ⚠️

Do not modify the payload before signature verification.

This includes:

  • Reformatting JSON

  • Adding or removing line breaks

  • Automatic changes during deserialization

Some DTO or enum implementations may change the byte representation, causing signature validation to fail.

Best practice:

  • Verify the signature against the raw byte array or exact JSON string

  • Deserialize only after successful verification


Idempotency

Webhook consumers must support idempotent processing.

  • The same webhook may be delivered multiple times

  • Payments should be uniquely identified by:

    • paymentId

    • or merchantPaymentId (if unique per payment)

If Volume does not receive a 200 OK response, the webhook will be retried according to the delivery rules.


IP Whitelisting (Additional Security)

To further secure your webhook endpoint, whitelist Volume’s static IP addresses.

Sandbox Environment

  • 52.30.246.188

Live Environment

  • 52.56.123.234

  • 18.175.86.214

  • 3.11.7.150

Whitelisting ensures that only legitimate requests from Volume are accepted.


Reference Implementations

Volume provides sample webhook consumers in multiple languages.

ASP.NET (C#)

Repository:
https://github.com/getvolume/VolumeWebhookDotNetConsumer

Includes:

  • Signature verification service

  • Sample controller

  • Postman collection

  • Swagger UI


Java (Spring)

Repository:
https://github.com/getvolume/VolumeWebhookJavaConsumer

Includes:

  • Signature service

  • Webhook controller

  • Configuration examples


Node.js (Express)

Repository:
https://github.com/getvolume/volume-webhook-node-consumer

Includes:

  • Signature validation service

  • Express middleware example


Testing with CURL

You can test your webhook endpoint using the following examples.
The signatures shown were generated using the sandbox private key.

Successful Payment

curl --request PUT 'ENDPOINT_URL' \ --header 'Authorization: SHA256withRSA ...' \ --header 'Content-Type: application/json' \ --data '{"paymentId":"3f2a2b69-6d42-4050-9c4f-7e8849bf683c","merchantPaymentId":"806","paymentStatus":"COMPLETED"}'

Failed Payment

curl --request PUT 'ENDPOINT_URL' \ --header 'Authorization: SHA256withRSA ...' \ --header 'Content-Type: application/json' \ --data '{"paymentId":"183b5eee-0fbf-4863-b55a-7a72af84db1a","merchantPaymentId":"937","paymentStatus":"FAILED","errorDescription":"Payment was rejected"}'

Parameters

Parameter

Description

ENDPOINT_URL

Your webhook endpoint

Authorization

Digital signature header

data

Webhook payload