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

# updateSellerPaymentDetailsWorkflow

> Upsert a seller's bank payment details.

Creates or updates the payment details record attached to a seller. Also run as a step by `createSellerAccountWorkflow` when payment details are provided at registration.

## Usage

```ts theme={null}
import { updateSellerPaymentDetailsWorkflow } from "@mercurjs/core/workflows"

const { result } = await updateSellerPaymentDetailsWorkflow(container).run({
  input: {
    seller_id: "sel_123",
    data: { holder_name: "Acme GmbH", iban: "DE89370400440532013000" },
  },
})
```

## Input

<ParamField body="seller_id" type="string" required>Id of the seller whose payment details are updated.</ParamField>

<ParamField body="data" type="UpdatePaymentDetailsDTO" required>
  Payment fields to set; all optional.

  <Expandable title="properties">
    <ParamField body="country_code" type="string">Bank country code.</ParamField>
    <ParamField body="holder_name" type="string">Account holder name.</ParamField>
    <ParamField body="bank_name" type="string">Bank name.</ParamField>
    <ParamField body="iban" type="string">IBAN.</ParamField>
    <ParamField body="bic" type="string">BIC / SWIFT code.</ParamField>
    <ParamField body="routing_number" type="string">Routing number.</ParamField>
    <ParamField body="account_number" type="string">Account number.</ParamField>
  </Expandable>
</ParamField>

<ParamField body="additional_data" type="object">Custom data passed through to the workflow hooks.</ParamField>

## Result

<ResponseField name="result" type="PaymentDetailsDTO">The updated payment details.</ResponseField>

## Hooks

* `paymentDetailsUpdated` — runs after the update with `{ payment_details, additional_data }`.

```ts theme={null}
updateSellerPaymentDetailsWorkflow.hooks.paymentDetailsUpdated(
  async ({ payment_details }) => {
    // e.g. trigger payout account re-verification
  }
)
```
