---
search:
  tags:
    - Payment
    - PUT
seo:
  description: >-
    Enable handlers and supply their processor/gateway parameters. Secret…
    Reference for the PUT /stores/{store_id}/payment-config endpoint in the
    Sarvex V1 API.
sidebar:
  label: Set a store's payment-handler configuration
  badge: PUT
title: Set a store's payment-handler configuration
type: openapi-operation
---
Enable handlers and supply their processor/gateway parameters. Secret material is write-only
(accepted here, never returned). A store cannot pass validation with checkout enabled but no
configured handler.

`PUT /stores/{store_id}/payment-config`

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

- `handlers` (object[])

Request body example:

```json
{
  "handlers": [
    {
      "handler_id": "google_pay",
      "enabled": true,
      "parameters": {}
    }
  ]
}
```

**Responses**

- `200` — Updated configuration.
- `422` — Request body failed validation.

Response example, 200:

```json
{
  "store_id": "string",
  "handlers": [
    {
      "handler_id": "google_pay",
      "name": "com.google.pay",
      "enabled": true,
      "configured": true,
      "config_status": "not_started"
    }
  ]
}
```

Response example, 422:

```json
{
  "error": {
    "code": "validation_error",
    "message": "One or more fields are invalid.",
    "details": {
      "fields": {
        "email": "must be a valid email address"
      }
    }
  }
}
```
