---
updatedAt: 2026-02-16T08:49:12.000Z
agentTools:
  projectIndex: https://docs.myfatoorah.com/llms.txt
---

# EditSupplier

Endpoint

## **Overview**

The "EditSupplier" endpoint is a POST request. It is used to edit information about a certain supplier. Detailed functionality of how to use this endpoint is explained in the [Multiple Suppliers](https://docs.myfatoorah.com/docs/multiple-suppliers) section.

The endpoint on Swagger is [EditSupplier](https://apitest.myfatoorah.com/swagger/ui/index#!/Supplier/Supplier_EditSupplier).

Now, we are going to declare the endpoint and its models along with each accepted parameter and possible value.

If the supplier is approved, the request to update the supplier will be reviewed first by MyFatoorah team before approving or rejecting it. While a request is under review, you cannot create another request.

Upon approval or rejection of the changes, you will receive a webhook. For more information, please check [Supplier Update Request Data Model](https://docs.myfatoorah.com/docs/webhook-v2-supplier-update-request-data-model)

> 📘 Request Header
>
> Add **"Authorization": "Bearer \{Token}"** to request header. Token of demo configuration can be found [here](https://docs.myfatoorah.com/docs/test-token).

<hr />

## **Request Model**

The request is a POST request with the following parameters:

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th>
        Input Parameter
      </th>

      <th>
        Type
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        **SupplierCode**
      </td>

      <td>
        integer
      </td>

      <td>

      </td>
    </tr>

    <tr>
      <td>
        **SupplierName**
      </td>

      <td>
        string
      </td>

      <td>

      </td>
    </tr>

    <tr>
      <td>
        **Mobile**
      </td>

      <td>
        string
      </td>

      <td>

      </td>
    </tr>

    <tr>
      <td>
        **Email**
      </td>

      <td>
        string
      </td>

      <td>

      </td>
    </tr>

    <tr>
      <td>
        **CommissionValue**
      </td>

      <td>
        number, optional
      </td>

      <td>
        A fixed value that will be deducted from each transaction.
      </td>
    </tr>

    <tr>
      <td>
        **CommissionPercentage**
      </td>

      <td>
        number, optional
      </td>

      <td>
        A percentage value that will be deducted from each transaction.
      </td>
    </tr>

    <tr>
      <td>
        **IsPercentageOfNetValue**
      </td>

      <td>
        boolean, optional
      </td>

      <td>
        * \*true\*\*: deduct the percentage from the (total amount - transaction fees)  
        * \*false\*\*: deduct the percentage from the total amount\
          Affects only in case of one supplier in the request.
      </td>
    </tr>

    <tr>
      <td>
        **DepositTerms**
      </td>

      <td>
        string, optional
      </td>

      <td>
        * \*Daily\*\* for daily deposits  
        * \*Weekly\*\* for weekly deposits  
        * \*Monthly\*\* for monthly deposits  
        * \*OnDemand\*\* for OnDemand, i.e. on hold deposits
      </td>
    </tr>

    <tr>
      <td>
        **DepositDay**
      </td>

      <td>
        string, optional
      </td>

      <td>
        It is accepted in case of **Weekly**and **Monthly**  

        * \*Weekl&#x79;**: You can pass values between**1 **and**5\*\*. You can add multiple values.  
        * \*Monthl&#x79;**: You can pass values between**1**and**30\*\*. It accepts only a single value.
      </td>
    </tr>

    <tr>
      <td>
        **BankId**
      </td>

      <td>
        integer, optional
      </td>

      <td>
        It must be from the bank list received from [GetBanks](https://docs.myfatoorah.com/docs/getbanks)
      </td>
    </tr>

    <tr>
      <td>
        **BankAccountHolderName**
      </td>

      <td>
        string, optional
      </td>

      <td>
        It should be string without any special characters or numbers
      </td>
    </tr>

    <tr>
      <td>
        **BankAccount**
      </td>

      <td>
        string, optional
      </td>

      <td>
        only numbers
      </td>
    </tr>

    <tr>
      <td>
        **Iban**
      </td>

      <td>
        string, optional
      </td>

      <td>
        It should be valid [IBAN](https://en.wikipedia.org/wiki/International_Bank_Account_Number#IBAN_formats_by_country).
      </td>
    </tr>

    <tr>
      <td>
        **LogoFile**
      </td>

      <td>
        [HttpFile](#httpfile) Model, optional
      </td>

      <td>

      </td>
    </tr>

    <tr>
      <td>
        **BusinessName**
      </td>

      <td>
        string, optional
      </td>

      <td>

      </td>
    </tr>

    <tr>
      <td>
        **DisplaySupplierDetails**
      </td>

      <td>
        boolean, optional
      </td>

      <td>

      </td>
    </tr>
  </tbody>
</Table>

<hr />

## HttpFile

| Input Parameter | Type             | Description |
| :-------------- | :--------------- | :---------- |
| **FileName**    | string, optional |             |
| **MediaType**   | string, optional |             |
| **Buffer**      | string, optional |             |

<hr />

## **Response Model**

After viewing the [Response Model](https://docs.myfatoorah.com/docs/response-model) that you will get as a result of your request, here, you will find full details about the **Data** Model of this API endpoint. Let's check it and its contents.

| Response Field    | Type    | Description |
| :---------------- | :------ | :---------- |
| **SupplierCode**  | integer |             |
| **SupplierEmail** | string  |             |
| **Date**          | string  |             |

<hr />

## **Sample Message**

```json Request
{
  "SupplierCode": 115,
  "SupplierName": "supplier_name",
  "Mobile": "string",
  "Email": "a@b.xyz",
  "CommissionValue": 0,
  "CommissionPercentage": 0,
  "DepositTerms": "Daily",
}
```
```json Response
{
    "IsSuccess": true,
    "Message": "The Supplier Updated Successfully!",
    "FieldsErrors": null,
    "Data": {
        "SupplierCode": 115,
        "SupplierEmail": "a@b.xyz",
        "Date": "2020-11-24T11:08:00.2220936+03:00"
    }
}
```

<hr />