---
search:
  tags:
    - Suppliers
    - POST
seo:
  description: >-
    Update a supplier (POST body is partial). Requires a Write key. Reference
    for the POST /suppliers/{supplierId} endpoint in the scango.ch API.
sidebar:
  label: Update supplier
  badge: POST
title: Update supplier
type: openapi-operation
---
Update a supplier (POST body is partial). Requires a Write key.

`POST /suppliers/{supplierId}`

**Request body** (`application/json`, required)

- `name` (string)
- `externalId` (string) — Optional external identifier
- `company` (string)
- `city` (string)
- `street` (string)
- `plz` (string)
- `email` (string)
- `payoutEmail` (string)
- `orderEmail` (string)
- `phone` (string)
- `contactPerson` (string)
- `contactPhone` (string)
- `dailyMail` (string)
- `supplierMargin` (number)
- `iban` (string)
- `bic` (string)
- `bankName` (string)
- `payoutsEnabled` (boolean)
- `deleted` (boolean) — Set true to soft-delete.

Request body example:

```json
{
  "city": "Bern"
}
```

**Responses**

- `200` — Updated
- `400` — Invalid parameters or body.
- `403` — Missing, unknown or inactive API key, or a Read key on a write operation.
- `404` — No item with this id.

Response example, 200:

```json
{
  "success": true
}
```

Response example, 400:

```json
{
  "statusCode": 400,
  "message": "Validation failed for Field: name, Error: Required",
  "timestamp": "2024-04-20T12:00:00.000Z",
  "path": "/api/v1/suppliers"
}
```

Response example, 403:

```json
{
  "statusCode": 403,
  "message": "Unknown Error",
  "timestamp": "2024-04-20T12:00:00.000Z",
  "path": "/api/v1/products"
}
```
