UseePay Open API
UseePay PortalMechant Dashboard
Product Docs
Product Docs
  • V2.0
  • V1.0
UseePay PortalMechant Dashboard
Product Docs
Product Docs
  • V2.0
  • V1.0
  1. Webhooks
  • Integration
    • Welcome to the UseePay Demo Page
    • Payment Product Overview
      • Hosted Checkout Integration Guide
      • Embedded Checkout Integration Guide
      • Express Checkout Integration Guide
      • Server to Server Integration Guide
    • About Payment Methods
      • Card
      • Klarna
      • Naver pay
      • Kakao Pay
      • Toss Pay
      • Payco
      • Affirm
      • Blik
      • Trustly
      • Cashapp
      • Pay with Link
      • After Pay
      • ApplePay
        • Apple Pay
        • Apple Pay Web Integration (API Integration)
      • GooglePay
        • Google Pay
        • Google Pay Web Integration (API Integration)
    • Subscription
      • Get started with Subscription
    • Online payment
      • Get started with online payments
    • Payment Capabilities
      • Adaptive Price
      • Supported Payment Methods for Checkout
    • Checkout session
      • Checkout Session Guide
  • Developer
    • Introduction
    • Authentication
    • Errors
    • Error code
      • last_payment_error documentation
    • Best Integration
      • Quickly create a paymentIntent for a subscription
      • Auto-Charge Subscription Guide
    • Payment Intents
      • Payment Intent Overview
      • Quickly create a paymentIntent
      • Create a PaymentIntent
      • Retrieve a PaymentIntent
      • Update a PaymentIntent
      • Confirm a PaymentIntent
      • Cancel a PaymentIntent
      • Capture a PaymentIntent
      • List all payment intents
    • Customers
      • Create a customer
      • Retrieves a customer
      • Update a customer
      • List all customers
    • Subscriptions
      • Create a subscription
      • Retrieves a subscription
      • Update a subscription
      • List all subscriptions
      • Cancel a subscription
    • Invoices
      • Create a invoice
      • Retrieves a invoice
      • List all invoices
      • Pay a invoice
    • Payment Methods
      • Retieve Payment Method Session
    • Mandates
      • Create a mandate
      • Retrieves a mandate
      • List all mandates
    • Refunds
      • Create a refund
      • Retrieves a refund
      • List all refunds
    • Webhooks
      • Webhook Integration Guide(version 2026-04)
      • Integration details
        • Supported Webhook Events
        • Webhook Activation/Signature Verification Steps
        • Webhook events for example
        • Dispute Webhook Integration Document
        • Difference between version 2026-04 and 2026-10-10
      • archive
        • 2024-10-10
          • Webhook Integration Guide(version 2024-10-10)
      • Create a webhook
        POST
      • Retrieves a webhook
        GET
      • Update a webhook
        POST
      • List all webhooks
        GET
    • Embedded Checkout
      • Payment Element
      • Payment Element (Deferred Intent)
      • Express Checkout Element
      • Checkout Session Element
    • About Testing
      • Test Cards
      • ApplePay&GooglePay
    • Payment Method Configuration
      • Retieve Payment Method Configuration
    • Checkout Session
      • Create Checkout Session
      • Retrieve Checkout Session
    • Trackers
      • upload trackers
      • Retrieve a tracker
    • Capture
      • Capture Overview
      • List captures by intent id
    • Schemas
      • CheckoutSessionCreateRequest
      • PaymentMethod
      • CreatePaymentIntentRequest
      • LineItem
      • Customer
      • Address
      • ProductData
      • Shipping
      • SubscriptionData
      • Error
      • DiscountPeriodConfig
      • DeviceData
      • CheckoutSessionResponse
      • ErrorResponse
      • Order
      • Product
      • PaymentMethodOptions
      • RiskControlOptions
      • Mandate
      • PaymentIntent
      • Billing
      • Card
      • AliPay
      • Wallet
      • Klarna
      • WechatPay
      • Refund
      • Subscription
      • Recurring
      • PriceData
      • SubscriptionItem
      • Invoice
      • NextAction
      • Webhook
      • CollectableOptions
      • PaymentLink
      • last_payment_error
      • discount_period_config
      • Capture
  • Reconciliation
    • SFTP Access for Reconciliation
  • Message
    • Messaging Element
  • FAQ
    • Unable to receive Webhook notifications
  1. Webhooks

