Guides

Dispute Data Model

Data Model

Overview

The "Dispute Data Model" is a Data model type used in your webhook endpoint. This model provides information about any DisputeStatusChanged event.

The "DisputeStatusChanged" webhook is triggered whenever there is a dispute triggered for a payment on your account. This webhook ensures that your system is notified of the disputes taking place and their updates, allowing for real-time updates and appropriate actions.

Your webhook endpoint will receive a POST request containing an event with EventType of value 6 and Event of value DisputeStatusChanged. This event is particularly useful for tracking the type of chargeback and its status.

Request Model

Input ParameterTypeDescription
InvoiceIdstringUnique identifier for the invoice.
InvoiceReferencestringA unique reference number assigned to the invoice.
CustomerReferencestringThe CustomerIdentifier you sent in the request to create the invoice
CustomerNamestringName of the customer.
CustomerMobilestringCustomer's mobile number.
CustomerEmailstringCustomer's email address.
TransactionStatusstringThe status of the transaction (e.g., SUCCESS).
UserDefinedFieldstringAny custom user-defined field associated with the invoice.
InvoiceValueInBaseCurrencystringThe invoice amount in the base currency.
BaseCurrencystringThe base currency of your MyFatoorah account (e.g., KWD).
InvoiceValueInDisplayCurrenystringThe invoice amount in the display currency.
DisplayCurrencystringThe currency used for display.
InvoiceValueInPayCurrencystringThe invoice amount in the payment currency.
PayCurrencystringThe currency used for payment.
DisputeTransactionIdintegerUnique identifier for the dispute transaction.
DisputeTypestringThe type of dispute raised (e.g., CHARGEBACK - DOCUMENTREQUEST - FRAUDALERT - UNVERIFY).
DisputeStatusstringThe current status of the dispute (e.g., PENDING - RESOLVED - LOST).
DisputeChargeBackTypestringThe chargeback classification (e.g., General - Trading - Airways).
Has value only if DisputeType is CHARGEBACK
DisputeReasonstringThe reason provided for the dispute. Has value only if DisputeType is CHARGEBACK
InvoiceTransactionIdintegerIdentifier of the invoice transaction associated with the dispute.
DisputeCreatedDatestringThe date and time when the dispute was created (ddMMyyyyHHmmss).
InvoiceStatusstringThe current status of the invoice (e.g., PAID).
InvoiceCreationDatestringThe creation date of the invoice (ddMMyyyyHHmmss).
InvoiceExternalIdentifierstringExternal identifier associated with the invoice.
TransactionIdstringUnique identifier for the transaction.
TransactionPaymentMethodstringThe payment method used (e.g., KNET).
TransactionReferenceIdstringA unique identifier assigned to the transaction for tracking purposes.
TransactionECIstringThe Electronic Commerce Indicator (ECI) code, if available.
TransactionDatestringThe date and time when the transaction was processed (ddMMyyyyHHmmss).
TransactionAuthorizationIdstringA unique ID associated with the authorization of the payment.
TransactionTrackIdstringThe tracking ID for the payment transaction.
TransactionPaymentIdstringThe unique payment ID associated with the transaction.
ServiceChargeVATstringThe VAT applied to the service charge.
ServiceChargestringThe service charge applied in base currency.
ReceivableAmountstringThe amount the vendor receives in base currency.

Sample Message

The below sample JSON message is sent by MyFatoorah to your endpoint.

{
  "EventType": 6,
  "Event": "DisputeStatusChanged",
  "DateTime": "09072025170115",
  "CountryIsoCode": "KWT",
  "Data": {
    "InvoiceId": 5901147,
    "InvoiceReference": "2025059473",
    "CustomerReference": "3zfFL6R2rwUadhU4ke3q24nos",
    "CustomerName": "Anonymous",
    "CustomerMobile": "+965",
    "CustomerEmail": "",
    "TransactionStatus": "SUCCESS",
    "UserDefinedField": "",
    "InvoiceValueInBaseCurrency": "150",
    "BaseCurrency": "KWD",
    "InvoiceValueInDisplayCurreny": "150",
    "DisplayCurrency": "KWD",
    "InvoiceValueInPayCurrency": "150",
    "PayCurrency": "KWD",
    "DisputeTransactionId": 114,
    "DisputeType": "CHARGEBACK",
    "DisputeStatus": "PENDING",
    "DisputeChargeBackType": "Trading",
    "DisputeReason": "MerchandiseServiceNotReceived",
    "InvoiceTransactionId": 2827625,
    "DisputeCreatedDate": "09072025170115",
    "InvoiceStatus": "PAID",
    "InvoiceCreationDate": "09072025170013",
    "InvoiceExternalIdentifier": "3zfFL6R2rwUadhU4ke3q24nos",
    "TransactionId": "519010001981715",
    "TransactionPaymentMethod": "KNET",
    "TransactionReferenceId": "519010001100",
    "TransactionECI": "",
    "TransactionDate": "09072025170034",
    "TransactionAuthorizationId": "B20080",
    "TransactionTrackId": "09-07-2025_2827625",
    "TransactionPaymentId": "100519010000017643",
    "ServiceChargeVAT": "0.45",
    "ServiceCharge": "3",
    "ReceivableAmount": "146.55"
  }
}

Webhook Signature

👍

Signature

To generate the signature of this model, you should order only the above parameters alphabetic with its values then encrypt it by the secret key.

The following will be a sample string used in generating the signature.

BaseCurrency=KWD,CustomerEmail=,CustomerMobile=+965,CustomerName=Anonymous,CustomerReference=3zfFL6R2rwUadhU4ke3q24nos,DisplayCurrency=KWD,DisputeChargeBackType=Trading,DisputeCreatedDate=09072025170115,DisputeReason=MerchandiseServiceNotReceived,DisputeStatus=PENDING,DisputeTransactionId=114,DisputeType=CHARGEBACK,InvoiceCreationDate=09072025170013,InvoiceExternalIdentifier=3zfFL6R2rwUadhU4ke3q24nos,InvoiceId=5901147,InvoiceReference=2025059473,InvoiceStatus=PAID,InvoiceTransactionId=2827625,InvoiceValueInBaseCurrency=150,InvoiceValueInDisplayCurreny=150,InvoiceValueInPayCurrency=150,PayCurrency=KWD,ReceivableAmount=146.55,ServiceCharge=3,ServiceChargeVAT=0.45,TransactionAuthorizationId=B20080,TransactionDate=09072025170034,TransactionECI=,TransactionId=519010001981715,TransactionPaymentId=100519010000017643,TransactionPaymentMethod=KNET,TransactionReferenceId=519010001100,TransactionStatus=SUCCESS,TransactionTrackId=09-07-2025_2827625,UserDefinedField=