diff --git a/htdocs/societe/class/api_thirdparties.class.php b/htdocs/societe/class/api_thirdparties.class.php index a416400e434..ba9be5dbd8c 100644 --- a/htdocs/societe/class/api_thirdparties.class.php +++ b/htdocs/societe/class/api_thirdparties.class.php @@ -1156,7 +1156,7 @@ class Thirdparties extends DolibarrApi * * @url DELETE {id}/bankaccounts/{bankaccount_id} */ - function deleteCompanyBankAccount($bankaccount_id, $id) + function deleteCompanyBankAccount($id, $bankaccount_id) { if(! DolibarrApiAccess::$user->rights->societe->creer) { throw new RestException(401);