GetSuppliers
Endpoint
Overview
The "GetSuppliers" endpoint is a GET request. It is used to retrieve a list that contains full information about your suppliers. Detailed functionality of how to use this endpoint is explained in the Multiple Suppliers section.
The endpoint on Swagger is GetSuppliers.
Now, we are going to declare the endpoint and its models along with each accepted parameter and possible value.
Request Header
Add "Authorization": "Bearer {Token}" to request header. Token of demo configuration can be found here.
Request Model
The request is a GET request without any parameters.
Response Model
The response is an array of ManageSupplierResponse objects as follows:
Response Field | Type | Description |
---|---|---|
SupplierCode | integer | |
SupplierName | string | |
Mobile | string | |
string | ||
CommissionValue | number | |
CommissionPercentage | number | |
DepositTerms | string | Daily - Weekly - Monthly - OnDemand |
DepositDay | string | This represents the day on which the deposit is going to take place in the case of Weekly or Monthly DepositTerms. |
SupplierStatus | string | "Active", "Pending", "Rejected", "Closed", "Dormant" |
Comment | string | The reason for rejection (if the supplier is rejected) |
IsPercentageOfNetValue | boolean | Represents whether the CommissionPercentage is taken from the total amount paid for the supplier or from the net value |
BusinessName | string | The name displayed on the MyFataoorah invoices if the value of DisplaySupplierDetails is true |
DisplaySupplierDetails | boolean | Show the supplier details on the invoices of MyFatoorah instead of the vendor details |
SupplierCommissions | array of objects | Customized commissions made for the payment methods for the supplier |
BusinessCategory | object | Shows the MCC details of the supplier |
SupplierCommissions Array
Field | Type | Description |
---|---|---|
PaymentMethodName | string | Name of the payment method |
CommissionValue | number | |
CommissionPercentage | number | |
IsPercentageOfNetValue | string |
BusinessCategory
Field | Type | Description |
---|---|---|
Code | string | MCC for the supplier |
Name | string | Name of the MCC |
Sample Message
/v2/GetSuppliers
[
{
"SupplierCode": 27,
"SupplierName": "Jada Williamson",
"Mobile": "863-322-8615",
"Email": "[email protected]",
"CommissionValue": 0.50,
"CommissionPercentage": 1.000,
"DepositTerms": "Daily",
"DepositDay": null,
"SupplierStatus": "Rejected",
"Comment": "سيشسيشيشس",
"IsPercentageOfNetValue": false,
"BusinessName": null,
"DisplaySupplierDetails": false,
"SupplierCommissions": [],
"BusinessCategory": {
"Code": "5941",
"Name": "Camping products"
}
},
{
"SupplierCode": 53,
"SupplierName": "dasd sads",
"Mobile": "0555555555",
"Email": "[email protected]",
"CommissionValue": 1.00,
"CommissionPercentage": 1.000,
"DepositTerms": "Daily",
"DepositDay": null,
"SupplierStatus": "Pending",
"Comment": "",
"IsPercentageOfNetValue": false,
"BusinessName": null,
"DisplaySupplierDetails": false,
"SupplierCommissions": [
{
"PaymentMethodName": "Apple Pay",
"CommissionValue": 1.000,
"CommissionPercentage": 3.000,
"IsPercentageOfNetValue": "False"
}
],
"BusinessCategory": {
"Code": null,
"Name": null
}
},
.....................
]
Updated 20 days ago