Disputes

Webhook

When a user files a dispute and as the dispute progresses, we send a webhook DISPUTE_STATUS_UPDATE, which includes the details about the dispute.

Webhook Payload

FieldsTypeDescription
typestringWebhook Type: DISPUTE_STATUS_UPDATE
signaturestringWebhook signature for verification
disputestringIdentifier for the Dispute
dataObjectWebhook data
data.idstringIdentifier for the Dispute
data.createdAtnumberDispute creation time in unix
data.updatedAtnumberDispute updated time in unix
data.sourceUpdatedAtnumberDispute source updated time in unix
data.livemodebooleanSandbox/Production
data.emailstringEmail of user filing the dispute
data.paymentPageIdstringCorresponding payment page ID for which dispute is filed

Example Webhook Payload:

{
  "type": "DISPUTE_STATUS_UPDATE",
  "signature": "example_webhook_signature",
  "dispute": "dp_xxxxxx",
  "data": {
    "id": "dp_xxxxxx", 
    "createdAt": 1757374102012,
    "updatedAt": 1757374102112,
    "sourceUpdatedAt": 1757374132012,
    "livemode": true,
    "email": "[email protected]",
    "paymentPageId": "page_xxxxxx"
  }
}

Getting disputes

To retrieve a user's disputes, you can send a GET request with

  1. the email to retrieve disputes associated with this user (this is required)

GET /v1/disputes?email={email}

curl -X GET 'https://api.breeze.cash/v1/[email protected]' \
  -u "YOUR_API_KEY:" \
  --header 'Content-Type: application/json' \

A successful response will look like:

{
  "status": "SUCCEEDED",
  "data": {
    "disputes": [
      {
        "id": "dp_0d5b6a9598ebd21b",
        "createdAt": 1715018438370,
        "email": "[email protected]",
        "livemode": false,
        "sourceUpdatedAt": 1715018432000,
      }
    ],
    "count": 1
  }
}