Supplier Update Request Data Model
Data Model
Overview
The "Supplier Update Request Data Model" is a Data model type used in your webhook endpoint. This model provides information about any SupplierUpdateRequestChanged event.
The "SupplierUpdateRequestChanged" webhook is triggered whenever there is a request to edit a supplier that has been approved or rejected. This webhook ensures that your system is notified of the status of the update request, allowing for real-time updates and appropriate actions.
Your webhook endpoint will receive a POST request containing an event with EventType of value 7 and Event of value SupplierUpdateRequestChanged. This event is particularly useful for tracking the type of chargeback and its status.
Request Model
Input Parameter | Type | Description |
---|---|---|
RequestStatus | string | The status of the request. (APPROVED - REJECTED ) |
Comments | string | The comments entered by the concerned team for the request. |
ActionDate | string | The date and time when the decision on the request was made |
SupplierCode | string | The code of the supplier in MyFatoorah system. |
SupplierName | string | The supplier name in MyFatoorah system. |
SupplierMobile | string | The mobile number of the supplier. |
SupplierEmail | string | The email of the supplier. |
SupplierStatus | string | The status of the supplier. (APPROVED - REJECTED ) |
Sample Message
The below sample JSON message is sent by MyFatoorah to your endpoint.
{
"EventType": 7,
"Event": "SupplierUpdateRequestChanged",
"DateTime": "18082025142539",
"CountryIsoCode": "KWT",
"Data": {
"RequestStatus": "APPROVED",
"Comments": "",
"ActionDate": "18082025142539",
"SupplierCode": 330,
"SupplierName": "Ignacio Kling",
"SupplierMobile": "2227887904",
"SupplierEmail": "[email protected]",
"SupplierStatus": "APPROVED"
}
}
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.
ActionDate=18082025142539,Comments=,RequestStatus=APPROVED,SupplierCode=330,[email protected],SupplierMobile=2227887904,SupplierName=Ignacio Kling,SupplierStatus=APPROVED
Updated about 2 hours ago