Webhook payload reference

Estimated reading: 2 minutes views

Summary: Every field in the confirmed-payment webhook, the status value that means paid, and how the VAT object is shaped.

The webhook body is a single JSON object with two top-level members: key, your secret echoed back, and transaction, the payment record. The shape is stable, so you can map it directly to your database. This page lists every field so you can build the parser once and stop guessing.

Block explorer view of a confirmed transaction hash

Example payload

{
  "key": "123456789",
  "transaction": {
    "id": "231",
    "title": "My checkout title",
    "description": "My checkout description",
    "from": "0xeb26...d4cf",
    "to": "0xcc14...01B6",
    "hash": "0x3c43...a606",
    "amount": "0.001",
    "amount_fiat": "0.1",
    "cryptocurrency": "eth",
    "currency": "eur",
    "external_reference": "",
    "creation_time": "2022-04-14 10:00:00",
    "status": "C",
    "webhook": "1",
    "vat": {"amount":"0.33","percentage":"22","country":"Italy","country_code":"IT"}
  }
}

Field table

Field Meaning
key Your webhook secret, echoed back. Compare it before trusting the call.
transaction.id RasterPay transaction id. Use it as your idempotency key.
transaction.title Checkout title.
transaction.description Checkout description.
transaction.from Customer wallet address that sent the funds.
transaction.to Your receiving wallet address.
transaction.hash On-chain transaction hash, for block explorer checks.
transaction.amount Amount in the cryptocurrency.
transaction.amount_fiat Amount in fiat. This is the number to validate against the order.
transaction.cryptocurrency Coin code, such as eth or btc.
transaction.currency Fiat currency code, such as eur or usd.
transaction.external_reference Your order reference, echoed back exactly as you sent it.
transaction.creation_time When the transaction was created.
transaction.status C means completed and confirmed.
transaction.webhook Flag showing the call came from the webhook path.
transaction.vat VAT block, present when invoicing applies.

Status values

The confirmed-payment call uses C. Treat any other value as not paid and do not deliver. If you see a value you do not recognize, log it and treat it as pending.

The VAT object

When invoicing is enabled, vat carries amount, percentage, country, and country_code. All values arrive as strings, so convert before you do arithmetic. Store the block with the transaction if you issue invoices.

Parsing notes

Numbers come as strings to preserve precision. Compare amount_fiat as a decimal, not a float, and avoid rounding it to two places. All amounts are positive; direction is implied by from and to. For a REST integration, contact support.

Share this Doc

Webhook payload reference

Or copy link

CONTENTS