# Update Seller

Fully replaces the seller details and payment method configurations for a given seller.

<Warning>
**Important**

This is a full replacement operation. All fields you want to keep must be included. Omitted optional fields will be set to `null`.
</Warning>

**PUT** `/sellers/{merchant_seller_id}`

Base URL: `https://api-sandbox.whitelabel.com/v1`

Fully replaces the seller details and payment method configurations. `merchant_seller_id` is taken from the URL path; `account_id` must be provided in the request body.

## Header parameters

- `public-api-key` (string, required)
- `private-secret-key` (string, required)

## Path parameters

- `merchant_seller_id` (string, required)

## Body

Content type: `application/json`

- `account_id` (string<uuid>, required)
- `name` (string)
- `email` (string<email>)
- `phone` (object)
  - `code` (string)
    Country dialing code (e.g. +1, +57).
  - `number` (string)
- `document` (object)
  - `type` (string)
  - `number` (string)
- `address` (object)
  - `line_1` (string)
  - `line_2` (string)
  - `city` (string)
  - `state` (string)
  - `country` (string)
  - `zip_code` (string)
- `country` (string)
  ISO 3166-1 alpha-2 country code.
- `industry` (string)
- `merchant_category_code` (string)
- `payment_methods` (object[])
  - `provider_id` (string, required)
  - `payment_method_type` (string, required)
  - `merchant_id` (string)
  - `wallet_details` (object)
    - `payment_processing_key` (string)
    - `payment_processing_certificate` (string)
    - `merchant_identity_key` (string)
    - `merchant_identity_certificate` (string)
    - `merchant_identity_password` (string)

Example:

```json
{
  "account_id": "00000000-0000-0000-0000-000000000000",
  "name": "string",
  "email": "user@example.com",
  "phone": {
    "code": "string",
    "number": "string"
  },
  "document": {
    "type": "string",
    "number": "string"
  },
  "address": {
    "line_1": "string",
    "line_2": "string",
    "city": "string",
    "state": "string",
    "country": "string",
    "zip_code": "string"
  },
  "country": "string",
  "industry": "string",
  "merchant_category_code": "string",
  "payment_methods": [
    {
      "provider_id": "string",
      "payment_method_type": "string",
      "merchant_id": "string",
      "wallet_details": {
        "payment_processing_key": "string",
        "payment_processing_certificate": "string",
        "merchant_identity_key": "string",
        "merchant_identity_certificate": "string",
        "merchant_identity_password": "string"
      }
    }
  ]
}
```

## Responses

### 200

OK

- `seller_id` (string<uuid>)
- `merchant_seller_id` (string)
- `name` (string)
- `email` (string)
- `phone` (object)
  - `code` (string)
    Country dialing code (e.g. +1, +57).
  - `number` (string)
- `document` (object)
  - `type` (string)
  - `number` (string)
- `address` (object)
  - `line_1` (string)
  - `line_2` (string)
  - `city` (string)
  - `state` (string)
  - `country` (string)
  - `zip_code` (string)
- `country` (string)
- `website` (string)
- `industry` (string)
- `merchant_category_code` (string)
- `payment_methods` (object[])
  - `provider_id` (string, required)
  - `payment_method_type` (string, required)
  - `merchant_id` (string)
  - `wallet_details` (object)
    - `payment_processing_key` (string)
    - `payment_processing_certificate` (string)
    - `merchant_identity_key` (string)
    - `merchant_identity_certificate` (string)
    - `merchant_identity_password` (string)
- `created_at` (string<date-time>)
- `updated_at` (string<date-time>)

Example:

```json
{
  "seller_id": "00000000-0000-0000-0000-000000000000",
  "merchant_seller_id": "string",
  "name": "string",
  "email": "string",
  "phone": {
    "code": "string",
    "number": "string"
  },
  "document": {
    "type": "string",
    "number": "string"
  },
  "address": {
    "line_1": "string",
    "line_2": "string",
    "city": "string",
    "state": "string",
    "country": "string",
    "zip_code": "string"
  },
  "country": "string",
  "website": "string",
  "industry": "string",
  "merchant_category_code": "string",
  "payment_methods": [
    {
      "provider_id": "string",
      "payment_method_type": "string",
      "merchant_id": "string",
      "wallet_details": {
        "payment_processing_key": "string",
        "payment_processing_certificate": "string",
        "merchant_identity_key": "string",
        "merchant_identity_certificate": "string",
        "merchant_identity_password": "string"
      }
    }
  ],
  "created_at": "1970-01-01T00:00:00.000Z",
  "updated_at": "1970-01-01T00:00:00.000Z"
}
```

### 400

Bad Request

- `code` (string)
- `message` (string)

Example:

```json
{
  "code": "string",
  "message": "string"
}
```

### 401

Unauthorized

- `code` (string)
- `message` (string)

Example:

```json
{
  "code": "string",
  "message": "string"
}
```

### 404

Not Found

- `code` (string)
- `message` (string)

Example:

```json
{
  "code": "string",
  "message": "string"
}
```