8Pay
  • Introduction
  • Features
  • Chains
  • Payment flow
  • Sandbox Environment
  • Fees
  • Guides
    • Set up single payments
    • Set up recurring payments
    • Setup automatic buy (DCA) on Dex
  • Integrations
    • Overview
    • Short URLs
    • Buttons
      • One Time
      • Fixed Recurring
      • Variable Recurring
      • On Demand
    • Shopify
    • Woocommerce
    • Streaming Donations
    • JavaScript SDK
  • REST API
    • Overview
    • One Time
      • Payments
      • Transfers
      • Short Urls
    • Wallet to wallet
      • Payments
      • Transfers
    • Fixed Recurring
      • Plans
      • Subscriptions
      • Billings
      • Cancellations
      • Short Urls
      • Transfers
      • Webhook
    • Variable Recurring
      • Plans
      • Subscriptions
      • Billings
      • Cancellation Requests
      • Cancellations
      • Webhook
      • Transfers
      • Short Urls
    • On Demand
      • Plans
      • Subscriptions
      • Allowances
      • Billings
      • Cancellations
      • Webhook
      • Transfers
      • Short Urls
    • Scheduled Payments
      • Schedules
      • Executions
      • Cancellation
      • Transfers
    • Invest (DCA)
      • Strategies
      • Executions
      • Cancellation
    • Webhook Notifications
  • Webhook notifications
    • Overview
    • Events
      • One Time
      • Wallet-to-Wallet
      • Fixed Recurring
      • Variable Recurring
      • On Demand
  • Advanced Features
    • Gas Wallet
    • Autobiller
  • Appendix
    • Categories
    • Tokens
Powered by GitBook
On this page

Was this helpful?

  1. REST API

Webhook Notifications

PreviousCancellationNextOverview

Last updated 1 year ago

Was this helpful?

When an event occurs, 8Pay sends the corresponding data to your designated webhook endpoint. To ensure the authenticity of the notification, you can utilize the provided endpoint. For a detailed understanding of webhook notifications and the complete list of events, please refer to the section.

Get a notification

GET https://api.8pay.network/v1/:chain/webhook-notifications/:notificationId

Path Parameters

Name
Type
Description

notificationId

string

id of the notification

chain

string

Headers

Name
Type
Description

Authorization

String

Bearer <api-key>

{
    "id": "5ccf8bdc7707a8effa371d01452644d3a388b975290b968874d0a44ec0219226",
    "type": "one-time",
    "event": "Payment",
    "timestamp": 1585220116,
    "transactionHash": "0xb0f21bf5d722d981330d45d8625568cd0b356e8c7c464857131a6ebf99eadf80",
    "transactionStatus": "confirmed",
    "data": {
        "sender": "0xe42fD8a58A82fDF624A8a94dA03a0e44F9934Dff",
        "description": "Ebook",
        "token": "8PAY",
        "category": "Shop",
        "tag": "ebook_859294",
        "receivers": [
            {
                "user": "0xB2e9F6F9414ea12A33302923A55b9B4Cf99CCD90",
                "amount": "5",
                "fee": "0.05"
            }
        ]
    },
    "extra": {
        "banner": "BR69",
        "traffic": "facebook"
    }
}

Webhook Notifications
chain identifier