Dunmore

Discord Integration

Send payment notifications to Discord channels with color-coded rich embeds.

Connect Dunmore to Discord to receive payment notifications as rich embed messages with color-coded status indicators.

Setup

  1. In your Discord server, go to Server Settings > Integrations > Webhooks
  2. Create a new webhook, choose a channel, and copy the webhook URL
  3. Add a Discord connector in the Dunmore console or via the API

Supported Events

Dunmore EventEmbed ColorDetails
payment.settledGreen (#22c55e)Amount, payer/seller addresses (linked to Basescan), network, endpoint, TX hash, latency
payment.failedRed (#ef4444)Amount, failure stage, error code, endpoint, error message
customer.first_paymentBlue (#3b82f6)New customer wallet and first payment amount
customer.milestoneAmber (#f59e0b)Wallet address, milestone name, total spend, payment count

Messages are posted under the username "Dunmore" with embed fields, timestamps, and a Dunmore footer.

Configuration

{
  "type": "discord",
  "config": {
    "webhookUrl": "https://discord.com/api/webhooks/..."
  },
  "eventTypes": ["payment.settled", "payment.failed", "customer.first_payment"]
}
FieldRequiredDescription
webhookUrlYesDiscord channel webhook URL

API Example

curl -X POST https://api.dunmore.xyz/api/projects/{projectId}/connectors \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "discord",
    "config": {
      "webhookUrl": "https://discord.com/api/webhooks/..."
    },
    "eventTypes": ["payment.settled", "payment.failed", "customer.first_payment"]
  }'