Square: Bulk Update Vendors
Square vendors.bulkUpdateVendors: arguments, response, policy and SDK examples.
← Vendors operations · Get started
Operation square.bulkupdatevendors
Provider route: PUT /v2/vendors/bulk-update. Alter supplies the connection’s credentials and routing.
Call through Alter
Section titled “Call through Alter”Install @alter-ai/sdk @alter-ai/square with npm, or alter-sdk-square with pip. Supply your connected customer’s grant ID and the arguments described below.
import { App } from "@alter-ai/sdk";import { SquareIntegration } from "@alter-ai/square";
async function execute(input: Parameters<SquareIntegration["vendors"]["bulkUpdateVendors"]>[0]) { const app = new App({ apiKey: process.env.ALTER_API_KEY! }); try { const provider = new SquareIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! }); const call = await provider.vendors.bulkUpdateVendors(input); const result = await call.wait(); return result.bodyJson(); } finally { await app.close(); }}import osfrom alter_sdk import Appfrom alter_sdk_square import SquareIntegration
async def execute(arguments): async with App(api_key=os.environ["ALTER_API_KEY"]) as app: provider = SquareIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]}) call = await provider.vendors.bulk_update_vendors(arguments) result = await call.wait() return result.body_json()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
body | Model | Required within parent | Expand Bulk Update Vendors — request body — body |
Referenced models: Bulk Update Vendors — request body — body
Response
Section titled “Response”Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | Model | Root | Expand Bulk Update Vendors — response body |
Referenced models: Bulk Update Vendors — response body
Schemas
Section titled “Schemas”7 more schemas are linked from the tables above, on the schema pages.
Bulk Update Vendors — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an input to a call to [BulkUpdateVendors](api-endpoint:Vendors-BulkUpdateVendors). |
vendors | object | Required within parent | A set of [UpdateVendorRequest](entity:UpdateVendorRequest) objects encapsulating to-be-updated [Vendor](entity:Vendor) objects. The set is represented by a collection of `Vendor`-ID/`UpdateVendorRequest`-object pairs. Additional keys: see wildcard field |
vendors.* | Model | Additional keys | Expand Update Vendor — request body — body |
Referenced models: Update Vendor — request body — body
Bulk Update Vendors — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an output from a call to [BulkUpdateVendors](api-endpoint:Vendors-BulkUpdateVendors). |
errors | array | Optional | Errors encountered when the request fails. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
responses | object | Optional | A set of [UpdateVendorResponse](entity:UpdateVendorResponse) objects encapsulating successfully created [Vendor](entity:Vendor) objects or error responses for failed attempts. The set is represented by a collection of `Vendor`-ID/`UpdateVendorResponse`-object or `Vendor`-ID/error-object pairs. Additional keys: see wildcard field |
responses.* | Model | Additional keys | Expand Update Vendor — response body |
Referenced models: Get Shift — response body — errors item, Update Vendor — response body
Update Vendor — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an input to a call to [UpdateVendor](api-endpoint:Vendors-UpdateVendor). |
idempotency_key | JSON | Optional | |
idempotency_key (anyOf 1) | string | Alternative | A client-supplied, universally unique identifier (UUID) for the request. See [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency) in the [API Development 101](https://developer.squareup.com/docs/buildbasics) section for more information. Maximum length: 128 |
idempotency_key (anyOf 2) | null | Alternative | |
vendor | Model | Required within parent | Expand Create Vendor — request body — body vendor The specified [Vendor](entity:Vendor) to be updated. |
Referenced models: Create Vendor — request body — body vendor
Get Shift — response body — errors item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an error encountered during a request to the Connect API. See [Handling errors](https://developer.squareup.com/docs/build-basics/handling-errors) for more information. |
category | string | Required within parent | Indicates which high-level category of error has occurred during a request to the Connect API. The high-level category for the error. See [ErrorCategory](#type-errorcategory) for possible values Known values: API_ERROR, AUTHENTICATION_ERROR, INVALID_REQUEST_ERROR, RATE_LIMIT_ERROR, PAYMENT_METHOD_ERROR, REFUND_ERROR, MERCHANT_SUBSCRIPTION_ERROR, EXTERNAL_VENDOR_ERROR |
code | Model | Required within parent | Expand Get Shift — response body — errors item code The specific code of the error. See [ErrorCode](#type-errorcode) for possible values |
detail | string | Optional | A human-readable description of the error for debugging purposes. |
field | string | Optional | The name of the field provided in the original request (if any) that the error pertains to. |
Referenced models: Get Shift — response body — errors item code
Update Vendor — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an output from a call to [UpdateVendor](api-endpoint:Vendors-UpdateVendor). |
errors | array | Optional | Errors occurred when the request fails. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
vendor | Model | Optional | Expand Create Vendor — response body — vendor The [Vendor](entity:Vendor) that has been updated. |
Referenced models: Get Shift — response body — errors item, Create Vendor — response body — vendor
Create Vendor — request body — body vendor
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a supplier to a seller. |
account_number | JSON | Optional | |
account_number (anyOf 1) | string | Alternative | The account number of the [Vendor](entity:Vendor). Maximum length: 100 |
account_number (anyOf 2) | null | Alternative | |
address | JSON | Optional | |
address (anyOf 1) | Model | Alternative | Expand Create Customer — request body — body address The address of the [Vendor](entity:Vendor). |
address (anyOf 2) | null | Alternative | |
contacts | JSON | Optional | |
contacts (anyOf 1) | array | Alternative | The contacts of the [Vendor](entity:Vendor). |
contacts (anyOf 1)[] | Model | Each item | Expand Create Vendor — request body — body vendor contacts The contacts of the Vendor (entity:Vendor) item |
contacts (anyOf 2) | null | Alternative | |
created_at | string | Optional | An RFC 3339-formatted timestamp that indicates when the [Vendor](entity:Vendor) was created. Maximum length: 34 Read only: true |
id | string | Optional | A unique Square-generated ID for the [Vendor](entity:Vendor). This field is required when attempting to update a [Vendor](entity:Vendor). Maximum length: 100 |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The name of the [Vendor](entity:Vendor). This field is required when attempting to create or update a [Vendor](entity:Vendor). Maximum length: 100 |
name (anyOf 2) | null | Alternative | |
note | JSON | Optional | |
note (anyOf 1) | string | Alternative | A note detailing information about the [Vendor](entity:Vendor). Maximum length: 4096 |
note (anyOf 2) | null | Alternative | |
status | JSON | Optional | |
status (anyOf 1) | string | Alternative | The status of the [Vendor](entity:Vendor), whether a [Vendor](entity:Vendor) is active or inactive. The status of the [Vendor](entity:Vendor). See [Status](#type-status) for possible values One of: ACTIVE, INACTIVE |
status (anyOf 2) | null | Alternative | |
updated_at | string | Optional | An RFC 3339-formatted timestamp that indicates when the [Vendor](entity:Vendor) was last updated. Maximum length: 34 Read only: true |
version | integer | Optional | The version of the [Vendor](entity:Vendor). |
Referenced models: Create Customer — request body — body address, Create Vendor — request body — body vendor contacts The contacts of the Vendor (entity:Vendor) item
Create Vendor — request body — body vendor contacts The contacts of the Vendor (entity:Vendor) item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a contact of a [Vendor](entity:Vendor). |
email_address | JSON | Optional | |
email_address (anyOf 1) | string | Alternative | The email address of the [VendorContact](entity:VendorContact). Maximum length: 255 |
email_address (anyOf 2) | null | Alternative | |
id | string | Optional | A unique Square-generated ID for the [VendorContact](entity:VendorContact). This field is required when attempting to update a [VendorContact](entity:VendorContact). Maximum length: 100 |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The name of the [VendorContact](entity:VendorContact). This field is required when attempting to create a [Vendor](entity:Vendor). Maximum length: 255 |
name (anyOf 2) | null | Alternative | |
ordinal | integer | Required within parent | The ordinal of the [VendorContact](entity:VendorContact). |
phone_number | JSON | Optional | |
phone_number (anyOf 1) | string | Alternative | The phone number of the [VendorContact](entity:VendorContact). Maximum length: 255 |
phone_number (anyOf 2) | null | Alternative | |
removed | JSON | Optional | |
removed (anyOf 1) | boolean | Alternative | The state of the [VendorContact](entity:VendorContact). |
removed (anyOf 2) | null | Alternative |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: square.bulkupdatevendors. Catalog operation: BulkUpdateVendors. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.
Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.
Required provider scopes: ["VENDOR_WRITE"]
Pinned headers: {"Square-Version": "2026-11-18"}