Webhook Integration Guide(version 2026-04)

Overview#

UseePay sends event notifications to your configured webhook URL via HTTP POST requests.
For a better integration experience, we recommend using webhook version 2026-04 whenever possible.
For more information about supported versions, see: https://docs-v2.useepay.com/8649675m0.

Request Format#

UseePay sends webhook events using application/json.
Your webhook endpoint should accept a standard JSON request body.

Content-Type#

Request Example#


Webhook Data Structure#

The webhook request body is a JSON object containing the following fields:
FieldTypeDescription
idstringEvent ID, a unique identifier starting with evt_
namestringEvent name, in the format object.event_type
dataobjectBusiness object data, such as PaymentIntent, Subscription, Invoice, Refund, CheckoutSession, Dispute, etc.

Event Types#

For the full list of supported webhook event types, see:
Event Types

Complete Example#

{
  "id": "evt_79bdd43e4d0f464694fa433a5d467980",
  "name": "payment_intent.succeeded",
  "data": {
    "id": "pi_1234567890",
    "object": "payment_intent",
    "amount": 10000,
    "currency": "USD",
    "status": "succeeded",
    "customer_id": "cus_abc123",
    "payment_method": {
      "type": "card",
      "card": {
        "brand": "visa",
        "last4": "4242"
      }
    },
    "created_at": "2024-01-27T10:30:00Z",
    "metadata": {}
  }
}

Event Processing Flow#

Business Event Occurs
    ↓
UseePay System Detects Status Change
    ↓
Webhook Event Generated
    ↓
HTTP POST to Your Webhook URL
    ↓
Your Server Processes Event

Best Practices for Receiving Webhooks#

1. Verify Signature#

UseePay includes signature information in the request headers to help you verify the authenticity of the request.
When verifying the signature, use the raw HTTP request body before any JSON parsing, formatting, or field extraction.
See Webhook Activation/Signature Verification Steps for details.

2. Respond Quickly#

Your webhook endpoint should return a 2xx HTTP status code as soon as the event is received.
Time-consuming business logic should be processed asynchronously to avoid webhook delivery timeouts.

3. Idempotency Handling#

The same event may be sent multiple times. Use event.id to implement idempotency and avoid duplicate processing.

4. Read the JSON Request Body#

The webhook request body is a standard JSON object.
You can directly read id, name, and data from the request body.

Node.js Example#

Python Example#

Java Example#


Important Notes#

Ensure your server supports JSON request parsing.
Always return HTTP 2xx as soon as the event is received.
Webhook events may be retried if they are not acknowledged.
Use event.id for idempotency handling.
Use the raw HTTP request body when verifying the webhook signature.

Retry Mechanism#

If your webhook endpoint returns a non-2xx status code or times out, UseePay will automatically retry sending the webhook with the following intervals:
1st retry: after 1 second
2nd retry: after 5 seconds
3rd retry: after 10 seconds
4th retry: after 30 seconds
5th retry: after 1 minute
Subsequent retries: 2 minutes, 3 minutes, 4 minutes, up to 2 hours
Maximum of 18 retries.

FAQ#

Unable to Receive Webhook Notifications?#

Please refer to the Unable to Receive Webhook Notifications troubleshooting guide.

How to Test Webhooks?#

1.
Use UseePay Test Cards to create test payments.
2.
View webhook sending logs in the Merchant Dashboard.
3.
Use tools such as ngrok or webhook.site for local testing.

Related Documentation#

Webhook Events
Webhook Activation/Signature Verification Steps
Create a Webhook
Retrieve a Webhook
Update a Webhook
List All Webhooks

Technical Support#

For questions, please contact: support@useepay.com
Modified at 2026-05-22 03:27:15
Previous
List all refunds
Next
Supported Webhook Events
Built with