Guides

Supplier Data Model

Data Model

Overview

The "Supplier Status Changed" webhook is triggered whenever there is an update to the status of a supplier in the system. This webhook ensures that your system is notified of any changes in supplier status, allowing for real-time updates and appropriate actions.

Your webhook endpoint will receive a POST request containing an event with a Code of 4 and Name of SUPPLIER_STATUS_CHANGED. This event is particularly useful for monitoring supplier verifications and KYC (Know Your Customer) decision updates.


Request Model

The webhook payload consists of multiple nested objects containing essential supplier status details.

Event Object

Input ParameterTypeDescription
Event.Codenumber4 - SUPPLIER_STATUS_CHANGED
Event.NamestringSUPPLIER_STATUS_CHANGED
Event.CountryIsoCodestringThe country of your account with MyFatoorah.
Event.CreationDatedatetimeThe timestamp when the event was created in ISO 8601 format.
Event.ReferencestringUnique reference ID for the webhook event.

Data Object

The Data Object contains multiple nested objects as below.

Supplier Object

Input ParameterTypeDescription
Supplier.CodenumberUnique identifier for the supplier.
Supplier.NamestringThe name of the supplier.
Supplier.MobilestringThe mobile phone number of the supplier.
Supplier.EmailstringThe email address of the supplier.

KYC Decision Object

Input ParameterTypeDescription
KycDecision.StatusstringThe current status of the supplier’s KYC verification (e.g., APPROVED - REJECTED).
KycDecision.CommentsstringAny additional comments related to the KYC decision.
KycDecision.RejectionReasonarrayIf rejected, contains the reasons for rejection.

Rejection Reasons Object

You can find here all the Rejection Reasons.

Input ParameterTypeDescription
RejectionReason[ ].CodestringThe rejection reason code.
RejectionReason[ ].DescriptionstringDescription of the rejection reason.

Business Category Object

Input ParameterTypeDescription
BusinessCategory.CodestringThe MCC Code for the supplier
BusinessCategory.NamestringThe name of the MCC Code for the supplier

Sample Event

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

{
  "Event": {
    "Code": 4,
    "Name": "SUPPLIER_STATUS_CHANGED",
    "CountryIsoCode": "KWT",
    "CreationDate": "2025-05-13T06:25:26.7400000Z",
    "Reference": "WH-128071"
  },
  "Data": {
    "Supplier": {
      "Code": 279,
      "Name": "May Nicolas",
      "Mobile": "8237751513",
      "Email": "[email protected]"
    },
    "KycDecision": {
      "Status": "APPROVED",
      "Comments": "",
      "RejectionReason": []
    },
    "BusinessCategory": {
      "Code": "5814",
      "Name": "Cafes"
    }
  }
}
{
  "Event": {
    "Code": 4,
    "Name": "SUPPLIER_STATUS_CHANGED",
    "CountryIsoCode": "KWT",
    "CreationDate": "2025-05-13T06:28:55.2600000Z",
    "Reference": "WH-128075"
  },
  "Data": {
    "Supplier": {
      "Code": 273,
      "Name": "Daryl Sauer",
      "Mobile": "5089201194",
      "Email": "[email protected]"
    },
    "KycDecision": {
      "Status": "APPROVED",
      "Comments": "",
      "RejectionReason": [
        {
          "Code": "1",
          "Description": "Expired Company License"
        },
        {
          "Code": "7",
          "Description": "Expired Authorise Signatory - Kuwait"
        },
        {
          "Code": "30",
          "Description": "Unclear Bank approval letter- Home Business"
        },
        {
          "Code": "37",
          "Description": "Using Personal bank"
        },
        {
          "Code": "58",
          "Description": "Update Commercial Registeration to include the activity"
        },
        {
          "Code": "65",
          "Description": "Wrong email, require to register again"
        },
        {
          "Code": "75",
          "Description": "No Product"
        }
      ]
    },
    "BusinessCategory": {
      "Code": "5941",
      "Name": "Camping products"
    }
  }
}

Webhook Signature

You will use the parameters mentioned below to generate the webhook signature for the SUPPLIER_STATUS_CHANGED event.

Supplier.Code=279,KycDecision.Status=APPROVED

This webhook allows real-time tracking of supplier status changes, including verification and rejection updates, ensuring compliance and verification processes in your system.