---
title: "Upsert customer payment settings"
method: PUT
path: "/customers/payment_settings"
tags: ["Customers"]
---

# Upsert customer payment settings

`PUT /customers/payment_settings`

## Request body

- UpsertCustomerPaymentSettingsRequest — Request for upserting customer payment settings
  - `customerIds` string[] — The ids of the customers for which to upsert payment settings
  - `paymentSettings` PaymentSettings — Customer payment settings
    - `allowPartialPayments` boolean — Indicates whether partial payments are allowed
    - `minPartialPaymentAmount` number — The minimum amount for partial payments
    - `surchargeIsEnabled` boolean — Indicates whether a surcharge is applied to commercial card payments
    - `lateFeesIsEnabled` boolean — Indicates whether late fees calculation is enabled

## Response `200`

The payment settings were successfully updated.

- CustomerPaymentSettingsResponse — Customer payment settings
  - `allowPartialPayments` boolean — Indicates whether partial payments are allowed
  - `minPartialPaymentAmount` number — The minimum amount for partial payments
  - `surchargeIsEnabled` boolean — Indicates whether a surcharge is applied to commercial card payments
  - `lateFeesIsEnabled` boolean — Indicates whether late fees calculation is enabled

## Other responses

- `400` — A problem reading or understanding the request. Ensure that the request complies with the required format and includes all necessary parameters.
- `401` — Authentication required - Invalid or missing authorization headers.
- `422` — A request validation error.
- `500` — The server could not process the request.

---

[API](https://skmtc.dev/adfin/apis/adfin-api.md) · [All operations](https://skmtc.dev/adfin/apis/adfin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/adfin/adfin-api/revisions/53d29f0850e0/schema)
