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

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Update Vendor

> Updates an existing [Vendor](entity:Vendor) object as a supplier to a seller.

`square.updateVendor` updates an existing [Vendor](entity:Vendor) object as a supplier to a seller.

## Example

```ts automations/square-update-vendor.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { square } from "automate.ax/square"

export default automation("Update Square Vendor", () => {
  onDashboardRun({ title: "Update Square Vendor" })

  square.updateVendor({
    vendorId: "vendor_id",
    body: {
      idempotencyKey: "8fc6a5b0-9fe8-4b46-b46b-2ef95793abbe",
      vendor: {
        id: "INV_V_JDKYHBWT1D4F8MFH63DBMEN8Y4",
        name: "Jack's Chicken Shack",
        version: 1,
        status: "ACTIVE",
      },
    },
  })
})
```

## Inputs

Every input accepts a compatible signal. It requires `VENDOR_WRITE`.

| Field      | Type                         | Required | Default | Description                   |
| ---------- | ---------------------------- | -------- | ------- | ----------------------------- |
| `vendorId` | `string`                     | Yes      | —       | ID of the Vendor to retrieve. |
| `body`     | `Square.UpdateVendorRequest` | Yes      | —       | Square `body` request field.  |

Use the official [UpdateVendor reference](https://developer.squareup.com/reference/square/vendors-api/update-vendor) for provider field semantics and limits.

## Output

Returns the official `Square.UpdateVendorResponse` response as a codec-safe object. Square integer money amounts remain `bigint` values.
