Open Connector
所有 Tools

Squareup

Catalog 暂无描述。

squareupv1.0.0328 个 Tools

认证方式

方式底层类型状态说明
OAuth 2.0oauth2available

调用示例

import { createClient } from "@open-connector/sdk";const oc = createClient({  baseUrl: "https://api.openconnector.dev",  apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await oc.executeTool({  slug: "SQUAREUP_ACCEPT_DISPUTE",  connectedAccountId: "conn_...",  arguments: { /* match this tool's input schema */ },});
import Composio from "@composio/client";const composio = new Composio({  baseURL: "https://api.openconnector.dev/composio",  apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await composio.tools.execute("SQUAREUP_ACCEPT_DISPUTE", {  connected_account_id: "conn_...",  arguments: { /* match this tool's input schema */ },});
oc tools execute SQUAREUP_ACCEPT_DISPUTE --data '{ }'

Tool 目录

可用 Tools

328 个可调用操作

AcceptDisputeSQUAREUP_ACCEPT_DISPUTEAccepts the loss on a dispute. Square returns the disputed amount to the cardholder and updates the dispute state to ACCEPTED. Square debits the disputed amount from the seller’s Square account. If the Square account does not have sufficient funds, Square debits the associated bank account.

Accepts the loss on a dispute. Square returns the disputed amount to the cardholder and updates the dispute state to ACCEPTED. Square debits the disputed amount from the seller’s Square account. If the Square account does not have sufficient funds, Square debits the associated bank account.

认证

需要 Connected Account

Scopes

DISPUTES_WRITE

Tags

Disputes
AccumulateLoyaltyPointsSQUAREUP_ACCUMULATE_LOYALTY_POINTSAdds points earned from a purchase to a [loyalty account](entity:LoyaltyAccount). - If you are using the Orders API to manage orders, provide the `order_id`. Square reads the order to compute the points earned from both the base loyalty program and an associated [loyalty promotion](entity:LoyaltyPromotion). For purchases that qualify for multiple accrual rules, Square computes points based on the accrual rule that grants the most points. For purchases that qualify for multiple promotions, Square computes points based on the most recently created promotion. A purchase must first qualify for program points to be eligible for promotion points. - If you are not using the Orders API to manage orders, provide `points` with the number of points to add. You must first perform a client-side computation of the points earned from the loyalty program and loyalty promotion. For spend-based and visit-based programs, you can call [CalculateLoyaltyPoints](api-endpoint:Loyalty-CalculateLoyaltyPoints) to compute the points earned from the base loyalty program. For information about computing points earned from a loyalty promotion, see [Calculating promotion points](https://developer.squareup.com/docs/loyalty-api/loyalty-promotions#calculate-promotion-points).

Adds points earned from a purchase to a [loyalty account](entity:LoyaltyAccount). - If you are using the Orders API to manage orders, provide the `order_id`. Square reads the order to compute the points earned from both the base loyalty program and an associated [loyalty promotion](entity:LoyaltyPromotion). For purchases that qualify for multiple accrual rules, Square computes points based on the accrual rule that grants the most points. For purchases that qualify for multiple promotions, Square computes points based on the most recently created promotion. A purchase must first qualify for program points to be eligible for promotion points. - If you are not using the Orders API to manage orders, provide `points` with the number of points to add. You must first perform a client-side computation of the points earned from the loyalty program and loyalty promotion. For spend-based and visit-based programs, you can call [CalculateLoyaltyPoints](api-endpoint:Loyalty-CalculateLoyaltyPoints) to compute the points earned from the base loyalty program. For information about computing points earned from a loyalty promotion, see [Calculating promotion points](https://developer.squareup.com/docs/loyalty-api/loyalty-promotions#calculate-promotion-points).

认证

需要 Connected Account

Scopes

LOYALTY_WRITE

Tags

Loyalty
AddGroupToCustomerSQUAREUP_ADD_GROUP_TO_CUSTOMERAdds a group membership to a customer. The customer is identified by the `customer_id` value and the customer group is identified by the `group_id` value.

Adds a group membership to a customer. The customer is identified by the `customer_id` value and the customer group is identified by the `group_id` value.

认证

需要 Connected Account

Scopes

CUSTOMERS_WRITE

Tags

Customers
AdjustLoyaltyPointsSQUAREUP_ADJUST_LOYALTY_POINTSAdds points to or subtracts points from a buyer's account. Use this endpoint only when you need to manually adjust points. Otherwise, in your application flow, you call [AccumulateLoyaltyPoints](api-endpoint:Loyalty-AccumulateLoyaltyPoints) to add points when a buyer pays for the purchase.

Adds points to or subtracts points from a buyer's account. Use this endpoint only when you need to manually adjust points. Otherwise, in your application flow, you call [AccumulateLoyaltyPoints](api-endpoint:Loyalty-AccumulateLoyaltyPoints) to add points when a buyer pays for the purchase.

认证

需要 Connected Account

Scopes

LOYALTY_WRITE

Tags

Loyalty
BatchChangeInventorySQUAREUP_BATCH_CHANGE_INVENTORYApplies adjustments and counts to the provided item quantities. On success: returns the current calculated counts for all objects referenced in the request. On failure: returns a list of related errors.

Applies adjustments and counts to the provided item quantities. On success: returns the current calculated counts for all objects referenced in the request. On failure: returns a list of related errors.

认证

需要 Connected Account

Scopes

INVENTORY_WRITE

Tags

Inventory
BatchDeleteCatalogObjectsSQUAREUP_BATCH_DELETE_CATALOG_OBJECTSDeletes a set of [CatalogItem](entity:CatalogItem)s based on the provided list of target IDs and returns a set of successfully deleted IDs in the response. Deletion is a cascading event such that all children of the targeted object are also deleted. For example, deleting a CatalogItem will also delete all of its [CatalogItemVariation](entity:CatalogItemVariation) children. `BatchDeleteCatalogObjects` succeeds even if only a portion of the targeted IDs can be deleted. The response will only include IDs that were actually deleted. To ensure consistency, only one delete request is processed at a time per seller account. While one (batch or non-batch) delete request is being processed, other (batched and non-batched) delete requests are rejected with the `429` error code.

Deletes a set of [CatalogItem](entity:CatalogItem)s based on the provided list of target IDs and returns a set of successfully deleted IDs in the response. Deletion is a cascading event such that all children of the targeted object are also deleted. For example, deleting a CatalogItem will also delete all of its [CatalogItemVariation](entity:CatalogItemVariation) children. `BatchDeleteCatalogObjects` succeeds even if only a portion of the targeted IDs can be deleted. The response will only include IDs that were actually deleted. To ensure consistency, only one delete request is processed at a time per seller account. While one (batch or non-batch) delete request is being processed, other (batched and non-batched) delete requests are rejected with the `429` error code.

认证

需要 Connected Account

Scopes

ITEMS_WRITE

Tags

Catalog
BatchRetrieveCatalogObjectsSQUAREUP_BATCH_RETRIEVE_CATALOG_OBJECTSReturns a set of objects based on the provided ID. Each [CatalogItem](entity:CatalogItem) returned in the set includes all of its child information including: all of its [CatalogItemVariation](entity:CatalogItemVariation) objects, references to its [CatalogModifierList](entity:CatalogModifierList) objects, and the ids of any [CatalogTax](entity:CatalogTax) objects that apply to it.

Returns a set of objects based on the provided ID. Each [CatalogItem](entity:CatalogItem) returned in the set includes all of its child information including: all of its [CatalogItemVariation](entity:CatalogItemVariation) objects, references to its [CatalogModifierList](entity:CatalogModifierList) objects, and the ids of any [CatalogTax](entity:CatalogTax) objects that apply to it.

认证

需要 Connected Account

Scopes

ITEMS_READ

Tags

Catalog
BatchRetrieveInventoryChangesSQUAREUP_BATCH_RETRIEVE_INVENTORY_CHANGESReturns historical physical counts and adjustments based on the provided filter criteria. Results are paginated and sorted in ascending order according their `occurred_at` timestamp (oldest first). BatchRetrieveInventoryChanges is a catch-all query endpoint for queries that cannot be handled by other, simpler endpoints.

Returns historical physical counts and adjustments based on the provided filter criteria. Results are paginated and sorted in ascending order according their `occurred_at` timestamp (oldest first). BatchRetrieveInventoryChanges is a catch-all query endpoint for queries that cannot be handled by other, simpler endpoints.

认证

需要 Connected Account

Scopes

INVENTORY_READ

Tags

Inventory
BatchRetrieveInventoryCountsSQUAREUP_BATCH_RETRIEVE_INVENTORY_COUNTSReturns current counts for the provided [CatalogObject](entity:CatalogObject)s at the requested [Location](entity:Location)s. Results are paginated and sorted in descending order according to their `calculated_at` timestamp (newest first). When `updated_after` is specified, only counts that have changed since that time (based on the server timestamp for the most recent change) are returned. This allows clients to perform a "sync" operation, for example in response to receiving a Webhook notification.

Returns current counts for the provided [CatalogObject](entity:CatalogObject)s at the requested [Location](entity:Location)s. Results are paginated and sorted in descending order according to their `calculated_at` timestamp (newest first). When `updated_after` is specified, only counts that have changed since that time (based on the server timestamp for the most recent change) are returned. This allows clients to perform a "sync" operation, for example in response to receiving a Webhook notification.

认证

需要 Connected Account

Scopes

INVENTORY_READ

Tags

Inventory
BatchRetrieveOrdersSQUAREUP_BATCH_RETRIEVE_ORDERSRetrieves a set of [orders](entity:Order) by their IDs. If a given order ID does not exist, the ID is ignored instead of generating an error.

Retrieves a set of [orders](entity:Order) by their IDs. If a given order ID does not exist, the ID is ignored instead of generating an error.

认证

需要 Connected Account

Scopes

ORDERS_READ

Tags

Orders
BatchUpsertCatalogObjectsSQUAREUP_BATCH_UPSERT_CATALOG_OBJECTSCreates or updates up to 10,000 target objects based on the provided list of objects. The target objects are grouped into batches and each batch is inserted/updated in an all-or-nothing manner. If an object within a batch is malformed in some way, or violates a database constraint, the entire batch containing that item will be disregarded. However, other batches in the same request may still succeed. Each batch may contain up to 1,000 objects, and batches will be processed in order as long as the total object count for the request (items, variations, modifier lists, discounts, and taxes) is no more than 10,000. To ensure consistency, only one update request is processed at a time per seller account. While one (batch or non-batch) update request is being processed, other (batched and non-batched) update requests are rejected with the `429` error code.

Creates or updates up to 10,000 target objects based on the provided list of objects. The target objects are grouped into batches and each batch is inserted/updated in an all-or-nothing manner. If an object within a batch is malformed in some way, or violates a database constraint, the entire batch containing that item will be disregarded. However, other batches in the same request may still succeed. Each batch may contain up to 1,000 objects, and batches will be processed in order as long as the total object count for the request (items, variations, modifier lists, discounts, and taxes) is no more than 10,000. To ensure consistency, only one update request is processed at a time per seller account. While one (batch or non-batch) update request is being processed, other (batched and non-batched) update requests are rejected with the `429` error code.

认证

需要 Connected Account

Scopes

ITEMS_WRITE

Tags

Catalog
BulkCreateCustomersSQUAREUP_BULK_CREATE_CUSTOMERSCreates multiple [customer profiles](entity:Customer) for a business. This endpoint takes a map of individual create requests and returns a map of responses. You must provide at least one of the following values in each create request: - `given_name` - `family_name` - `company_name` - `email_address` - `phone_number`

Creates multiple [customer profiles](entity:Customer) for a business. This endpoint takes a map of individual create requests and returns a map of responses. You must provide at least one of the following values in each create request: - `given_name` - `family_name` - `company_name` - `email_address` - `phone_number`

认证

需要 Connected Account

Scopes

CUSTOMERS_WRITE

Tags

Customers
BulkCreateTeamMembersSQUAREUP_BULK_CREATE_TEAM_MEMBERSCreates multiple `TeamMember` objects. The created `TeamMember` objects are returned on successful creates. This process is non-transactional and processes as much of the request as possible. If one of the creates in the request cannot be successfully processed, the request is not marked as failed, but the body of the response contains explicit error information for the failed create. Learn about [Troubleshooting the Team API](https://developer.squareup.com/docs/team/troubleshooting#bulk-create-team-members).

Creates multiple `TeamMember` objects. The created `TeamMember` objects are returned on successful creates. This process is non-transactional and processes as much of the request as possible. If one of the creates in the request cannot be successfully processed, the request is not marked as failed, but the body of the response contains explicit error information for the failed create. Learn about [Troubleshooting the Team API](https://developer.squareup.com/docs/team/troubleshooting#bulk-create-team-members).

认证

需要 Connected Account

Scopes

EMPLOYEES_WRITE

Tags

Team
BulkCreateVendorsSQUAREUP_BULK_CREATE_VENDORSCreates one or more [Vendor](entity:Vendor) objects to represent suppliers to a seller.

Creates one or more [Vendor](entity:Vendor) objects to represent suppliers to a seller.

认证

需要 Connected Account

Scopes

VENDOR_WRITE

Tags

Vendors
BulkDeleteBookingCustomAttributesSQUAREUP_BULK_DELETE_BOOKING_CUSTOM_ATTRIBUTESBulk deletes bookings custom attributes. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope. For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to *Appointments Plus* or *Appointments Premium*.

Bulk deletes bookings custom attributes. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope. For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to *Appointments Plus* or *Appointments Premium*.

认证

需要 Connected Account

Scopes

APPOINTMENTS_WRITE

Tags

BookingCustomAttributes
BulkDeleteCustomersSQUAREUP_BULK_DELETE_CUSTOMERSDeletes multiple customer profiles. The endpoint takes a list of customer IDs and returns a map of responses.

Deletes multiple customer profiles. The endpoint takes a list of customer IDs and returns a map of responses.

认证

需要 Connected Account

Scopes

CUSTOMERS_WRITE

Tags

Customers
BulkDeleteLocationCustomAttributesSQUAREUP_BULK_DELETE_LOCATION_CUSTOM_ATTRIBUTESDeletes [custom attributes](entity:CustomAttribute) for locations as a bulk operation. To delete a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_WRITE_VALUES`.

Deletes [custom attributes](entity:CustomAttribute) for locations as a bulk operation. To delete a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_WRITE_VALUES`.

认证

需要 Connected Account

Scopes

MERCHANT_PROFILE_WRITE

Tags

LocationCustomAttributes
BulkDeleteMerchantCustomAttributesSQUAREUP_BULK_DELETE_MERCHANT_CUSTOM_ATTRIBUTESDeletes [custom attributes](entity:CustomAttribute) for a merchant as a bulk operation. To delete a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_WRITE_VALUES`.

Deletes [custom attributes](entity:CustomAttribute) for a merchant as a bulk operation. To delete a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_WRITE_VALUES`.

认证

需要 Connected Account

Scopes

MERCHANT_PROFILE_WRITE

Tags

MerchantCustomAttributes
BulkDeleteOrderCustomAttributesSQUAREUP_BULK_DELETE_ORDER_CUSTOM_ATTRIBUTESDeletes order [custom attributes](entity:CustomAttribute) as a bulk operation. Use this endpoint to delete one or more custom attributes from one or more orders. A custom attribute is based on a custom attribute definition in a Square seller account. (To create a custom attribute definition, use the [CreateOrderCustomAttributeDefinition](api-endpoint:OrderCustomAttributes-CreateOrderCustomAttributeDefinition) endpoint.) This `BulkDeleteOrderCustomAttributes` endpoint accepts a map of 1 to 25 individual delete requests and returns a map of individual delete responses. Each delete request has a unique ID and provides an order ID and custom attribute. Each delete response is returned with the ID of the corresponding request. To delete a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.

Deletes order [custom attributes](entity:CustomAttribute) as a bulk operation. Use this endpoint to delete one or more custom attributes from one or more orders. A custom attribute is based on a custom attribute definition in a Square seller account. (To create a custom attribute definition, use the [CreateOrderCustomAttributeDefinition](api-endpoint:OrderCustomAttributes-CreateOrderCustomAttributeDefinition) endpoint.) This `BulkDeleteOrderCustomAttributes` endpoint accepts a map of 1 to 25 individual delete requests and returns a map of individual delete responses. Each delete request has a unique ID and provides an order ID and custom attribute. Each delete response is returned with the ID of the corresponding request. To delete a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.

认证

需要 Connected Account

Scopes

ORDERS_WRITE

Tags

OrderCustomAttributes
BulkPublishScheduledShiftsSQUAREUP_BULK_PUBLISH_SCHEDULED_SHIFTSPublishes 1 - 100 scheduled shifts. This endpoint takes a map of individual publish requests and returns a map of responses. When a scheduled shift is published, Square keeps the `draft_shift_details` field as is and copies it to the `published_shift_details` field. The minimum `start_at` and maximum `end_at` timestamps of all shifts in a `BulkPublishScheduledShifts` request must fall within a two-week period.

Publishes 1 - 100 scheduled shifts. This endpoint takes a map of individual publish requests and returns a map of responses. When a scheduled shift is published, Square keeps the `draft_shift_details` field as is and copies it to the `published_shift_details` field. The minimum `start_at` and maximum `end_at` timestamps of all shifts in a `BulkPublishScheduledShifts` request must fall within a two-week period.

认证

需要 Connected Account

Scopes

TIMECARDS_WRITE

Tags

Labor
BulkRetrieveBookingsSQUAREUP_BULK_RETRIEVE_BOOKINGSBulk-Retrieves a list of bookings by booking IDs. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.

Bulk-Retrieves a list of bookings by booking IDs. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.

认证

需要 Connected Account

Scopes

APPOINTMENTS_READ

Tags

Bookings
BulkRetrieveChannelsSQUAREUP_BULK_RETRIEVE_CHANNELSBulkRetrieveChannels

BulkRetrieveChannels

认证

需要 Connected Account

Scopes

CHANNELS_READ

Tags

Channels
BulkRetrieveCustomersSQUAREUP_BULK_RETRIEVE_CUSTOMERSRetrieves multiple customer profiles. This endpoint takes a list of customer IDs and returns a map of responses.

Retrieves multiple customer profiles. This endpoint takes a list of customer IDs and returns a map of responses.

认证

需要 Connected Account

Scopes

CUSTOMERS_READ

Tags

Customers
BulkRetrieveTeamMemberBookingProfilesSQUAREUP_BULK_RETRIEVE_TEAM_MEMBER_BOOKING_PROFILESRetrieves one or more team members' booking profiles.

Retrieves one or more team members' booking profiles.

认证

需要 Connected Account

Scopes

APPOINTMENTS_BUSINESS_SETTINGS_READ

Tags

Bookings
BulkRetrieveVendorsSQUAREUP_BULK_RETRIEVE_VENDORSRetrieves one or more vendors of specified [Vendor](entity:Vendor) IDs.

Retrieves one or more vendors of specified [Vendor](entity:Vendor) IDs.

认证

需要 Connected Account

Scopes

VENDOR_READ

Tags

Vendors
BulkSwapPlanSQUAREUP_BULK_SWAP_PLANSchedules a plan variation change for all active subscriptions under a given plan variation. For more information, see [Swap Subscription Plan Variations](https://developer.squareup.com/docs/subscriptions-api/swap-plan-variations).

Schedules a plan variation change for all active subscriptions under a given plan variation. For more information, see [Swap Subscription Plan Variations](https://developer.squareup.com/docs/subscriptions-api/swap-plan-variations).

认证

需要 Connected Account

Scopes

SUBSCRIPTIONS_WRITESUBSCRIPTIONS_READITEMS_READ

Tags

Subscriptions
BulkUpdateCustomersSQUAREUP_BULK_UPDATE_CUSTOMERSUpdates multiple customer profiles. This endpoint takes a map of individual update requests and returns a map of responses.

Updates multiple customer profiles. This endpoint takes a map of individual update requests and returns a map of responses.

认证

需要 Connected Account

Scopes

CUSTOMERS_WRITE

Tags

Customers
BulkUpdateTeamMembersSQUAREUP_BULK_UPDATE_TEAM_MEMBERSUpdates multiple `TeamMember` objects. The updated `TeamMember` objects are returned on successful updates. This process is non-transactional and processes as much of the request as possible. If one of the updates in the request cannot be successfully processed, the request is not marked as failed, but the body of the response contains explicit error information for the failed update. Learn about [Troubleshooting the Team API](https://developer.squareup.com/docs/team/troubleshooting#bulk-update-team-members).

Updates multiple `TeamMember` objects. The updated `TeamMember` objects are returned on successful updates. This process is non-transactional and processes as much of the request as possible. If one of the updates in the request cannot be successfully processed, the request is not marked as failed, but the body of the response contains explicit error information for the failed update. Learn about [Troubleshooting the Team API](https://developer.squareup.com/docs/team/troubleshooting#bulk-update-team-members).

认证

需要 Connected Account

Scopes

EMPLOYEES_WRITE

Tags

Team
BulkUpdateVendorsSQUAREUP_BULK_UPDATE_VENDORSUpdates one or more of existing [Vendor](entity:Vendor) objects as suppliers to a seller.

Updates one or more of existing [Vendor](entity:Vendor) objects as suppliers to a seller.

认证

需要 Connected Account

Scopes

VENDOR_WRITE

Tags

Vendors
BulkUpsertBookingCustomAttributesSQUAREUP_BULK_UPSERT_BOOKING_CUSTOM_ATTRIBUTESBulk upserts bookings custom attributes. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope. For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to *Appointments Plus* or *Appointments Premium*.

Bulk upserts bookings custom attributes. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope. For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to *Appointments Plus* or *Appointments Premium*.

认证

需要 Connected Account

Scopes

APPOINTMENTS_WRITE

Tags

BookingCustomAttributes
BulkUpsertCustomerCustomAttributesSQUAREUP_BULK_UPSERT_CUSTOMER_CUSTOM_ATTRIBUTESCreates or updates [custom attributes](entity:CustomAttribute) for customer profiles as a bulk operation. Use this endpoint to set the value of one or more custom attributes for one or more customer profiles. A custom attribute is based on a custom attribute definition in a Square seller account, which is created using the [CreateCustomerCustomAttributeDefinition](api-endpoint:CustomerCustomAttributes-CreateCustomerCustomAttributeDefinition) endpoint. This `BulkUpsertCustomerCustomAttributes` endpoint accepts a map of 1 to 25 individual upsert requests and returns a map of individual upsert responses. Each upsert request has a unique ID and provides a customer ID and custom attribute. Each upsert response is returned with the ID of the corresponding request. To create or update a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.

Creates or updates [custom attributes](entity:CustomAttribute) for customer profiles as a bulk operation. Use this endpoint to set the value of one or more custom attributes for one or more customer profiles. A custom attribute is based on a custom attribute definition in a Square seller account, which is created using the [CreateCustomerCustomAttributeDefinition](api-endpoint:CustomerCustomAttributes-CreateCustomerCustomAttributeDefinition) endpoint. This `BulkUpsertCustomerCustomAttributes` endpoint accepts a map of 1 to 25 individual upsert requests and returns a map of individual upsert responses. Each upsert request has a unique ID and provides a customer ID and custom attribute. Each upsert response is returned with the ID of the corresponding request. To create or update a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.

认证

需要 Connected Account

Scopes

CUSTOMERS_WRITE

Tags

CustomerCustomAttributes
BulkUpsertLocationCustomAttributesSQUAREUP_BULK_UPSERT_LOCATION_CUSTOM_ATTRIBUTESCreates or updates [custom attributes](entity:CustomAttribute) for locations as a bulk operation. Use this endpoint to set the value of one or more custom attributes for one or more locations. A custom attribute is based on a custom attribute definition in a Square seller account, which is created using the [CreateLocationCustomAttributeDefinition](api-endpoint:LocationCustomAttributes-CreateLocationCustomAttributeDefinition) endpoint. This `BulkUpsertLocationCustomAttributes` endpoint accepts a map of 1 to 25 individual upsert requests and returns a map of individual upsert responses. Each upsert request has a unique ID and provides a location ID and custom attribute. Each upsert response is returned with the ID of the corresponding request. To create or update a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_WRITE_VALUES`.

Creates or updates [custom attributes](entity:CustomAttribute) for locations as a bulk operation. Use this endpoint to set the value of one or more custom attributes for one or more locations. A custom attribute is based on a custom attribute definition in a Square seller account, which is created using the [CreateLocationCustomAttributeDefinition](api-endpoint:LocationCustomAttributes-CreateLocationCustomAttributeDefinition) endpoint. This `BulkUpsertLocationCustomAttributes` endpoint accepts a map of 1 to 25 individual upsert requests and returns a map of individual upsert responses. Each upsert request has a unique ID and provides a location ID and custom attribute. Each upsert response is returned with the ID of the corresponding request. To create or update a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_WRITE_VALUES`.

认证

需要 Connected Account

Scopes

MERCHANT_PROFILE_WRITE

Tags

LocationCustomAttributes
BulkUpsertMerchantCustomAttributesSQUAREUP_BULK_UPSERT_MERCHANT_CUSTOM_ATTRIBUTESCreates or updates [custom attributes](entity:CustomAttribute) for a merchant as a bulk operation. Use this endpoint to set the value of one or more custom attributes for a merchant. A custom attribute is based on a custom attribute definition in a Square seller account, which is created using the [CreateMerchantCustomAttributeDefinition](api-endpoint:MerchantCustomAttributes-CreateMerchantCustomAttributeDefinition) endpoint. This `BulkUpsertMerchantCustomAttributes` endpoint accepts a map of 1 to 25 individual upsert requests and returns a map of individual upsert responses. Each upsert request has a unique ID and provides a merchant ID and custom attribute. Each upsert response is returned with the ID of the corresponding request. To create or update a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_WRITE_VALUES`.

Creates or updates [custom attributes](entity:CustomAttribute) for a merchant as a bulk operation. Use this endpoint to set the value of one or more custom attributes for a merchant. A custom attribute is based on a custom attribute definition in a Square seller account, which is created using the [CreateMerchantCustomAttributeDefinition](api-endpoint:MerchantCustomAttributes-CreateMerchantCustomAttributeDefinition) endpoint. This `BulkUpsertMerchantCustomAttributes` endpoint accepts a map of 1 to 25 individual upsert requests and returns a map of individual upsert responses. Each upsert request has a unique ID and provides a merchant ID and custom attribute. Each upsert response is returned with the ID of the corresponding request. To create or update a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_WRITE_VALUES`.

认证

需要 Connected Account

Scopes

MERCHANT_PROFILE_WRITE

Tags

MerchantCustomAttributes
BulkUpsertOrderCustomAttributesSQUAREUP_BULK_UPSERT_ORDER_CUSTOM_ATTRIBUTESCreates or updates order [custom attributes](entity:CustomAttribute) as a bulk operation. Use this endpoint to delete one or more custom attributes from one or more orders. A custom attribute is based on a custom attribute definition in a Square seller account. (To create a custom attribute definition, use the [CreateOrderCustomAttributeDefinition](api-endpoint:OrderCustomAttributes-CreateOrderCustomAttributeDefinition) endpoint.) This `BulkUpsertOrderCustomAttributes` endpoint accepts a map of 1 to 25 individual upsert requests and returns a map of individual upsert responses. Each upsert request has a unique ID and provides an order ID and custom attribute. Each upsert response is returned with the ID of the corresponding request. To create or update a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.

Creates or updates order [custom attributes](entity:CustomAttribute) as a bulk operation. Use this endpoint to delete one or more custom attributes from one or more orders. A custom attribute is based on a custom attribute definition in a Square seller account. (To create a custom attribute definition, use the [CreateOrderCustomAttributeDefinition](api-endpoint:OrderCustomAttributes-CreateOrderCustomAttributeDefinition) endpoint.) This `BulkUpsertOrderCustomAttributes` endpoint accepts a map of 1 to 25 individual upsert requests and returns a map of individual upsert responses. Each upsert request has a unique ID and provides an order ID and custom attribute. Each upsert response is returned with the ID of the corresponding request. To create or update a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.

认证

需要 Connected Account

Scopes

ORDERS_WRITE

Tags

OrderCustomAttributes
CalculateLoyaltyPointsSQUAREUP_CALCULATE_LOYALTY_POINTSCalculates the number of points a buyer can earn from a purchase. Applications might call this endpoint to display the points to the buyer. - If you are using the Orders API to manage orders, provide the `order_id` and (optional) `loyalty_account_id`. Square reads the order to compute the points earned from the base loyalty program and an associated [loyalty promotion](entity:LoyaltyPromotion). - If you are not using the Orders API to manage orders, provide `transaction_amount_money` with the purchase amount. Square uses this amount to calculate the points earned from the base loyalty program, but not points earned from a loyalty promotion. For spend-based and visit-based programs, the `tax_mode` setting of the accrual rule indicates how taxes should be treated for loyalty points accrual. If the purchase qualifies for program points, call [ListLoyaltyPromotions](api-endpoint:Loyalty-ListLoyaltyPromotions) and perform a client-side computation to calculate whether the purchase also qualifies for promotion points. For more information, see [Calculating promotion points](https://developer.squareup.com/docs/loyalty-api/loyalty-promotions#calculate-promotion-points).

Calculates the number of points a buyer can earn from a purchase. Applications might call this endpoint to display the points to the buyer. - If you are using the Orders API to manage orders, provide the `order_id` and (optional) `loyalty_account_id`. Square reads the order to compute the points earned from the base loyalty program and an associated [loyalty promotion](entity:LoyaltyPromotion). - If you are not using the Orders API to manage orders, provide `transaction_amount_money` with the purchase amount. Square uses this amount to calculate the points earned from the base loyalty program, but not points earned from a loyalty promotion. For spend-based and visit-based programs, the `tax_mode` setting of the accrual rule indicates how taxes should be treated for loyalty points accrual. If the purchase qualifies for program points, call [ListLoyaltyPromotions](api-endpoint:Loyalty-ListLoyaltyPromotions) and perform a client-side computation to calculate whether the purchase also qualifies for promotion points. For more information, see [Calculating promotion points](https://developer.squareup.com/docs/loyalty-api/loyalty-promotions#calculate-promotion-points).

认证

需要 Connected Account

Scopes

LOYALTY_READ

Tags

Loyalty
CalculateOrderSQUAREUP_CALCULATE_ORDEREnables applications to preview order pricing without creating an order.

Enables applications to preview order pricing without creating an order.

认证

需要 Connected Account

Tags

Orders
CancelBookingSQUAREUP_CANCEL_BOOKINGCancels an existing booking. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope. For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to *Appointments Plus* or *Appointments Premium*.

Cancels an existing booking. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope. For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to *Appointments Plus* or *Appointments Premium*.

认证

需要 Connected Account

Scopes

APPOINTMENTS_WRITE

Tags

Bookings
CancelInvoiceSQUAREUP_CANCEL_INVOICECancels an invoice. The seller cannot collect payments for the canceled invoice. You cannot cancel an invoice in the `DRAFT` state or in a terminal state: `PAID`, `REFUNDED`, `CANCELED`, or `FAILED`.

Cancels an invoice. The seller cannot collect payments for the canceled invoice. You cannot cancel an invoice in the `DRAFT` state or in a terminal state: `PAID`, `REFUNDED`, `CANCELED`, or `FAILED`.

认证

需要 Connected Account

Scopes

ORDERS_WRITEINVOICES_WRITE

Tags

Invoices
CancelLoyaltyPromotionSQUAREUP_CANCEL_LOYALTY_PROMOTIONCancels a loyalty promotion. Use this endpoint to cancel an `ACTIVE` promotion earlier than the end date, cancel an `ACTIVE` promotion when an end date is not specified, or cancel a `SCHEDULED` promotion. Because updating a promotion is not supported, you can also use this endpoint to cancel a promotion before you create a new one. This endpoint sets the loyalty promotion to the `CANCELED` state

Cancels a loyalty promotion. Use this endpoint to cancel an `ACTIVE` promotion earlier than the end date, cancel an `ACTIVE` promotion when an end date is not specified, or cancel a `SCHEDULED` promotion. Because updating a promotion is not supported, you can also use this endpoint to cancel a promotion before you create a new one. This endpoint sets the loyalty promotion to the `CANCELED` state

认证

需要 Connected Account

Scopes

LOYALTY_WRITE

Tags

Loyalty
CancelPaymentSQUAREUP_CANCEL_PAYMENTCancels (voids) a payment. You can use this endpoint to cancel a payment with the APPROVED `status`.

Cancels (voids) a payment. You can use this endpoint to cancel a payment with the APPROVED `status`.

认证

需要 Connected Account

Scopes

PAYMENTS_WRITE

Tags

Payments
CancelPaymentByIdempotencyKeySQUAREUP_CANCEL_PAYMENT_BY_IDEMPOTENCY_KEYCancels (voids) a payment identified by the idempotency key that is specified in the request. Use this method when the status of a `CreatePayment` request is unknown (for example, after you send a `CreatePayment` request, a network error occurs and you do not get a response). In this case, you can direct Square to cancel the payment using this endpoint. In the request, you provide the same idempotency key that you provided in your `CreatePayment` request that you want to cancel. After canceling the payment, you can submit your `CreatePayment` request again. Note that if no payment with the specified idempotency key is found, no action is taken and the endpoint returns successfully.

Cancels (voids) a payment identified by the idempotency key that is specified in the request. Use this method when the status of a `CreatePayment` request is unknown (for example, after you send a `CreatePayment` request, a network error occurs and you do not get a response). In this case, you can direct Square to cancel the payment using this endpoint. In the request, you provide the same idempotency key that you provided in your `CreatePayment` request that you want to cancel. After canceling the payment, you can submit your `CreatePayment` request again. Note that if no payment with the specified idempotency key is found, no action is taken and the endpoint returns successfully.

认证

需要 Connected Account

Scopes

PAYMENTS_WRITE

Tags

Payments
CancelSubscriptionSQUAREUP_CANCEL_SUBSCRIPTIONSchedules a `CANCEL` action to cancel an active subscription. This sets the `canceled_date` field to the end of the active billing period. After this date, the subscription status changes from ACTIVE to CANCELED.

Schedules a `CANCEL` action to cancel an active subscription. This sets the `canceled_date` field to the end of the active billing period. After this date, the subscription status changes from ACTIVE to CANCELED.

认证

需要 Connected Account

Scopes

SUBSCRIPTIONS_WRITE

Tags

Subscriptions
CancelTerminalActionSQUAREUP_CANCEL_TERMINAL_ACTIONCancels a Terminal action request if the status of the request permits it.

Cancels a Terminal action request if the status of the request permits it.

认证

需要 Connected Account

Scopes

PAYMENTS_WRITE

Tags

Terminal
CancelTerminalCheckoutSQUAREUP_CANCEL_TERMINAL_CHECKOUTCancels a Terminal checkout request if the status of the request permits it.

Cancels a Terminal checkout request if the status of the request permits it.

认证

需要 Connected Account

Scopes

PAYMENTS_WRITE

Tags

Terminal
CancelTerminalRefundSQUAREUP_CANCEL_TERMINAL_REFUNDCancels an Interac Terminal refund request by refund request ID if the status of the request permits it.

Cancels an Interac Terminal refund request by refund request ID if the status of the request permits it.

认证

需要 Connected Account

Scopes

PAYMENTS_WRITE

Tags

Terminal
CancelTransferOrderSQUAREUP_CANCEL_TRANSFER_ORDERCancels a transfer order in [STARTED](entity:TransferOrderStatus) or [PARTIALLY_RECEIVED](entity:TransferOrderStatus) status. Any unreceived quantities will no longer be receivable and will be immediately returned to the source [Location](entity:Location)'s inventory. Common reasons for cancellation: - Items no longer needed at destination - Source location needs the inventory - Order created in error Creates a [transfer_order.updated](webhook:transfer_order.updated) webhook event.

Cancels a transfer order in [STARTED](entity:TransferOrderStatus) or [PARTIALLY_RECEIVED](entity:TransferOrderStatus) status. Any unreceived quantities will no longer be receivable and will be immediately returned to the source [Location](entity:Location)'s inventory. Common reasons for cancellation: - Items no longer needed at destination - Source location needs the inventory - Order created in error Creates a [transfer_order.updated](webhook:transfer_order.updated) webhook event.

认证

需要 Connected Account

Scopes

INVENTORY_READINVENTORY_WRITE

Tags

TransferOrder
CaptureTransactionSQUAREUP_CAPTURE_TRANSACTIONCaptures a transaction that was created with the [Charge](api-endpoint:Transactions-Charge) endpoint with a `delay_capture` value of `true`. See [Delayed capture transactions](https://developer.squareup.com/docs/payments/transactions/overview#delayed-capture) for more information.

Captures a transaction that was created with the [Charge](api-endpoint:Transactions-Charge) endpoint with a `delay_capture` value of `true`. See [Delayed capture transactions](https://developer.squareup.com/docs/payments/transactions/overview#delayed-capture) for more information.

认证

需要 Connected Account

Scopes

PAYMENTS_WRITE

Tags

Transactions
CatalogInfoSQUAREUP_CATALOG_INFORetrieves information about the Square Catalog API, such as batch size limits that can be used by the `BatchUpsertCatalogObjects` endpoint.

Retrieves information about the Square Catalog API, such as batch size limits that can be used by the `BatchUpsertCatalogObjects` endpoint.

认证

需要 Connected Account

Scopes

ITEMS_READ

Tags

Catalog
ChangeBillingAnchorDateSQUAREUP_CHANGE_BILLING_ANCHOR_DATEChanges the [billing anchor date](https://developer.squareup.com/docs/subscriptions-api/subscription-billing#billing-dates) for a subscription.

Changes the [billing anchor date](https://developer.squareup.com/docs/subscriptions-api/subscription-billing#billing-dates) for a subscription.

认证

需要 Connected Account

Scopes

SUBSCRIPTIONS_WRITESUBSCRIPTIONS_READITEMS_READ

Tags

Subscriptions
CloneOrderSQUAREUP_CLONE_ORDERCreates a new order, in the `DRAFT` state, by duplicating an existing order. The newly created order has only the core fields (such as line items, taxes, and discounts) copied from the original order.

Creates a new order, in the `DRAFT` state, by duplicating an existing order. The newly created order has only the core fields (such as line items, taxes, and discounts) copied from the original order.

认证

需要 Connected Account

Scopes

ORDERS_WRITE

Tags

Orders
CompletePaymentSQUAREUP_COMPLETE_PAYMENTCompletes (captures) a payment. By default, payments are set to complete immediately after they are created. You can use this endpoint to complete a payment with the APPROVED `status`.

Completes (captures) a payment. By default, payments are set to complete immediately after they are created. You can use this endpoint to complete a payment with the APPROVED `status`.

认证

需要 Connected Account

Scopes

PAYMENTS_WRITE

Tags

Payments
CreateBankAccountSQUAREUP_CREATE_BANK_ACCOUNTStore a bank account on file for a square account

Store a bank account on file for a square account

认证

需要 Connected Account

Scopes

BANK_ACCOUNTS_WRITE

Tags

BankAccounts
CreateBookingSQUAREUP_CREATE_BOOKINGCreates a booking. The required input must include the following: - `Booking.location_id` - `Booking.start_at` - `Booking.AppointmentSegment.team_member_id` - `Booking.AppointmentSegment.service_variation_id` - `Booking.AppointmentSegment.service_variation_version` To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope. For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to *Appointments Plus* or *Appointments Premium*.

Creates a booking. The required input must include the following: - `Booking.location_id` - `Booking.start_at` - `Booking.AppointmentSegment.team_member_id` - `Booking.AppointmentSegment.service_variation_id` - `Booking.AppointmentSegment.service_variation_version` To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope. For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to *Appointments Plus* or *Appointments Premium*.

认证

需要 Connected Account

Scopes

APPOINTMENTS_WRITE

Tags

Bookings
CreateBookingCustomAttributeDefinitionSQUAREUP_CREATE_BOOKING_CUSTOM_ATTRIBUTE_DEFINITIONCreates a bookings custom attribute definition. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope. For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to *Appointments Plus* or *Appointments Premium*.

Creates a bookings custom attribute definition. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope. For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to *Appointments Plus* or *Appointments Premium*.

认证

需要 Connected Account

Scopes

APPOINTMENTS_WRITE

Tags

BookingCustomAttributes
CreateBreakTypeSQUAREUP_CREATE_BREAK_TYPECreates a new `BreakType`. A `BreakType` is a template for creating `Break` objects. You must provide the following values in your request to this endpoint: - `location_id` - `break_name` - `expected_duration` - `is_paid` You can only have three `BreakType` instances per location. If you attempt to add a fourth `BreakType` for a location, an `INVALID_REQUEST_ERROR` "Exceeded limit of 3 breaks per location." is returned.

Creates a new `BreakType`. A `BreakType` is a template for creating `Break` objects. You must provide the following values in your request to this endpoint: - `location_id` - `break_name` - `expected_duration` - `is_paid` You can only have three `BreakType` instances per location. If you attempt to add a fourth `BreakType` for a location, an `INVALID_REQUEST_ERROR` "Exceeded limit of 3 breaks per location." is returned.

认证

需要 Connected Account

Scopes

TIMECARDS_SETTINGS_WRITE

Tags

Labor
CreateCardSQUAREUP_CREATE_CARDAdds a card on file to an existing merchant.

Adds a card on file to an existing merchant.

认证

需要 Connected Account

Tags

Cards
CreateCatalogImageSQUAREUP_CREATE_CATALOG_IMAGEUploads an image file to be represented by a [CatalogImage](entity:CatalogImage) object that can be linked to an existing [CatalogObject](entity:CatalogObject) instance. The resulting `CatalogImage` is unattached to any `CatalogObject` if the `object_id` is not specified. This `CreateCatalogImage` endpoint accepts HTTP multipart/form-data requests with a JSON part and an image file part in JPEG, PJPEG, PNG, or GIF format. The maximum file size is 15MB.

Uploads an image file to be represented by a [CatalogImage](entity:CatalogImage) object that can be linked to an existing [CatalogObject](entity:CatalogObject) instance. The resulting `CatalogImage` is unattached to any `CatalogObject` if the `object_id` is not specified. This `CreateCatalogImage` endpoint accepts HTTP multipart/form-data requests with a JSON part and an image file part in JPEG, PJPEG, PNG, or GIF format. The maximum file size is 15MB.

认证

需要 Connected Account

Scopes

ITEMS_WRITE

Tags

Catalog
CreateCheckoutSQUAREUP_CREATE_CHECKOUTLinks a `checkoutId` to a `checkout_page_url` that customers are directed to in order to provide their payment information using a payment processing workflow hosted on connect.squareup.com. NOTE: The Checkout API has been updated with new features. For more information, see [Checkout API highlights](https://developer.squareup.com/docs/checkout-api#checkout-api-highlights).

Links a `checkoutId` to a `checkout_page_url` that customers are directed to in order to provide their payment information using a payment processing workflow hosted on connect.squareup.com. NOTE: The Checkout API has been updated with new features. For more information, see [Checkout API highlights](https://developer.squareup.com/docs/checkout-api#checkout-api-highlights).

认证

需要 Connected Account

Scopes

PAYMENTS_WRITEORDERS_WRITE

Tags

Checkout
CreateCustomerSQUAREUP_CREATE_CUSTOMERCreates a new customer for a business. You must provide at least one of the following values in your request to this endpoint: - `given_name` - `family_name` - `company_name` - `email_address` - `phone_number`

Creates a new customer for a business. You must provide at least one of the following values in your request to this endpoint: - `given_name` - `family_name` - `company_name` - `email_address` - `phone_number`

认证

需要 Connected Account

Scopes

CUSTOMERS_WRITE

Tags

Customers
CreateCustomerCardSQUAREUP_CREATE_CUSTOMER_CARDAdds a card on file to an existing customer. As with charges, calls to `CreateCustomerCard` are idempotent. Multiple calls with the same card nonce return the same card record that was created with the provided nonce during the _first_ call.

Adds a card on file to an existing customer. As with charges, calls to `CreateCustomerCard` are idempotent. Multiple calls with the same card nonce return the same card record that was created with the provided nonce during the _first_ call.

认证

需要 Connected Account

Scopes

CUSTOMERS_WRITE

Tags

Customers
CreateCustomerCustomAttributeDefinitionSQUAREUP_CREATE_CUSTOMER_CUSTOM_ATTRIBUTE_DEFINITIONCreates a customer-related [custom attribute definition](entity:CustomAttributeDefinition) for a Square seller account. Use this endpoint to define a custom attribute that can be associated with customer profiles. A custom attribute definition specifies the `key`, `visibility`, `schema`, and other properties for a custom attribute. After the definition is created, you can call [UpsertCustomerCustomAttribute](api-endpoint:CustomerCustomAttributes-UpsertCustomerCustomAttribute) or [BulkUpsertCustomerCustomAttributes](api-endpoint:CustomerCustomAttributes-BulkUpsertCustomerCustomAttributes) to set the custom attribute for customer profiles in the seller's Customer Directory. Sellers can view all custom attributes in exported customer data, including those set to `VISIBILITY_HIDDEN`.

Creates a customer-related [custom attribute definition](entity:CustomAttributeDefinition) for a Square seller account. Use this endpoint to define a custom attribute that can be associated with customer profiles. A custom attribute definition specifies the `key`, `visibility`, `schema`, and other properties for a custom attribute. After the definition is created, you can call [UpsertCustomerCustomAttribute](api-endpoint:CustomerCustomAttributes-UpsertCustomerCustomAttribute) or [BulkUpsertCustomerCustomAttributes](api-endpoint:CustomerCustomAttributes-BulkUpsertCustomerCustomAttributes) to set the custom attribute for customer profiles in the seller's Customer Directory. Sellers can view all custom attributes in exported customer data, including those set to `VISIBILITY_HIDDEN`.

认证

需要 Connected Account

Scopes

CUSTOMERS_WRITE

Tags

CustomerCustomAttributes
CreateCustomerGroupSQUAREUP_CREATE_CUSTOMER_GROUPCreates a new customer group for a business. The request must include the `name` value of the group.

Creates a new customer group for a business. The request must include the `name` value of the group.

认证

需要 Connected Account

Scopes

CUSTOMERS_WRITE

Tags

CustomerGroups
CreateDeviceCodeSQUAREUP_CREATE_DEVICE_CODECreates a DeviceCode that can be used to login to a Square Terminal device to enter the connected terminal mode.

Creates a DeviceCode that can be used to login to a Square Terminal device to enter the connected terminal mode.

认证

需要 Connected Account

Scopes

DEVICE_CREDENTIAL_MANAGEMENT

Tags

Devices
CreateDisputeEvidenceFileSQUAREUP_CREATE_DISPUTE_EVIDENCE_FILEUploads a file to use as evidence in a dispute challenge. The endpoint accepts HTTP multipart/form-data file uploads in HEIC, HEIF, JPEG, PDF, PNG, and TIFF formats.

Uploads a file to use as evidence in a dispute challenge. The endpoint accepts HTTP multipart/form-data file uploads in HEIC, HEIF, JPEG, PDF, PNG, and TIFF formats.

认证

需要 Connected Account

Scopes

DISPUTES_WRITE

Tags

Disputes
CreateDisputeEvidenceTextSQUAREUP_CREATE_DISPUTE_EVIDENCE_TEXTUploads text to use as evidence for a dispute challenge.

Uploads text to use as evidence for a dispute challenge.

认证

需要 Connected Account

Scopes

DISPUTES_WRITE

Tags

Disputes
CreateGiftCardSQUAREUP_CREATE_GIFT_CARDCreates a digital gift card or registers a physical (plastic) gift card. The resulting gift card has a `PENDING` state. To activate a gift card so that it can be redeemed for purchases, call [CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) and create an `ACTIVATE` activity with the initial balance. Alternatively, you can use [RefundPayment](api-endpoint:Refunds-RefundPayment) to refund a payment to the new gift card.

Creates a digital gift card or registers a physical (plastic) gift card. The resulting gift card has a `PENDING` state. To activate a gift card so that it can be redeemed for purchases, call [CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) and create an `ACTIVATE` activity with the initial balance. Alternatively, you can use [RefundPayment](api-endpoint:Refunds-RefundPayment) to refund a payment to the new gift card.

认证

需要 Connected Account

Scopes

GIFTCARDS_WRITE

Tags

GiftCards
CreateGiftCardActivitySQUAREUP_CREATE_GIFT_CARD_ACTIVITYCreates a gift card activity to manage the balance or state of a [gift card](entity:GiftCard). For example, create an `ACTIVATE` activity to activate a gift card with an initial balance before first use.

Creates a gift card activity to manage the balance or state of a [gift card](entity:GiftCard). For example, create an `ACTIVATE` activity to activate a gift card with an initial balance before first use.

认证

需要 Connected Account

Scopes

GIFTCARDS_WRITE

Tags

GiftCardActivities
CreateInvoiceSQUAREUP_CREATE_INVOICECreates a draft [invoice](entity:Invoice) for an order created using the Orders API. A draft invoice remains in your account and no action is taken. You must publish the invoice before Square can process it (send it to the customer's email address or charge the customer’s card on file).

Creates a draft [invoice](entity:Invoice) for an order created using the Orders API. A draft invoice remains in your account and no action is taken. You must publish the invoice before Square can process it (send it to the customer's email address or charge the customer’s card on file).

认证

需要 Connected Account

Scopes

ORDERS_WRITEINVOICES_WRITE

Tags

Invoices
CreateInvoiceAttachmentSQUAREUP_CREATE_INVOICE_ATTACHMENTUploads a file and attaches it to an invoice. This endpoint accepts HTTP multipart/form-data file uploads with a JSON `request` part and a `file` part. The `file` part must be a `readable stream` that contains a file in a supported format: GIF, JPEG, PNG, TIFF, BMP, or PDF. Invoices can have up to 10 attachments with a total file size of 25 MB. Attachments can be added only to invoices in the `DRAFT`, `SCHEDULED`, `UNPAID`, or `PARTIALLY_PAID` state. __NOTE:__ When testing in the Sandbox environment, the total file size is limited to 1 KB.

Uploads a file and attaches it to an invoice. This endpoint accepts HTTP multipart/form-data file uploads with a JSON `request` part and a `file` part. The `file` part must be a `readable stream` that contains a file in a supported format: GIF, JPEG, PNG, TIFF, BMP, or PDF. Invoices can have up to 10 attachments with a total file size of 25 MB. Attachments can be added only to invoices in the `DRAFT`, `SCHEDULED`, `UNPAID`, or `PARTIALLY_PAID` state. __NOTE:__ When testing in the Sandbox environment, the total file size is limited to 1 KB.

认证

需要 Connected Account

Scopes

INVOICES_WRITE

Tags

Invoices
CreateJobSQUAREUP_CREATE_JOBCreates a job in a seller account. A job defines a title and tip eligibility. Note that compensation is defined in a [job assignment](entity:JobAssignment) in a team member's wage setting.

Creates a job in a seller account. A job defines a title and tip eligibility. Note that compensation is defined in a [job assignment](entity:JobAssignment) in a team member's wage setting.

认证

需要 Connected Account

Scopes

EMPLOYEES_WRITE

Tags

Team
CreateLocationSQUAREUP_CREATE_LOCATIONCreates a [location](https://developer.squareup.com/docs/locations-api). Creating new locations allows for separate configuration of receipt layouts, item prices, and sales reports. Developers can use locations to separate sales activity through applications that integrate with Square from sales activity elsewhere in a seller's account. Locations created programmatically with the Locations API last forever and are visible to the seller for their own management. Therefore, ensure that each location has a sensible and unique name.

Creates a [location](https://developer.squareup.com/docs/locations-api). Creating new locations allows for separate configuration of receipt layouts, item prices, and sales reports. Developers can use locations to separate sales activity through applications that integrate with Square from sales activity elsewhere in a seller's account. Locations created programmatically with the Locations API last forever and are visible to the seller for their own management. Therefore, ensure that each location has a sensible and unique name.

认证

需要 Connected Account

Scopes

MERCHANT_PROFILE_WRITE

Tags

Locations
CreateLocationCustomAttributeDefinitionSQUAREUP_CREATE_LOCATION_CUSTOM_ATTRIBUTE_DEFINITIONCreates a location-related [custom attribute definition](entity:CustomAttributeDefinition) for a Square seller account. Use this endpoint to define a custom attribute that can be associated with locations. A custom attribute definition specifies the `key`, `visibility`, `schema`, and other properties for a custom attribute. After the definition is created, you can call [UpsertLocationCustomAttribute](api-endpoint:LocationCustomAttributes-UpsertLocationCustomAttribute) or [BulkUpsertLocationCustomAttributes](api-endpoint:LocationCustomAttributes-BulkUpsertLocationCustomAttributes) to set the custom attribute for locations.

Creates a location-related [custom attribute definition](entity:CustomAttributeDefinition) for a Square seller account. Use this endpoint to define a custom attribute that can be associated with locations. A custom attribute definition specifies the `key`, `visibility`, `schema`, and other properties for a custom attribute. After the definition is created, you can call [UpsertLocationCustomAttribute](api-endpoint:LocationCustomAttributes-UpsertLocationCustomAttribute) or [BulkUpsertLocationCustomAttributes](api-endpoint:LocationCustomAttributes-BulkUpsertLocationCustomAttributes) to set the custom attribute for locations.

认证

需要 Connected Account

Scopes

MERCHANT_PROFILE_WRITE

Tags

LocationCustomAttributes
CreateLoyaltyAccountSQUAREUP_CREATE_LOYALTY_ACCOUNTCreates a loyalty account. To create a loyalty account, you must provide the `program_id` and a `mapping` with the `phone_number` of the buyer.

Creates a loyalty account. To create a loyalty account, you must provide the `program_id` and a `mapping` with the `phone_number` of the buyer.

认证

需要 Connected Account

Scopes

LOYALTY_WRITE

Tags

Loyalty
CreateLoyaltyPromotionSQUAREUP_CREATE_LOYALTY_PROMOTIONCreates a loyalty promotion for a [loyalty program](entity:LoyaltyProgram). A loyalty promotion enables buyers to earn points in addition to those earned from the base loyalty program. This endpoint sets the loyalty promotion to the `ACTIVE` or `SCHEDULED` status, depending on the `available_time` setting. A loyalty program can have a maximum of 10 loyalty promotions with an `ACTIVE` or `SCHEDULED` status.

Creates a loyalty promotion for a [loyalty program](entity:LoyaltyProgram). A loyalty promotion enables buyers to earn points in addition to those earned from the base loyalty program. This endpoint sets the loyalty promotion to the `ACTIVE` or `SCHEDULED` status, depending on the `available_time` setting. A loyalty program can have a maximum of 10 loyalty promotions with an `ACTIVE` or `SCHEDULED` status.

认证

需要 Connected Account

Scopes

LOYALTY_WRITE

Tags

Loyalty
CreateLoyaltyRewardSQUAREUP_CREATE_LOYALTY_REWARDCreates a loyalty reward. In the process, the endpoint does following: - Uses the `reward_tier_id` in the request to determine the number of points to lock for this reward. - If the request includes `order_id`, it adds the reward and related discount to the order. After a reward is created, the points are locked and not available for the buyer to redeem another reward.

Creates a loyalty reward. In the process, the endpoint does following: - Uses the `reward_tier_id` in the request to determine the number of points to lock for this reward. - If the request includes `order_id`, it adds the reward and related discount to the order. After a reward is created, the points are locked and not available for the buyer to redeem another reward.

认证

需要 Connected Account

Scopes

LOYALTY_WRITE

Tags

Loyalty
CreateMerchantCustomAttributeDefinitionSQUAREUP_CREATE_MERCHANT_CUSTOM_ATTRIBUTE_DEFINITIONCreates a merchant-related [custom attribute definition](entity:CustomAttributeDefinition) for a Square seller account. Use this endpoint to define a custom attribute that can be associated with a merchant connecting to your application. A custom attribute definition specifies the `key`, `visibility`, `schema`, and other properties for a custom attribute. After the definition is created, you can call [UpsertMerchantCustomAttribute](api-endpoint:MerchantCustomAttributes-UpsertMerchantCustomAttribute) or [BulkUpsertMerchantCustomAttributes](api-endpoint:MerchantCustomAttributes-BulkUpsertMerchantCustomAttributes) to set the custom attribute for a merchant.

Creates a merchant-related [custom attribute definition](entity:CustomAttributeDefinition) for a Square seller account. Use this endpoint to define a custom attribute that can be associated with a merchant connecting to your application. A custom attribute definition specifies the `key`, `visibility`, `schema`, and other properties for a custom attribute. After the definition is created, you can call [UpsertMerchantCustomAttribute](api-endpoint:MerchantCustomAttributes-UpsertMerchantCustomAttribute) or [BulkUpsertMerchantCustomAttributes](api-endpoint:MerchantCustomAttributes-BulkUpsertMerchantCustomAttributes) to set the custom attribute for a merchant.

认证

需要 Connected Account

Scopes

MERCHANT_PROFILE_WRITE

Tags

MerchantCustomAttributes
CreateOrderSQUAREUP_CREATE_ORDERCreates a new [order](entity:Order) that can include information about products for purchase and settings to apply to the purchase. To pay for a created order, see [Pay for Orders](https://developer.squareup.com/docs/orders-api/pay-for-orders). You can modify open orders using the [UpdateOrder](api-endpoint:Orders-UpdateOrder) endpoint.

Creates a new [order](entity:Order) that can include information about products for purchase and settings to apply to the purchase. To pay for a created order, see [Pay for Orders](https://developer.squareup.com/docs/orders-api/pay-for-orders). You can modify open orders using the [UpdateOrder](api-endpoint:Orders-UpdateOrder) endpoint.

认证

需要 Connected Account

Scopes

ORDERS_WRITE

Tags

Orders
CreateOrderCustomAttributeDefinitionSQUAREUP_CREATE_ORDER_CUSTOM_ATTRIBUTE_DEFINITIONCreates an order-related custom attribute definition. Use this endpoint to define a custom attribute that can be associated with orders. After creating a custom attribute definition, you can set the custom attribute for orders in the Square seller account.

Creates an order-related custom attribute definition. Use this endpoint to define a custom attribute that can be associated with orders. After creating a custom attribute definition, you can set the custom attribute for orders in the Square seller account.

认证

需要 Connected Account

Scopes

ORDERS_WRITE

Tags

OrderCustomAttributes
CreatePaymentSQUAREUP_CREATE_PAYMENTCreates a payment using the provided source. You can use this endpoint to charge a card (credit/debit card or Square gift card) or record a payment that the seller received outside of Square (cash payment from a buyer or a payment that an external entity processed on behalf of the seller). The endpoint creates a `Payment` object and returns it in the response.

Creates a payment using the provided source. You can use this endpoint to charge a card (credit/debit card or Square gift card) or record a payment that the seller received outside of Square (cash payment from a buyer or a payment that an external entity processed on behalf of the seller). The endpoint creates a `Payment` object and returns it in the response.

认证

需要 Connected Account

Scopes

PAYMENTS_WRITE

Tags

Payments
CreatePaymentLinkSQUAREUP_CREATE_PAYMENT_LINKCreates a Square-hosted checkout page. Applications can share the resulting payment link with their buyer to pay for goods and services.

Creates a Square-hosted checkout page. Applications can share the resulting payment link with their buyer to pay for goods and services.

认证

需要 Connected Account

Scopes

PAYMENTS_WRITEORDERS_READORDERS_WRITE

Tags

Checkout
CreateScheduledShiftSQUAREUP_CREATE_SCHEDULED_SHIFTCreates a scheduled shift by providing draft shift details such as job ID, team member assignment, and start and end times. The following `draft_shift_details` fields are required: - `location_id` - `job_id` - `start_at` - `end_at`

Creates a scheduled shift by providing draft shift details such as job ID, team member assignment, and start and end times. The following `draft_shift_details` fields are required: - `location_id` - `job_id` - `start_at` - `end_at`

认证

需要 Connected Account

Scopes

TIMECARDS_WRITE

Tags

Labor
CreateShiftSQUAREUP_CREATE_SHIFTCreates a new `Shift`. A `Shift` represents a complete workday for a single team member. You must provide the following values in your request to this endpoint: - `location_id` - `team_member_id` - `start_at` An attempt to create a new `Shift` can result in a `BAD_REQUEST` error when: - The `status` of the new `Shift` is `OPEN` and the team member has another shift with an `OPEN` status. - The `start_at` date is in the future. - The `start_at` or `end_at` date overlaps another shift for the same team member. - The `Break` instances are set in the request and a break `start_at` is before the `Shift.start_at`, a break `end_at` is after the `Shift.end_at`, or both.

Creates a new `Shift`. A `Shift` represents a complete workday for a single team member. You must provide the following values in your request to this endpoint: - `location_id` - `team_member_id` - `start_at` An attempt to create a new `Shift` can result in a `BAD_REQUEST` error when: - The `status` of the new `Shift` is `OPEN` and the team member has another shift with an `OPEN` status. - The `start_at` date is in the future. - The `start_at` or `end_at` date overlaps another shift for the same team member. - The `Break` instances are set in the request and a break `start_at` is before the `Shift.start_at`, a break `end_at` is after the `Shift.end_at`, or both.

认证

需要 Connected Account

Scopes

TIMECARDS_WRITE

Tags

Labor
CreateSubscriptionSQUAREUP_CREATE_SUBSCRIPTIONEnrolls a customer in a subscription. If you provide a card on file in the request, Square charges the card for the subscription. Otherwise, Square sends an invoice to the customer's email address. The subscription starts immediately, unless the request includes the optional `start_date`. Each individual subscription is associated with a particular location. For more information, see [Create a subscription](https://developer.squareup.com/docs/subscriptions-api/manage-subscriptions#create-a-subscription).

Enrolls a customer in a subscription. If you provide a card on file in the request, Square charges the card for the subscription. Otherwise, Square sends an invoice to the customer's email address. The subscription starts immediately, unless the request includes the optional `start_date`. Each individual subscription is associated with a particular location. For more information, see [Create a subscription](https://developer.squareup.com/docs/subscriptions-api/manage-subscriptions#create-a-subscription).

认证

需要 Connected Account

Scopes

CUSTOMERS_READPAYMENTS_WRITESUBSCRIPTIONS_WRITEITEMS_READORDERS_WRITEINVOICES_WRITE

Tags

Subscriptions
CreateTeamMemberSQUAREUP_CREATE_TEAM_MEMBERCreates a single `TeamMember` object. The `TeamMember` object is returned on successful creates. You must provide the following values in your request to this endpoint: - `given_name` - `family_name` Learn about [Troubleshooting the Team API](https://developer.squareup.com/docs/team/troubleshooting#createteammember).

Creates a single `TeamMember` object. The `TeamMember` object is returned on successful creates. You must provide the following values in your request to this endpoint: - `given_name` - `family_name` Learn about [Troubleshooting the Team API](https://developer.squareup.com/docs/team/troubleshooting#createteammember).

认证

需要 Connected Account

Scopes

EMPLOYEES_WRITE

Tags

Team
CreateTerminalActionSQUAREUP_CREATE_TERMINAL_ACTIONCreates a Terminal action request and sends it to the specified device.

Creates a Terminal action request and sends it to the specified device.

认证

需要 Connected Account

Scopes

PAYMENTS_WRITE

Tags

Terminal
CreateTerminalCheckoutSQUAREUP_CREATE_TERMINAL_CHECKOUTCreates a Terminal checkout request and sends it to the specified device to take a payment for the requested amount.

Creates a Terminal checkout request and sends it to the specified device to take a payment for the requested amount.

认证

需要 Connected Account

Scopes

PAYMENTS_WRITE

Tags

Terminal
CreateTerminalRefundSQUAREUP_CREATE_TERMINAL_REFUNDCreates a request to refund an Interac payment completed on a Square Terminal. Refunds for Interac payments on a Square Terminal are supported only for Interac debit cards in Canada. Other refunds for Terminal payments should use the Refunds API. For more information, see [Refunds API](api:Refunds).

Creates a request to refund an Interac payment completed on a Square Terminal. Refunds for Interac payments on a Square Terminal are supported only for Interac debit cards in Canada. Other refunds for Terminal payments should use the Refunds API. For more information, see [Refunds API](api:Refunds).

认证

需要 Connected Account

Scopes

PAYMENTS_WRITE

Tags

Terminal
CreateTimecardSQUAREUP_CREATE_TIMECARDCreates a new `Timecard`. A `Timecard` represents a complete workday for a single team member. You must provide the following values in your request to this endpoint: - `location_id` - `team_member_id` - `start_at` An attempt to create a new `Timecard` can result in a `BAD_REQUEST` error when: - The `status` of the new `Timecard` is `OPEN` and the team member has another timecard with an `OPEN` status. - The `start_at` date is in the future. - The `start_at` or `end_at` date overlaps another timecard for the same team member. - The `Break` instances are set in the request and a break `start_at` is before the `Timecard.start_at`, a break `end_at` is after the `Timecard.end_at`, or both.

Creates a new `Timecard`. A `Timecard` represents a complete workday for a single team member. You must provide the following values in your request to this endpoint: - `location_id` - `team_member_id` - `start_at` An attempt to create a new `Timecard` can result in a `BAD_REQUEST` error when: - The `status` of the new `Timecard` is `OPEN` and the team member has another timecard with an `OPEN` status. - The `start_at` date is in the future. - The `start_at` or `end_at` date overlaps another timecard for the same team member. - The `Break` instances are set in the request and a break `start_at` is before the `Timecard.start_at`, a break `end_at` is after the `Timecard.end_at`, or both.

认证

需要 Connected Account

Scopes

TIMECARDS_WRITE

Tags

Labor
CreateTransferOrderSQUAREUP_CREATE_TRANSFER_ORDERCreates a new transfer order in [DRAFT](entity:TransferOrderStatus) status. A transfer order represents the intent to move [CatalogItemVariation](entity:CatalogItemVariation)s from one [Location](entity:Location) to another. The source and destination locations must be different and must belong to your Square account. In [DRAFT](entity:TransferOrderStatus) status, you can: - Add or remove items - Modify quantities - Update shipping information - Delete the entire order via [DeleteTransferOrder](api-endpoint:TransferOrders-DeleteTransferOrder) The request requires source_location_id and destination_location_id. Inventory levels are not affected until the order is started via [StartTransferOrder](api-endpoint:TransferOrders-StartTransferOrder). Common integration points: - Sync with warehouse management systems - Automate regular stock transfers - Initialize transfers from inventory optimization systems Creates a [transfer_order.created](webhook:transfer_order.created) webhook event.

Creates a new transfer order in [DRAFT](entity:TransferOrderStatus) status. A transfer order represents the intent to move [CatalogItemVariation](entity:CatalogItemVariation)s from one [Location](entity:Location) to another. The source and destination locations must be different and must belong to your Square account. In [DRAFT](entity:TransferOrderStatus) status, you can: - Add or remove items - Modify quantities - Update shipping information - Delete the entire order via [DeleteTransferOrder](api-endpoint:TransferOrders-DeleteTransferOrder) The request requires source_location_id and destination_location_id. Inventory levels are not affected until the order is started via [StartTransferOrder](api-endpoint:TransferOrders-StartTransferOrder). Common integration points: - Sync with warehouse management systems - Automate regular stock transfers - Initialize transfers from inventory optimization systems Creates a [transfer_order.created](webhook:transfer_order.created) webhook event.

认证

需要 Connected Account

Scopes

INVENTORY_READINVENTORY_WRITE

Tags

TransferOrder
CreateVendorSQUAREUP_CREATE_VENDORCreates a single [Vendor](entity:Vendor) object to represent a supplier to a seller.

Creates a single [Vendor](entity:Vendor) object to represent a supplier to a seller.

认证

需要 Connected Account

Scopes

VENDOR_WRITE

Tags

Vendors
CreateWebhookSubscriptionSQUAREUP_CREATE_WEBHOOK_SUBSCRIPTIONCreates a webhook subscription.

Creates a webhook subscription.

认证

需要 Connected Account

Tags

WebhookSubscriptions
DeleteBookingCustomAttributeSQUAREUP_DELETE_BOOKING_CUSTOM_ATTRIBUTEDeletes a bookings custom attribute. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope. For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to *Appointments Plus* or *Appointments Premium*.

Deletes a bookings custom attribute. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope. For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to *Appointments Plus* or *Appointments Premium*.

认证

需要 Connected Account

Scopes

APPOINTMENTS_WRITE

Tags

BookingCustomAttributes
DeleteBookingCustomAttributeDefinitionSQUAREUP_DELETE_BOOKING_CUSTOM_ATTRIBUTE_DEFINITIONDeletes a bookings custom attribute definition. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope. For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to *Appointments Plus* or *Appointments Premium*.

Deletes a bookings custom attribute definition. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope. For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to *Appointments Plus* or *Appointments Premium*.

认证

需要 Connected Account

Scopes

APPOINTMENTS_WRITE

Tags

BookingCustomAttributes
DeleteBreakTypeSQUAREUP_DELETE_BREAK_TYPEDeletes an existing `BreakType`. A `BreakType` can be deleted even if it is referenced from a `Shift`.

Deletes an existing `BreakType`. A `BreakType` can be deleted even if it is referenced from a `Shift`.

认证

需要 Connected Account

Scopes

TIMECARDS_SETTINGS_WRITE

Tags

Labor
DeleteCatalogObjectSQUAREUP_DELETE_CATALOG_OBJECTDeletes a single [CatalogObject](entity:CatalogObject) based on the provided ID and returns the set of successfully deleted IDs in the response. Deletion is a cascading event such that all children of the targeted object are also deleted. For example, deleting a [CatalogItem](entity:CatalogItem) will also delete all of its [CatalogItemVariation](entity:CatalogItemVariation) children. To ensure consistency, only one delete request is processed at a time per seller account. While one (batch or non-batch) delete request is being processed, other (batched and non-batched) delete requests are rejected with the `429` error code.

Deletes a single [CatalogObject](entity:CatalogObject) based on the provided ID and returns the set of successfully deleted IDs in the response. Deletion is a cascading event such that all children of the targeted object are also deleted. For example, deleting a [CatalogItem](entity:CatalogItem) will also delete all of its [CatalogItemVariation](entity:CatalogItemVariation) children. To ensure consistency, only one delete request is processed at a time per seller account. While one (batch or non-batch) delete request is being processed, other (batched and non-batched) delete requests are rejected with the `429` error code.

认证

需要 Connected Account

Scopes

ITEMS_WRITE

Tags

Catalog
DeleteCustomerSQUAREUP_DELETE_CUSTOMERDeletes a customer profile from a business. To delete a customer profile that was created by merging existing profiles, you must use the ID of the newly created profile.

Deletes a customer profile from a business. To delete a customer profile that was created by merging existing profiles, you must use the ID of the newly created profile.

认证

需要 Connected Account

Scopes

CUSTOMERS_WRITE

Tags

Customers
DeleteCustomerCardSQUAREUP_DELETE_CUSTOMER_CARDRemoves a card on file from a customer.

Removes a card on file from a customer.

认证

需要 Connected Account

Scopes

CUSTOMERS_WRITE

Tags

Customers
DeleteCustomerCustomAttributeSQUAREUP_DELETE_CUSTOMER_CUSTOM_ATTRIBUTEDeletes a [custom attribute](entity:CustomAttribute) associated with a customer profile. To delete a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.

Deletes a [custom attribute](entity:CustomAttribute) associated with a customer profile. To delete a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.

认证

需要 Connected Account

Scopes

CUSTOMERS_WRITE

Tags

CustomerCustomAttributes
DeleteCustomerCustomAttributeDefinitionSQUAREUP_DELETE_CUSTOMER_CUSTOM_ATTRIBUTE_DEFINITIONDeletes a customer-related [custom attribute definition](entity:CustomAttributeDefinition) from a Square seller account. Deleting a custom attribute definition also deletes the corresponding custom attribute from all customer profiles in the seller's Customer Directory. Only the definition owner can delete a custom attribute definition.

Deletes a customer-related [custom attribute definition](entity:CustomAttributeDefinition) from a Square seller account. Deleting a custom attribute definition also deletes the corresponding custom attribute from all customer profiles in the seller's Customer Directory. Only the definition owner can delete a custom attribute definition.

认证

需要 Connected Account

Scopes

CUSTOMERS_WRITE

Tags

CustomerCustomAttributes
DeleteCustomerGroupSQUAREUP_DELETE_CUSTOMER_GROUPDeletes a customer group as identified by the `group_id` value.

Deletes a customer group as identified by the `group_id` value.

认证

需要 Connected Account

Scopes

CUSTOMERS_WRITE

Tags

CustomerGroups
DeleteDisputeEvidenceSQUAREUP_DELETE_DISPUTE_EVIDENCERemoves specified evidence from a dispute. Square does not send the bank any evidence that is removed.

Removes specified evidence from a dispute. Square does not send the bank any evidence that is removed.

认证

需要 Connected Account

Scopes

DISPUTES_WRITE

Tags

Disputes
DeleteInvoiceSQUAREUP_DELETE_INVOICEDeletes the specified invoice. When an invoice is deleted, the associated order status changes to CANCELED. You can only delete a draft invoice (you cannot delete a published invoice, including one that is scheduled for processing).

Deletes the specified invoice. When an invoice is deleted, the associated order status changes to CANCELED. You can only delete a draft invoice (you cannot delete a published invoice, including one that is scheduled for processing).

认证

需要 Connected Account

Scopes

ORDERS_WRITEINVOICES_WRITE

Tags

Invoices
DeleteInvoiceAttachmentSQUAREUP_DELETE_INVOICE_ATTACHMENTRemoves an attachment from an invoice and permanently deletes the file. Attachments can be removed only from invoices in the `DRAFT`, `SCHEDULED`, `UNPAID`, or `PARTIALLY_PAID` state.

Removes an attachment from an invoice and permanently deletes the file. Attachments can be removed only from invoices in the `DRAFT`, `SCHEDULED`, `UNPAID`, or `PARTIALLY_PAID` state.

认证

需要 Connected Account

Scopes

INVOICES_WRITE

Tags

Invoices
DeleteLocationCustomAttributeSQUAREUP_DELETE_LOCATION_CUSTOM_ATTRIBUTEDeletes a [custom attribute](entity:CustomAttribute) associated with a location. To delete a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_WRITE_VALUES`.

Deletes a [custom attribute](entity:CustomAttribute) associated with a location. To delete a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_WRITE_VALUES`.

认证

需要 Connected Account

Scopes

MERCHANT_PROFILE_WRITE

Tags

LocationCustomAttributes
DeleteLocationCustomAttributeDefinitionSQUAREUP_DELETE_LOCATION_CUSTOM_ATTRIBUTE_DEFINITIONDeletes a location-related [custom attribute definition](entity:CustomAttributeDefinition) from a Square seller account. Deleting a custom attribute definition also deletes the corresponding custom attribute from all locations. Only the definition owner can delete a custom attribute definition.

Deletes a location-related [custom attribute definition](entity:CustomAttributeDefinition) from a Square seller account. Deleting a custom attribute definition also deletes the corresponding custom attribute from all locations. Only the definition owner can delete a custom attribute definition.

认证

需要 Connected Account

Scopes

MERCHANT_PROFILE_WRITE

Tags

LocationCustomAttributes
DeleteLoyaltyRewardSQUAREUP_DELETE_LOYALTY_REWARDDeletes a loyalty reward by doing the following: - Returns the loyalty points back to the loyalty account. - If an order ID was specified when the reward was created (see [CreateLoyaltyReward](api-endpoint:Loyalty-CreateLoyaltyReward)), it updates the order by removing the reward and related discounts. You cannot delete a reward that has reached the terminal state (REDEEMED).

Deletes a loyalty reward by doing the following: - Returns the loyalty points back to the loyalty account. - If an order ID was specified when the reward was created (see [CreateLoyaltyReward](api-endpoint:Loyalty-CreateLoyaltyReward)), it updates the order by removing the reward and related discounts. You cannot delete a reward that has reached the terminal state (REDEEMED).

认证

需要 Connected Account

Scopes

LOYALTY_WRITE

Tags

Loyalty
DeleteMerchantCustomAttributeSQUAREUP_DELETE_MERCHANT_CUSTOM_ATTRIBUTEDeletes a [custom attribute](entity:CustomAttribute) associated with a merchant. To delete a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_WRITE_VALUES`.

Deletes a [custom attribute](entity:CustomAttribute) associated with a merchant. To delete a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_WRITE_VALUES`.

认证

需要 Connected Account

Scopes

MERCHANT_PROFILE_WRITE

Tags

MerchantCustomAttributes
DeleteMerchantCustomAttributeDefinitionSQUAREUP_DELETE_MERCHANT_CUSTOM_ATTRIBUTE_DEFINITIONDeletes a merchant-related [custom attribute definition](entity:CustomAttributeDefinition) from a Square seller account. Deleting a custom attribute definition also deletes the corresponding custom attribute from the merchant. Only the definition owner can delete a custom attribute definition.

Deletes a merchant-related [custom attribute definition](entity:CustomAttributeDefinition) from a Square seller account. Deleting a custom attribute definition also deletes the corresponding custom attribute from the merchant. Only the definition owner can delete a custom attribute definition.

认证

需要 Connected Account

Scopes

MERCHANT_PROFILE_WRITE

Tags

MerchantCustomAttributes
DeleteOrderCustomAttributeSQUAREUP_DELETE_ORDER_CUSTOM_ATTRIBUTEDeletes a [custom attribute](entity:CustomAttribute) associated with a customer profile. To delete a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.

Deletes a [custom attribute](entity:CustomAttribute) associated with a customer profile. To delete a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.

认证

需要 Connected Account

Scopes

ORDERS_WRITE

Tags

OrderCustomAttributes
DeleteOrderCustomAttributeDefinitionSQUAREUP_DELETE_ORDER_CUSTOM_ATTRIBUTE_DEFINITIONDeletes an order-related [custom attribute definition](entity:CustomAttributeDefinition) from a Square seller account. Only the definition owner can delete a custom attribute definition.

Deletes an order-related [custom attribute definition](entity:CustomAttributeDefinition) from a Square seller account. Only the definition owner can delete a custom attribute definition.

认证

需要 Connected Account

Scopes

ORDERS_WRITE

Tags

OrderCustomAttributes
DeletePaymentLinkSQUAREUP_DELETE_PAYMENT_LINKDeletes a payment link.

Deletes a payment link.

认证

需要 Connected Account

Scopes

ORDERS_READORDERS_WRITE

Tags

Checkout
DeleteShiftSQUAREUP_DELETE_SHIFTDeletes a `Shift`.

Deletes a `Shift`.

认证

需要 Connected Account

Scopes

TIMECARDS_WRITE

Tags

Labor
DeleteSnippetSQUAREUP_DELETE_SNIPPETRemoves your snippet from a Square Online site. You can call [ListSites](api-endpoint:Sites-ListSites) to get the IDs of the sites that belong to a seller. __Note:__ Square Online APIs are publicly available as part of an early access program. For more information, see [Early access program for Square Online APIs](https://developer.squareup.com/docs/online-api#early-access-program-for-square-online-apis).

Removes your snippet from a Square Online site. You can call [ListSites](api-endpoint:Sites-ListSites) to get the IDs of the sites that belong to a seller. __Note:__ Square Online APIs are publicly available as part of an early access program. For more information, see [Early access program for Square Online APIs](https://developer.squareup.com/docs/online-api#early-access-program-for-square-online-apis).

认证

需要 Connected Account

Scopes

ONLINE_STORE_SNIPPETS_WRITE

Tags

Snippets
DeleteSubscriptionActionSQUAREUP_DELETE_SUBSCRIPTION_ACTIONDeletes a scheduled action for a subscription.

Deletes a scheduled action for a subscription.

认证

需要 Connected Account

Scopes

SUBSCRIPTIONS_WRITE

Tags

Subscriptions
DeleteTimecardSQUAREUP_DELETE_TIMECARDDeletes a `Timecard`.

Deletes a `Timecard`.

认证

需要 Connected Account

Scopes

TIMECARDS_WRITE

Tags

Labor
DeleteTransferOrderSQUAREUP_DELETE_TRANSFER_ORDERDeletes a transfer order in [DRAFT](entity:TransferOrderStatus) status. Only draft orders can be deleted. Once an order is started via [StartTransferOrder](api-endpoint:TransferOrders-StartTransferOrder), it can no longer be deleted. Creates a [transfer_order.deleted](webhook:transfer_order.deleted) webhook event.

Deletes a transfer order in [DRAFT](entity:TransferOrderStatus) status. Only draft orders can be deleted. Once an order is started via [StartTransferOrder](api-endpoint:TransferOrders-StartTransferOrder), it can no longer be deleted. Creates a [transfer_order.deleted](webhook:transfer_order.deleted) webhook event.

认证

需要 Connected Account

Scopes

INVENTORY_WRITE

Tags

TransferOrder
DeleteWebhookSubscriptionSQUAREUP_DELETE_WEBHOOK_SUBSCRIPTIONDeletes a webhook subscription.

Deletes a webhook subscription.

认证

需要 Connected Account

Tags

WebhookSubscriptions
DeprecatedBatchChangeInventorySQUAREUP_DEPRECATED_BATCH_CHANGE_INVENTORYDeprecated version of [BatchChangeInventory](api-endpoint:Inventory-BatchChangeInventory) after the endpoint URL is updated to conform to the standard convention.

Deprecated version of [BatchChangeInventory](api-endpoint:Inventory-BatchChangeInventory) after the endpoint URL is updated to conform to the standard convention.

认证

需要 Connected Account

Scopes

INVENTORY_WRITE

Tags

Inventory
DeprecatedBatchRetrieveInventoryChangesSQUAREUP_DEPRECATED_BATCH_RETRIEVE_INVENTORY_CHANGESDeprecated version of [BatchRetrieveInventoryChanges](api-endpoint:Inventory-BatchRetrieveInventoryChanges) after the endpoint URL is updated to conform to the standard convention.

Deprecated version of [BatchRetrieveInventoryChanges](api-endpoint:Inventory-BatchRetrieveInventoryChanges) after the endpoint URL is updated to conform to the standard convention.

认证

需要 Connected Account

Scopes

INVENTORY_READ

Tags

Inventory
DeprecatedBatchRetrieveInventoryCountsSQUAREUP_DEPRECATED_BATCH_RETRIEVE_INVENTORY_COUNTSDeprecated version of [BatchRetrieveInventoryCounts](api-endpoint:Inventory-BatchRetrieveInventoryCounts) after the endpoint URL is updated to conform to the standard convention.

Deprecated version of [BatchRetrieveInventoryCounts](api-endpoint:Inventory-BatchRetrieveInventoryCounts) after the endpoint URL is updated to conform to the standard convention.

认证

需要 Connected Account

Scopes

INVENTORY_READ

Tags

Inventory
DeprecatedRetrieveInventoryAdjustmentSQUAREUP_DEPRECATED_RETRIEVE_INVENTORY_ADJUSTMENTDeprecated version of [RetrieveInventoryAdjustment](api-endpoint:Inventory-RetrieveInventoryAdjustment) after the endpoint URL is updated to conform to the standard convention.

Deprecated version of [RetrieveInventoryAdjustment](api-endpoint:Inventory-RetrieveInventoryAdjustment) after the endpoint URL is updated to conform to the standard convention.

认证

需要 Connected Account

Scopes

INVENTORY_READ

Tags

Inventory
DeprecatedRetrieveInventoryPhysicalCountSQUAREUP_DEPRECATED_RETRIEVE_INVENTORY_PHYSICAL_COUNTDeprecated version of [RetrieveInventoryPhysicalCount](api-endpoint:Inventory-RetrieveInventoryPhysicalCount) after the endpoint URL is updated to conform to the standard convention.

Deprecated version of [RetrieveInventoryPhysicalCount](api-endpoint:Inventory-RetrieveInventoryPhysicalCount) after the endpoint URL is updated to conform to the standard convention.

认证

需要 Connected Account

Scopes

INVENTORY_READ

Tags

Inventory
DisableBankAccountSQUAREUP_DISABLE_BANK_ACCOUNTDisable a bank account.

Disable a bank account.

认证

需要 Connected Account

Scopes

BANK_ACCOUNTS_WRITE

Tags

BankAccounts
DisableCardSQUAREUP_DISABLE_CARDDisables the card, preventing any further updates or charges. Disabling an already disabled card is allowed but has no effect.

Disables the card, preventing any further updates or charges. Disabling an already disabled card is allowed but has no effect.

认证

需要 Connected Account

Tags

Cards
DisableEventsSQUAREUP_DISABLE_EVENTSDisables events to prevent them from being searchable. All events are disabled by default. You must enable events to make them searchable. Disabling events for a specific time period prevents them from being searchable, even if you re-enable them later.

Disables events to prevent them from being searchable. All events are disabled by default. You must enable events to make them searchable. Disabling events for a specific time period prevents them from being searchable, even if you re-enable them later.

认证

需要 Connected Account

Tags

Events
DismissTerminalActionSQUAREUP_DISMISS_TERMINAL_ACTIONDismisses a Terminal action request if the status and type of the request permits it. See [Link and Dismiss Actions](https://developer.squareup.com/docs/terminal-api/advanced-features/custom-workflows/link-and-dismiss-actions) for more details.

Dismisses a Terminal action request if the status and type of the request permits it. See [Link and Dismiss Actions](https://developer.squareup.com/docs/terminal-api/advanced-features/custom-workflows/link-and-dismiss-actions) for more details.

认证

需要 Connected Account

Tags

Terminal
DismissTerminalCheckoutSQUAREUP_DISMISS_TERMINAL_CHECKOUTDismisses a Terminal checkout request if the status and type of the request permits it.

Dismisses a Terminal checkout request if the status and type of the request permits it.

认证

需要 Connected Account

Tags

Terminal
DismissTerminalRefundSQUAREUP_DISMISS_TERMINAL_REFUNDDismisses a Terminal refund request if the status and type of the request permits it.

Dismisses a Terminal refund request if the status and type of the request permits it.

认证

需要 Connected Account

Tags

Terminal
EnableEventsSQUAREUP_ENABLE_EVENTSEnables events to make them searchable. Only events that occur while in the enabled state are searchable.

Enables events to make them searchable. Only events that occur while in the enabled state are searchable.

认证

需要 Connected Account

Tags

Events
GetBankAccountSQUAREUP_GET_BANK_ACCOUNTRetrieve details of a [BankAccount](entity:BankAccount) bank account linked to a Square account.

Retrieve details of a [BankAccount](entity:BankAccount) bank account linked to a Square account.

认证

需要 Connected Account

Scopes

BANK_ACCOUNTS_READ

Tags

BankAccounts
GetBankAccountByV1IdSQUAREUP_GET_BANK_ACCOUNT_BY_V1_IDReturns details of a [BankAccount](entity:BankAccount) identified by V1 bank account ID.

Returns details of a [BankAccount](entity:BankAccount) identified by V1 bank account ID.

认证

需要 Connected Account

Scopes

BANK_ACCOUNTS_READ

Tags

BankAccounts
GetBreakTypeSQUAREUP_GET_BREAK_TYPEReturns a single `BreakType` specified by `id`.

Returns a single `BreakType` specified by `id`.

认证

需要 Connected Account

Scopes

TIMECARDS_SETTINGS_READ

Tags

Labor
GetDeviceSQUAREUP_GET_DEVICERetrieves Device with the associated `device_id`.

Retrieves Device with the associated `device_id`.

认证

需要 Connected Account

Scopes

DEVICES_READ

Tags

Devices
GetDeviceCodeSQUAREUP_GET_DEVICE_CODERetrieves DeviceCode with the associated ID.

Retrieves DeviceCode with the associated ID.

认证

需要 Connected Account

Scopes

DEVICE_CREDENTIAL_MANAGEMENT

Tags

Devices
GetEmployeeWageSQUAREUP_GET_EMPLOYEE_WAGEReturns a single `EmployeeWage` specified by `id`.

Returns a single `EmployeeWage` specified by `id`.

认证

需要 Connected Account

Scopes

EMPLOYEES_READ

Tags

Labor
GetInvoiceSQUAREUP_GET_INVOICERetrieves an invoice by invoice ID.

Retrieves an invoice by invoice ID.

认证

需要 Connected Account

Scopes

INVOICES_READ

Tags

Invoices
GetPaymentSQUAREUP_GET_PAYMENTRetrieves details for a specific payment.

Retrieves details for a specific payment.

认证

需要 Connected Account

Scopes

PAYMENTS_READ

Tags

Payments
GetPaymentRefundSQUAREUP_GET_PAYMENT_REFUNDRetrieves a specific refund using the `refund_id`.

Retrieves a specific refund using the `refund_id`.

认证

需要 Connected Account

Scopes

PAYMENTS_READ

Tags

Refunds
GetPayoutSQUAREUP_GET_PAYOUTRetrieves details of a specific payout identified by a payout ID. To call this endpoint, set `PAYOUTS_READ` for the OAuth scope.

Retrieves details of a specific payout identified by a payout ID. To call this endpoint, set `PAYOUTS_READ` for the OAuth scope.

认证

需要 Connected Account

Tags

Payouts
GetShiftSQUAREUP_GET_SHIFTReturns a single `Shift` specified by `id`.

Returns a single `Shift` specified by `id`.

认证

需要 Connected Account

Scopes

TIMECARDS_READ

Tags

Labor
GetTeamMemberWageSQUAREUP_GET_TEAM_MEMBER_WAGEReturns a single `TeamMemberWage` specified by `id`.

Returns a single `TeamMemberWage` specified by `id`.

认证

需要 Connected Account

Scopes

EMPLOYEES_READ

Tags

Labor
GetTerminalActionSQUAREUP_GET_TERMINAL_ACTIONRetrieves a Terminal action request by `action_id`. Terminal action requests are available for 30 days.

Retrieves a Terminal action request by `action_id`. Terminal action requests are available for 30 days.

认证

需要 Connected Account

Scopes

PAYMENTS_READ

Tags

Terminal
GetTerminalCheckoutSQUAREUP_GET_TERMINAL_CHECKOUTRetrieves a Terminal checkout request by `checkout_id`. Terminal checkout requests are available for 30 days.

Retrieves a Terminal checkout request by `checkout_id`. Terminal checkout requests are available for 30 days.

认证

需要 Connected Account

Scopes

PAYMENTS_READ

Tags

Terminal
GetTerminalRefundSQUAREUP_GET_TERMINAL_REFUNDRetrieves an Interac Terminal refund object by ID. Terminal refund objects are available for 30 days.

Retrieves an Interac Terminal refund object by ID. Terminal refund objects are available for 30 days.

认证

需要 Connected Account

Scopes

PAYMENTS_READ

Tags

Terminal
LinkCustomerToGiftCardSQUAREUP_LINK_CUSTOMER_TO_GIFT_CARDLinks a customer to a gift card, which is also referred to as adding a card on file.

Links a customer to a gift card, which is also referred to as adding a card on file.

认证

需要 Connected Account

Scopes

GIFTCARDS_WRITE

Tags

GiftCards
ListBankAccountsSQUAREUP_LIST_BANK_ACCOUNTSReturns a list of [BankAccount](entity:BankAccount) objects linked to a Square account.

Returns a list of [BankAccount](entity:BankAccount) objects linked to a Square account.

认证

需要 Connected Account

Scopes

BANK_ACCOUNTS_READ

Tags

BankAccounts
ListBookingCustomAttributeDefinitionsSQUAREUP_LIST_BOOKING_CUSTOM_ATTRIBUTE_DEFINITIONSGet all bookings custom attribute definitions. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.

Get all bookings custom attribute definitions. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.

认证

需要 Connected Account

Scopes

APPOINTMENTS_READ

Tags

BookingCustomAttributes
ListBookingCustomAttributesSQUAREUP_LIST_BOOKING_CUSTOM_ATTRIBUTESLists a booking's custom attributes. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.

Lists a booking's custom attributes. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.

认证

需要 Connected Account

Scopes

APPOINTMENTS_READ

Tags

BookingCustomAttributes
ListBookingsSQUAREUP_LIST_BOOKINGSRetrieve a collection of bookings. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.

Retrieve a collection of bookings. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.

认证

需要 Connected Account

Scopes

APPOINTMENTS_READ

Tags

Bookings
ListBreakTypesSQUAREUP_LIST_BREAK_TYPESReturns a paginated list of `BreakType` instances for a business.

Returns a paginated list of `BreakType` instances for a business.

认证

需要 Connected Account

Scopes

TIMECARDS_SETTINGS_READ

Tags

Labor
ListCardsSQUAREUP_LIST_CARDSRetrieves a list of cards owned by the account making the request. A max of 25 cards will be returned.

Retrieves a list of cards owned by the account making the request. A max of 25 cards will be returned.

认证

需要 Connected Account

Tags

Cards
ListCashDrawerShiftEventsSQUAREUP_LIST_CASH_DRAWER_SHIFT_EVENTSProvides a paginated list of events for a single cash drawer shift.

Provides a paginated list of events for a single cash drawer shift.

认证

需要 Connected Account

Scopes

CASH_DRAWER_READ

Tags

CashDrawers
ListCashDrawerShiftsSQUAREUP_LIST_CASH_DRAWER_SHIFTSProvides the details for all of the cash drawer shifts for a location in a date range.

Provides the details for all of the cash drawer shifts for a location in a date range.

认证

需要 Connected Account

Scopes

CASH_DRAWER_READ

Tags

CashDrawers
ListCatalogSQUAREUP_LIST_CATALOGReturns a list of all [CatalogObject](entity:CatalogObject)s of the specified types in the catalog. The `types` parameter is specified as a comma-separated list of the [CatalogObjectType](entity:CatalogObjectType) values, for example, "`ITEM`, `ITEM_VARIATION`, `MODIFIER`, `MODIFIER_LIST`, `CATEGORY`, `DISCOUNT`, `TAX`, `IMAGE`". __Important:__ ListCatalog does not return deleted catalog items. To retrieve deleted catalog items, use [SearchCatalogObjects](api-endpoint:Catalog-SearchCatalogObjects) and set the `include_deleted_objects` attribute value to `true`.

Returns a list of all [CatalogObject](entity:CatalogObject)s of the specified types in the catalog. The `types` parameter is specified as a comma-separated list of the [CatalogObjectType](entity:CatalogObjectType) values, for example, "`ITEM`, `ITEM_VARIATION`, `MODIFIER`, `MODIFIER_LIST`, `CATEGORY`, `DISCOUNT`, `TAX`, `IMAGE`". __Important:__ ListCatalog does not return deleted catalog items. To retrieve deleted catalog items, use [SearchCatalogObjects](api-endpoint:Catalog-SearchCatalogObjects) and set the `include_deleted_objects` attribute value to `true`.

认证

需要 Connected Account

Scopes

ITEMS_READ

Tags

Catalog
ListChannelsSQUAREUP_LIST_CHANNELSListChannels

ListChannels

认证

需要 Connected Account

Scopes

CHANNELS_READ

Tags

Channels
ListCustomerCustomAttributeDefinitionsSQUAREUP_LIST_CUSTOMER_CUSTOM_ATTRIBUTE_DEFINITIONSLists the customer-related [custom attribute definitions](entity:CustomAttributeDefinition) that belong to a Square seller account. When all response pages are retrieved, the results include all custom attribute definitions that are visible to the requesting application, including those that are created by other applications and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.

Lists the customer-related [custom attribute definitions](entity:CustomAttributeDefinition) that belong to a Square seller account. When all response pages are retrieved, the results include all custom attribute definitions that are visible to the requesting application, including those that are created by other applications and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.

认证

需要 Connected Account

Scopes

CUSTOMERS_READ

Tags

CustomerCustomAttributes
ListCustomerCustomAttributesSQUAREUP_LIST_CUSTOMER_CUSTOM_ATTRIBUTESLists the [custom attributes](entity:CustomAttribute) associated with a customer profile. You can use the `with_definitions` query parameter to also retrieve custom attribute definitions in the same call. When all response pages are retrieved, the results include all custom attributes that are visible to the requesting application, including those that are owned by other applications and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.

Lists the [custom attributes](entity:CustomAttribute) associated with a customer profile. You can use the `with_definitions` query parameter to also retrieve custom attribute definitions in the same call. When all response pages are retrieved, the results include all custom attributes that are visible to the requesting application, including those that are owned by other applications and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.

认证

需要 Connected Account

Scopes

CUSTOMERS_READ

Tags

CustomerCustomAttributes
ListCustomerGroupsSQUAREUP_LIST_CUSTOMER_GROUPSRetrieves the list of customer groups of a business.

Retrieves the list of customer groups of a business.

认证

需要 Connected Account

Scopes

CUSTOMERS_READ

Tags

CustomerGroups
ListCustomerSegmentsSQUAREUP_LIST_CUSTOMER_SEGMENTSRetrieves the list of customer segments of a business.

Retrieves the list of customer segments of a business.

认证

需要 Connected Account

Scopes

CUSTOMERS_READ

Tags

CustomerSegments
ListCustomersSQUAREUP_LIST_CUSTOMERSLists customer profiles associated with a Square account. Under normal operating conditions, newly created or updated customer profiles become available for the listing operation in well under 30 seconds. Occasionally, propagation of the new or updated profiles can take closer to one minute or longer, especially during network incidents and outages.

Lists customer profiles associated with a Square account. Under normal operating conditions, newly created or updated customer profiles become available for the listing operation in well under 30 seconds. Occasionally, propagation of the new or updated profiles can take closer to one minute or longer, especially during network incidents and outages.

认证

需要 Connected Account

Scopes

CUSTOMERS_READ

Tags

Customers
ListDeviceCodesSQUAREUP_LIST_DEVICE_CODESLists all DeviceCodes associated with the merchant.

Lists all DeviceCodes associated with the merchant.

认证

需要 Connected Account

Scopes

DEVICE_CREDENTIAL_MANAGEMENT

Tags

Devices
ListDevicesSQUAREUP_LIST_DEVICESList devices associated with the merchant. Currently, only Terminal API devices are supported.

List devices associated with the merchant. Currently, only Terminal API devices are supported.

认证

需要 Connected Account

Scopes

DEVICES_READ

Tags

Devices
ListDisputeEvidenceSQUAREUP_LIST_DISPUTE_EVIDENCEReturns a list of evidence associated with a dispute.

Returns a list of evidence associated with a dispute.

认证

需要 Connected Account

Scopes

DISPUTES_READ

Tags

Disputes
ListDisputesSQUAREUP_LIST_DISPUTESReturns a list of disputes associated with a particular account.

Returns a list of disputes associated with a particular account.

认证

需要 Connected Account

Scopes

DISPUTES_READ

Tags

Disputes
ListEmployeeWagesSQUAREUP_LIST_EMPLOYEE_WAGESReturns a paginated list of `EmployeeWage` instances for a business.

Returns a paginated list of `EmployeeWage` instances for a business.

认证

需要 Connected Account

Scopes

EMPLOYEES_READ

Tags

Labor
ListEmployeesSQUAREUP_LIST_EMPLOYEESListEmployees

ListEmployees

认证

需要 Connected Account

Scopes

EMPLOYEES_READ

Tags

Employees
ListEventTypesSQUAREUP_LIST_EVENT_TYPESLists all event types that you can subscribe to as webhooks or query using the Events API.

Lists all event types that you can subscribe to as webhooks or query using the Events API.

认证

需要 Connected Account

Tags

Events
ListGiftCardActivitiesSQUAREUP_LIST_GIFT_CARD_ACTIVITIESLists gift card activities. By default, you get gift card activities for all gift cards in the seller's account. You can optionally specify query parameters to filter the list. For example, you can get a list of gift card activities for a gift card, for all gift cards in a specific region, or for activities within a time window.

Lists gift card activities. By default, you get gift card activities for all gift cards in the seller's account. You can optionally specify query parameters to filter the list. For example, you can get a list of gift card activities for a gift card, for all gift cards in a specific region, or for activities within a time window.

认证

需要 Connected Account

Scopes

GIFTCARDS_READ

Tags

GiftCardActivities
ListGiftCardsSQUAREUP_LIST_GIFT_CARDSLists all gift cards. You can specify optional filters to retrieve a subset of the gift cards. Results are sorted by `created_at` in ascending order.

Lists all gift cards. You can specify optional filters to retrieve a subset of the gift cards. Results are sorted by `created_at` in ascending order.

认证

需要 Connected Account

Scopes

GIFTCARDS_READ

Tags

GiftCards
ListInvoicesSQUAREUP_LIST_INVOICESReturns a list of invoices for a given location. The response is paginated. If truncated, the response includes a `cursor` that you use in a subsequent request to retrieve the next set of invoices.

Returns a list of invoices for a given location. The response is paginated. If truncated, the response includes a `cursor` that you use in a subsequent request to retrieve the next set of invoices.

认证

需要 Connected Account

Scopes

INVOICES_READ

Tags

Invoices
ListJobsSQUAREUP_LIST_JOBSLists jobs in a seller account. Results are sorted by title in ascending order.

Lists jobs in a seller account. Results are sorted by title in ascending order.

认证

需要 Connected Account

Scopes

EMPLOYEES_READ

Tags

Team
ListLocationBookingProfilesSQUAREUP_LIST_LOCATION_BOOKING_PROFILESLists location booking profiles of a seller.

Lists location booking profiles of a seller.

认证

需要 Connected Account

Scopes

APPOINTMENTS_BUSINESS_SETTINGS_READ

Tags

Bookings
ListLocationCustomAttributeDefinitionsSQUAREUP_LIST_LOCATION_CUSTOM_ATTRIBUTE_DEFINITIONSLists the location-related [custom attribute definitions](entity:CustomAttributeDefinition) that belong to a Square seller account. When all response pages are retrieved, the results include all custom attribute definitions that are visible to the requesting application, including those that are created by other applications and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.

Lists the location-related [custom attribute definitions](entity:CustomAttributeDefinition) that belong to a Square seller account. When all response pages are retrieved, the results include all custom attribute definitions that are visible to the requesting application, including those that are created by other applications and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.

认证

需要 Connected Account

Scopes

MERCHANT_PROFILE_READ

Tags

LocationCustomAttributes
ListLocationCustomAttributesSQUAREUP_LIST_LOCATION_CUSTOM_ATTRIBUTESLists the [custom attributes](entity:CustomAttribute) associated with a location. You can use the `with_definitions` query parameter to also retrieve custom attribute definitions in the same call. When all response pages are retrieved, the results include all custom attributes that are visible to the requesting application, including those that are owned by other applications and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.

Lists the [custom attributes](entity:CustomAttribute) associated with a location. You can use the `with_definitions` query parameter to also retrieve custom attribute definitions in the same call. When all response pages are retrieved, the results include all custom attributes that are visible to the requesting application, including those that are owned by other applications and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.

认证

需要 Connected Account

Scopes

MERCHANT_PROFILE_READ

Tags

LocationCustomAttributes
ListLocationsSQUAREUP_LIST_LOCATIONSProvides details about all of the seller's [locations](https://developer.squareup.com/docs/locations-api), including those with an inactive status. Locations are listed alphabetically by `name`.

Provides details about all of the seller's [locations](https://developer.squareup.com/docs/locations-api), including those with an inactive status. Locations are listed alphabetically by `name`.

认证

需要 Connected Account

Scopes

MERCHANT_PROFILE_READ

Tags

Locations
ListLoyaltyProgramsSQUAREUP_LIST_LOYALTY_PROGRAMSReturns a list of loyalty programs in the seller's account. Loyalty programs define how buyers can earn points and redeem points for rewards. Square sellers can have only one loyalty program, which is created and managed from the Seller Dashboard. For more information, see [Loyalty Program Overview](https://developer.squareup.com/docs/loyalty/overview). Replaced with [RetrieveLoyaltyProgram](api-endpoint:Loyalty-RetrieveLoyaltyProgram) when used with the keyword `main`.

Returns a list of loyalty programs in the seller's account. Loyalty programs define how buyers can earn points and redeem points for rewards. Square sellers can have only one loyalty program, which is created and managed from the Seller Dashboard. For more information, see [Loyalty Program Overview](https://developer.squareup.com/docs/loyalty/overview). Replaced with [RetrieveLoyaltyProgram](api-endpoint:Loyalty-RetrieveLoyaltyProgram) when used with the keyword `main`.

认证

需要 Connected Account

Scopes

LOYALTY_READ

Tags

Loyalty
ListLoyaltyPromotionsSQUAREUP_LIST_LOYALTY_PROMOTIONSLists the loyalty promotions associated with a [loyalty program](entity:LoyaltyProgram). Results are sorted by the `created_at` date in descending order (newest to oldest).

Lists the loyalty promotions associated with a [loyalty program](entity:LoyaltyProgram). Results are sorted by the `created_at` date in descending order (newest to oldest).

认证

需要 Connected Account

Scopes

LOYALTY_READ

Tags

Loyalty
ListMerchantCustomAttributeDefinitionsSQUAREUP_LIST_MERCHANT_CUSTOM_ATTRIBUTE_DEFINITIONSLists the merchant-related [custom attribute definitions](entity:CustomAttributeDefinition) that belong to a Square seller account. When all response pages are retrieved, the results include all custom attribute definitions that are visible to the requesting application, including those that are created by other applications and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.

Lists the merchant-related [custom attribute definitions](entity:CustomAttributeDefinition) that belong to a Square seller account. When all response pages are retrieved, the results include all custom attribute definitions that are visible to the requesting application, including those that are created by other applications and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.

认证

需要 Connected Account

Scopes

MERCHANT_PROFILE_READ

Tags

MerchantCustomAttributes
ListMerchantCustomAttributesSQUAREUP_LIST_MERCHANT_CUSTOM_ATTRIBUTESLists the [custom attributes](entity:CustomAttribute) associated with a merchant. You can use the `with_definitions` query parameter to also retrieve custom attribute definitions in the same call. When all response pages are retrieved, the results include all custom attributes that are visible to the requesting application, including those that are owned by other applications and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.

Lists the [custom attributes](entity:CustomAttribute) associated with a merchant. You can use the `with_definitions` query parameter to also retrieve custom attribute definitions in the same call. When all response pages are retrieved, the results include all custom attributes that are visible to the requesting application, including those that are owned by other applications and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.

认证

需要 Connected Account

Scopes

MERCHANT_PROFILE_READ

Tags

MerchantCustomAttributes
ListMerchantsSQUAREUP_LIST_MERCHANTSProvides details about the merchant associated with a given access token. The access token used to connect your application to a Square seller is associated with a single merchant. That means that `ListMerchants` returns a list with a single `Merchant` object. You can specify your personal access token to get your own merchant information or specify an OAuth token to get the information for the merchant that granted your application access. If you know the merchant ID, you can also use the [RetrieveMerchant](api-endpoint:Merchants-RetrieveMerchant) endpoint to retrieve the merchant information.

Provides details about the merchant associated with a given access token. The access token used to connect your application to a Square seller is associated with a single merchant. That means that `ListMerchants` returns a list with a single `Merchant` object. You can specify your personal access token to get your own merchant information or specify an OAuth token to get the information for the merchant that granted your application access. If you know the merchant ID, you can also use the [RetrieveMerchant](api-endpoint:Merchants-RetrieveMerchant) endpoint to retrieve the merchant information.

认证

需要 Connected Account

Scopes

MERCHANT_PROFILE_READ

Tags

Merchants
ListOrderCustomAttributeDefinitionsSQUAREUP_LIST_ORDER_CUSTOM_ATTRIBUTE_DEFINITIONSLists the order-related [custom attribute definitions](entity:CustomAttributeDefinition) that belong to a Square seller account. When all response pages are retrieved, the results include all custom attribute definitions that are visible to the requesting application, including those that are created by other applications and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.

Lists the order-related [custom attribute definitions](entity:CustomAttributeDefinition) that belong to a Square seller account. When all response pages are retrieved, the results include all custom attribute definitions that are visible to the requesting application, including those that are created by other applications and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.

认证

需要 Connected Account

Scopes

ORDERS_READ

Tags

OrderCustomAttributes
ListOrderCustomAttributesSQUAREUP_LIST_ORDER_CUSTOM_ATTRIBUTESLists the [custom attributes](entity:CustomAttribute) associated with an order. You can use the `with_definitions` query parameter to also retrieve custom attribute definitions in the same call. When all response pages are retrieved, the results include all custom attributes that are visible to the requesting application, including those that are owned by other applications and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.

Lists the [custom attributes](entity:CustomAttribute) associated with an order. You can use the `with_definitions` query parameter to also retrieve custom attribute definitions in the same call. When all response pages are retrieved, the results include all custom attributes that are visible to the requesting application, including those that are owned by other applications and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.

认证

需要 Connected Account

Scopes

ORDERS_READ

Tags

OrderCustomAttributes
ListPaymentLinksSQUAREUP_LIST_PAYMENT_LINKSLists all payment links.

Lists all payment links.

认证

需要 Connected Account

Scopes

ORDERS_READ

Tags

Checkout
ListPaymentRefundsSQUAREUP_LIST_PAYMENT_REFUNDSRetrieves a list of refunds for the account making the request. Results are eventually consistent, and new refunds or changes to refunds might take several seconds to appear. The maximum results per page is 100.

Retrieves a list of refunds for the account making the request. Results are eventually consistent, and new refunds or changes to refunds might take several seconds to appear. The maximum results per page is 100.

认证

需要 Connected Account

Scopes

PAYMENTS_READ

Tags

Refunds
ListPaymentsSQUAREUP_LIST_PAYMENTSRetrieves a list of payments taken by the account making the request. Results are eventually consistent, and new payments or changes to payments might take several seconds to appear. The maximum results per page is 100.

Retrieves a list of payments taken by the account making the request. Results are eventually consistent, and new payments or changes to payments might take several seconds to appear. The maximum results per page is 100.

认证

需要 Connected Account

Scopes

PAYMENTS_READ

Tags

Payments
ListPayoutEntriesSQUAREUP_LIST_PAYOUT_ENTRIESRetrieves a list of all payout entries for a specific payout. To call this endpoint, set `PAYOUTS_READ` for the OAuth scope.

Retrieves a list of all payout entries for a specific payout. To call this endpoint, set `PAYOUTS_READ` for the OAuth scope.

认证

需要 Connected Account

Tags

Payouts
ListPayoutsSQUAREUP_LIST_PAYOUTSRetrieves a list of all payouts for the default location. You can filter payouts by location ID, status, time range, and order them in ascending or descending order. To call this endpoint, set `PAYOUTS_READ` for the OAuth scope.

Retrieves a list of all payouts for the default location. You can filter payouts by location ID, status, time range, and order them in ascending or descending order. To call this endpoint, set `PAYOUTS_READ` for the OAuth scope.

认证

需要 Connected Account

Tags

Payouts
ListSitesSQUAREUP_LIST_SITESLists the Square Online sites that belong to a seller. Sites are listed in descending order by the `created_at` date. __Note:__ Square Online APIs are publicly available as part of an early access program. For more information, see [Early access program for Square Online APIs](https://developer.squareup.com/docs/online-api#early-access-program-for-square-online-apis).

Lists the Square Online sites that belong to a seller. Sites are listed in descending order by the `created_at` date. __Note:__ Square Online APIs are publicly available as part of an early access program. For more information, see [Early access program for Square Online APIs](https://developer.squareup.com/docs/online-api#early-access-program-for-square-online-apis).

认证

需要 Connected Account

Scopes

ONLINE_STORE_SITE_READ

Tags

Sites
ListSubscriptionEventsSQUAREUP_LIST_SUBSCRIPTION_EVENTSLists all [events](https://developer.squareup.com/docs/subscriptions-api/actions-events) for a specific subscription.

Lists all [events](https://developer.squareup.com/docs/subscriptions-api/actions-events) for a specific subscription.

认证

需要 Connected Account

Scopes

SUBSCRIPTIONS_READ

Tags

Subscriptions
ListTeamMemberBookingProfilesSQUAREUP_LIST_TEAM_MEMBER_BOOKING_PROFILESLists booking profiles for team members.

Lists booking profiles for team members.

认证

需要 Connected Account

Scopes

APPOINTMENTS_BUSINESS_SETTINGS_READ

Tags

Bookings
ListTeamMemberWagesSQUAREUP_LIST_TEAM_MEMBER_WAGESReturns a paginated list of `TeamMemberWage` instances for a business.

Returns a paginated list of `TeamMemberWage` instances for a business.

认证

需要 Connected Account

Scopes

EMPLOYEES_READ

Tags

Labor
ListTransactionsSQUAREUP_LIST_TRANSACTIONSLists transactions for a particular location. Transactions include payment information from sales and exchanges and refund information from returns and exchanges. Max results per [page](https://developer.squareup.com/docs/working-with-apis/pagination): 50

Lists transactions for a particular location. Transactions include payment information from sales and exchanges and refund information from returns and exchanges. Max results per [page](https://developer.squareup.com/docs/working-with-apis/pagination): 50

认证

需要 Connected Account

Scopes

PAYMENTS_READ

Tags

Transactions
ListWebhookEventTypesSQUAREUP_LIST_WEBHOOK_EVENT_TYPESLists all webhook event types that can be subscribed to.

Lists all webhook event types that can be subscribed to.

认证

需要 Connected Account

Tags

WebhookSubscriptions
ListWebhookSubscriptionsSQUAREUP_LIST_WEBHOOK_SUBSCRIPTIONSLists all webhook subscriptions owned by your application.

Lists all webhook subscriptions owned by your application.

认证

需要 Connected Account

Tags

WebhookSubscriptions
ListWorkweekConfigsSQUAREUP_LIST_WORKWEEK_CONFIGSReturns a list of `WorkweekConfig` instances for a business.

Returns a list of `WorkweekConfig` instances for a business.

认证

需要 Connected Account

Scopes

TIMECARDS_SETTINGS_READ

Tags

Labor
ObtainTokenSQUAREUP_OBTAIN_TOKENReturns an OAuth access token and refresh token using the `authorization_code` or `refresh_token` grant type. When `grant_type` is `authorization_code`: - With the [code flow](https://developer.squareup.com/docs/oauth-api/overview#code-flow), provide `code`, `client_id`, and `client_secret`. - With the [PKCE flow](https://developer.squareup.com/docs/oauth-api/overview#pkce-flow), provide `code`, `client_id`, and `code_verifier`. When `grant_type` is `refresh_token`: - With the code flow, provide `refresh_token`, `client_id`, and `client_secret`. The response returns the same refresh token provided in the request. - With the PKCE flow, provide `refresh_token` and `client_id`. The response returns a new refresh token. You can use the `scopes` parameter to limit the set of permissions authorized by the access token. You can use the `short_lived` parameter to create an access token that expires in 24 hours. __Important:__ OAuth tokens should be encrypted and stored on a secure server. Application clients should never interact directly with OAuth tokens.

Returns an OAuth access token and refresh token using the `authorization_code` or `refresh_token` grant type. When `grant_type` is `authorization_code`: - With the [code flow](https://developer.squareup.com/docs/oauth-api/overview#code-flow), provide `code`, `client_id`, and `client_secret`. - With the [PKCE flow](https://developer.squareup.com/docs/oauth-api/overview#pkce-flow), provide `code`, `client_id`, and `code_verifier`. When `grant_type` is `refresh_token`: - With the code flow, provide `refresh_token`, `client_id`, and `client_secret`. The response returns the same refresh token provided in the request. - With the PKCE flow, provide `refresh_token` and `client_id`. The response returns a new refresh token. You can use the `scopes` parameter to limit the set of permissions authorized by the access token. You can use the `short_lived` parameter to create an access token that expires in 24 hours. __Important:__ OAuth tokens should be encrypted and stored on a secure server. Application clients should never interact directly with OAuth tokens.

认证

需要 Connected Account

Tags

OAuth
PauseSubscriptionSQUAREUP_PAUSE_SUBSCRIPTIONSchedules a `PAUSE` action to pause an active subscription.

Schedules a `PAUSE` action to pause an active subscription.

认证

需要 Connected Account

Scopes

CUSTOMERS_READPAYMENTS_WRITESUBSCRIPTIONS_WRITEITEMS_READORDERS_WRITEINVOICES_WRITE

Tags

Subscriptions
PayOrderSQUAREUP_PAY_ORDERPay for an [order](entity:Order) using one or more approved [payments](entity:Payment) or settle an order with a total of `0`. The total of the `payment_ids` listed in the request must be equal to the order total. Orders with a total amount of `0` can be marked as paid by specifying an empty array of `payment_ids` in the request. To be used with `PayOrder`, a payment must: - Reference the order by specifying the `order_id` when [creating the payment](api-endpoint:Payments-CreatePayment). Any approved payments that reference the same `order_id` not specified in the `payment_ids` is canceled. - Be approved with [delayed capture](https://developer.squareup.com/docs/payments-api/take-payments/card-payments/delayed-capture). Using a delayed capture payment with `PayOrder` completes the approved payment.

Pay for an [order](entity:Order) using one or more approved [payments](entity:Payment) or settle an order with a total of `0`. The total of the `payment_ids` listed in the request must be equal to the order total. Orders with a total amount of `0` can be marked as paid by specifying an empty array of `payment_ids` in the request. To be used with `PayOrder`, a payment must: - Reference the order by specifying the `order_id` when [creating the payment](api-endpoint:Payments-CreatePayment). Any approved payments that reference the same `order_id` not specified in the `payment_ids` is canceled. - Be approved with [delayed capture](https://developer.squareup.com/docs/payments-api/take-payments/card-payments/delayed-capture). Using a delayed capture payment with `PayOrder` completes the approved payment.

认证

需要 Connected Account

Scopes

PAYMENTS_WRITEORDERS_WRITE

Tags

Orders
PublishInvoiceSQUAREUP_PUBLISH_INVOICEPublishes the specified draft invoice. After an invoice is published, Square follows up based on the invoice configuration. For example, Square sends the invoice to the customer's email address, charges the customer's card on file, or does nothing. Square also makes the invoice available on a Square-hosted invoice page. The invoice `status` also changes from `DRAFT` to a status based on the invoice configuration. For example, the status changes to `UNPAID` if Square emails the invoice or `PARTIALLY_PAID` if Square charges a card on file for a portion of the invoice amount. In addition to the required `ORDERS_WRITE` and `INVOICES_WRITE` permissions, `CUSTOMERS_READ` and `PAYMENTS_WRITE` are required when publishing invoices configured for card-on-file payments.

Publishes the specified draft invoice. After an invoice is published, Square follows up based on the invoice configuration. For example, Square sends the invoice to the customer's email address, charges the customer's card on file, or does nothing. Square also makes the invoice available on a Square-hosted invoice page. The invoice `status` also changes from `DRAFT` to a status based on the invoice configuration. For example, the status changes to `UNPAID` if Square emails the invoice or `PARTIALLY_PAID` if Square charges a card on file for a portion of the invoice amount. In addition to the required `ORDERS_WRITE` and `INVOICES_WRITE` permissions, `CUSTOMERS_READ` and `PAYMENTS_WRITE` are required when publishing invoices configured for card-on-file payments.

认证

需要 Connected Account

Scopes

ORDERS_WRITEINVOICES_WRITE

Tags

Invoices
PublishScheduledShiftSQUAREUP_PUBLISH_SCHEDULED_SHIFTPublishes a scheduled shift. When a scheduled shift is published, Square keeps the `draft_shift_details` field as is and copies it to the `published_shift_details` field.

Publishes a scheduled shift. When a scheduled shift is published, Square keeps the `draft_shift_details` field as is and copies it to the `published_shift_details` field.

认证

需要 Connected Account

Scopes

TIMECARDS_WRITE

Tags

Labor
ReceiveTransferOrderSQUAREUP_RECEIVE_TRANSFER_ORDERRecords receipt of [CatalogItemVariation](entity:CatalogItemVariation)s for a transfer order. This endpoint supports partial receiving - you can receive items in multiple batches. For each line item, you can specify: - Quantity received in good condition (added to destination inventory with [InventoryState](entity:InventoryState) of IN_STOCK) - Quantity damaged during transit/handling (added to destination inventory with [InventoryState](entity:InventoryState) of WASTE) - Quantity canceled (returned to source location's inventory) The order must be in [STARTED](entity:TransferOrderStatus) or [PARTIALLY_RECEIVED](entity:TransferOrderStatus) status. Received quantities are added to the destination [Location](entity:Location)'s inventory according to their condition. Canceled quantities are immediately returned to the source [Location](entity:Location)'s inventory. When all items are either received, damaged, or canceled, the order moves to [COMPLETED](entity:TransferOrderStatus) status. Creates a [transfer_order.updated](webhook:transfer_order.updated) webhook event.

Records receipt of [CatalogItemVariation](entity:CatalogItemVariation)s for a transfer order. This endpoint supports partial receiving - you can receive items in multiple batches. For each line item, you can specify: - Quantity received in good condition (added to destination inventory with [InventoryState](entity:InventoryState) of IN_STOCK) - Quantity damaged during transit/handling (added to destination inventory with [InventoryState](entity:InventoryState) of WASTE) - Quantity canceled (returned to source location's inventory) The order must be in [STARTED](entity:TransferOrderStatus) or [PARTIALLY_RECEIVED](entity:TransferOrderStatus) status. Received quantities are added to the destination [Location](entity:Location)'s inventory according to their condition. Canceled quantities are immediately returned to the source [Location](entity:Location)'s inventory. When all items are either received, damaged, or canceled, the order moves to [COMPLETED](entity:TransferOrderStatus) status. Creates a [transfer_order.updated](webhook:transfer_order.updated) webhook event.

认证

需要 Connected Account

Scopes

INVENTORY_READINVENTORY_WRITE

Tags

TransferOrder
RedeemLoyaltyRewardSQUAREUP_REDEEM_LOYALTY_REWARDRedeems a loyalty reward. The endpoint sets the reward to the `REDEEMED` terminal state. If you are using your own order processing system (not using the Orders API), you call this endpoint after the buyer paid for the purchase. After the reward reaches the terminal state, it cannot be deleted. In other words, points used for the reward cannot be returned to the account.

Redeems a loyalty reward. The endpoint sets the reward to the `REDEEMED` terminal state. If you are using your own order processing system (not using the Orders API), you call this endpoint after the buyer paid for the purchase. After the reward reaches the terminal state, it cannot be deleted. In other words, points used for the reward cannot be returned to the account.

认证

需要 Connected Account

Scopes

LOYALTY_WRITE

Tags

Loyalty
RefundPaymentSQUAREUP_REFUND_PAYMENTRefunds a payment. You can refund the entire payment amount or a portion of it. You can use this endpoint to refund a card payment or record a refund of a cash or external payment. For more information, see [Refund Payment](https://developer.squareup.com/docs/payments-api/refund-payments).

Refunds a payment. You can refund the entire payment amount or a portion of it. You can use this endpoint to refund a card payment or record a refund of a cash or external payment. For more information, see [Refund Payment](https://developer.squareup.com/docs/payments-api/refund-payments).

认证

需要 Connected Account

Scopes

PAYMENTS_WRITE

Tags

Refunds
RegisterDomainSQUAREUP_REGISTER_DOMAINActivates a domain for use with Apple Pay on the Web and Square. A validation is performed on this domain by Apple to ensure that it is properly set up as an Apple Pay enabled domain. This endpoint provides an easy way for platform developers to bulk activate Apple Pay on the Web with Square for merchants using their platform. Note: You will need to host a valid domain verification file on your domain to support Apple Pay. The current version of this file is always available at https://app.squareup.com/digital-wallets/apple-pay/apple-developer-merchantid-domain-association, and should be hosted at `.well_known/apple-developer-merchantid-domain-association` on your domain. This file is subject to change; we strongly recommend checking for updates regularly and avoiding long-lived caches that might not keep in sync with the correct file version. To learn more about the Web Payments SDK and how to add Apple Pay, see [Take an Apple Pay Payment](https://developer.squareup.com/docs/web-payments/apple-pay).

Activates a domain for use with Apple Pay on the Web and Square. A validation is performed on this domain by Apple to ensure that it is properly set up as an Apple Pay enabled domain. This endpoint provides an easy way for platform developers to bulk activate Apple Pay on the Web with Square for merchants using their platform. Note: You will need to host a valid domain verification file on your domain to support Apple Pay. The current version of this file is always available at https://app.squareup.com/digital-wallets/apple-pay/apple-developer-merchantid-domain-association, and should be hosted at `.well_known/apple-developer-merchantid-domain-association` on your domain. This file is subject to change; we strongly recommend checking for updates regularly and avoiding long-lived caches that might not keep in sync with the correct file version. To learn more about the Web Payments SDK and how to add Apple Pay, see [Take an Apple Pay Payment](https://developer.squareup.com/docs/web-payments/apple-pay).

认证

需要 Connected Account

Tags

ApplePay
RemoveGroupFromCustomerSQUAREUP_REMOVE_GROUP_FROM_CUSTOMERRemoves a group membership from a customer. The customer is identified by the `customer_id` value and the customer group is identified by the `group_id` value.

Removes a group membership from a customer. The customer is identified by the `customer_id` value and the customer group is identified by the `group_id` value.

认证

需要 Connected Account

Scopes

CUSTOMERS_WRITE

Tags

Customers
ResumeSubscriptionSQUAREUP_RESUME_SUBSCRIPTIONSchedules a `RESUME` action to resume a paused or a deactivated subscription.

Schedules a `RESUME` action to resume a paused or a deactivated subscription.

认证

需要 Connected Account

Scopes

CUSTOMERS_READPAYMENTS_WRITESUBSCRIPTIONS_WRITEITEMS_READORDERS_WRITEINVOICES_WRITE

Tags

Subscriptions
RetrieveBookingSQUAREUP_RETRIEVE_BOOKINGRetrieves a booking. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.

Retrieves a booking. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.

认证

需要 Connected Account

Scopes

APPOINTMENTS_READ

Tags

Bookings
RetrieveBookingCustomAttributeSQUAREUP_RETRIEVE_BOOKING_CUSTOM_ATTRIBUTERetrieves a bookings custom attribute. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.

Retrieves a bookings custom attribute. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.

认证

需要 Connected Account

Scopes

APPOINTMENTS_READ

Tags

BookingCustomAttributes
RetrieveBookingCustomAttributeDefinitionSQUAREUP_RETRIEVE_BOOKING_CUSTOM_ATTRIBUTE_DEFINITIONRetrieves a bookings custom attribute definition. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.

Retrieves a bookings custom attribute definition. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.

认证

需要 Connected Account

Scopes

APPOINTMENTS_READ

Tags

BookingCustomAttributes
RetrieveBusinessBookingProfileSQUAREUP_RETRIEVE_BUSINESS_BOOKING_PROFILERetrieves a seller's booking profile.

Retrieves a seller's booking profile.

认证

需要 Connected Account

Scopes

APPOINTMENTS_BUSINESS_SETTINGS_READ

Tags

Bookings
RetrieveCardSQUAREUP_RETRIEVE_CARDRetrieves details for a specific Card.

Retrieves details for a specific Card.

认证

需要 Connected Account

Tags

Cards
RetrieveCashDrawerShiftSQUAREUP_RETRIEVE_CASH_DRAWER_SHIFTProvides the summary details for a single cash drawer shift. See [ListCashDrawerShiftEvents](api-endpoint:CashDrawers-ListCashDrawerShiftEvents) for a list of cash drawer shift events.

Provides the summary details for a single cash drawer shift. See [ListCashDrawerShiftEvents](api-endpoint:CashDrawers-ListCashDrawerShiftEvents) for a list of cash drawer shift events.

认证

需要 Connected Account

Scopes

CASH_DRAWER_READ

Tags

CashDrawers
RetrieveCatalogObjectSQUAREUP_RETRIEVE_CATALOG_OBJECTReturns a single [CatalogItem](entity:CatalogItem) as a [CatalogObject](entity:CatalogObject) based on the provided ID. The returned object includes all of the relevant [CatalogItem](entity:CatalogItem) information including: [CatalogItemVariation](entity:CatalogItemVariation) children, references to its [CatalogModifierList](entity:CatalogModifierList) objects, and the ids of any [CatalogTax](entity:CatalogTax) objects that apply to it.

Returns a single [CatalogItem](entity:CatalogItem) as a [CatalogObject](entity:CatalogObject) based on the provided ID. The returned object includes all of the relevant [CatalogItem](entity:CatalogItem) information including: [CatalogItemVariation](entity:CatalogItemVariation) children, references to its [CatalogModifierList](entity:CatalogModifierList) objects, and the ids of any [CatalogTax](entity:CatalogTax) objects that apply to it.

认证

需要 Connected Account

Scopes

ITEMS_READ

Tags

Catalog
RetrieveChannelSQUAREUP_RETRIEVE_CHANNELRetrieveChannel

RetrieveChannel

认证

需要 Connected Account

Scopes

CHANNELS_READ

Tags

Channels
RetrieveCustomerSQUAREUP_RETRIEVE_CUSTOMERReturns details for a single customer.

Returns details for a single customer.

认证

需要 Connected Account

Scopes

CUSTOMERS_READ

Tags

Customers
RetrieveCustomerCustomAttributeSQUAREUP_RETRIEVE_CUSTOMER_CUSTOM_ATTRIBUTERetrieves a [custom attribute](entity:CustomAttribute) associated with a customer profile. You can use the `with_definition` query parameter to also retrieve the custom attribute definition in the same call. To retrieve a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.

Retrieves a [custom attribute](entity:CustomAttribute) associated with a customer profile. You can use the `with_definition` query parameter to also retrieve the custom attribute definition in the same call. To retrieve a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.

认证

需要 Connected Account

Scopes

CUSTOMERS_READ

Tags

CustomerCustomAttributes
RetrieveCustomerCustomAttributeDefinitionSQUAREUP_RETRIEVE_CUSTOMER_CUSTOM_ATTRIBUTE_DEFINITIONRetrieves a customer-related [custom attribute definition](entity:CustomAttributeDefinition) from a Square seller account. To retrieve a custom attribute definition created by another application, the `visibility` setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.

Retrieves a customer-related [custom attribute definition](entity:CustomAttributeDefinition) from a Square seller account. To retrieve a custom attribute definition created by another application, the `visibility` setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.

认证

需要 Connected Account

Scopes

CUSTOMERS_READ

Tags

CustomerCustomAttributes
RetrieveCustomerGroupSQUAREUP_RETRIEVE_CUSTOMER_GROUPRetrieves a specific customer group as identified by the `group_id` value.

Retrieves a specific customer group as identified by the `group_id` value.

认证

需要 Connected Account

Scopes

CUSTOMERS_READ

Tags

CustomerGroups
RetrieveCustomerSegmentSQUAREUP_RETRIEVE_CUSTOMER_SEGMENTRetrieves a specific customer segment as identified by the `segment_id` value.

Retrieves a specific customer segment as identified by the `segment_id` value.

认证

需要 Connected Account

Scopes

CUSTOMERS_READ

Tags

CustomerSegments
RetrieveDisputeSQUAREUP_RETRIEVE_DISPUTEReturns details about a specific dispute.

Returns details about a specific dispute.

认证

需要 Connected Account

Scopes

DISPUTES_READ

Tags

Disputes
RetrieveDisputeEvidenceSQUAREUP_RETRIEVE_DISPUTE_EVIDENCEReturns the metadata for the evidence specified in the request URL path. You must maintain a copy of any evidence uploaded if you want to reference it later. Evidence cannot be downloaded after you upload it.

Returns the metadata for the evidence specified in the request URL path. You must maintain a copy of any evidence uploaded if you want to reference it later. Evidence cannot be downloaded after you upload it.

认证

需要 Connected Account

Scopes

DISPUTES_READ

Tags

Disputes
RetrieveEmployeeSQUAREUP_RETRIEVE_EMPLOYEERetrieveEmployee

RetrieveEmployee

认证

需要 Connected Account

Scopes

EMPLOYEES_READ

Tags

Employees
RetrieveGiftCardSQUAREUP_RETRIEVE_GIFT_CARDRetrieves a gift card using the gift card ID.

Retrieves a gift card using the gift card ID.

认证

需要 Connected Account

Scopes

GIFTCARDS_READ

Tags

GiftCards
RetrieveGiftCardFromGANSQUAREUP_RETRIEVE_GIFT_CARD_FROM_GANRetrieves a gift card using the gift card account number (GAN).

Retrieves a gift card using the gift card account number (GAN).

认证

需要 Connected Account

Scopes

GIFTCARDS_READ

Tags

GiftCards
RetrieveGiftCardFromNonceSQUAREUP_RETRIEVE_GIFT_CARD_FROM_NONCERetrieves a gift card using a secure payment token that represents the gift card.

Retrieves a gift card using a secure payment token that represents the gift card.

认证

需要 Connected Account

Scopes

GIFTCARDS_READ

Tags

GiftCards
RetrieveInventoryAdjustmentSQUAREUP_RETRIEVE_INVENTORY_ADJUSTMENTReturns the [InventoryAdjustment](entity:InventoryAdjustment) object with the provided `adjustment_id`.

Returns the [InventoryAdjustment](entity:InventoryAdjustment) object with the provided `adjustment_id`.

认证

需要 Connected Account

Scopes

INVENTORY_READ

Tags

Inventory
RetrieveInventoryChangesSQUAREUP_RETRIEVE_INVENTORY_CHANGESReturns a set of physical counts and inventory adjustments for the provided [CatalogObject](entity:CatalogObject) at the requested [Location](entity:Location)s. You can achieve the same result by calling [BatchRetrieveInventoryChanges](api-endpoint:Inventory-BatchRetrieveInventoryChanges) and having the `catalog_object_ids` list contain a single element of the `CatalogObject` ID. Results are paginated and sorted in descending order according to their `occurred_at` timestamp (newest first). There are no limits on how far back the caller can page. This endpoint can be used to display recent changes for a specific item. For more sophisticated queries, use a batch endpoint.

Returns a set of physical counts and inventory adjustments for the provided [CatalogObject](entity:CatalogObject) at the requested [Location](entity:Location)s. You can achieve the same result by calling [BatchRetrieveInventoryChanges](api-endpoint:Inventory-BatchRetrieveInventoryChanges) and having the `catalog_object_ids` list contain a single element of the `CatalogObject` ID. Results are paginated and sorted in descending order according to their `occurred_at` timestamp (newest first). There are no limits on how far back the caller can page. This endpoint can be used to display recent changes for a specific item. For more sophisticated queries, use a batch endpoint.

认证

需要 Connected Account

Scopes

INVENTORY_READ

Tags

Inventory
RetrieveInventoryCountSQUAREUP_RETRIEVE_INVENTORY_COUNTRetrieves the current calculated stock count for a given [CatalogObject](entity:CatalogObject) at a given set of [Location](entity:Location)s. Responses are paginated and unsorted. For more sophisticated queries, use a batch endpoint.

Retrieves the current calculated stock count for a given [CatalogObject](entity:CatalogObject) at a given set of [Location](entity:Location)s. Responses are paginated and unsorted. For more sophisticated queries, use a batch endpoint.

认证

需要 Connected Account

Scopes

INVENTORY_READ

Tags

Inventory
RetrieveInventoryPhysicalCountSQUAREUP_RETRIEVE_INVENTORY_PHYSICAL_COUNTReturns the [InventoryPhysicalCount](entity:InventoryPhysicalCount) object with the provided `physical_count_id`.

Returns the [InventoryPhysicalCount](entity:InventoryPhysicalCount) object with the provided `physical_count_id`.

认证

需要 Connected Account

Scopes

INVENTORY_READ

Tags

Inventory
RetrieveInventoryTransferSQUAREUP_RETRIEVE_INVENTORY_TRANSFERReturns the [InventoryTransfer](entity:InventoryTransfer) object with the provided `transfer_id`.

Returns the [InventoryTransfer](entity:InventoryTransfer) object with the provided `transfer_id`.

认证

需要 Connected Account

Scopes

INVENTORY_READ

Tags

Inventory
RetrieveJobSQUAREUP_RETRIEVE_JOBRetrieves a specified job.

Retrieves a specified job.

认证

需要 Connected Account

Scopes

EMPLOYEES_READ

Tags

Team
RetrieveLocationSQUAREUP_RETRIEVE_LOCATIONRetrieves details of a single location. Specify "main" as the location ID to retrieve details of the [main location](https://developer.squareup.com/docs/locations-api#about-the-main-location).

Retrieves details of a single location. Specify "main" as the location ID to retrieve details of the [main location](https://developer.squareup.com/docs/locations-api#about-the-main-location).

认证

需要 Connected Account

Scopes

MERCHANT_PROFILE_READ

Tags

Locations
RetrieveLocationBookingProfileSQUAREUP_RETRIEVE_LOCATION_BOOKING_PROFILERetrieves a seller's location booking profile.

Retrieves a seller's location booking profile.

认证

需要 Connected Account

Scopes

APPOINTMENTS_BUSINESS_SETTINGS_READ

Tags

Bookings
RetrieveLocationCustomAttributeSQUAREUP_RETRIEVE_LOCATION_CUSTOM_ATTRIBUTERetrieves a [custom attribute](entity:CustomAttribute) associated with a location. You can use the `with_definition` query parameter to also retrieve the custom attribute definition in the same call. To retrieve a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.

Retrieves a [custom attribute](entity:CustomAttribute) associated with a location. You can use the `with_definition` query parameter to also retrieve the custom attribute definition in the same call. To retrieve a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.

认证

需要 Connected Account

Scopes

MERCHANT_PROFILE_READ

Tags

LocationCustomAttributes
RetrieveLocationCustomAttributeDefinitionSQUAREUP_RETRIEVE_LOCATION_CUSTOM_ATTRIBUTE_DEFINITIONRetrieves a location-related [custom attribute definition](entity:CustomAttributeDefinition) from a Square seller account. To retrieve a custom attribute definition created by another application, the `visibility` setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.

Retrieves a location-related [custom attribute definition](entity:CustomAttributeDefinition) from a Square seller account. To retrieve a custom attribute definition created by another application, the `visibility` setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.

认证

需要 Connected Account

Scopes

MERCHANT_PROFILE_READ

Tags

LocationCustomAttributes
RetrieveLocationSettingsSQUAREUP_RETRIEVE_LOCATION_SETTINGSRetrieves the location-level settings for a Square-hosted checkout page.

Retrieves the location-level settings for a Square-hosted checkout page.

认证

需要 Connected Account

Scopes

MERCHANT_PROFILE_READ

Tags

Checkout
RetrieveLoyaltyAccountSQUAREUP_RETRIEVE_LOYALTY_ACCOUNTRetrieves a loyalty account.

Retrieves a loyalty account.

认证

需要 Connected Account

Scopes

LOYALTY_READ

Tags

Loyalty
RetrieveLoyaltyProgramSQUAREUP_RETRIEVE_LOYALTY_PROGRAMRetrieves the loyalty program in a seller's account, specified by the program ID or the keyword `main`. Loyalty programs define how buyers can earn points and redeem points for rewards. Square sellers can have only one loyalty program, which is created and managed from the Seller Dashboard. For more information, see [Loyalty Program Overview](https://developer.squareup.com/docs/loyalty/overview).

Retrieves the loyalty program in a seller's account, specified by the program ID or the keyword `main`. Loyalty programs define how buyers can earn points and redeem points for rewards. Square sellers can have only one loyalty program, which is created and managed from the Seller Dashboard. For more information, see [Loyalty Program Overview](https://developer.squareup.com/docs/loyalty/overview).

认证

需要 Connected Account

Scopes

LOYALTY_READ

Tags

Loyalty
RetrieveLoyaltyPromotionSQUAREUP_RETRIEVE_LOYALTY_PROMOTIONRetrieves a loyalty promotion.

Retrieves a loyalty promotion.

认证

需要 Connected Account

Scopes

LOYALTY_READ

Tags

Loyalty
RetrieveLoyaltyRewardSQUAREUP_RETRIEVE_LOYALTY_REWARDRetrieves a loyalty reward.

Retrieves a loyalty reward.

认证

需要 Connected Account

Scopes

LOYALTY_READ

Tags

Loyalty
RetrieveMerchantSQUAREUP_RETRIEVE_MERCHANTRetrieves the `Merchant` object for the given `merchant_id`.

Retrieves the `Merchant` object for the given `merchant_id`.

认证

需要 Connected Account

Scopes

MERCHANT_PROFILE_READ

Tags

Merchants
RetrieveMerchantCustomAttributeSQUAREUP_RETRIEVE_MERCHANT_CUSTOM_ATTRIBUTERetrieves a [custom attribute](entity:CustomAttribute) associated with a merchant. You can use the `with_definition` query parameter to also retrieve the custom attribute definition in the same call. To retrieve a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.

Retrieves a [custom attribute](entity:CustomAttribute) associated with a merchant. You can use the `with_definition` query parameter to also retrieve the custom attribute definition in the same call. To retrieve a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.

认证

需要 Connected Account

Scopes

MERCHANT_PROFILE_READ

Tags

MerchantCustomAttributes
RetrieveMerchantCustomAttributeDefinitionSQUAREUP_RETRIEVE_MERCHANT_CUSTOM_ATTRIBUTE_DEFINITIONRetrieves a merchant-related [custom attribute definition](entity:CustomAttributeDefinition) from a Square seller account. To retrieve a custom attribute definition created by another application, the `visibility` setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.

Retrieves a merchant-related [custom attribute definition](entity:CustomAttributeDefinition) from a Square seller account. To retrieve a custom attribute definition created by another application, the `visibility` setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.

认证

需要 Connected Account

Scopes

MERCHANT_PROFILE_READ

Tags

MerchantCustomAttributes
RetrieveMerchantSettingsSQUAREUP_RETRIEVE_MERCHANT_SETTINGSRetrieves the merchant-level settings for a Square-hosted checkout page.

Retrieves the merchant-level settings for a Square-hosted checkout page.

认证

需要 Connected Account

Scopes

PAYMENT_METHODS_READMERCHANT_PROFILE_READ

Tags

Checkout
RetrieveOrderSQUAREUP_RETRIEVE_ORDERRetrieves an [Order](entity:Order) by ID.

Retrieves an [Order](entity:Order) by ID.

认证

需要 Connected Account

Scopes

ORDERS_READ

Tags

Orders
RetrieveOrderCustomAttributeSQUAREUP_RETRIEVE_ORDER_CUSTOM_ATTRIBUTERetrieves a [custom attribute](entity:CustomAttribute) associated with an order. You can use the `with_definition` query parameter to also retrieve the custom attribute definition in the same call. To retrieve a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.

Retrieves a [custom attribute](entity:CustomAttribute) associated with an order. You can use the `with_definition` query parameter to also retrieve the custom attribute definition in the same call. To retrieve a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.

认证

需要 Connected Account

Scopes

ORDERS_READ

Tags

OrderCustomAttributes
RetrieveOrderCustomAttributeDefinitionSQUAREUP_RETRIEVE_ORDER_CUSTOM_ATTRIBUTE_DEFINITIONRetrieves an order-related [custom attribute definition](entity:CustomAttributeDefinition) from a Square seller account. To retrieve a custom attribute definition created by another application, the `visibility` setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.

Retrieves an order-related [custom attribute definition](entity:CustomAttributeDefinition) from a Square seller account. To retrieve a custom attribute definition created by another application, the `visibility` setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.

认证

需要 Connected Account

Scopes

ORDERS_READ

Tags

OrderCustomAttributes
RetrievePaymentLinkSQUAREUP_RETRIEVE_PAYMENT_LINKRetrieves a payment link.

Retrieves a payment link.

认证

需要 Connected Account

Scopes

ORDERS_READ

Tags

Checkout
RetrieveScheduledShiftSQUAREUP_RETRIEVE_SCHEDULED_SHIFTRetrieves a scheduled shift by ID.

Retrieves a scheduled shift by ID.

认证

需要 Connected Account

Scopes

TIMECARDS_READ

Tags

Labor
RetrieveSnippetSQUAREUP_RETRIEVE_SNIPPETRetrieves your snippet from a Square Online site. A site can contain snippets from multiple snippet applications, but you can retrieve only the snippet that was added by your application. You can call [ListSites](api-endpoint:Sites-ListSites) to get the IDs of the sites that belong to a seller. __Note:__ Square Online APIs are publicly available as part of an early access program. For more information, see [Early access program for Square Online APIs](https://developer.squareup.com/docs/online-api#early-access-program-for-square-online-apis).

Retrieves your snippet from a Square Online site. A site can contain snippets from multiple snippet applications, but you can retrieve only the snippet that was added by your application. You can call [ListSites](api-endpoint:Sites-ListSites) to get the IDs of the sites that belong to a seller. __Note:__ Square Online APIs are publicly available as part of an early access program. For more information, see [Early access program for Square Online APIs](https://developer.squareup.com/docs/online-api#early-access-program-for-square-online-apis).

认证

需要 Connected Account

Scopes

ONLINE_STORE_SNIPPETS_READ

Tags

Snippets
RetrieveSubscriptionSQUAREUP_RETRIEVE_SUBSCRIPTIONRetrieves a specific subscription.

Retrieves a specific subscription.

认证

需要 Connected Account

Scopes

SUBSCRIPTIONS_READ

Tags

Subscriptions
RetrieveTeamMemberSQUAREUP_RETRIEVE_TEAM_MEMBERRetrieves a `TeamMember` object for the given `TeamMember.id`. Learn about [Troubleshooting the Team API](https://developer.squareup.com/docs/team/troubleshooting#retrieve-a-team-member).

Retrieves a `TeamMember` object for the given `TeamMember.id`. Learn about [Troubleshooting the Team API](https://developer.squareup.com/docs/team/troubleshooting#retrieve-a-team-member).

认证

需要 Connected Account

Scopes

EMPLOYEES_READ

Tags

Team
RetrieveTeamMemberBookingProfileSQUAREUP_RETRIEVE_TEAM_MEMBER_BOOKING_PROFILERetrieves a team member's booking profile.

Retrieves a team member's booking profile.

认证

需要 Connected Account

Scopes

APPOINTMENTS_BUSINESS_SETTINGS_READ

Tags

Bookings
RetrieveTimecardSQUAREUP_RETRIEVE_TIMECARDReturns a single `Timecard` specified by `id`.

Returns a single `Timecard` specified by `id`.

认证

需要 Connected Account

Scopes

TIMECARDS_READ

Tags

Labor
RetrieveTokenStatusSQUAREUP_RETRIEVE_TOKEN_STATUSReturns information about an [OAuth access token](https://developer.squareup.com/docs/build-basics/access-tokens#get-an-oauth-access-token) or an application’s [personal access token](https://developer.squareup.com/docs/build-basics/access-tokens#get-a-personal-access-token). Add the access token to the Authorization header of the request. __Important:__ The `Authorization` header you provide to this endpoint must have the following format: ``` Authorization: Bearer ACCESS_TOKEN ``` where `ACCESS_TOKEN` is a [valid production authorization credential](https://developer.squareup.com/docs/build-basics/access-tokens). If the access token is expired or not a valid access token, the endpoint returns an `UNAUTHORIZED` error.

Returns information about an [OAuth access token](https://developer.squareup.com/docs/build-basics/access-tokens#get-an-oauth-access-token) or an application’s [personal access token](https://developer.squareup.com/docs/build-basics/access-tokens#get-a-personal-access-token). Add the access token to the Authorization header of the request. __Important:__ The `Authorization` header you provide to this endpoint must have the following format: ``` Authorization: Bearer ACCESS_TOKEN ``` where `ACCESS_TOKEN` is a [valid production authorization credential](https://developer.squareup.com/docs/build-basics/access-tokens). If the access token is expired or not a valid access token, the endpoint returns an `UNAUTHORIZED` error.

认证

需要 Connected Account

Tags

OAuth
RetrieveTransactionSQUAREUP_RETRIEVE_TRANSACTIONRetrieves details for a single transaction.

Retrieves details for a single transaction.

认证

需要 Connected Account

Scopes

PAYMENTS_READ

Tags

Transactions
RetrieveTransferOrderSQUAREUP_RETRIEVE_TRANSFER_ORDERRetrieves a specific [TransferOrder](entity:TransferOrder) by ID. Returns the complete order details including: - Basic information (status, dates, notes) - Line items with ordered and received quantities - Source and destination [Location](entity:Location)s - Tracking information (if available)

Retrieves a specific [TransferOrder](entity:TransferOrder) by ID. Returns the complete order details including: - Basic information (status, dates, notes) - Line items with ordered and received quantities - Source and destination [Location](entity:Location)s - Tracking information (if available)

认证

需要 Connected Account

Scopes

INVENTORY_READ

Tags

TransferOrder
RetrieveVendorSQUAREUP_RETRIEVE_VENDORRetrieves the vendor of a specified [Vendor](entity:Vendor) ID.

Retrieves the vendor of a specified [Vendor](entity:Vendor) ID.

认证

需要 Connected Account

Scopes

VENDOR_READ

Tags

Vendors
RetrieveWageSettingSQUAREUP_RETRIEVE_WAGE_SETTINGRetrieves a `WageSetting` object for a team member specified by `TeamMember.id`. For more information, see [Troubleshooting the Team API](https://developer.squareup.com/docs/team/troubleshooting#retrievewagesetting). Square recommends using [RetrieveTeamMember](api-endpoint:Team-RetrieveTeamMember) or [SearchTeamMembers](api-endpoint:Team-SearchTeamMembers) to get this information directly from the `TeamMember.wage_setting` field.

Retrieves a `WageSetting` object for a team member specified by `TeamMember.id`. For more information, see [Troubleshooting the Team API](https://developer.squareup.com/docs/team/troubleshooting#retrievewagesetting). Square recommends using [RetrieveTeamMember](api-endpoint:Team-RetrieveTeamMember) or [SearchTeamMembers](api-endpoint:Team-SearchTeamMembers) to get this information directly from the `TeamMember.wage_setting` field.

认证

需要 Connected Account

Scopes

EMPLOYEES_READ

Tags

Team
RetrieveWebhookSubscriptionSQUAREUP_RETRIEVE_WEBHOOK_SUBSCRIPTIONRetrieves a webhook subscription identified by its ID.

Retrieves a webhook subscription identified by its ID.

认证

需要 Connected Account

Tags

WebhookSubscriptions
RevokeTokenSQUAREUP_REVOKE_TOKENRevokes an access token generated with the OAuth flow. If an account has more than one OAuth access token for your application, this endpoint revokes all of them, regardless of which token you specify. __Important:__ The `Authorization` header for this endpoint must have the following format: ``` Authorization: Client APPLICATION_SECRET ``` Replace `APPLICATION_SECRET` with the application secret on the **OAuth** page for your application in the Developer Dashboard.

Revokes an access token generated with the OAuth flow. If an account has more than one OAuth access token for your application, this endpoint revokes all of them, regardless of which token you specify. __Important:__ The `Authorization` header for this endpoint must have the following format: ``` Authorization: Client APPLICATION_SECRET ``` Replace `APPLICATION_SECRET` with the application secret on the **OAuth** page for your application in the Developer Dashboard.

认证

需要 Connected Account

Tags

OAuth
SearchAvailabilitySQUAREUP_SEARCH_AVAILABILITYSearches for availabilities for booking. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.

Searches for availabilities for booking. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.

认证

需要 Connected Account

Scopes

APPOINTMENTS_READ

Tags

Bookings
SearchCatalogItemsSQUAREUP_SEARCH_CATALOG_ITEMSSearches for catalog items or item variations by matching supported search attribute values, including custom attribute values, against one or more of the specified query filters. This (`SearchCatalogItems`) endpoint differs from the [SearchCatalogObjects](api-endpoint:Catalog-SearchCatalogObjects) endpoint in the following aspects: - `SearchCatalogItems` can only search for items or item variations, whereas `SearchCatalogObjects` can search for any type of catalog objects. - `SearchCatalogItems` supports the custom attribute query filters to return items or item variations that contain custom attribute values, where `SearchCatalogObjects` does not. - `SearchCatalogItems` does not support the `include_deleted_objects` filter to search for deleted items or item variations, whereas `SearchCatalogObjects` does. - The both endpoints use different call conventions, including the query filter formats.

Searches for catalog items or item variations by matching supported search attribute values, including custom attribute values, against one or more of the specified query filters. This (`SearchCatalogItems`) endpoint differs from the [SearchCatalogObjects](api-endpoint:Catalog-SearchCatalogObjects) endpoint in the following aspects: - `SearchCatalogItems` can only search for items or item variations, whereas `SearchCatalogObjects` can search for any type of catalog objects. - `SearchCatalogItems` supports the custom attribute query filters to return items or item variations that contain custom attribute values, where `SearchCatalogObjects` does not. - `SearchCatalogItems` does not support the `include_deleted_objects` filter to search for deleted items or item variations, whereas `SearchCatalogObjects` does. - The both endpoints use different call conventions, including the query filter formats.

认证

需要 Connected Account

Scopes

ITEMS_READ

Tags

Catalog
SearchCatalogObjectsSQUAREUP_SEARCH_CATALOG_OBJECTSSearches for [CatalogObject](entity:CatalogObject) of any type by matching supported search attribute values, excluding custom attribute values on items or item variations, against one or more of the specified query filters. This (`SearchCatalogObjects`) endpoint differs from the [SearchCatalogItems](api-endpoint:Catalog-SearchCatalogItems) endpoint in the following aspects: - `SearchCatalogItems` can only search for items or item variations, whereas `SearchCatalogObjects` can search for any type of catalog objects. - `SearchCatalogItems` supports the custom attribute query filters to return items or item variations that contain custom attribute values, where `SearchCatalogObjects` does not. - `SearchCatalogItems` does not support the `include_deleted_objects` filter to search for deleted items or item variations, whereas `SearchCatalogObjects` does. - The both endpoints have different call conventions, including the query filter formats.

Searches for [CatalogObject](entity:CatalogObject) of any type by matching supported search attribute values, excluding custom attribute values on items or item variations, against one or more of the specified query filters. This (`SearchCatalogObjects`) endpoint differs from the [SearchCatalogItems](api-endpoint:Catalog-SearchCatalogItems) endpoint in the following aspects: - `SearchCatalogItems` can only search for items or item variations, whereas `SearchCatalogObjects` can search for any type of catalog objects. - `SearchCatalogItems` supports the custom attribute query filters to return items or item variations that contain custom attribute values, where `SearchCatalogObjects` does not. - `SearchCatalogItems` does not support the `include_deleted_objects` filter to search for deleted items or item variations, whereas `SearchCatalogObjects` does. - The both endpoints have different call conventions, including the query filter formats.

认证

需要 Connected Account

Scopes

ITEMS_READ

Tags

Catalog
SearchCustomersSQUAREUP_SEARCH_CUSTOMERSSearches the customer profiles associated with a Square account using one or more supported query filters. Calling `SearchCustomers` without any explicit query filter returns all customer profiles ordered alphabetically based on `given_name` and `family_name`. Under normal operating conditions, newly created or updated customer profiles become available for the search operation in well under 30 seconds. Occasionally, propagation of the new or updated profiles can take closer to one minute or longer, especially during network incidents and outages.

Searches the customer profiles associated with a Square account using one or more supported query filters. Calling `SearchCustomers` without any explicit query filter returns all customer profiles ordered alphabetically based on `given_name` and `family_name`. Under normal operating conditions, newly created or updated customer profiles become available for the search operation in well under 30 seconds. Occasionally, propagation of the new or updated profiles can take closer to one minute or longer, especially during network incidents and outages.

认证

需要 Connected Account

Scopes

CUSTOMERS_READ

Tags

Customers
SearchEventsSQUAREUP_SEARCH_EVENTSSearch for Square API events that occur within a 28-day timeframe.

Search for Square API events that occur within a 28-day timeframe.

认证

需要 Connected Account

Tags

Events
SearchInvoicesSQUAREUP_SEARCH_INVOICESSearches for invoices from a location specified in the filter. You can optionally specify customers in the filter for whom to retrieve invoices. In the current implementation, you can only specify one location and optionally one customer. The response is paginated. If truncated, the response includes a `cursor` that you use in a subsequent request to retrieve the next set of invoices.

Searches for invoices from a location specified in the filter. You can optionally specify customers in the filter for whom to retrieve invoices. In the current implementation, you can only specify one location and optionally one customer. The response is paginated. If truncated, the response includes a `cursor` that you use in a subsequent request to retrieve the next set of invoices.

认证

需要 Connected Account

Scopes

INVOICES_READ

Tags

Invoices
SearchLoyaltyAccountsSQUAREUP_SEARCH_LOYALTY_ACCOUNTSSearches for loyalty accounts in a loyalty program. You can search for a loyalty account using the phone number or customer ID associated with the account. To return all loyalty accounts, specify an empty `query` object or omit it entirely. Search results are sorted by `created_at` in ascending order.

Searches for loyalty accounts in a loyalty program. You can search for a loyalty account using the phone number or customer ID associated with the account. To return all loyalty accounts, specify an empty `query` object or omit it entirely. Search results are sorted by `created_at` in ascending order.

认证

需要 Connected Account

Scopes

LOYALTY_READ

Tags

Loyalty
SearchLoyaltyEventsSQUAREUP_SEARCH_LOYALTY_EVENTSSearches for loyalty events. A Square loyalty program maintains a ledger of events that occur during the lifetime of a buyer's loyalty account. Each change in the point balance (for example, points earned, points redeemed, and points expired) is recorded in the ledger. Using this endpoint, you can search the ledger for events. Search results are sorted by `created_at` in descending order.

Searches for loyalty events. A Square loyalty program maintains a ledger of events that occur during the lifetime of a buyer's loyalty account. Each change in the point balance (for example, points earned, points redeemed, and points expired) is recorded in the ledger. Using this endpoint, you can search the ledger for events. Search results are sorted by `created_at` in descending order.

认证

需要 Connected Account

Scopes

LOYALTY_READ

Tags

Loyalty
SearchLoyaltyRewardsSQUAREUP_SEARCH_LOYALTY_REWARDSSearches for loyalty rewards. This endpoint accepts a request with no query filters and returns results for all loyalty accounts. If you include a `query` object, `loyalty_account_id` is required and `status` is optional. If you know a reward ID, use the [RetrieveLoyaltyReward](api-endpoint:Loyalty-RetrieveLoyaltyReward) endpoint. Search results are sorted by `updated_at` in descending order.

Searches for loyalty rewards. This endpoint accepts a request with no query filters and returns results for all loyalty accounts. If you include a `query` object, `loyalty_account_id` is required and `status` is optional. If you know a reward ID, use the [RetrieveLoyaltyReward](api-endpoint:Loyalty-RetrieveLoyaltyReward) endpoint. Search results are sorted by `updated_at` in descending order.

认证

需要 Connected Account

Scopes

LOYALTY_READ

Tags

Loyalty
SearchOrdersSQUAREUP_SEARCH_ORDERSSearch all orders for one or more locations. Orders include all sales, returns, and exchanges regardless of how or when they entered the Square ecosystem (such as Point of Sale, Invoices, and Connect APIs). `SearchOrders` requests need to specify which locations to search and define a [SearchOrdersQuery](entity:SearchOrdersQuery) object that controls how to sort or filter the results. Your `SearchOrdersQuery` can: Set filter criteria. Set the sort order. Determine whether to return results as complete `Order` objects or as [OrderEntry](entity:OrderEntry) objects. Note that details for orders processed with Square Point of Sale while in offline mode might not be transmitted to Square for up to 72 hours. Offline orders have a `created_at` value that reflects the time the order was created, not the time it was subsequently transmitted to Square.

Search all orders for one or more locations. Orders include all sales, returns, and exchanges regardless of how or when they entered the Square ecosystem (such as Point of Sale, Invoices, and Connect APIs). `SearchOrders` requests need to specify which locations to search and define a [SearchOrdersQuery](entity:SearchOrdersQuery) object that controls how to sort or filter the results. Your `SearchOrdersQuery` can: Set filter criteria. Set the sort order. Determine whether to return results as complete `Order` objects or as [OrderEntry](entity:OrderEntry) objects. Note that details for orders processed with Square Point of Sale while in offline mode might not be transmitted to Square for up to 72 hours. Offline orders have a `created_at` value that reflects the time the order was created, not the time it was subsequently transmitted to Square.

认证

需要 Connected Account

Scopes

ORDERS_READ

Tags

Orders
SearchScheduledShiftsSQUAREUP_SEARCH_SCHEDULED_SHIFTSReturns a paginated list of scheduled shifts, with optional filter and sort settings. By default, results are sorted by `start_at` in ascending order.

Returns a paginated list of scheduled shifts, with optional filter and sort settings. By default, results are sorted by `start_at` in ascending order.

认证

需要 Connected Account

Scopes

TIMECARDS_READ

Tags

Labor
SearchShiftsSQUAREUP_SEARCH_SHIFTSReturns a paginated list of `Shift` records for a business. The list to be returned can be filtered by: - Location IDs - Team member IDs - Shift status (`OPEN` or `CLOSED`) - Shift start - Shift end - Workday details The list can be sorted by: - `START_AT` - `END_AT` - `CREATED_AT` - `UPDATED_AT`

Returns a paginated list of `Shift` records for a business. The list to be returned can be filtered by: - Location IDs - Team member IDs - Shift status (`OPEN` or `CLOSED`) - Shift start - Shift end - Workday details The list can be sorted by: - `START_AT` - `END_AT` - `CREATED_AT` - `UPDATED_AT`

认证

需要 Connected Account

Scopes

TIMECARDS_READ

Tags

Labor
SearchSubscriptionsSQUAREUP_SEARCH_SUBSCRIPTIONSSearches for subscriptions. Results are ordered chronologically by subscription creation date. If the request specifies more than one location ID, the endpoint orders the result by location ID, and then by creation date within each location. If no locations are given in the query, all locations are searched. You can also optionally specify `customer_ids` to search by customer. If left unset, all customers associated with the specified locations are returned. If the request specifies customer IDs, the endpoint orders results first by location, within location by customer ID, and within customer by subscription creation date.

Searches for subscriptions. Results are ordered chronologically by subscription creation date. If the request specifies more than one location ID, the endpoint orders the result by location ID, and then by creation date within each location. If no locations are given in the query, all locations are searched. You can also optionally specify `customer_ids` to search by customer. If left unset, all customers associated with the specified locations are returned. If the request specifies customer IDs, the endpoint orders results first by location, within location by customer ID, and within customer by subscription creation date.

认证

需要 Connected Account

Scopes

SUBSCRIPTIONS_READ

Tags

Subscriptions
SearchTeamMembersSQUAREUP_SEARCH_TEAM_MEMBERSReturns a paginated list of `TeamMember` objects for a business. The list can be filtered by location IDs, `ACTIVE` or `INACTIVE` status, or whether the team member is the Square account owner.

Returns a paginated list of `TeamMember` objects for a business. The list can be filtered by location IDs, `ACTIVE` or `INACTIVE` status, or whether the team member is the Square account owner.

认证

需要 Connected Account

Scopes

EMPLOYEES_READ

Tags

Team
SearchTerminalActionsSQUAREUP_SEARCH_TERMINAL_ACTIONSRetrieves a filtered list of Terminal action requests created by the account making the request. Terminal action requests are available for 30 days.

Retrieves a filtered list of Terminal action requests created by the account making the request. Terminal action requests are available for 30 days.

认证

需要 Connected Account

Scopes

PAYMENTS_READ

Tags

Terminal
SearchTerminalCheckoutsSQUAREUP_SEARCH_TERMINAL_CHECKOUTSReturns a filtered list of Terminal checkout requests created by the application making the request. Only Terminal checkout requests created for the merchant scoped to the OAuth token are returned. Terminal checkout requests are available for 30 days.

Returns a filtered list of Terminal checkout requests created by the application making the request. Only Terminal checkout requests created for the merchant scoped to the OAuth token are returned. Terminal checkout requests are available for 30 days.

认证

需要 Connected Account

Scopes

PAYMENTS_READ

Tags

Terminal
SearchTerminalRefundsSQUAREUP_SEARCH_TERMINAL_REFUNDSRetrieves a filtered list of Interac Terminal refund requests created by the seller making the request. Terminal refund requests are available for 30 days.

Retrieves a filtered list of Interac Terminal refund requests created by the seller making the request. Terminal refund requests are available for 30 days.

认证

需要 Connected Account

Scopes

PAYMENTS_READ

Tags

Terminal
SearchTimecardsSQUAREUP_SEARCH_TIMECARDSReturns a paginated list of `Timecard` records for a business. The list to be returned can be filtered by: - Location IDs - Team member IDs - Timecard status (`OPEN` or `CLOSED`) - Timecard start - Timecard end - Workday details The list can be sorted by: - `START_AT` - `END_AT` - `CREATED_AT` - `UPDATED_AT`

Returns a paginated list of `Timecard` records for a business. The list to be returned can be filtered by: - Location IDs - Team member IDs - Timecard status (`OPEN` or `CLOSED`) - Timecard start - Timecard end - Workday details The list can be sorted by: - `START_AT` - `END_AT` - `CREATED_AT` - `UPDATED_AT`

认证

需要 Connected Account

Scopes

TIMECARDS_READ

Tags

Labor
SearchTransferOrdersSQUAREUP_SEARCH_TRANSFER_ORDERSSearches for transfer orders using filters. Returns a paginated list of matching [TransferOrder](entity:TransferOrder)s sorted by creation date. Common search scenarios: - Find orders for a source [Location](entity:Location) - Find orders for a destination [Location](entity:Location) - Find orders in a particular [TransferOrderStatus](entity:TransferOrderStatus)

Searches for transfer orders using filters. Returns a paginated list of matching [TransferOrder](entity:TransferOrder)s sorted by creation date. Common search scenarios: - Find orders for a source [Location](entity:Location) - Find orders for a destination [Location](entity:Location) - Find orders in a particular [TransferOrderStatus](entity:TransferOrderStatus)

认证

需要 Connected Account

Scopes

INVENTORY_READ

Tags

TransferOrder
SearchVendorsSQUAREUP_SEARCH_VENDORSSearches for vendors using a filter against supported [Vendor](entity:Vendor) properties and a supported sorter.

Searches for vendors using a filter against supported [Vendor](entity:Vendor) properties and a supported sorter.

认证

需要 Connected Account

Scopes

VENDOR_READ

Tags

Vendors
StartTransferOrderSQUAREUP_START_TRANSFER_ORDERChanges a [DRAFT](entity:TransferOrderStatus) transfer order to [STARTED](entity:TransferOrderStatus) status. This decrements inventory at the source [Location](entity:Location) and marks it as in-transit. The order must be in [DRAFT](entity:TransferOrderStatus) status and have all required fields populated. Once started, the order can no longer be deleted, but it can be canceled via [CancelTransferOrder](api-endpoint:TransferOrders-CancelTransferOrder). Creates a [transfer_order.updated](webhook:transfer_order.updated) webhook event.

Changes a [DRAFT](entity:TransferOrderStatus) transfer order to [STARTED](entity:TransferOrderStatus) status. This decrements inventory at the source [Location](entity:Location) and marks it as in-transit. The order must be in [DRAFT](entity:TransferOrderStatus) status and have all required fields populated. Once started, the order can no longer be deleted, but it can be canceled via [CancelTransferOrder](api-endpoint:TransferOrders-CancelTransferOrder). Creates a [transfer_order.updated](webhook:transfer_order.updated) webhook event.

认证

需要 Connected Account

Scopes

INVENTORY_READINVENTORY_WRITE

Tags

TransferOrder
SubmitEvidenceSQUAREUP_SUBMIT_EVIDENCESubmits evidence to the cardholder's bank. The evidence submitted by this endpoint includes evidence uploaded using the [CreateDisputeEvidenceFile](api-endpoint:Disputes-CreateDisputeEvidenceFile) and [CreateDisputeEvidenceText](api-endpoint:Disputes-CreateDisputeEvidenceText) endpoints and evidence automatically provided by Square, when available. Evidence cannot be removed from a dispute after submission.

Submits evidence to the cardholder's bank. The evidence submitted by this endpoint includes evidence uploaded using the [CreateDisputeEvidenceFile](api-endpoint:Disputes-CreateDisputeEvidenceFile) and [CreateDisputeEvidenceText](api-endpoint:Disputes-CreateDisputeEvidenceText) endpoints and evidence automatically provided by Square, when available. Evidence cannot be removed from a dispute after submission.

认证

需要 Connected Account

Scopes

DISPUTES_WRITE

Tags

Disputes
SwapPlanSQUAREUP_SWAP_PLANSchedules a `SWAP_PLAN` action to swap a subscription plan variation in an existing subscription. For more information, see [Swap Subscription Plan Variations](https://developer.squareup.com/docs/subscriptions-api/swap-plan-variations).

Schedules a `SWAP_PLAN` action to swap a subscription plan variation in an existing subscription. For more information, see [Swap Subscription Plan Variations](https://developer.squareup.com/docs/subscriptions-api/swap-plan-variations).

认证

需要 Connected Account

Scopes

CUSTOMERS_READPAYMENTS_WRITESUBSCRIPTIONS_WRITEITEMS_READORDERS_WRITEINVOICES_WRITE

Tags

Subscriptions
TestWebhookSubscriptionSQUAREUP_TEST_WEBHOOK_SUBSCRIPTIONTests a webhook subscription by sending a test event to the notification URL.

Tests a webhook subscription by sending a test event to the notification URL.

认证

需要 Connected Account

Tags

WebhookSubscriptions
UnlinkCustomerFromGiftCardSQUAREUP_UNLINK_CUSTOMER_FROM_GIFT_CARDUnlinks a customer from a gift card, which is also referred to as removing a card on file.

Unlinks a customer from a gift card, which is also referred to as removing a card on file.

认证

需要 Connected Account

Scopes

GIFTCARDS_WRITE

Tags

GiftCards
UpdateBookingSQUAREUP_UPDATE_BOOKINGUpdates a booking. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope. For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to *Appointments Plus* or *Appointments Premium*.

Updates a booking. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope. For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to *Appointments Plus* or *Appointments Premium*.

认证

需要 Connected Account

Scopes

APPOINTMENTS_WRITE

Tags

Bookings
UpdateBookingCustomAttributeDefinitionSQUAREUP_UPDATE_BOOKING_CUSTOM_ATTRIBUTE_DEFINITIONUpdates a bookings custom attribute definition. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope. For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to *Appointments Plus* or *Appointments Premium*.

Updates a bookings custom attribute definition. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope. For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to *Appointments Plus* or *Appointments Premium*.

认证

需要 Connected Account

Scopes

APPOINTMENTS_WRITE

Tags

BookingCustomAttributes
UpdateBreakTypeSQUAREUP_UPDATE_BREAK_TYPEUpdates an existing `BreakType`.

Updates an existing `BreakType`.

认证

需要 Connected Account

Scopes

TIMECARDS_SETTINGS_WRITETIMECARDS_SETTINGS_READ

Tags

Labor
UpdateCatalogImageSQUAREUP_UPDATE_CATALOG_IMAGEUploads a new image file to replace the existing one in the specified [CatalogImage](entity:CatalogImage) object. This `UpdateCatalogImage` endpoint accepts HTTP multipart/form-data requests with a JSON part and an image file part in JPEG, PJPEG, PNG, or GIF format. The maximum file size is 15MB.

Uploads a new image file to replace the existing one in the specified [CatalogImage](entity:CatalogImage) object. This `UpdateCatalogImage` endpoint accepts HTTP multipart/form-data requests with a JSON part and an image file part in JPEG, PJPEG, PNG, or GIF format. The maximum file size is 15MB.

认证

需要 Connected Account

Scopes

ITEMS_WRITE

Tags

Catalog
UpdateCustomerSQUAREUP_UPDATE_CUSTOMERUpdates a customer profile. This endpoint supports sparse updates, so only new or changed fields are required in the request. To add or update a field, specify the new value. To remove a field, specify `null`. To update a customer profile that was created by merging existing profiles, you must use the ID of the newly created profile.

Updates a customer profile. This endpoint supports sparse updates, so only new or changed fields are required in the request. To add or update a field, specify the new value. To remove a field, specify `null`. To update a customer profile that was created by merging existing profiles, you must use the ID of the newly created profile.

认证

需要 Connected Account

Scopes

CUSTOMERS_WRITE

Tags

Customers
UpdateCustomerCustomAttributeDefinitionSQUAREUP_UPDATE_CUSTOMER_CUSTOM_ATTRIBUTE_DEFINITIONUpdates a customer-related [custom attribute definition](entity:CustomAttributeDefinition) for a Square seller account. Use this endpoint to update the following fields: `name`, `description`, `visibility`, or the `schema` for a `Selection` data type. Only the definition owner can update a custom attribute definition. Note that sellers can view all custom attributes in exported customer data, including those set to `VISIBILITY_HIDDEN`.

Updates a customer-related [custom attribute definition](entity:CustomAttributeDefinition) for a Square seller account. Use this endpoint to update the following fields: `name`, `description`, `visibility`, or the `schema` for a `Selection` data type. Only the definition owner can update a custom attribute definition. Note that sellers can view all custom attributes in exported customer data, including those set to `VISIBILITY_HIDDEN`.

认证

需要 Connected Account

Scopes

CUSTOMERS_WRITE

Tags

CustomerCustomAttributes
UpdateCustomerGroupSQUAREUP_UPDATE_CUSTOMER_GROUPUpdates a customer group as identified by the `group_id` value.

Updates a customer group as identified by the `group_id` value.

认证

需要 Connected Account

Scopes

CUSTOMERS_WRITE

Tags

CustomerGroups
UpdateInvoiceSQUAREUP_UPDATE_INVOICEUpdates an invoice. This endpoint supports sparse updates, so you only need to specify the fields you want to change along with the required `version` field. Some restrictions apply to updating invoices. For example, you cannot change the `order_id` or `location_id` field.

Updates an invoice. This endpoint supports sparse updates, so you only need to specify the fields you want to change along with the required `version` field. Some restrictions apply to updating invoices. For example, you cannot change the `order_id` or `location_id` field.

认证

需要 Connected Account

Scopes

ORDERS_WRITEINVOICES_WRITE

Tags

Invoices
UpdateItemModifierListsSQUAREUP_UPDATE_ITEM_MODIFIER_LISTSUpdates the [CatalogModifierList](entity:CatalogModifierList) objects that apply to the targeted [CatalogItem](entity:CatalogItem) without having to perform an upsert on the entire item.

Updates the [CatalogModifierList](entity:CatalogModifierList) objects that apply to the targeted [CatalogItem](entity:CatalogItem) without having to perform an upsert on the entire item.

认证

需要 Connected Account

Scopes

ITEMS_WRITE

Tags

Catalog
UpdateItemTaxesSQUAREUP_UPDATE_ITEM_TAXESUpdates the [CatalogTax](entity:CatalogTax) objects that apply to the targeted [CatalogItem](entity:CatalogItem) without having to perform an upsert on the entire item.

Updates the [CatalogTax](entity:CatalogTax) objects that apply to the targeted [CatalogItem](entity:CatalogItem) without having to perform an upsert on the entire item.

认证

需要 Connected Account

Scopes

ITEMS_WRITE

Tags

Catalog
UpdateJobSQUAREUP_UPDATE_JOBUpdates the title or tip eligibility of a job. Changes to the title propagate to all `JobAssignment`, `Shift`, and `TeamMemberWage` objects that reference the job ID. Changes to tip eligibility propagate to all `TeamMemberWage` objects that reference the job ID.

Updates the title or tip eligibility of a job. Changes to the title propagate to all `JobAssignment`, `Shift`, and `TeamMemberWage` objects that reference the job ID. Changes to tip eligibility propagate to all `TeamMemberWage` objects that reference the job ID.

认证

需要 Connected Account

Scopes

EMPLOYEES_WRITE

Tags

Team
UpdateLocationSQUAREUP_UPDATE_LOCATIONUpdates a [location](https://developer.squareup.com/docs/locations-api).

Updates a [location](https://developer.squareup.com/docs/locations-api).

认证

需要 Connected Account

Scopes

MERCHANT_PROFILE_WRITE

Tags

Locations
UpdateLocationCustomAttributeDefinitionSQUAREUP_UPDATE_LOCATION_CUSTOM_ATTRIBUTE_DEFINITIONUpdates a location-related [custom attribute definition](entity:CustomAttributeDefinition) for a Square seller account. Use this endpoint to update the following fields: `name`, `description`, `visibility`, or the `schema` for a `Selection` data type. Only the definition owner can update a custom attribute definition.

Updates a location-related [custom attribute definition](entity:CustomAttributeDefinition) for a Square seller account. Use this endpoint to update the following fields: `name`, `description`, `visibility`, or the `schema` for a `Selection` data type. Only the definition owner can update a custom attribute definition.

认证

需要 Connected Account

Scopes

MERCHANT_PROFILE_WRITE

Tags

LocationCustomAttributes
UpdateLocationSettingsSQUAREUP_UPDATE_LOCATION_SETTINGSUpdates the location-level settings for a Square-hosted checkout page.

Updates the location-level settings for a Square-hosted checkout page.

认证

需要 Connected Account

Scopes

MERCHANT_PROFILE_WRITEMERCHANT_PROFILE_READ

Tags

Checkout
UpdateMerchantCustomAttributeDefinitionSQUAREUP_UPDATE_MERCHANT_CUSTOM_ATTRIBUTE_DEFINITIONUpdates a merchant-related [custom attribute definition](entity:CustomAttributeDefinition) for a Square seller account. Use this endpoint to update the following fields: `name`, `description`, `visibility`, or the `schema` for a `Selection` data type. Only the definition owner can update a custom attribute definition.

Updates a merchant-related [custom attribute definition](entity:CustomAttributeDefinition) for a Square seller account. Use this endpoint to update the following fields: `name`, `description`, `visibility`, or the `schema` for a `Selection` data type. Only the definition owner can update a custom attribute definition.

认证

需要 Connected Account

Scopes

MERCHANT_PROFILE_WRITE

Tags

MerchantCustomAttributes
UpdateMerchantSettingsSQUAREUP_UPDATE_MERCHANT_SETTINGSUpdates the merchant-level settings for a Square-hosted checkout page.

Updates the merchant-level settings for a Square-hosted checkout page.

认证

需要 Connected Account

Scopes

MERCHANT_PROFILE_WRITEPAYMENT_METHODS_READMERCHANT_PROFILE_READ

Tags

Checkout
UpdateOrderSQUAREUP_UPDATE_ORDERUpdates an open [order](entity:Order) by adding, replacing, or deleting fields. Orders with a `COMPLETED` or `CANCELED` state cannot be updated. An `UpdateOrder` request requires the following: - The `order_id` in the endpoint path, identifying the order to update. - The latest `version` of the order to update. - The [sparse order](https://developer.squareup.com/docs/orders-api/manage-orders/update-orders#sparse-order-objects) containing only the fields to update and the version to which the update is being applied. - If deleting fields, the [dot notation paths](https://developer.squareup.com/docs/orders-api/manage-orders/update-orders#identifying-fields-to-delete) identifying the fields to clear. To pay for an order, see [Pay for Orders](https://developer.squareup.com/docs/orders-api/pay-for-orders).

Updates an open [order](entity:Order) by adding, replacing, or deleting fields. Orders with a `COMPLETED` or `CANCELED` state cannot be updated. An `UpdateOrder` request requires the following: - The `order_id` in the endpoint path, identifying the order to update. - The latest `version` of the order to update. - The [sparse order](https://developer.squareup.com/docs/orders-api/manage-orders/update-orders#sparse-order-objects) containing only the fields to update and the version to which the update is being applied. - If deleting fields, the [dot notation paths](https://developer.squareup.com/docs/orders-api/manage-orders/update-orders#identifying-fields-to-delete) identifying the fields to clear. To pay for an order, see [Pay for Orders](https://developer.squareup.com/docs/orders-api/pay-for-orders).

认证

需要 Connected Account

Scopes

ORDERS_WRITE

Tags

Orders
UpdateOrderCustomAttributeDefinitionSQUAREUP_UPDATE_ORDER_CUSTOM_ATTRIBUTE_DEFINITIONUpdates an order-related custom attribute definition for a Square seller account. Only the definition owner can update a custom attribute definition. Note that sellers can view all custom attributes in exported customer data, including those set to `VISIBILITY_HIDDEN`.

Updates an order-related custom attribute definition for a Square seller account. Only the definition owner can update a custom attribute definition. Note that sellers can view all custom attributes in exported customer data, including those set to `VISIBILITY_HIDDEN`.

认证

需要 Connected Account

Scopes

ORDERS_WRITE

Tags

OrderCustomAttributes
UpdatePaymentSQUAREUP_UPDATE_PAYMENTUpdates a payment with the APPROVED status. You can update the `amount_money` and `tip_money` using this endpoint.

Updates a payment with the APPROVED status. You can update the `amount_money` and `tip_money` using this endpoint.

认证

需要 Connected Account

Scopes

PAYMENTS_WRITE

Tags

Payments
UpdatePaymentLinkSQUAREUP_UPDATE_PAYMENT_LINKUpdates a payment link. You can update the `payment_link` fields such as `description`, `checkout_options`, and `pre_populated_data`. You cannot update other fields such as the `order_id`, `version`, `URL`, or `timestamp` field.

Updates a payment link. You can update the `payment_link` fields such as `description`, `checkout_options`, and `pre_populated_data`. You cannot update other fields such as the `order_id`, `version`, `URL`, or `timestamp` field.

认证

需要 Connected Account

Scopes

PAYMENTS_WRITEORDERS_READORDERS_WRITE

Tags

Checkout
UpdateScheduledShiftSQUAREUP_UPDATE_SCHEDULED_SHIFTUpdates the draft shift details for a scheduled shift. This endpoint supports sparse updates, so only new, changed, or removed fields are required in the request. You must publish the shift to make updates public. You can make the following updates to `draft_shift_details`: - Change the `location_id`, `job_id`, `start_at`, and `end_at` fields. - Add, change, or clear the `team_member_id` and `notes` fields. To clear these fields, set the value to null. - Change the `is_deleted` field. To delete a scheduled shift, set `is_deleted` to true and then publish the shift.

Updates the draft shift details for a scheduled shift. This endpoint supports sparse updates, so only new, changed, or removed fields are required in the request. You must publish the shift to make updates public. You can make the following updates to `draft_shift_details`: - Change the `location_id`, `job_id`, `start_at`, and `end_at` fields. - Add, change, or clear the `team_member_id` and `notes` fields. To clear these fields, set the value to null. - Change the `is_deleted` field. To delete a scheduled shift, set `is_deleted` to true and then publish the shift.

认证

需要 Connected Account

Scopes

TIMECARDS_WRITE

Tags

Labor
UpdateShiftSQUAREUP_UPDATE_SHIFTUpdates an existing `Shift`. When adding a `Break` to a `Shift`, any earlier `Break` instances in the `Shift` have the `end_at` property set to a valid RFC-3339 datetime string. When closing a `Shift`, all `Break` instances in the `Shift` must be complete with `end_at` set on each `Break`.

Updates an existing `Shift`. When adding a `Break` to a `Shift`, any earlier `Break` instances in the `Shift` have the `end_at` property set to a valid RFC-3339 datetime string. When closing a `Shift`, all `Break` instances in the `Shift` must be complete with `end_at` set on each `Break`.

认证

需要 Connected Account

Scopes

TIMECARDS_WRITETIMECARDS_READ

Tags

Labor
UpdateSubscriptionSQUAREUP_UPDATE_SUBSCRIPTIONUpdates a subscription by modifying or clearing `subscription` field values. To clear a field, set its value to `null`.

Updates a subscription by modifying or clearing `subscription` field values. To clear a field, set its value to `null`.

认证

需要 Connected Account

Scopes

CUSTOMERS_READPAYMENTS_WRITESUBSCRIPTIONS_WRITEITEMS_READORDERS_WRITEINVOICES_WRITE

Tags

Subscriptions
UpdateTeamMemberSQUAREUP_UPDATE_TEAM_MEMBERUpdates a single `TeamMember` object. The `TeamMember` object is returned on successful updates. Learn about [Troubleshooting the Team API](https://developer.squareup.com/docs/team/troubleshooting#update-a-team-member).

Updates a single `TeamMember` object. The `TeamMember` object is returned on successful updates. Learn about [Troubleshooting the Team API](https://developer.squareup.com/docs/team/troubleshooting#update-a-team-member).

认证

需要 Connected Account

Scopes

EMPLOYEES_WRITE

Tags

Team
UpdateTimecardSQUAREUP_UPDATE_TIMECARDUpdates an existing `Timecard`. When adding a `Break` to a `Timecard`, any earlier `Break` instances in the `Timecard` have the `end_at` property set to a valid RFC-3339 datetime string. When closing a `Timecard`, all `Break` instances in the `Timecard` must be complete with `end_at` set on each `Break`.

Updates an existing `Timecard`. When adding a `Break` to a `Timecard`, any earlier `Break` instances in the `Timecard` have the `end_at` property set to a valid RFC-3339 datetime string. When closing a `Timecard`, all `Break` instances in the `Timecard` must be complete with `end_at` set on each `Break`.

认证

需要 Connected Account

Scopes

TIMECARDS_WRITETIMECARDS_READ

Tags

Labor
UpdateTransferOrderSQUAREUP_UPDATE_TRANSFER_ORDERUpdates an existing transfer order. This endpoint supports sparse updates, allowing you to modify specific fields without affecting others. Creates a [transfer_order.updated](webhook:transfer_order.updated) webhook event.

Updates an existing transfer order. This endpoint supports sparse updates, allowing you to modify specific fields without affecting others. Creates a [transfer_order.updated](webhook:transfer_order.updated) webhook event.

认证

需要 Connected Account

Scopes

INVENTORY_READINVENTORY_WRITE

Tags

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

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

认证

需要 Connected Account

Scopes

VENDOR_WRITE

Tags

Vendors
UpdateWageSettingSQUAREUP_UPDATE_WAGE_SETTINGCreates or updates a `WageSetting` object. The object is created if a `WageSetting` with the specified `team_member_id` doesn't exist. Otherwise, it fully replaces the `WageSetting` object for the team member. The `WageSetting` is returned on a successful update. For more information, see [Troubleshooting the Team API](https://developer.squareup.com/docs/team/troubleshooting#create-or-update-a-wage-setting). Square recommends using [CreateTeamMember](api-endpoint:Team-CreateTeamMember) or [UpdateTeamMember](api-endpoint:Team-UpdateTeamMember) to manage the `TeamMember.wage_setting` field directly.

Creates or updates a `WageSetting` object. The object is created if a `WageSetting` with the specified `team_member_id` doesn't exist. Otherwise, it fully replaces the `WageSetting` object for the team member. The `WageSetting` is returned on a successful update. For more information, see [Troubleshooting the Team API](https://developer.squareup.com/docs/team/troubleshooting#create-or-update-a-wage-setting). Square recommends using [CreateTeamMember](api-endpoint:Team-CreateTeamMember) or [UpdateTeamMember](api-endpoint:Team-UpdateTeamMember) to manage the `TeamMember.wage_setting` field directly.

认证

需要 Connected Account

Scopes

EMPLOYEES_WRITE

Tags

Team
UpdateWebhookSubscriptionSQUAREUP_UPDATE_WEBHOOK_SUBSCRIPTIONUpdates a webhook subscription.

Updates a webhook subscription.

认证

需要 Connected Account

Tags

WebhookSubscriptions
UpdateWebhookSubscriptionSignatureKeySQUAREUP_UPDATE_WEBHOOK_SUBSCRIPTION_SIGNATURE_KEYUpdates a webhook subscription by replacing the existing signature key with a new one.

Updates a webhook subscription by replacing the existing signature key with a new one.

认证

需要 Connected Account

Tags

WebhookSubscriptions
UpdateWorkweekConfigSQUAREUP_UPDATE_WORKWEEK_CONFIGUpdates a `WorkweekConfig`.

Updates a `WorkweekConfig`.

认证

需要 Connected Account

Scopes

TIMECARDS_SETTINGS_WRITETIMECARDS_SETTINGS_READ

Tags

Labor
UpsertBookingCustomAttributeSQUAREUP_UPSERT_BOOKING_CUSTOM_ATTRIBUTEUpserts a bookings custom attribute. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope. For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to *Appointments Plus* or *Appointments Premium*.

Upserts a bookings custom attribute. To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope. To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope. For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to *Appointments Plus* or *Appointments Premium*.

认证

需要 Connected Account

Scopes

APPOINTMENTS_WRITE

Tags

BookingCustomAttributes
UpsertCatalogObjectSQUAREUP_UPSERT_CATALOG_OBJECTCreates a new or updates the specified [CatalogObject](entity:CatalogObject). To ensure consistency, only one update request is processed at a time per seller account. While one (batch or non-batch) update request is being processed, other (batched and non-batched) update requests are rejected with the `429` error code.

Creates a new or updates the specified [CatalogObject](entity:CatalogObject). To ensure consistency, only one update request is processed at a time per seller account. While one (batch or non-batch) update request is being processed, other (batched and non-batched) update requests are rejected with the `429` error code.

认证

需要 Connected Account

Scopes

ITEMS_WRITE

Tags

Catalog
UpsertCustomerCustomAttributeSQUAREUP_UPSERT_CUSTOMER_CUSTOM_ATTRIBUTECreates or updates a [custom attribute](entity:CustomAttribute) for a customer profile. Use this endpoint to set the value of a custom attribute for a specified customer profile. A custom attribute is based on a custom attribute definition in a Square seller account, which is created using the [CreateCustomerCustomAttributeDefinition](api-endpoint:CustomerCustomAttributes-CreateCustomerCustomAttributeDefinition) endpoint. To create or update a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.

Creates or updates a [custom attribute](entity:CustomAttribute) for a customer profile. Use this endpoint to set the value of a custom attribute for a specified customer profile. A custom attribute is based on a custom attribute definition in a Square seller account, which is created using the [CreateCustomerCustomAttributeDefinition](api-endpoint:CustomerCustomAttributes-CreateCustomerCustomAttributeDefinition) endpoint. To create or update a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.

认证

需要 Connected Account

Scopes

CUSTOMERS_WRITE

Tags

CustomerCustomAttributes
UpsertLocationCustomAttributeSQUAREUP_UPSERT_LOCATION_CUSTOM_ATTRIBUTECreates or updates a [custom attribute](entity:CustomAttribute) for a location. Use this endpoint to set the value of a custom attribute for a specified location. A custom attribute is based on a custom attribute definition in a Square seller account, which is created using the [CreateLocationCustomAttributeDefinition](api-endpoint:LocationCustomAttributes-CreateLocationCustomAttributeDefinition) endpoint. To create or update a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_WRITE_VALUES`.

Creates or updates a [custom attribute](entity:CustomAttribute) for a location. Use this endpoint to set the value of a custom attribute for a specified location. A custom attribute is based on a custom attribute definition in a Square seller account, which is created using the [CreateLocationCustomAttributeDefinition](api-endpoint:LocationCustomAttributes-CreateLocationCustomAttributeDefinition) endpoint. To create or update a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_WRITE_VALUES`.

认证

需要 Connected Account

Scopes

MERCHANT_PROFILE_WRITE

Tags

LocationCustomAttributes
UpsertMerchantCustomAttributeSQUAREUP_UPSERT_MERCHANT_CUSTOM_ATTRIBUTECreates or updates a [custom attribute](entity:CustomAttribute) for a merchant. Use this endpoint to set the value of a custom attribute for a specified merchant. A custom attribute is based on a custom attribute definition in a Square seller account, which is created using the [CreateMerchantCustomAttributeDefinition](api-endpoint:MerchantCustomAttributes-CreateMerchantCustomAttributeDefinition) endpoint. To create or update a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_WRITE_VALUES`.

Creates or updates a [custom attribute](entity:CustomAttribute) for a merchant. Use this endpoint to set the value of a custom attribute for a specified merchant. A custom attribute is based on a custom attribute definition in a Square seller account, which is created using the [CreateMerchantCustomAttributeDefinition](api-endpoint:MerchantCustomAttributes-CreateMerchantCustomAttributeDefinition) endpoint. To create or update a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_WRITE_VALUES`.

认证

需要 Connected Account

Scopes

MERCHANT_PROFILE_WRITE

Tags

MerchantCustomAttributes
UpsertOrderCustomAttributeSQUAREUP_UPSERT_ORDER_CUSTOM_ATTRIBUTECreates or updates a [custom attribute](entity:CustomAttribute) for an order. Use this endpoint to set the value of a custom attribute for a specific order. A custom attribute is based on a custom attribute definition in a Square seller account. (To create a custom attribute definition, use the [CreateOrderCustomAttributeDefinition](api-endpoint:OrderCustomAttributes-CreateOrderCustomAttributeDefinition) endpoint.) To create or update a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.

Creates or updates a [custom attribute](entity:CustomAttribute) for an order. Use this endpoint to set the value of a custom attribute for a specific order. A custom attribute is based on a custom attribute definition in a Square seller account. (To create a custom attribute definition, use the [CreateOrderCustomAttributeDefinition](api-endpoint:OrderCustomAttributes-CreateOrderCustomAttributeDefinition) endpoint.) To create or update a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.

认证

需要 Connected Account

Scopes

ORDERS_WRITE

Tags

OrderCustomAttributes
UpsertSnippetSQUAREUP_UPSERT_SNIPPETAdds a snippet to a Square Online site or updates the existing snippet on the site. The snippet code is appended to the end of the `head` element on every page of the site, except checkout pages. A snippet application can add one snippet to a given site. You can call [ListSites](api-endpoint:Sites-ListSites) to get the IDs of the sites that belong to a seller. __Note:__ Square Online APIs are publicly available as part of an early access program. For more information, see [Early access program for Square Online APIs](https://developer.squareup.com/docs/online-api#early-access-program-for-square-online-apis).

Adds a snippet to a Square Online site or updates the existing snippet on the site. The snippet code is appended to the end of the `head` element on every page of the site, except checkout pages. A snippet application can add one snippet to a given site. You can call [ListSites](api-endpoint:Sites-ListSites) to get the IDs of the sites that belong to a seller. __Note:__ Square Online APIs are publicly available as part of an early access program. For more information, see [Early access program for Square Online APIs](https://developer.squareup.com/docs/online-api#early-access-program-for-square-online-apis).

认证

需要 Connected Account

Scopes

ONLINE_STORE_SNIPPETS_WRITE

Tags

Snippets
V1ListOrdersSQUAREUP_V1_LIST_ORDERSProvides summary information for a merchant's online store orders.

Provides summary information for a merchant's online store orders.

认证

需要 Connected Account

Scopes

ORDERS_READ

Tags

V1Transactions
V1RetrieveOrderSQUAREUP_V1_RETRIEVE_ORDERProvides comprehensive information for a single online store order, including the order's history.

Provides comprehensive information for a single online store order, including the order's history.

认证

需要 Connected Account

Scopes

ORDERS_READ

Tags

V1Transactions
V1UpdateOrderSQUAREUP_V1_UPDATE_ORDERUpdates the details of an online store order. Every update you perform on an order corresponds to one of three actions:

Updates the details of an online store order. Every update you perform on an order corresponds to one of three actions:

认证

需要 Connected Account

Scopes

ORDERS_WRITE

Tags

V1Transactions
VoidTransactionSQUAREUP_VOID_TRANSACTIONCancels a transaction that was created with the [Charge](api-endpoint:Transactions-Charge) endpoint with a `delay_capture` value of `true`. See [Delayed capture transactions](https://developer.squareup.com/docs/payments/transactions/overview#delayed-capture) for more information.

Cancels a transaction that was created with the [Charge](api-endpoint:Transactions-Charge) endpoint with a `delay_capture` value of `true`. See [Delayed capture transactions](https://developer.squareup.com/docs/payments/transactions/overview#delayed-capture) for more information.

认证

需要 Connected Account

Scopes

PAYMENTS_WRITE

Tags

Transactions