Square Customers API is one of 45 APIs that Square publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.
Tagged areas include Customers. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, and an AsyncAPI specification.
This API exposes
14 operations
across 10 paths,
and defines 53 schemas.
It is described by OpenAPI 3.2.0, at version 2.0.
Requests are made against a single base URL, https://connect.squareup.com.
The identity and technical contract details declared by the specification.
CardBrand
string
Indicates a card's brand, such as VISA or MASTERCARD.
CardType
string
Indicates a card's type, such as CREDIT or DEBIT.
CreateCustomerResponse
object
Defines the fields that are included in the response body of a request to the [CreateCustomer](api-endpoint:Customers-CreateCustomer) or [BulkCreateCustomers](…
2 properties
BulkUpdateCustomersResponse
object
Defines the fields included in the response body from the [BulkUpdateCustomers](api-endpoint:Customers-BulkUpdateCustomers) endpoint.
2 properties
CardPrepaidType
string
Indicates a card's prepaid type, such as NOTPREPAID or PREPAID.
CustomerPreferences
object
Represents communication preferences for the customer profile.
1 property
Country
string
Indicates the country associated with another entity, such as a business. Values are in [ISO 3166-1-alpha-2 format](http://www.iso.org/iso/home/standards/count…
BulkUpdateCustomersRequest
object
Defines the body parameters that can be included in requests to the [BulkUpdateCustomers](api-endpoint:Customers-BulkUpdateCustomers) endpoint.
1 property
1 required
SearchCustomersResponse
object
Defines the fields that are included in the response body of a request to the SearchCustomers endpoint. Either errors or customers is present in a given respon…
4 properties
CustomerAddressFilter
object
The customer address filter. This filter is used in a [CustomerCustomAttributeFilterValue](entity:CustomerCustomAttributeFilterValue) filter when searching by…
2 properties
CustomerSortField
string
Specifies customer attributes as the sort key to customer profiles returned from a search.
BulkRetrieveCustomersRequest
object
Defines the body parameters that can be included in requests to the [BulkRetrieveCustomers](api-endpoint:Customers-BulkRetrieveCustomers) endpoint.
1 property
1 required
DeleteCustomerCardResponse
object
Defines the fields that are included in the response body of a request to the DeleteCustomerCard endpoint.
1 property
CustomerSort
object
Represents the sorting criteria in a [search query](entity:CustomerQuery) that defines how to sort customer profiles returned in [SearchCustomers](api-endpoint…
2 properties
TimeRange
object
Represents a generic time range. The start and end values are represented in RFC 3339 format. Time ranges are customized to be inclusive or exclusive based on…
2 properties
CustomerCustomAttributeFilter
object
The custom attribute filter. Use this filter in a set of [custom attribute filters](entity:CustomerCustomAttributeFilters) to search based on the value or last…
3 properties
1 required
CustomerCreationSourceFilter
object
The creation source filter. If one or more creation sources are set, customer profiles are included in, or excluded from, the result if they match at least one…
2 properties
SortOrder
string
The order (e.g., chronological or alphabetical) in which results from a request are returned.
CustomerInclusionExclusion
string
Indicates whether customers should be included in, or excluded from, the result set when they match the filtering criteria.
RemoveGroupFromCustomerResponse
object
Defines the fields that are included in the response body of a request to the [RemoveGroupFromCustomer](api-endpoint:Customers-RemoveGroupFromCustomer) endpoin…
1 property
Address
object
Represents a postal address in a country. For more information, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addr…
14 properties
SearchCustomersRequest
object
Defines the fields that are included in the request body of a request to the SearchCustomers endpoint.
4 properties
DeleteCustomerResponse
object
Defines the fields that are included in the response body of a request to the DeleteCustomer endpoint.
1 property
FloatNumberRange
object
Specifies a decimal number range.
2 properties
CreateCustomerRequest
object
Defines the body parameters that can be included in a request to the CreateCustomer endpoint.
12 properties
ListCustomersResponse
object
Defines the fields that are included in the response body of a request to the ListCustomers endpoint. Either errors or customers is present in a given response…
4 properties
CreateCustomerCardRequest
object
Defines the fields that are included in the request body of a request to the CreateCustomerCard endpoint.
4 properties
1 required
CustomerQuery
object
Represents filtering and sorting criteria for a [SearchCustomers](api-endpoint:Customers-SearchCustomers) request.
2 properties
BulkDeleteCustomersResponse
object
Defines the fields included in the response body from the [BulkDeleteCustomers](api-endpoint:Customers-BulkDeleteCustomers) endpoint.
2 properties
CustomerFilter
object
Represents the filtering criteria in a [search query](entity:CustomerQuery) that defines how to filter customer profiles returned in [SearchCustomers](api-endp…
9 properties
CardCoBrand
string
Indicates the brand for a co-branded card.
BulkDeleteCustomersRequest
object
Defines the body parameters that can be included in requests to the [BulkDeleteCustomers](api-endpoint:Customers-BulkDeleteCustomers) endpoint.
1 property
1 required
CustomerTextFilter
object
A filter to select customers based on exact or fuzzy matching of customer attributes against a specified query. Depending on the customer attributes, the filte…
2 properties
BulkCreateCustomersRequest
object
Defines the body parameters that can be included in requests to the [BulkCreateCustomers](api-endpoint:Customers-BulkCreateCustomers) endpoint.
1 property
1 required
BulkRetrieveCustomersResponse
object
Defines the fields included in the response body from the [BulkRetrieveCustomers](api-endpoint:Customers-BulkRetrieveCustomers) endpoint.
2 properties
CustomerCustomAttributeFilterValue
object
A type-specific filter used in a [custom attribute filter](entity:CustomerCustomAttributeFilter) to search based on the value of a customer-related [custom att…
8 properties
AddGroupToCustomerResponse
object
Defines the fields that are included in the response body of a request to the [AddGroupToCustomer](api-endpoint:Customers-AddGroupToCustomer) endpoint.
1 property
Error
object
Represents an error encountered during a request to the Connect API. See [Handling errors](https://developer.squareup.com/docs/build-basics/handling-errors) fo…
4 properties
2 required
ErrorCode
string
Indicates the specific error that occurred during a request to a Square API.
UpdateCustomerRequest
object
Defines the body parameters that can be included in a request to the UpdateCustomer endpoint.
12 properties
Customer
object
Represents a Square customer profile in the Customer Directory of a Square seller.
19 properties
BulkCreateCustomerData
object
Defines the customer data provided in individual create requests for a [BulkCreateCustomers](api-endpoint:Customers-BulkCreateCustomers) operation.
11 properties
UpdateCustomerResponse
object
Defines the fields that are included in the response body of a request to the [UpdateCustomer](api-endpoint:Customers-UpdateCustomer) or [BulkUpdateCustomers](…
2 properties
FilterValue
object
A filter to select resources based on an exact field value. For any given value, the value can only be in one property. Depending on the field, either all prop…
3 properties
BulkCreateCustomersResponse
object
Defines the fields included in the response body from the [BulkCreateCustomers](api-endpoint:Customers-BulkCreateCustomers) endpoint.
2 properties
CustomerTaxIds
object
Represents the tax ID associated with a [customer profile](entity:Customer). The corresponding taxids field is available only for customers of sellers in EU co…
1 property
Card
object
Represents the payment details of a card to be used for payments. These details are determined by the payment token generated by Web Payments SDK.
17 properties
RetrieveCustomerResponse
object
Defines the fields that are included in the response body of a request to the RetrieveCustomer endpoint. Either errors or customer is present in a given respon…
2 properties
BulkUpdateCustomerData
object
Defines the customer data provided in individual update requests for a [BulkUpdateCustomers](api-endpoint:Customers-BulkUpdateCustomers) operation.
12 properties
ErrorCategory
string
Indicates which high-level category of error has occurred during a request to the Connect API.
CreateCustomerCardResponse
object
Defines the fields that are included in the response body of a request to the CreateCustomerCard endpoint. Either errors or card is present in a given response…
2 properties
CustomerCreationSource
string
Indicates the method used to create the customer profile.
CustomerCustomAttributeFilters
object
The custom attribute filters in a set of [customer filters](entity:CustomerFilter) used in a search query. Use this filter to search based on [custom attribute…
1 property
The full machine-readable OpenAPI contract behind this narrative.
Other APIs Square publishes across the network.