UseePay API
  1. Webhooks
UseePay API
  • Introduction
  • Product Overview
  • Authentication
  • Errors
  • Changelog
  • Integration
    • Get started with online payments
    • Get started with subscriptions
  • Payment Intents
    • Create a PaymentIntent
      POST
    • Retrieve a PaymentIntent
      GET
    • Update a PaymentIntent
      POST
    • Confirm a PaymentIntent
      POST
    • Cancel a PaymentIntent
      POST
    • Capture a PaymentIntent
      POST
    • List all payment intents
      GET
  • Customers
    • Create a customer
      POST
    • Retrieves a customer
      GET
    • Update a customer
      POST
    • List all customers
      GET
  • Subscriptions
    • Create a subscription
      POST
    • Retrieves a subscription
      GET
    • Update a subscription
      POST
    • List all subscriptions
      GET
    • Cancel a subscription
      POST
  • Invoices
    • Create a invoice
    • Retrieves a invoice
    • Update a invoice
    • List all invoices
    • Pay a invoice
  • Payment Methods
    • Create a payment method
    • Retrieves a payment method
    • Update a payment method
    • List all payment methods
  • Mandates
    • Create a mandate
    • Retrieves a mandate
    • Update a mandate
    • List all mandates
  • Refunds
    • Create a refund
    • Retrieves a refund
    • Update a refund
    • List all refunds
  • Webhooks
    • Webhook envents
    • Create a webhook
      POST
    • Retrieves a webhook
      GET
    • Update a webhook
      POST
    • List all webhooks
      GET
  • Payment Links
    • Create a payment link
    • Retrieves a payment link
    • Update a payment link
    • List all payment links
  • Embedded Checkout
    • Payment Elements
  • About Testing
    • Test Cards
    • ApplePay&GooglePay
  1. Webhooks

Update a webhook

POST
/api/v1/webhooks/{{webhook-id}}

Request

Header Params

Body Params application/json

Example
{
    "url": "https://demo.youshop.com/webhook",
    "api_version": "2024-12-21",
    "events": [
        "payment_intent.created",
        "payment_intent.requires_payment_method"
    ],
    "metadata": {
        "testkey": "2222"
    },
    "status": "enabled"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://openapi1.uat.useepay.com/api/v1/webhooks/wek_1JHI1QJD42400' \
--header 'x-merchant-no: 500000000007245' \
--header 'x-api-key: FUYTIUvjhgfytfuytwiue' \
--header 'x-app-id: www.pay.com' \
--header 'Content-Type: application/json' \
--data-raw '{
    "url": "https://demo.youshop.com/webhook",
    "api_version": "2024-12-21",
    "events": [
        "payment_intent.created",
        "payment_intent.requires_payment_method"
    ],
    "metadata": {
        "testkey": "2222"
    },
    "status": "enabled"
}'

Responses

đŸŸ¢200Success
application/json
Body

Example
{
    "id": "wek_1JHHVQLK40S00",
    "url": "https://demo.youshop.com/webhook",
    "description": null,
    "events": [
        "payment_intent.created",
        "payment_intent.requires_payment_method"
    ],
    "metadata": {
        "testkey": "111"
    },
    "status": null,
    "secret": null,
    "merchant_no": "500000000007264",
    "app_id": "www.pay.com",
    "create_at": "2024-11-15T01:59:52Z",
    "modify_at": "2024-11-15T01:59:52Z",
    "api_version": "2024-11-21"
}
Modified at 2025-03-20 05:39:07
Previous
Retrieves a webhook
Next
List all webhooks
Built with