POST
/
your-webhook-url
curl --request POST \
  --url https://test.dodopayments.com/your-webhook-url \
  --header 'Content-Type: application/json' \
  --header 'webhook-id: <webhook-id>' \
  --header 'webhook-signature: <webhook-signature>' \
  --header 'webhook-timestamp: <webhook-timestamp>' \
  --data '{
  "business_id": "<string>",
  "data": {
    "business_id": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "currency": "AED",
    "customer": {
      "customer_id": "<string>",
      "email": "<string>",
      "name": "<string>"
    },
    "discount_id": "<string>",
    "disputes": [
      {
        "amount": "<string>",
        "business_id": "<string>",
        "created_at": "2023-11-07T05:31:56Z",
        "currency": "<string>",
        "dispute_id": "<string>",
        "dispute_stage": "pre_dispute",
        "dispute_status": "dispute_opened",
        "payment_id": "<string>"
      }
    ],
    "error_message": "<string>",
    "metadata": {},
    "payment_id": "<string>",
    "payment_link": "<string>",
    "payment_method": "<string>",
    "payment_method_type": "<string>",
    "product_cart": [
      {
        "product_id": "<string>",
        "quantity": 1
      }
    ],
    "refunds": [
      {
        "amount": 123,
        "business_id": "<string>",
        "created_at": "2023-11-07T05:31:56Z",
        "currency": "AED",
        "payment_id": "<string>",
        "reason": "<string>",
        "refund_id": "<string>",
        "status": "succeeded"
      }
    ],
    "status": "succeeded",
    "subscription_id": "<string>",
    "tax": 123,
    "total_amount": 123,
    "updated_at": "2023-11-07T05:31:56Z",
    "payload_type": "Payment"
  },
  "timestamp": "2023-11-07T05:31:56Z",
  "type": "payment.succeeded"
}'

Headers

webhook-id
string
required

Unique identifier for the webhook

webhook-signature
string
required

Signature of the Webhook

webhook-timestamp
string
required

Unix timestamp when the webhook was sent

Body

application/json
business_id
string
required
data
object
required
timestamp
string
required

The timestamp of when the event occurred (not necessarily the same of when it was delivered)

type
enum<string>
required

Event types for Dodo events

Available options:
payment.succeeded,
payment.failed,
payment.processing,
payment.cancelled,
refund.succeeded,
refund.failed,
dispute.opened,
dispute.expired,
dispute.accepted,
dispute.cancelled,
dispute.challenged,
dispute.won,
dispute.lost,
subscription.active,
subscription.renewed,
subscription.on_hold,
subscription.paused,
subscription.cancelled,
subscription.failed,
subscription.expired,
license_key.created

Response

200
_mintlify/placeholder

Webhook processed successfully