---
title: "$viva->bankAccounts->feeCommand()"
method: POST
path: "/BankAccounts/feeCommand"
tags: ["BankAccounts"]
---

# $viva->bankAccounts->feeCommand()

`POST /BankAccounts/feeCommand`

Crée une commande de frais pour vérifier le coût d'un virement avant exécution.

```php
$fees = $viva->bankAccounts->feeCommand(
    bankAccountId: 'bank-account-uuid',
    amount: 10000,                    // 100,00 EUR
    walletId: 'source-wallet-uuid',
    isInstant: true,                  // SEPA instantané
    instructionType: 'SHA',           // Frais partagés
);

echo $fees['bankCommandId']; // À passer à send()
echo $fees['fee'];           // Frais en centimes
```

## Request body

- BankAccountFeeCommandParams
  - `bankAccountId` string, uuid, required — UUID du compte bancaire lié
  - `amount` integer, required — Montant en centimes
  - `walletId` string, required — UUID du portefeuille source
  - `isInstant` boolean — SEPA instantané ?
  - `instructionType` 'SHA' | 'OUR' — Type d'instruction de frais (SHA = partagés, OUR = à notre charge)

## Response `200`

Commande de frais créée

- BankAccountFeeCommandResult
  - `bankCommandId` string — ID de la commande de frais (à passer à `send()`)
  - `fee` integer — Frais en centimes

---

[API](https://skmtc.net/qrcommunication/apis/viva-wallet-merchant-sdk-re-fe-rence-php.md) · [All operations](https://skmtc.net/qrcommunication/apis/viva-wallet-merchant-sdk-re-fe-rence-php/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/qrcommunication/viva-wallet-merchant-sdk-re-fe-rence-php/versions/bcafd06ce584/schema)
