Skip to content

Square: Vendors schemas

19 Square schemas with complete fields and constraints.

← Vendors operations · All schemas

Bulk Create Vendors — request body — body

FieldTypePresenceDescription and constraints
$objectRootRepresents an input to a call to [BulkCreateVendors](api-endpoint:Vendors-BulkCreateVendors).
vendorsobjectRequired within parentSpecifies a set of new [Vendor](entity:Vendor) objects as represented by a collection of idempotency-key/`Vendor`-object pairs.
Additional keys: see wildcard field
vendors.*ModelAdditional keysExpand Create Vendor — request body — body vendor

Referenced models: Create Vendor — request body — body vendor

Bulk Create Vendors — response body

FieldTypePresenceDescription and constraints
$objectRootRepresents an output from a call to [BulkCreateVendors](api-endpoint:Vendors-BulkCreateVendors).
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
responsesobjectOptionalA set of [CreateVendorResponse](entity:CreateVendorResponse) objects encapsulating successfully created [Vendor](entity:Vendor)
objects or error responses for failed attempts. The set is represented by
a collection of idempotency-key/`Vendor`-object or idempotency-key/error-object pairs. The idempotency keys correspond to those specified
in the input.
Additional keys: see wildcard field
responses.*ModelAdditional keysExpand Create Vendor — response body

Referenced models: Create Vendor — response body, Get Shift — response body — errors item

Bulk Retrieve Vendors — request body — body

FieldTypePresenceDescription and constraints
$objectRootRepresents an input to a call to [BulkRetrieveVendors](api-endpoint:Vendors-BulkRetrieveVendors).
vendor_idsJSONOptional
vendor_ids (anyOf 1)arrayAlternativeIDs of the [Vendor](entity:Vendor) objects to retrieve.
vendor_ids (anyOf 1)[]stringEach item
vendor_ids (anyOf 2)nullAlternative

Bulk Retrieve Vendors — response body

FieldTypePresenceDescription and constraints
$objectRootRepresents an output from a call to [BulkRetrieveVendors](api-endpoint:Vendors-BulkRetrieveVendors).
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
responsesobjectOptionalThe set of [RetrieveVendorResponse](entity:RetrieveVendorResponse) objects encapsulating successfully retrieved [Vendor](entity:Vendor)
objects or error responses for failed attempts. The set is represented by
a collection of `Vendor`-ID/`Vendor`-object or `Vendor`-ID/error-object pairs.
Additional keys: see wildcard field
responses.*ModelAdditional keysExpand Retrieve Vendor — response body

Referenced models: Get Shift — response body — errors item, Retrieve Vendor — response body

Bulk Update Vendors — request body — body

FieldTypePresenceDescription and constraints
$objectRootRepresents an input to a call to [BulkUpdateVendors](api-endpoint:Vendors-BulkUpdateVendors).
vendorsobjectRequired within parentA 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.*ModelAdditional keysExpand Update Vendor — request body — body

Referenced models: Update Vendor — request body — body

Bulk Update Vendors — response body

FieldTypePresenceDescription and constraints
$objectRootRepresents an output from a call to [BulkUpdateVendors](api-endpoint:Vendors-BulkUpdateVendors).
errorsarrayOptionalErrors encountered when the request fails.
errors[]ModelEach itemExpand Get Shift — response body — errors item
responsesobjectOptionalA 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.*ModelAdditional keysExpand Update Vendor — response body

Referenced models: Get Shift — response body — errors item, Update Vendor — response body

Create Vendor — request body — body

FieldTypePresenceDescription and constraints
$objectRootRepresents an input to a call to [CreateVendor](api-endpoint:Vendors-CreateVendor).
idempotency_keystringRequired within parentA client-supplied, universally unique identifier (UUID) to make this [CreateVendor](api-endpoint:Vendors-CreateVendor) call idempotent.

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
Minimum length: 1
vendorModelOptionalExpand Create Vendor — request body — body vendor
The requested [Vendor](entity:Vendor) to be created.

Referenced models: Create Vendor — request body — body vendor

Create Vendor — request body — body vendor

FieldTypePresenceDescription and constraints
$objectRootRepresents a supplier to a seller.
account_numberJSONOptional
account_number (anyOf 1)stringAlternativeThe account number of the [Vendor](entity:Vendor).
Maximum length: 100
account_number (anyOf 2)nullAlternative
addressJSONOptional
address (anyOf 1)ModelAlternativeExpand Create Customer — request body — body address
The address of the [Vendor](entity:Vendor).
address (anyOf 2)nullAlternative
contactsJSONOptional
contacts (anyOf 1)arrayAlternativeThe contacts of the [Vendor](entity:Vendor).
contacts (anyOf 1)[]ModelEach itemExpand Create Vendor — request body — body vendor contacts The contacts of the Vendor (entity:Vendor) item
contacts (anyOf 2)nullAlternative
created_atstringOptionalAn RFC 3339-formatted timestamp that indicates when the
[Vendor](entity:Vendor) was created.
Maximum length: 34
Read only: true
idstringOptionalA unique Square-generated ID for the [Vendor](entity:Vendor).
This field is required when attempting to update a [Vendor](entity:Vendor).
Maximum length: 100
nameJSONOptional
name (anyOf 1)stringAlternativeThe 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)nullAlternative
noteJSONOptional
note (anyOf 1)stringAlternativeA note detailing information about the [Vendor](entity:Vendor).
Maximum length: 4096
note (anyOf 2)nullAlternative
statusJSONOptional
status (anyOf 1)stringAlternativeThe 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)nullAlternative
updated_atstringOptionalAn RFC 3339-formatted timestamp that indicates when the
[Vendor](entity:Vendor) was last updated.
Maximum length: 34
Read only: true
versionintegerOptionalThe 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

