The dispute object

You can expect the below object when you register a webhook for the following events:

  • dispute.received
  • dispute.evidence_submitted
  • dispute.expired
  • dispute.closed
  • dispute.won
  • dispute.lost

Raw sample

{
  "id": "PAY-3C4D5E6F7A",
  "amount": 33.99,
  "amount_currency": "AED",
  "refund_amount": 0,
  "refund_status": "No refund",
  "refunds": [],
  "max_refund_amount": 33.99,
  "billing_descriptor": "Mamo*Merchant",
  "created_date": "2023-12-25-14-38-53",
  "external_id": null,
  "subscription_id": null,
  "customer_details": {
    "name": "",
    "email": "[email protected]",
    "phone_number": "-",
    "comment": "-"
  },
  "payment_method": {
    "card_id": null,
    "type": "CREDIT VISA",
    "card_holder_name": "John Doe",
    "card_last4": "1111",
    "card_expiry_month": "12",
    "card_expiry_year": "2028",
    "origin": "International card",
    "card_country": "United Kingdom"
  },
  "dispute_status": "Closed",
  "dispute_amount": 33.99,
  "dispute_currency": "AED",
  "dispute_date": "2023-12-25-14-38-53",
  "deadline_to_respond": "2023-12-25-14-38-53",
  "dispute_reason": "Fraudulent",
  "payment_link_id": "MB-LINK-5E6F7A8B9C",
  "event_type": "dispute.closed"
}

Field descriptions

FieldTypeDescription
idStringUnique payment identifier
amountNumberPayment amount
amount_currencyStringCurrency code for the payment amount
refund_amountNumberAmount that has been refunded
refund_statusStringRefund status description
refundsArrayBreakdown of each individual refund issued (id-amount-amount_currency-billing_amount-billing_amount_currency)
max_refund_amountNumberThe maximum amount that can still be refunded on this payment
billing_descriptorStringThe name that appears on the customer's bank statement
created_dateString (Format: YYYY-MM-DD-HH-MM-SS)Payment creation date and time
external_idStringExternal ID if sent
subscription_idStringUnique subscription identifier
customer_detailsDictionaryCustomer information (name, email, phone_number, comment)
payment_methodDictionaryPayment method details (card_id, type, card_holder_name, card_last4, card_expiry_month, card_expiry_year, origin, card_country)
dispute_statusStringCurrent status of dispute
dispute_amountStringAmount the customer has disputed
dispute_currencyStringCurrency of dispute
dispute_dateString (Format: YYYY-MM-DD)Date the dispute was raised
deadline_to_respondString (Format: YYYY-MM-DD)Deadline to submit a response to the dispute
dispute_reasonStringReason why the customer raised the dispute (e.g. fraudulent, product not received, etc.)
payment_link_idStringUnique payment link identifier
event_typeStringWebhook event type (dispute.received, dispute.won, etc.)