---
title: "EditSupplier"
method: POST
path: "/v2/EditSupplier"
tags: ["Supplier"]
---

# EditSupplier

`POST /v2/EditSupplier`

Edits information about a certain supplier. 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.

## Request body

- object
  - `SupplierCode` integer, required — The unique code of the supplier to edit
  - `SupplierName` string, required — The name of the supplier
  - `Mobile` string, required — The mobile number of the supplier
  - `Email` string, email, required — The email address of the supplier
  - `CommissionValue` number — A fixed value that will be deducted from each transaction
  - `CommissionPercentage` number — A percentage value that will be deducted from each transaction
  - `IsPercentageOfNetValue` boolean — 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
  - `DepositTerms` 'Daily' | 'Weekly' | 'Monthly' | 'OnDemand' — Daily for daily deposits, Weekly for weekly deposits, Monthly for monthly deposits, OnDemand for on hold deposits
  - `DepositDay` string — It is accepted in case of Weekly and Monthly. Weekly: You can pass values between 1 and 5. You can add multiple values. Monthly: You can pass values between 1 and 30. It accepts only a single value
  - `BankId` integer — Must be from the bank list received from GetBanks
  - `BankAccountHolderName` string — Should be string without any special characters or numbers
  - `BankAccount` string — Bank account number, only numbers
  - `Iban` string — Should be valid IBAN
  - `LogoFile` object — Logo file for the supplier
    - `FileName` string — The file name
    - `MediaType` string — The media type
    - `Buffer` string — The file buffer
  - `BusinessName` string — The name of the business
  - `DisplaySupplierDetails` boolean — Indicates if supplier details should be displayed on the invoice

## Response `200`

Successful response

- object
  - `IsSuccess` boolean — Indicates if the request was successful
  - `Message` string — Response message
  - `FieldsErrors` unknown[] — List of validation errors if any
    - unknown
  - `Data` object — Supplier edit result
    - `SupplierCode` integer — The unique code of the supplier
    - `SupplierEmail` string — The email address of the supplier
    - `Date` string — The date when the supplier was updated

---

[API](https://skmtc.net/myfatoorah/apis/myfatoorah-api-v3.md) · [All operations](https://skmtc.net/myfatoorah/apis/myfatoorah-api-v3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myfatoorah/myfatoorah-api-v3/revisions/994a74287a16/schema)