FieldTypePresenceDescription and constraints
$objectRootRepresents a contact of a [Vendor](entity:Vendor).
email_addressJSONOptional
email_address (anyOf 1)stringAlternativeThe email address of the [VendorContact](entity:VendorContact).
Maximum length: 255
email_address (anyOf 2)nullAlternative
idstringOptionalA unique Square-generated ID for the [VendorContact](entity:VendorContact).
This field is required when attempting to update a [VendorContact](entity:VendorContact).
Maximum length: 100
nameJSONOptional
name (anyOf 1)stringAlternativeThe name of the [VendorContact](entity:VendorContact).
This field is required when attempting to create a [Vendor](entity:Vendor).
Maximum length: 255
name (anyOf 2)nullAlternative
ordinalintegerRequired within parentThe ordinal of the [VendorContact](entity:VendorContact).
phone_numberJSONOptional
phone_number (anyOf 1)stringAlternativeThe phone number of the [VendorContact](entity:VendorContact).
Maximum length: 255
phone_number (anyOf 2)nullAlternative
removedJSONOptional
removed (anyOf 1)booleanAlternativeThe state of the [VendorContact](entity:VendorContact).
removed (anyOf 2)nullAlternative

Create Vendor — response body

FieldTypePresenceDescription and constraints
$objectRootRepresents an output from a call to [CreateVendor](api-endpoint:Vendors-CreateVendor).
errorsarrayOptionalErrors encountered when the request fails.
errors[]ModelEach itemExpand Get Shift — response body — errors item
vendorModelOptionalExpand Create Vendor — response body — vendor
The successfully created [Vendor](entity:Vendor) object.

Referenced models: Get Shift — response body — errors item, Create Vendor — response body — vendor

Create Vendor — response body — vendor

