> ## Documentation Index
> Fetch the complete documentation index at: https://oblodai.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Сетевая комиссия выплаты

**Методы:** `/v1/payout/fee-config/get` · `/v1/payout/fee-config/set`

Per‑project настройка: перекладывать ли **сетевую** комиссию выплаты на получателя.

**Аутентификация:** обязательна.

<Note>
  Примеры используют хелпер `call()` и переменные `$SECRET`/`$PUBLIC_ID` — их определение см. в
  [Как подписать запрос](/guides/signing-requests). Проще не писать подпись руками, а взять
  [SDK](/sdk/overview).
</Note>

***

## POST /v1/payout/fee-config/get

Тело — пустой объект `{}` без параметров.

```json theme={null}
{ "state": 0, "result": { "fee_on_recipient": true, "configured": true } }
```

`configured: false` означает, что override не задан и действует дефолт шлюза.

***

## POST /v1/payout/fee-config/set

<ParamField body="fee_on_recipient" type="bool" required>
  `true` — сетевую комиссию платит получатель (получает меньше); `false` — комиссию несёт мерчант.
</ParamField>

Ответ:

```json theme={null}
{ "state": 0, "result": { "fee_on_recipient": true } }
```

***

## Примеры

<CodeGroup>
  ```bash cURL theme={null}
  BODY='{"fee_on_recipient":true}'
  TS=$(date +%s)
  SIG=$(printf '%s\n%s\n%s\n%s' "$TS" 'POST' '/v1/payout/fee-config/set' "$BODY" \
    | openssl dgst -sha256 -hmac "$SECRET" -hex | sed 's/^.* //')
  curl -s https://api.oblodai.com/v1/payout/fee-config/set \
    -X POST -H 'Content-Type: application/json' \
    -H "X-Public-Id: $PUBLIC_ID" -H "X-Timestamp: $TS" -H "X-Signature: $SIG" \
    -d "$BODY"
  ```

  ```python Python theme={null}
  call("/v1/payout/fee-config/set", {"fee_on_recipient": True})
  call("/v1/payout/fee-config/get", {})
  ```

  ```js Node.js theme={null}
  await call("/v1/payout/fee-config/set", { fee_on_recipient: true });
  await call("/v1/payout/fee-config/get", {});
  ```
</CodeGroup>

***

## Нюансы

* Это про **сетевую** комиссию выплаты. За то, кто несёт **нашу** комиссию при возврате, отвечает
  отдельная настройка — [`refund-fee-config`](/reference/payout-refund-fee-config).
* Влияет на распределение сумм в [`POST /v1/payout/calculate`](/reference/payout-calculate) и на фактическую
  выплату.

***

## Связанные страницы

<CardGroup cols={2}>
  <Card title="POST /v1/payout/calculate" href="/reference/payout-calculate" icon="arrow-right" horizontal />

  <Card title="POST /v1/payout" href="/reference/payout-create" icon="arrow-right" horizontal />

  <Card title="Кто платит комиссию возврата" href="/reference/payout-refund-fee-config" icon="arrow-right" horizontal />
</CardGroup>