FieldTypePresenceDescription and constraints
$objectRootRepresents a supplier to a seller.
account_numberJSONOptional
account_number (anyOf 1)stringAlternativeThe account number of the [Vendor](entity:Vendor).
Maximum length: 100
account_number (anyOf 2)nullAlternative
addressJSONOptional
address (anyOf 1)ModelAlternativeExpand Get Payment — response body — payment billing address
The address of the [Vendor](entity:Vendor).
address (anyOf 2)nullAlternative
contactsJSONOptional
contacts (anyOf 1)arrayAlternativeThe contacts of the [Vendor](entity:Vendor).
contacts (anyOf 1)[]ModelEach itemExpand Create Vendor — response body — vendor contacts The contacts of the Vendor (entity:Vendor) item
contacts (anyOf 2)nullAlternative
created_atstringOptionalAn RFC 3339-formatted timestamp that indicates when the
[Vendor](entity:Vendor) was created.
Maximum length: 34
Read only: true
idstringOptionalA unique Square-generated ID for the [Vendor](entity:Vendor).
This field is required when attempting to update a [Vendor](entity:Vendor).
Maximum length: 100
nameJSONOptional
name (anyOf 1)stringAlternativeThe 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)nullAlternative
noteJSONOptional
note (anyOf 1)stringAlternativeA note detailing information about the [Vendor](entity:Vendor).
Maximum length: 4096
note (anyOf 2)nullAlternative
statusJSONOptional
status (anyOf 1)stringAlternativeThe 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
Known values: ACTIVE, INACTIVE
status (anyOf 2)nullAlternative
updated_atstringOptionalAn RFC 3339-formatted timestamp that indicates when the
[Vendor](entity:Vendor) was last updated.
Maximum length: 34
Read only: true
versionJSONOptional
version (anyOf 1)integerAlternativeThe version of the [Vendor](entity:Vendor).
version (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Referenced models: Get Payment — response body — payment billing address, Create Vendor — response body — vendor contacts The contacts of the Vendor (entity:Vendor) item

Create Vendor — response body — vendor contacts The contacts of the Vendor (entity:Vendor) item

FieldTypePresenceDescription and constraints
$objectRootRepresents a contact of a [Vendor](entity:Vendor).
email_addressJSONOptional
email_address (anyOf 1)stringAlternativeThe email address of the [VendorContact](entity:VendorContact).
Maximum length: 255
email_address (anyOf 2)nullAlternative
idstringOptionalA unique Square-generated ID for the [VendorContact](entity:VendorContact).
This field is required when attempting to update a [VendorContact](entity:VendorContact).
Maximum length: 100
nameJSONOptional
name (anyOf 1)stringAlternativeThe name of the [VendorContact](entity:VendorContact).
This field is required when attempting to create a [Vendor](entity:Vendor).
Maximum length: 255
name (anyOf 2)nullAlternative
ordinalJSONRequired within parent
ordinal (anyOf 1)integerAlternativeThe ordinal of the [VendorContact](entity:VendorContact).
ordinal (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
phone_numberJSONOptional
phone_number (anyOf 1)stringAlternativeThe phone number of the [VendorContact](entity:VendorContact).
Maximum length: 255
phone_number (anyOf 2)nullAlternative
removedJSONOptional
removed (anyOf 1)booleanAlternativeThe state of the [VendorContact](entity:VendorContact).
removed (anyOf 2)nullAlternative

Retrieve Vendor — response body

FieldTypePresenceDescription and constraints
$objectRootRepresents an output from a call to [RetrieveVendor](api-endpoint:Vendors-RetrieveVendor).
errorsarrayOptionalErrors encountered when the request fails.
errors[]ModelEach itemExpand Get Shift — response body — errors item
vendorModelOptionalExpand Create Vendor — response body — vendor
The successfully retrieved [Vendor](entity:Vendor) object.

Referenced models: Get Shift — response body — errors item, Create Vendor — response body — vendor

Search Vendors — request body — body

FieldTypePresenceDescription and constraints
$objectRootRepresents an input into a call to [SearchVendors](api-endpoint:Vendors-SearchVendors).
cursorstringOptionalA pagination cursor returned by a previous call to this endpoint.
Provide this to retrieve the next set of results for the original query.

See the [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide for more information.
filterModelOptionalExpand Search Vendors — request body — body filter
Specifies a filter used to search for vendors.
sortModelOptionalExpand Search Vendors — request body — body sort
Specifies a sorter used to sort the returned vendors.

Referenced models: Search Vendors — request body — body filter, Search Vendors — request body — body sort

Search Vendors — request body — body filter

FieldTypePresenceDescription and constraints
$objectRootDefines supported query expressions to search for vendors by.
nameJSONOptional
name (anyOf 1)arrayAlternativeThe names of the [Vendor](entity:Vendor) objects to retrieve.
name (anyOf 1)[]stringEach item
name (anyOf 2)nullAlternative
statusJSONOptional
status (anyOf 1)arrayAlternativeThe statuses of the [Vendor](entity:Vendor) objects to retrieve.
See [VendorStatus](#type-vendorstatus) for possible values
status (anyOf 1)[]stringEach itemThe status of the [Vendor](entity:Vendor),
whether a [Vendor](entity:Vendor) is active or inactive.
One of: ACTIVE, INACTIVE
status (anyOf 2)nullAlternative

Search Vendors — request body — body sort

FieldTypePresenceDescription and constraints
$objectRootDefines a sorter used to sort results from [SearchVendors](api-endpoint:Vendors-SearchVendors).
fieldJSONOptional
field (anyOf 1)stringAlternativeThe field to sort the returned [Vendor](entity:Vendor) objects by.
Specifies the sort key to sort the returned vendors.
See [Field](#type-field) for possible values
One of: NAME, CREATED_AT
field (anyOf 2)nullAlternative
orderJSONOptional
order (anyOf 1)stringAlternativeThe order (e.g., chronological or alphabetical) in which results from a request are returned.
Specifies the sort order for the returned vendors.
See [SortOrder](#type-sortorder) for possible values
One of: DESC, ASC
order (anyOf 2)nullAlternative

Search Vendors — response body

FieldTypePresenceDescription and constraints
$objectRootRepresents an output from a call to [SearchVendors](api-endpoint:Vendors-SearchVendors).
cursorstringOptionalThe pagination cursor to be used in a subsequent request. If unset,
this is the final response.

See the [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide for more information.
errorsarrayOptionalErrors encountered when the request fails.
errors[]ModelEach itemExpand Get Shift — response body — errors item
vendorsarrayOptionalThe [Vendor](entity:Vendor) objects matching the specified search filter.
vendors[]ModelEach itemExpand Create Vendor — response body — vendor

Referenced models: Get Shift — response body — errors item, Create Vendor — response body — vendor

Update Vendor — request body — body

FieldTypePresenceDescription and constraints
$objectRootRepresents an input to a call to [UpdateVendor](api-endpoint:Vendors-UpdateVendor).
idempotency_keyJSONOptional
idempotency_key (anyOf 1)stringAlternativeA 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)nullAlternative
vendorModelRequired within parentExpand Create Vendor — request body — body vendor
The specified [Vendor](entity:Vendor) to be updated.

Referenced models: Create Vendor — request body — body vendor

Update Vendor — response body

FieldTypePresenceDescription and constraints
$objectRootRepresents an output from a call to [UpdateVendor](api-endpoint:Vendors-UpdateVendor).
errorsarrayOptionalErrors occurred when the request fails.
errors[]ModelEach itemExpand Get Shift — response body — errors item
vendorModelOptionalExpand 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

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand how our website, product, and documentation are used.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

You can change these choices at any time from Cookie settings.