Orkas is an open-source (MIT), local-first AI team for your desktop: a Commander turns your goal into to-dos and coordinates 16 built-in specialist agents plus Claude Code, Codex, OpenCode, OpenClaw and Hermes, with projects, scheduled automations and connectors. Free app for macOS & Windows; built-in models or your own keys.
JavaScript agent-collaborationagent-harnessagent-orchestrationagent-teamagent-workflowai-assistantai-automationai-employeeai-productivityai-teamai-workflowautonomous-agentsclaude-code-guiclaude-coworkdesktop-agentlocal-firstmulti-agentmulti-agent-systemself-evolving-agentstask-automation
{"api_version":"2026-09-16","documentation_snapshot":"2026-10-01","inventory":[{"method":"POST","path":"/oauth2/revoke","operation":"RevokeToken","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Host authorization or application-owned scope, outside the merchant-bound business grant"},{"method":"POST","path":"/oauth2/token","operation":"ObtainToken","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Host authorization or application-owned scope, outside the merchant-bound business grant"},{"method":"POST","path":"/oauth2/token/status","operation":"RetrieveTokenStatus","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Host authorization or application-owned scope, outside the merchant-bound business grant"},{"method":"GET","path":"/v1/{location_id}/orders","operation":"V1ListOrders","stage":"DEPRECATED","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Deprecated replaced API; no new compatibility alias; current equivalents selected"},{"method":"GET","path":"/v1/{location_id}/orders/{order_id}","operation":"V1RetrieveOrder","stage":"DEPRECATED","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Deprecated replaced API; no new compatibility alias; current equivalents selected"},{"method":"PUT","path":"/v1/{location_id}/orders/{order_id}","operation":"V1UpdateOrder","stage":"DEPRECATED","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Deprecated replaced API; no new compatibility alias; current equivalents selected"},{"method":"POST","path":"/v2/apple-pay/domains","operation":"RegisterDomain","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Host authorization or application-owned scope, outside the merchant-bound business grant"},{"method":"GET","path":"/v2/bank-accounts","operation":"ListBankAccounts","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/bank-accounts","operation":"CreateBankAccount","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"GET","path":"/v2/bank-accounts/by-v1-id/{v1_bank_account_id}","operation":"GetBankAccountByV1Id","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/bank-accounts/{bank_account_id}","operation":"GetBankAccount","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/bank-accounts/{bank_account_id}/disable","operation":"DisableBankAccount","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"GET","path":"/v2/bookings","operation":"ListBookings","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/bookings","operation":"CreateBooking","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/bookings/availability/search","operation":"SearchAvailability","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/bookings/bulk-retrieve","operation":"BulkRetrieveBookings","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/bookings/business-booking-profile","operation":"RetrieveBusinessBookingProfile","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/bookings/custom-attribute-definitions","operation":"ListBookingCustomAttributeDefinitions","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/bookings/custom-attribute-definitions","operation":"CreateBookingCustomAttributeDefinition","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"DELETE","path":"/v2/bookings/custom-attribute-definitions/{key}","operation":"DeleteBookingCustomAttributeDefinition","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"GET","path":"/v2/bookings/custom-attribute-definitions/{key}","operation":"RetrieveBookingCustomAttributeDefinition","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"PUT","path":"/v2/bookings/custom-attribute-definitions/{key}","operation":"UpdateBookingCustomAttributeDefinition","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"POST","path":"/v2/bookings/custom-attributes/bulk-delete","operation":"BulkDeleteBookingCustomAttributes","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"POST","path":"/v2/bookings/custom-attributes/bulk-upsert","operation":"BulkUpsertBookingCustomAttributes","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"GET","path":"/v2/bookings/location-booking-profiles","operation":"ListLocationBookingProfiles","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/bookings/location-booking-profiles/{location_id}","operation":"RetrieveLocationBookingProfile","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/bookings/team-member-booking-profiles","operation":"ListTeamMemberBookingProfiles","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/bookings/team-member-booking-profiles/bulk-retrieve","operation":"BulkRetrieveTeamMemberBookingProfiles","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/bookings/team-member-booking-profiles/{team_member_id}","operation":"RetrieveTeamMemberBookingProfile","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/bookings/{booking_id}","operation":"RetrieveBooking","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"PUT","path":"/v2/bookings/{booking_id}","operation":"UpdateBooking","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/bookings/{booking_id}/cancel","operation":"CancelBooking","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"GET","path":"/v2/bookings/{booking_id}/custom-attributes","operation":"ListBookingCustomAttributes","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"DELETE","path":"/v2/bookings/{booking_id}/custom-attributes/{key}","operation":"DeleteBookingCustomAttribute","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"GET","path":"/v2/bookings/{booking_id}/custom-attributes/{key}","operation":"RetrieveBookingCustomAttribute","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"PUT","path":"/v2/bookings/{booking_id}/custom-attributes/{key}","operation":"UpsertBookingCustomAttribute","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"GET","path":"/v2/cards","operation":"ListCards","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/cards","operation":"CreateCard","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"GET","path":"/v2/cards/{card_id}","operation":"RetrieveCard","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/cards/{card_id}/disable","operation":"DisableCard","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"GET","path":"/v2/cash-drawers/shifts","operation":"ListCashDrawerShifts","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/cash-drawers/shifts/{shift_id}","operation":"RetrieveCashDrawerShift","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/cash-drawers/shifts/{shift_id}/events","operation":"ListCashDrawerShiftEvents","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/catalog/batch-delete","operation":"BatchDeleteCatalogObjects","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"POST","path":"/v2/catalog/batch-retrieve","operation":"BatchRetrieveCatalogObjects","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/catalog/batch-upsert","operation":"BatchUpsertCatalogObjects","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"POST","path":"/v2/catalog/images","operation":"CreateCatalogImage","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"PUT","path":"/v2/catalog/images/{image_id}","operation":"UpdateCatalogImage","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"GET","path":"/v2/catalog/info","operation":"CatalogInfo","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/catalog/list","operation":"ListCatalog","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/catalog/object","operation":"UpsertCatalogObject","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"DELETE","path":"/v2/catalog/object/{object_id}","operation":"DeleteCatalogObject","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"GET","path":"/v2/catalog/object/{object_id}","operation":"RetrieveCatalogObject","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/catalog/search","operation":"SearchCatalogObjects","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/catalog/search-catalog-items","operation":"SearchCatalogItems","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/catalog/update-item-modifier-lists","operation":"UpdateItemModifierLists","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/catalog/update-item-taxes","operation":"UpdateItemTaxes","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"GET","path":"/v2/channels","operation":"ListChannels","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/channels/bulk-retrieve","operation":"BulkRetrieveChannels","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/channels/{channel_id}","operation":"RetrieveChannel","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/customers","operation":"ListCustomers","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/customers","operation":"CreateCustomer","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"POST","path":"/v2/customers/bulk-create","operation":"BulkCreateCustomers","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"POST","path":"/v2/customers/bulk-delete","operation":"BulkDeleteCustomers","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"POST","path":"/v2/customers/bulk-retrieve","operation":"BulkRetrieveCustomers","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/customers/bulk-update","operation":"BulkUpdateCustomers","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"GET","path":"/v2/customers/custom-attribute-definitions","operation":"ListCustomerCustomAttributeDefinitions","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/customers/custom-attribute-definitions","operation":"CreateCustomerCustomAttributeDefinition","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"DELETE","path":"/v2/customers/custom-attribute-definitions/{key}","operation":"DeleteCustomerCustomAttributeDefinition","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"GET","path":"/v2/customers/custom-attribute-definitions/{key}","operation":"RetrieveCustomerCustomAttributeDefinition","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"PUT","path":"/v2/customers/custom-attribute-definitions/{key}","operation":"UpdateCustomerCustomAttributeDefinition","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"POST","path":"/v2/customers/custom-attributes/bulk-upsert","operation":"BulkUpsertCustomerCustomAttributes","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"GET","path":"/v2/customers/groups","operation":"ListCustomerGroups","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/customers/groups","operation":"CreateCustomerGroup","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"DELETE","path":"/v2/customers/groups/{group_id}","operation":"DeleteCustomerGroup","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"GET","path":"/v2/customers/groups/{group_id}","operation":"RetrieveCustomerGroup","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"PUT","path":"/v2/customers/groups/{group_id}","operation":"UpdateCustomerGroup","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"POST","path":"/v2/customers/search","operation":"SearchCustomers","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/customers/segments","operation":"ListCustomerSegments","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/customers/segments/{segment_id}","operation":"RetrieveCustomerSegment","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"DELETE","path":"/v2/customers/{customer_id}","operation":"DeleteCustomer","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"GET","path":"/v2/customers/{customer_id}","operation":"RetrieveCustomer","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"PUT","path":"/v2/customers/{customer_id}","operation":"UpdateCustomer","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"POST","path":"/v2/customers/{customer_id}/cards","operation":"CreateCustomerCard","stage":"DEPRECATED","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Deprecated replaced API; no new compatibility alias; current equivalents selected"},{"method":"DELETE","path":"/v2/customers/{customer_id}/cards/{card_id}","operation":"DeleteCustomerCard","stage":"DEPRECATED","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Deprecated replaced API; no new compatibility alias; current equivalents selected"},{"method":"GET","path":"/v2/customers/{customer_id}/custom-attributes","operation":"ListCustomerCustomAttributes","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"DELETE","path":"/v2/customers/{customer_id}/custom-attributes/{key}","operation":"DeleteCustomerCustomAttribute","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"GET","path":"/v2/customers/{customer_id}/custom-attributes/{key}","operation":"RetrieveCustomerCustomAttribute","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/customers/{customer_id}/custom-attributes/{key}","operation":"UpsertCustomerCustomAttribute","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"DELETE","path":"/v2/customers/{customer_id}/groups/{group_id}","operation":"RemoveGroupFromCustomer","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"PUT","path":"/v2/customers/{customer_id}/groups/{group_id}","operation":"AddGroupToCustomer","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"GET","path":"/v2/devices","operation":"ListDevices","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/devices/codes","operation":"ListDeviceCodes","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/devices/codes","operation":"CreateDeviceCode","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"GET","path":"/v2/devices/codes/{id}","operation":"GetDeviceCode","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/devices/{device_id}","operation":"GetDevice","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/disputes","operation":"ListDisputes","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/disputes/{dispute_id}","operation":"RetrieveDispute","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/disputes/{dispute_id}/accept","operation":"AcceptDispute","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"GET","path":"/v2/disputes/{dispute_id}/evidence","operation":"ListDisputeEvidence","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/disputes/{dispute_id}/evidence-files","operation":"CreateDisputeEvidenceFile","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"POST","path":"/v2/disputes/{dispute_id}/evidence-text","operation":"CreateDisputeEvidenceText","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"DELETE","path":"/v2/disputes/{dispute_id}/evidence/{evidence_id}","operation":"DeleteDisputeEvidence","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"GET","path":"/v2/disputes/{dispute_id}/evidence/{evidence_id}","operation":"RetrieveDisputeEvidence","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/disputes/{dispute_id}/submit-evidence","operation":"SubmitEvidence","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"GET","path":"/v2/employees","operation":"ListEmployees","stage":"DEPRECATED","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Deprecated replaced API; no new compatibility alias; current equivalents selected"},{"method":"GET","path":"/v2/employees/{id}","operation":"RetrieveEmployee","stage":"DEPRECATED","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Deprecated replaced API; no new compatibility alias; current equivalents selected"},{"method":"POST","path":"/v2/events","operation":"SearchEvents","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Host authorization or application-owned scope, outside the merchant-bound business grant"},{"method":"PUT","path":"/v2/events/disable","operation":"DisableEvents","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Host authorization or application-owned scope, outside the merchant-bound business grant"},{"method":"PUT","path":"/v2/events/enable","operation":"EnableEvents","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Host authorization or application-owned scope, outside the merchant-bound business grant"},{"method":"GET","path":"/v2/events/types","operation":"ListEventTypes","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Host authorization or application-owned scope, outside the merchant-bound business grant"},{"method":"GET","path":"/v2/gift-cards","operation":"ListGiftCards","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/gift-cards","operation":"CreateGiftCard","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"GET","path":"/v2/gift-cards/activities","operation":"ListGiftCardActivities","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/gift-cards/activities","operation":"CreateGiftCardActivity","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/gift-cards/from-gan","operation":"RetrieveGiftCardFromGAN","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/gift-cards/from-nonce","operation":"RetrieveGiftCardFromNonce","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/gift-cards/{gift_card_id}/link-customer","operation":"LinkCustomerToGiftCard","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/gift-cards/{gift_card_id}/unlink-customer","operation":"UnlinkCustomerFromGiftCard","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"GET","path":"/v2/gift-cards/{id}","operation":"RetrieveGiftCard","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/inventory/adjustment-reasons","operation":"ListInventoryAdjustmentReasons","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/inventory/adjustment-reasons/create","operation":"CreateInventoryAdjustmentReason","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/inventory/adjustment-reasons/delete","operation":"DeleteInventoryAdjustmentReason","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"POST","path":"/v2/inventory/adjustment-reasons/restore","operation":"RestoreInventoryAdjustmentReason","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/inventory/adjustment-reasons/retrieve","operation":"RetrieveInventoryAdjustmentReason","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"PUT","path":"/v2/inventory/adjustment-reasons/update","operation":"UpdateInventoryAdjustmentReason","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"GET","path":"/v2/inventory/adjustment/{adjustment_id}","operation":"DeprecatedRetrieveInventoryAdjustment","stage":"DEPRECATED","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Deprecated replaced API; no new compatibility alias; current equivalents selected"},{"method":"PUT","path":"/v2/inventory/adjustments/update","operation":"UpdateInventoryAdjustment","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"GET","path":"/v2/inventory/adjustments/{adjustment_id}","operation":"RetrieveInventoryAdjustment","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/inventory/batch-change","operation":"DeprecatedBatchChangeInventory","stage":"DEPRECATED","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Deprecated replaced API; no new compatibility alias; current equivalents selected"},{"method":"POST","path":"/v2/inventory/batch-retrieve-changes","operation":"DeprecatedBatchRetrieveInventoryChanges","stage":"DEPRECATED","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Deprecated replaced API; no new compatibility alias; current equivalents selected"},{"method":"POST","path":"/v2/inventory/batch-retrieve-counts","operation":"DeprecatedBatchRetrieveInventoryCounts","stage":"DEPRECATED","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Deprecated replaced API; no new compatibility alias; current equivalents selected"},{"method":"POST","path":"/v2/inventory/changes/batch-create","operation":"BatchChangeInventory","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/inventory/changes/batch-retrieve","operation":"BatchRetrieveInventoryChanges","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/inventory/counts/batch-retrieve","operation":"BatchRetrieveInventoryCounts","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/inventory/physical-count/{physical_count_id}","operation":"DeprecatedRetrieveInventoryPhysicalCount","stage":"DEPRECATED","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Deprecated replaced API; no new compatibility alias; current equivalents selected"},{"method":"GET","path":"/v2/inventory/physical-counts/{physical_count_id}","operation":"RetrieveInventoryPhysicalCount","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/inventory/{catalog_object_id}","operation":"RetrieveInventoryCount","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/inventory/{catalog_object_id}/changes","operation":"RetrieveInventoryChanges","stage":"DEPRECATED","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Deprecated replaced API; no new compatibility alias; current equivalents selected"},{"method":"GET","path":"/v2/invoices","operation":"ListInvoices","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/invoices","operation":"CreateInvoice","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"POST","path":"/v2/invoices/search","operation":"SearchInvoices","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"DELETE","path":"/v2/invoices/{invoice_id}","operation":"DeleteInvoice","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"GET","path":"/v2/invoices/{invoice_id}","operation":"GetInvoice","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"PUT","path":"/v2/invoices/{invoice_id}","operation":"UpdateInvoice","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/invoices/{invoice_id}/attachments","operation":"CreateInvoiceAttachment","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"DELETE","path":"/v2/invoices/{invoice_id}/attachments/{attachment_id}","operation":"DeleteInvoiceAttachment","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"POST","path":"/v2/invoices/{invoice_id}/cancel","operation":"CancelInvoice","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"POST","path":"/v2/invoices/{invoice_id}/publish","operation":"PublishInvoice","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"GET","path":"/v2/labor/break-types","operation":"ListBreakTypes","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/labor/break-types","operation":"CreateBreakType","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"DELETE","path":"/v2/labor/break-types/{id}","operation":"DeleteBreakType","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"GET","path":"/v2/labor/break-types/{id}","operation":"GetBreakType","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"PUT","path":"/v2/labor/break-types/{id}","operation":"UpdateBreakType","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"GET","path":"/v2/labor/employee-wages","operation":"ListEmployeeWages","stage":"DEPRECATED","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Deprecated replaced API; no new compatibility alias; current equivalents selected"},{"method":"GET","path":"/v2/labor/employee-wages/{id}","operation":"GetEmployeeWage","stage":"DEPRECATED","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Deprecated replaced API; no new compatibility alias; current equivalents selected"},{"method":"POST","path":"/v2/labor/scheduled-shifts","operation":"CreateScheduledShift","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/labor/scheduled-shifts/bulk-publish","operation":"BulkPublishScheduledShifts","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/labor/scheduled-shifts/search","operation":"SearchScheduledShifts","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/labor/scheduled-shifts/{id}","operation":"RetrieveScheduledShift","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"PUT","path":"/v2/labor/scheduled-shifts/{id}","operation":"UpdateScheduledShift","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/labor/scheduled-shifts/{id}/publish","operation":"PublishScheduledShift","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/labor/shifts","operation":"CreateShift","stage":"DEPRECATED","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Deprecated replaced API; no new compatibility alias; current equivalents selected"},{"method":"POST","path":"/v2/labor/shifts/search","operation":"SearchShifts","stage":"DEPRECATED","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Deprecated replaced API; no new compatibility alias; current equivalents selected"},{"method":"DELETE","path":"/v2/labor/shifts/{id}","operation":"DeleteShift","stage":"DEPRECATED","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Deprecated replaced API; no new compatibility alias; current equivalents selected"},{"method":"GET","path":"/v2/labor/shifts/{id}","operation":"GetShift","stage":"DEPRECATED","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Deprecated replaced API; no new compatibility alias; current equivalents selected"},{"method":"PUT","path":"/v2/labor/shifts/{id}","operation":"UpdateShift","stage":"DEPRECATED","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Deprecated replaced API; no new compatibility alias; current equivalents selected"},{"method":"GET","path":"/v2/labor/team-member-wages","operation":"ListTeamMemberWages","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/labor/team-member-wages/{id}","operation":"GetTeamMemberWage","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/labor/timecards","operation":"CreateTimecard","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/labor/timecards/search","operation":"SearchTimecards","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"DELETE","path":"/v2/labor/timecards/{id}","operation":"DeleteTimecard","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"GET","path":"/v2/labor/timecards/{id}","operation":"RetrieveTimecard","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"PUT","path":"/v2/labor/timecards/{id}","operation":"UpdateTimecard","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"GET","path":"/v2/labor/workweek-configs","operation":"ListWorkweekConfigs","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"PUT","path":"/v2/labor/workweek-configs/{id}","operation":"UpdateWorkweekConfig","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"GET","path":"/v2/locations","operation":"ListLocations","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/locations","operation":"CreateLocation","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"GET","path":"/v2/locations/custom-attribute-definitions","operation":"ListLocationCustomAttributeDefinitions","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/locations/custom-attribute-definitions","operation":"CreateLocationCustomAttributeDefinition","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"DELETE","path":"/v2/locations/custom-attribute-definitions/{key}","operation":"DeleteLocationCustomAttributeDefinition","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"GET","path":"/v2/locations/custom-attribute-definitions/{key}","operation":"RetrieveLocationCustomAttributeDefinition","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"PUT","path":"/v2/locations/custom-attribute-definitions/{key}","operation":"UpdateLocationCustomAttributeDefinition","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"POST","path":"/v2/locations/custom-attributes/bulk-delete","operation":"BulkDeleteLocationCustomAttributes","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"POST","path":"/v2/locations/custom-attributes/bulk-upsert","operation":"BulkUpsertLocationCustomAttributes","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"GET","path":"/v2/locations/{location_id}","operation":"RetrieveLocation","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"PUT","path":"/v2/locations/{location_id}","operation":"UpdateLocation","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"POST","path":"/v2/locations/{location_id}/checkouts","operation":"CreateCheckout","stage":"DEPRECATED","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Deprecated replaced API; no new compatibility alias; current equivalents selected"},{"method":"GET","path":"/v2/locations/{location_id}/custom-attributes","operation":"ListLocationCustomAttributes","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"DELETE","path":"/v2/locations/{location_id}/custom-attributes/{key}","operation":"DeleteLocationCustomAttribute","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"GET","path":"/v2/locations/{location_id}/custom-attributes/{key}","operation":"RetrieveLocationCustomAttribute","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/locations/{location_id}/custom-attributes/{key}","operation":"UpsertLocationCustomAttribute","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"GET","path":"/v2/locations/{location_id}/transactions","operation":"ListTransactions","stage":"DEPRECATED","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Deprecated replaced API; no new compatibility alias; current equivalents selected"},{"method":"GET","path":"/v2/locations/{location_id}/transactions/{transaction_id}","operation":"RetrieveTransaction","stage":"DEPRECATED","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Deprecated replaced API; no new compatibility alias; current equivalents selected"},{"method":"POST","path":"/v2/loyalty/accounts","operation":"CreateLoyaltyAccount","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"POST","path":"/v2/loyalty/accounts/search","operation":"SearchLoyaltyAccounts","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/loyalty/accounts/{account_id}","operation":"RetrieveLoyaltyAccount","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/loyalty/accounts/{account_id}/accumulate","operation":"AccumulateLoyaltyPoints","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/loyalty/accounts/{account_id}/adjust","operation":"AdjustLoyaltyPoints","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/loyalty/events/search","operation":"SearchLoyaltyEvents","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/loyalty/programs","operation":"ListLoyaltyPrograms","stage":"DEPRECATED","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Deprecated replaced API; no new compatibility alias; current equivalents selected"},{"method":"GET","path":"/v2/loyalty/programs/{program_id}","operation":"RetrieveLoyaltyProgram","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/loyalty/programs/{program_id}/calculate","operation":"CalculateLoyaltyPoints","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/loyalty/programs/{program_id}/promotions","operation":"ListLoyaltyPromotions","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/loyalty/programs/{program_id}/promotions","operation":"CreateLoyaltyPromotion","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"GET","path":"/v2/loyalty/programs/{program_id}/promotions/{promotion_id}","operation":"RetrieveLoyaltyPromotion","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/loyalty/programs/{program_id}/promotions/{promotion_id}/cancel","operation":"CancelLoyaltyPromotion","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"POST","path":"/v2/loyalty/rewards","operation":"CreateLoyaltyReward","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/loyalty/rewards/search","operation":"SearchLoyaltyRewards","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"DELETE","path":"/v2/loyalty/rewards/{reward_id}","operation":"DeleteLoyaltyReward","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"GET","path":"/v2/loyalty/rewards/{reward_id}","operation":"RetrieveLoyaltyReward","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/loyalty/rewards/{reward_id}/redeem","operation":"RedeemLoyaltyReward","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"GET","path":"/v2/merchants","operation":"ListMerchants","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/merchants/custom-attribute-definitions","operation":"ListMerchantCustomAttributeDefinitions","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/merchants/custom-attribute-definitions","operation":"CreateMerchantCustomAttributeDefinition","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"DELETE","path":"/v2/merchants/custom-attribute-definitions/{key}","operation":"DeleteMerchantCustomAttributeDefinition","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"GET","path":"/v2/merchants/custom-attribute-definitions/{key}","operation":"RetrieveMerchantCustomAttributeDefinition","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"PUT","path":"/v2/merchants/custom-attribute-definitions/{key}","operation":"UpdateMerchantCustomAttributeDefinition","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"POST","path":"/v2/merchants/custom-attributes/bulk-delete","operation":"BulkDeleteMerchantCustomAttributes","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"POST","path":"/v2/merchants/custom-attributes/bulk-upsert","operation":"BulkUpsertMerchantCustomAttributes","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"GET","path":"/v2/merchants/{merchant_id}","operation":"RetrieveMerchant","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/merchants/{merchant_id}/custom-attributes","operation":"ListMerchantCustomAttributes","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"DELETE","path":"/v2/merchants/{merchant_id}/custom-attributes/{key}","operation":"DeleteMerchantCustomAttribute","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"GET","path":"/v2/merchants/{merchant_id}/custom-attributes/{key}","operation":"RetrieveMerchantCustomAttribute","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/merchants/{merchant_id}/custom-attributes/{key}","operation":"UpsertMerchantCustomAttribute","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"GET","path":"/v2/online-checkout/location-settings/{location_id}","operation":"RetrieveLocationSettings","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"PUT","path":"/v2/online-checkout/location-settings/{location_id}","operation":"UpdateLocationSettings","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"GET","path":"/v2/online-checkout/merchant-settings","operation":"RetrieveMerchantSettings","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"PUT","path":"/v2/online-checkout/merchant-settings","operation":"UpdateMerchantSettings","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"GET","path":"/v2/online-checkout/payment-links","operation":"ListPaymentLinks","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/online-checkout/payment-links","operation":"CreatePaymentLink","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"DELETE","path":"/v2/online-checkout/payment-links/{id}","operation":"DeletePaymentLink","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"GET","path":"/v2/online-checkout/payment-links/{id}","operation":"RetrievePaymentLink","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"PUT","path":"/v2/online-checkout/payment-links/{id}","operation":"UpdatePaymentLink","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/orders","operation":"CreateOrder","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/orders/batch-retrieve","operation":"BatchRetrieveOrders","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/orders/calculate","operation":"CalculateOrder","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/orders/clone","operation":"CloneOrder","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"GET","path":"/v2/orders/custom-attribute-definitions","operation":"ListOrderCustomAttributeDefinitions","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/orders/custom-attribute-definitions","operation":"CreateOrderCustomAttributeDefinition","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"DELETE","path":"/v2/orders/custom-attribute-definitions/{key}","operation":"DeleteOrderCustomAttributeDefinition","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"GET","path":"/v2/orders/custom-attribute-definitions/{key}","operation":"RetrieveOrderCustomAttributeDefinition","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"PUT","path":"/v2/orders/custom-attribute-definitions/{key}","operation":"UpdateOrderCustomAttributeDefinition","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"POST","path":"/v2/orders/custom-attributes/bulk-delete","operation":"BulkDeleteOrderCustomAttributes","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"POST","path":"/v2/orders/custom-attributes/bulk-upsert","operation":"BulkUpsertOrderCustomAttributes","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"POST","path":"/v2/orders/search","operation":"SearchOrders","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/orders/{order_id}","operation":"RetrieveOrder","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"PUT","path":"/v2/orders/{order_id}","operation":"UpdateOrder","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"GET","path":"/v2/orders/{order_id}/custom-attributes","operation":"ListOrderCustomAttributes","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"DELETE","path":"/v2/orders/{order_id}/custom-attributes/{custom_attribute_key}","operation":"DeleteOrderCustomAttribute","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"GET","path":"/v2/orders/{order_id}/custom-attributes/{custom_attribute_key}","operation":"RetrieveOrderCustomAttribute","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/orders/{order_id}/custom-attributes/{custom_attribute_key}","operation":"UpsertOrderCustomAttribute","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"POST","path":"/v2/orders/{order_id}/pay","operation":"PayOrder","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"GET","path":"/v2/payments","operation":"ListPayments","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Official model references unpublished AppFeeAllocation/CurrencyExchange definitions; preserve existing tested payment/refund aliases instead of inventing native contracts"},{"method":"POST","path":"/v2/payments","operation":"CreatePayment","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Official model references unpublished AppFeeAllocation/CurrencyExchange definitions; preserve existing tested payment/refund aliases instead of inventing native contracts"},{"method":"POST","path":"/v2/payments/cancel","operation":"CancelPaymentByIdempotencyKey","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"GET","path":"/v2/payments/{payment_id}","operation":"GetPayment","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Official model references unpublished AppFeeAllocation/CurrencyExchange definitions; preserve existing tested payment/refund aliases instead of inventing native contracts"},{"method":"PUT","path":"/v2/payments/{payment_id}","operation":"UpdatePayment","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Official model references unpublished AppFeeAllocation/CurrencyExchange definitions; preserve existing tested payment/refund aliases instead of inventing native contracts"},{"method":"POST","path":"/v2/payments/{payment_id}/cancel","operation":"CancelPayment","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Official model references unpublished AppFeeAllocation/CurrencyExchange definitions; preserve existing tested payment/refund aliases instead of inventing native contracts"},{"method":"POST","path":"/v2/payments/{payment_id}/complete","operation":"CompletePayment","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Official model references unpublished AppFeeAllocation/CurrencyExchange definitions; preserve existing tested payment/refund aliases instead of inventing native contracts"},{"method":"GET","path":"/v2/payouts","operation":"ListPayouts","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/payouts/{payout_id}","operation":"GetPayout","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/payouts/{payout_id}/payout-entries","operation":"ListPayoutEntries","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/refunds","operation":"ListPaymentRefunds","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Official model references unpublished AppFeeAllocation/CurrencyExchange definitions; preserve existing tested payment/refund aliases instead of inventing native contracts"},{"method":"POST","path":"/v2/refunds","operation":"RefundPayment","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Official model references unpublished AppFeeAllocation/CurrencyExchange definitions; preserve existing tested payment/refund aliases instead of inventing native contracts"},{"method":"GET","path":"/v2/refunds/{refund_id}","operation":"GetPaymentRefund","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Official model references unpublished AppFeeAllocation/CurrencyExchange definitions; preserve existing tested payment/refund aliases instead of inventing native contracts"},{"method":"GET","path":"/v2/sites","operation":"ListSites","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"DELETE","path":"/v2/sites/{site_id}/snippet","operation":"DeleteSnippet","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"GET","path":"/v2/sites/{site_id}/snippet","operation":"RetrieveSnippet","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/sites/{site_id}/snippet","operation":"UpsertSnippet","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/subscriptions","operation":"CreateSubscription","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/subscriptions/bulk-swap-plan","operation":"BulkSwapPlan","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/subscriptions/search","operation":"SearchSubscriptions","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/subscriptions/{subscription_id}","operation":"RetrieveSubscription","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"PUT","path":"/v2/subscriptions/{subscription_id}","operation":"UpdateSubscription","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"DELETE","path":"/v2/subscriptions/{subscription_id}/actions/{action_id}","operation":"DeleteSubscriptionAction","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"POST","path":"/v2/subscriptions/{subscription_id}/billing-anchor","operation":"ChangeBillingAnchorDate","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/subscriptions/{subscription_id}/cancel","operation":"CancelSubscription","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"GET","path":"/v2/subscriptions/{subscription_id}/events","operation":"ListSubscriptionEvents","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/subscriptions/{subscription_id}/pause","operation":"PauseSubscription","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/subscriptions/{subscription_id}/resume","operation":"ResumeSubscription","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/subscriptions/{subscription_id}/swap-plan","operation":"SwapPlan","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/team-members","operation":"CreateTeamMember","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/team-members/bulk-create","operation":"BulkCreateTeamMembers","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/team-members/bulk-update","operation":"BulkUpdateTeamMembers","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"GET","path":"/v2/team-members/jobs","operation":"ListJobs","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/team-members/jobs","operation":"CreateJob","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"GET","path":"/v2/team-members/jobs/{job_id}","operation":"RetrieveJob","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"PUT","path":"/v2/team-members/jobs/{job_id}","operation":"UpdateJob","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/team-members/search","operation":"SearchTeamMembers","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/team-members/{team_member_id}","operation":"RetrieveTeamMember","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"PUT","path":"/v2/team-members/{team_member_id}","operation":"UpdateTeamMember","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"GET","path":"/v2/team-members/{team_member_id}/wage-setting","operation":"RetrieveWageSetting","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"PUT","path":"/v2/team-members/{team_member_id}/wage-setting","operation":"UpdateWageSetting","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/terminals/actions","operation":"CreateTerminalAction","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/terminals/actions/search","operation":"SearchTerminalActions","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/terminals/actions/{action_id}","operation":"GetTerminalAction","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/terminals/actions/{action_id}/cancel","operation":"CancelTerminalAction","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"POST","path":"/v2/terminals/actions/{action_id}/dismiss","operation":"DismissTerminalAction","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"POST","path":"/v2/terminals/checkouts","operation":"CreateTerminalCheckout","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/terminals/checkouts/search","operation":"SearchTerminalCheckouts","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/terminals/checkouts/{checkout_id}","operation":"GetTerminalCheckout","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/terminals/checkouts/{checkout_id}/cancel","operation":"CancelTerminalCheckout","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"POST","path":"/v2/terminals/checkouts/{checkout_id}/dismiss","operation":"DismissTerminalCheckout","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"POST","path":"/v2/terminals/refunds","operation":"CreateTerminalRefund","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/terminals/refunds/search","operation":"SearchTerminalRefunds","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/terminals/refunds/{terminal_refund_id}","operation":"GetTerminalRefund","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"POST","path":"/v2/terminals/refunds/{terminal_refund_id}/cancel","operation":"CancelTerminalRefund","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"POST","path":"/v2/terminals/refunds/{terminal_refund_id}/dismiss","operation":"DismissTerminalRefund","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"POST","path":"/v2/transfer-orders","operation":"CreateTransferOrder","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/transfer-orders/search","operation":"SearchTransferOrders","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"DELETE","path":"/v2/transfer-orders/{transfer_order_id}","operation":"DeleteTransferOrder","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"GET","path":"/v2/transfer-orders/{transfer_order_id}","operation":"RetrieveTransferOrder","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"PUT","path":"/v2/transfer-orders/{transfer_order_id}","operation":"UpdateTransferOrder","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/transfer-orders/{transfer_order_id}/cancel","operation":"CancelTransferOrder","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"D"},{"method":"POST","path":"/v2/transfer-orders/{transfer_order_id}/receive","operation":"ReceiveTransferOrder","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/transfer-orders/{transfer_order_id}/start","operation":"StartTransferOrder","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"H"},{"method":"POST","path":"/v2/vendors/bulk-create","operation":"BulkCreateVendors","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"POST","path":"/v2/vendors/bulk-retrieve","operation":"BulkRetrieveVendors","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"PUT","path":"/v2/vendors/bulk-update","operation":"BulkUpdateVendors","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"POST","path":"/v2/vendors/create","operation":"CreateVendor","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"POST","path":"/v2/vendors/search","operation":"SearchVendors","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"GET","path":"/v2/vendors/{vendor_id}","operation":"RetrieveVendor","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"R"},{"method":"PUT","path":"/v2/vendors/{vendor_id}","operation":"UpdateVendor","stage":"BETA","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","risk":"W"},{"method":"GET","path":"/v2/webhooks/event-types","operation":"ListWebhookEventTypes","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Host authorization or application-owned scope, outside the merchant-bound business grant"},{"method":"GET","path":"/v2/webhooks/subscriptions","operation":"ListWebhookSubscriptions","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Host authorization or application-owned scope, outside the merchant-bound business grant"},{"method":"POST","path":"/v2/webhooks/subscriptions","operation":"CreateWebhookSubscription","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Host authorization or application-owned scope, outside the merchant-bound business grant"},{"method":"DELETE","path":"/v2/webhooks/subscriptions/{subscription_id}","operation":"DeleteWebhookSubscription","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Host authorization or application-owned scope, outside the merchant-bound business grant"},{"method":"GET","path":"/v2/webhooks/subscriptions/{subscription_id}","operation":"RetrieveWebhookSubscription","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Host authorization or application-owned scope, outside the merchant-bound business grant"},{"method":"PUT","path":"/v2/webhooks/subscriptions/{subscription_id}","operation":"UpdateWebhookSubscription","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Host authorization or application-owned scope, outside the merchant-bound business grant"},{"method":"POST","path":"/v2/webhooks/subscriptions/{subscription_id}/signature-key","operation":"UpdateWebhookSubscriptionSignatureKey","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Host authorization or application-owned scope, outside the merchant-bound business grant"},{"method":"POST","path":"/v2/webhooks/subscriptions/{subscription_id}/test","operation":"TestWebhookSubscription","stage":"PUBLIC","source_url":"https://github.com/square/connect-api-specification/blob/0689c901bdfe1ff73f47aa28b17ccd6e0c40bf2d/api.json","excluded_reason":"Host authorization or application-owned scope, outside the merchant-bound business grant"}],"model":{"components":{"securitySchemes":{"oauth2":{"type":"oauth2","x-additional-headers":[{"name":"Square-Version","description":"Square Connect API versions","schema":{"default":"2026-09-16"}}],"flows":{"authorizationCode":{"authorizationUrl":"https://connect.squareup.com/oauth2/authorize","tokenUrl":"https://connect.squareup.com/oauth2/token","scopes":{"ADDON_CONFIGURATIONS_READ":"__HTTP Method__: `GET`\n\nGrants write access for third-party Add-ons to read configurations of their Add-ons, for example, when calling `RetrieveConfiguration` endpoint.","ADDON_CONFIGURATIONS_WRITE":"__HTTP Method__: `POST`, `PUT`, `DELETE`\n\nGrants write access for third-party Add-ons to store configurations of their Add-ons, for example, when calling `CreateConfiguration` endpoint.","APPOINTMENTS_ALL_READ":"__HTTP Method__: `GET`, `POST`\n\nGrants read access to all of a seller's booking information, calendar, and business details.\nThis permission must be accompanied by the `APPOINTMENTS_READ` permission.","APPOINTMENTS_ALL_WRITE":"__HTTP Method__: `POST`, `PUT`, `DELETE`\n\nGrants write access to all booking details, including double-booking a seller.\nThis permission must be accompanied by the `APPOINTMENTS_WRITE` permission.","APPOINTMENTS_BUSINESS_SETTINGS_READ":"__HTTP Method__: `GET`\n\nGrants read access to booking business settings. For example, to call the\nListTeamMemberBookingProfiles endpoint.","APPOINTMENTS_READ":"__HTTP Method__: `GET`, `POST`\n\nGrants read access to booking information. For example, to call the\nRetrieveBooking endpoint.","APPOINTMENTS_WRITE":"__HTTP Method__: `POST`, `PUT`, `DELETE`\n\nGrants write access to booking information. For example, to call the CreateBooking endpoint.","BANK_ACCOUNTS_READ":"__HTTP Method__: `GET`\n\nGrants read access to bank account information associated with the targeted\nSquare account. For example, to call the Connect v1 ListBankAccounts endpoint.","CASH_DRAWER_READ":"__HTTP Method__: `GET`\n\nGrants read access to cash drawer shift information. For example, to call the\nListCashDrawerShifts endpoint.","CHANNELS_CREATE":"__HTTP Method__: `POST`\n\nGrants write access to create channels, for example, when calling the\n`CreateChannel` endpoint.","CHANNELS_READ":"__HTTP Method__: `GET`\n\nGrants read access to view channels, for example, when calling the\n`RetrieveChannel` endpoint.","CHANNELS_UPDATE":"__HTTP Method__: `PUT`\n\nGrants write access to update channels, for example, when calling the\n`UpdateChannel` endpoint.","CUSTOMERS_READ":"__HTTP Method__: `GET`\n\nGrants read access to customer information. For example, to call the\nListCustomers endpoint.","CUSTOMERS_WRITE":"__HTTP Method__: `POST`, `PUT`, `DELETE`\n\nGrants write access to customer information. For example, to create and update\ncustomer profiles.","DEVICES_READ":"__HTTP Method__: `GET`\n\nGrants read access to device information. For example, to\ncall the `GetDevice` and `ListDevices` endpoints.","DEVICE_CREDENTIAL_MANAGEMENT":"__HTTP Method__: `POST`, `GET`\n\nGrants read/write access to device credentials information. For example, to\ncall the CreateDeviceCode endpoint.","DISCOUNT_CODES_READ":"__HTTP Method__: `GET`\n\nGrants read access to Discount Codes API. For example, to call the `RetrieveDiscountCode` and `RetrieveRedemption` endpoints.","DISCOUNT_CODES_WRITE":"__HTTP Method__: `POST`\n\nGrants write access to Discount Codes API.","DISPUTES_READ":"__HTTP Method__: `GET`\n\nGrants read access to dispute information. For example, to call the RetrieveDispute\nendpoint.","DISPUTES_WRITE":"__HTTP Method__: `POST`, `PUT`, `DELETE`\n\nGrants write access to dispute information. For example, to call the SubmitEvidence\nendpoint.","EMPLOYEES_READ":"__HTTP Method__: `GET`\n\nGrants read access to employee profile information. For example, to call the\nConnect v1 Employees API.","EMPLOYEES_WRITE":"__HTTP Method__: `POST`, `PUT`, `DELETE`\n\nGrants write access to employee profile information. For example, to create\nand modify employee profiles.","GIFTCARDS_READ":"__HTTP Method__: `GET`, `POST`\n\nGrants read access to gift card information. For example, to call the RetrieveGiftCard\nendpoint.","GIFTCARDS_WRITE":"__HTTP Method__: `POST`, `PUT`, `DELETE`\n\nGrants write access to gift card information. For example, to call the CreateGiftCard\nendpoint.","INVENTORY_READ":"__HTTP Method__: `GET`\n\nGrants read access to inventory information. For example, to call the\nRetrieveInventoryCount endpoint.","INVENTORY_WRITE":"__HTTP Method__: `POST`, `PUT`, `DELETE`\n\nGrants write access to inventory information. For example, to call the\nBatchChangeInventory endpoint.","INVOICES_READ":"__HTTP Method__: `GET`, `POST`\n\nGrants read access to invoice information. For example, to call the ListInvoices endpoint.","INVOICES_WRITE":"__HTTP Method__: `POST`, `PUT`, `DELETE`\n\nGrants write access to invoice information. For example, to call the CreateInvoice endpoint.","ITEMS_READ":"__HTTP Method__: `GET`\n\nGrants read access to product catalog information. For example, to obtain objects in a product catalog.","ITEMS_WRITE":"__HTTP Method__: `POST`, `PUT`, `DELETE`\n\nGrants write access to product catalog information. For example, to modify or\nadd to a product catalog.","LOYALTY_READ":"__HTTP Method__: `GET`\n\nGrants read access to loyalty information. For example, to call the\nListLoyaltyPrograms endpoint.","LOYALTY_WRITE":"__HTTP Method__: `POST`, `PUT`, `DELETE`\n\nGrants write access to loyalty information. For example, to call the\nCreateLoyaltyAccount endpoint.","MERCHANT_PROFILE_READ":"__HTTP Method__: `GET`\n\nGrants read access to business and location information. For example, to\nobtain a location ID for subsequent activity.","MERCHANT_PROFILE_WRITE":"__HTTP Method__: `POST`, `PUT`\n\nGrants write access to business and location information. For example, to create a new location or\nupdate the business hours at an existing location.","ONLINE_STORE_SITE_READ":"__HTTP Method__: `GET`, `POST`\n\nRead access to ECOM online store site details.","ONLINE_STORE_SNIPPETS_READ":"__HTTP Method__: `GET`, `POST`\n\nRead access to ECOM online store snippets on published websites.","ONLINE_STORE_SNIPPETS_WRITE":"__HTTP Method__: `POST`, `PUT`, `DELETE`\n\nWrite access to ECOM online store snippets on published websites.","ORDERS_READ":"__HTTP Method__: `GET`\n\nGrants read access to order information. For example, to call the\nBatchRetrieveOrders endpoint.","ORDERS_WRITE":"__HTTP Method__: `POST`, `PUT`, `DELETE`\n\nGrants write access to order information. For example, to call the\nCreateCheckout endpoint.","PAYMENTS_READ":"__HTTP Method__: `GET`\n\nGrants read access to transaction and refund information. For example, to call\nthe RetrieveTransaction endpoint.","PAYMENTS_WRITE":"__HTTP Method__: `POST`, `PUT`, `DELETE`\n\nGrants write access to transaction and refunds information. For example, to\nprocess payments with the Payments or Checkout API.","PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS":"__HTTP Method__: `POST`, `PUT`, `DELETE`\n\nAllow third party applications to deduct a portion of each transaction amount.\n__Required__ to use multiparty transaction functionality with the Payments\nAPI.","PAYMENTS_WRITE_IN_PERSON":"__HTTP Method__: `POST`, `PUT`, `DELETE`\n\nGrants write access to payments and refunds information. For example, to\nprocess in-person payments.","PAYMENTS_WRITE_SHARED_ONFILE":"__HTTP Method__: `POST`, `PUT`, `DELETE`\n\nAllows the developer to process payments on behalf of a seller using a shared on file payment method.","PAYOUTS_READ":"__HTTP Method__: `GET`\n\nGrants read access to payouts and payout entries information. For example,\nto call the Connect v2 `ListPayouts` endpoint.","PAYOUTS_WRITE":"__HTTP Method__: `POST`\n\nGrants access to schedule a payout.","PERMISSION_SETS_READ":"__HTTP Method__: `GET`\n\nGrants read access to Permission Sets. For example, to\ncall the `ListPermissionSets` and `RetrievePermissionSet` endpoints.","PERMISSION_SETS_WRITE":"__HTTP Method__: `PUT`\n\nGrants write access to Permission Sets.","RESERVATIONS_READ":"__HTTP Method__: `GET`\n\nGrants read access to reservation information, for example, when calling the\n`RetrieveReservation` endpoint.","RESERVATIONS_WRITE":"__HTTP Method__: `POST`, `PUT`, `DELETE`\n\nGrants write access to reservation information, for example, when calling the\n`CreateReservation` endpoint.","RESTAURANT_CHECKS_READ":"__HTTP Method__: `GET`\n\nGrants read access to check information, for example, when calling the\n`RetrieveCheck` endpoint.","SETTLEMENTS_READ":"__HTTP Method__: `GET`\n\nGrants read access to settlement (deposit) information. For example, to call\nthe Connect v1 ListSettlements endpoint.","SUBSCRIPTIONS_READ":"__HTTP Method__: `GET`, `POST`\n\nGrants read access to subscription information. For example, to call the RetrieveSubscription\nendpoint.","SUBSCRIPTIONS_WRITE":"__HTTP Method__: `POST`, `PUT`, `DELETE`\n\nGrants write access to subscription information. For example, to call the CreateSubscription\nendpoint.","TIMECARDS_READ":"__HTTP Method__: `GET`\n\nGrants read access to employee timecard information. For example, to call the\nConnect v2 SearchShifts endpoint.","TIMECARDS_SETTINGS_READ":"__HTTP Method__: `GET`\n\nGrants read access to employee timecard settings information. For example, to\ncall the GetBreakType endpoint.","TIMECARDS_SETTINGS_WRITE":"__HTTP Method__: `POST`, `PUT`, `DELETE`\n\nGrants write access to employee timecard settings information. For example, to\ncall the UpdateBreakType endpoint.","TIMECARDS_WRITE":"__HTTP Method__: `POST`, `PUT`, `DELETE`\n\nGrants write access to employee shift information. For example, to create\nand modify employee shifts.","VENDOR_READ":"__HTTP Method__: `GET`, `POST`\n\nGrants read access to vendor information, for example, when calling the\n`RetrieveVendor` endpoint.","VENDOR_WRITE":"__HTTP Method__: `POST`, `PUT`, `DELETE`\n\nGrants write access to vendor information, for example, when calling the\n`BulkUpdateVendors` endpoint."}}}},"oauth2ClientSecret":{"type":"apiKey","in":"header","name":"Authorization"}},"schemas":{"ACHDetails":{"type":"object","description":"ACH-specific details about `BANK_ACCOUNT` type payments with the `transfer_type` of `ACH`.","x-release-status":"PUBLIC","properties":{"routing_number":{"type":"string","description":"The routing number for the bank account.","maxLength":50,"nullable":true},"account_number_suffix":{"type":"string","description":"The last few digits of the bank account number.","minLength":1,"maxLength":4,"nullable":true},"account_type":{"type":"string","description":"The type of the bank account performing the transfer. The account type can be `CHECKING`,\n`SAVINGS`, or `UNKNOWN`.","maxLength":50,"nullable":true}}},"AcceptDisputeResponse":{"type":"object","description":"Defines the fields in an `AcceptDispute` response.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information about errors encountered during the request."},"dispute":{"$ref":"#/components/schemas/Dispute","description":"Details about the accepted dispute."}},"example":{"dispute":{"amount_money":{"amount":2500,"currency":"USD"},"brand_dispute_id":"100000809947","card_brand":"VISA","created_at":"2022-06-29T18:45:22.265Z","disputed_payment":{"payment_id":"zhyh1ch64kRBrrlfVhwjCEjZWzNZY"},"due_at":"2022-07-13T00:00:00.000Z","id":"XDgyFu7yo1E2S5lQGGpYn","location_id":"L1HN3ZMQK64X9","reason":"NO_KNOWLEDGE","reported_at":"2022-06-29T00:00:00.000Z","state":"ACCEPTED","updated_at":"2022-07-07T19:14:42.650Z","version":2}}},"AcceptedPaymentMethods":{"type":"object","x-release-status":"PUBLIC","properties":{"apple_pay":{"type":"boolean","description":"Whether Apple Pay is accepted at checkout.","nullable":true},"google_pay":{"type":"boolean","description":"Whether Google Pay is accepted at checkout.","nullable":true},"cash_app_pay":{"type":"boolean","description":"Whether Cash App Pay is accepted at checkout.","nullable":true},"afterpay_clearpay":{"type":"boolean","description":"Whether Afterpay/Clearpay is accepted at checkout.","nullable":true}}},"AccumulateLoyaltyPointsRequest":{"type":"object","description":"Represents an [AccumulateLoyaltyPoints](api-endpoint:Loyalty-AccumulateLoyaltyPoints) request.","x-release-status":"PUBLIC","x-params-example":"?account_id=5adcb100-07f1-4ee7-b8c6-6bb9ebc474bd","required":["accumulate_points","idempotency_key","location_id"],"properties":{"accumulate_points":{"$ref":"#/components/schemas/LoyaltyEventAccumulatePoints","description":"The points to add to the account. \nIf you are using the Orders API to manage orders, specify the order ID.\nOtherwise, specify the points to add."},"idempotency_key":{"type":"string","description":"A unique string that identifies the `AccumulateLoyaltyPoints` request. \nKeys can be any valid string but must be unique for every request.","minLength":1,"maxLength":128},"location_id":{"type":"string","description":"The [location](entity:Location) where the purchase was made."}},"example":{"accumulate_points":{"order_id":"RFZfrdtm3mhO1oGzf5Cx7fEMsmGZY"},"idempotency_key":"58b90739-c3e8-4b11-85f7-e636d48d72cb","location_id":"P034NEENMD09F"}},"AccumulateLoyaltyPointsResponse":{"type":"object","description":"Represents an [AccumulateLoyaltyPoints](api-endpoint:Loyalty-AccumulateLoyaltyPoints) response.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."},"event":{"$ref":"#/components/schemas/LoyaltyEvent","description":"The resulting loyalty event. Starting in Square version 2022-08-17, this field is no longer returned.","x-release-status":"DEPRECATED"},"events":{"type":"array","items":{"$ref":"#/components/schemas/LoyaltyEvent"},"description":"The resulting loyalty events. If the purchase qualifies for points, the `ACCUMULATE_POINTS` event\nis always included. When using the Orders API, the `ACCUMULATE_PROMOTION_POINTS` event is included\nif the purchase also qualifies for a loyalty promotion."}},"example":{"events":[{"accumulate_points":{"loyalty_program_id":"d619f755-2d17-41f3-990d-c04ecedd64dd","order_id":"RFZfrdtm3mhO1oGzf5Cx7fEMsmGZY","points":6},"created_at":"2020-05-08T21:41:12Z","id":"ee46aafd-1af6-3695-a385-276e2ef0be26","location_id":"P034NEENMD09F","loyalty_account_id":"5adcb100-07f1-4ee7-b8c6-6bb9ebc474bd","source":"LOYALTY_API","type":"ACCUMULATE_POINTS"}]}},"ActionCancelReason":{"type":"string","enum":["BUYER_CANCELED","SELLER_CANCELED","TIMED_OUT"],"x-enum-elements":[{"name":"BUYER_CANCELED","description":"A person canceled the `TerminalCheckout` from a Square device."},{"name":"SELLER_CANCELED","description":"A client canceled the `TerminalCheckout` using the API."},{"name":"TIMED_OUT","description":"The `TerminalCheckout` timed out (see `deadline_duration` on the `TerminalCheckout`)."}],"x-release-status":"PUBLIC"},"ActivityType":{"type":"string","enum":["ADJUSTMENT","APP_FEE_REFUND","APP_FEE_REVENUE","AUTOMATIC_SAVINGS","AUTOMATIC_SAVINGS_REVERSED","CHARGE","DEPOSIT_FEE","DEPOSIT_FEE_REVERSED","DISPUTE","ESCHEATMENT","FEE","FREE_PROCESSING","HOLD_ADJUSTMENT","INITIAL_BALANCE_CHANGE","MONEY_TRANSFER","MONEY_TRANSFER_REVERSAL","OPEN_DISPUTE","OTHER","OTHER_ADJUSTMENT","PAID_SERVICE_FEE","PAID_SERVICE_FEE_REFUND","REDEMPTION_CODE","REFUND","RELEASE_ADJUSTMENT","RESERVE_HOLD","RESERVE_RELEASE","RETURNED_PAYOUT","SQUARE_CAPITAL_PAYMENT","SQUARE_CAPITAL_REVERSED_PAYMENT","SUBSCRIPTION_FEE","SUBSCRIPTION_FEE_PAID_REFUND","SUBSCRIPTION_FEE_REFUND","TAX_ON_FEE","THIRD_PARTY_FEE","THIRD_PARTY_FEE_REFUND","PAYOUT","AUTOMATIC_BITCOIN_CONVERSIONS","AUTOMATIC_BITCOIN_CONVERSIONS_REVERSED","CREDIT_CARD_REPAYMENT","CREDIT_CARD_REPAYMENT_REVERSED","LOCAL_OFFERS_CASHBACK","LOCAL_OFFERS_FEE","PERCENTAGE_PROCESSING_ENROLLMENT","PERCENTAGE_PROCESSING_DEACTIVATION","PERCENTAGE_PROCESSING_REPAYMENT","PERCENTAGE_PROCESSING_REPAYMENT_REVERSED","PROCESSING_FEE","PROCESSING_FEE_REFUND","UNDO_PROCESSING_FEE_REFUND","GIFT_CARD_LOAD_FEE","GIFT_CARD_LOAD_FEE_REFUND","UNDO_GIFT_CARD_LOAD_FEE_REFUND","BALANCE_FOLDERS_TRANSFER","BALANCE_FOLDERS_TRANSFER_REVERSED","GIFT_CARD_POOL_TRANSFER","GIFT_CARD_POOL_TRANSFER_REVERSED","SQUARE_PAYROLL_TRANSFER","SQUARE_PAYROLL_TRANSFER_REVERSED"],"x-enum-elements":[{"name":"ADJUSTMENT","description":"A manual adjustment applied to the seller's account by Square."},{"name":"APP_FEE_REFUND","description":"A refund for an application fee on a payment."},{"name":"APP_FEE_REVENUE","description":"Revenue generated from an application fee on a payment."},{"name":"AUTOMATIC_SAVINGS","description":"An automatic transfer from the payment processing balance to the Square Savings account. These are generally proportional to the seller's sales."},{"name":"AUTOMATIC_SAVINGS_REVERSED","description":"An automatic transfer from the Square Savings account back to the processing balance. These are generally proportional to the seller's refunds."},{"name":"CHARGE","description":"A credit card payment capture."},{"name":"DEPOSIT_FEE","description":"A fee assessed because of a deposit, such as an instant deposit."},{"name":"DEPOSIT_FEE_REVERSED","description":"Indicates that Square returned a fee that was previously assessed because of a deposit, such as an instant deposit, back to the seller's account."},{"name":"DISPUTE","description":"The balance change due to a dispute event."},{"name":"ESCHEATMENT","description":"An escheatment entry for remittance."},{"name":"FEE","description":"The cost plus adjustment fee."},{"name":"FREE_PROCESSING","description":"Square offers free payments processing for a variety of business scenarios, including seller\nreferrals or when Square wants to apologize (for example, for a bug, customer service, or repricing complication).\nThis entry represents a credit to the seller for the purposes of free processing."},{"name":"HOLD_ADJUSTMENT","description":"An adjustment made by Square related to holding a payment."},{"name":"INITIAL_BALANCE_CHANGE","description":"An external change to a seller's balance (initial, in the sense that it causes the creation of the other activity types, such as a hold and refund)."},{"name":"MONEY_TRANSFER","description":"The balance change from a money transfer."},{"name":"MONEY_TRANSFER_REVERSAL","description":"The reversal of a money transfer."},{"name":"OPEN_DISPUTE","description":"The balance change for a chargeback that's been filed."},{"name":"OTHER","description":"Any other type that doesn't belong in the rest of the types."},{"name":"OTHER_ADJUSTMENT","description":"Any other type of adjustment that doesn't fall under existing types."},{"name":"PAID_SERVICE_FEE","description":"A fee paid to a third-party seller."},{"name":"PAID_SERVICE_FEE_REFUND","description":"A fee refunded to a third-party seller."},{"name":"REDEMPTION_CODE","description":"Repayment for a redemption code."},{"name":"REFUND","description":"A refund for an existing card payment."},{"name":"RELEASE_ADJUSTMENT","description":"An adjustment made by Square related to releasing a payment."},{"name":"RESERVE_HOLD","description":"Fees paid for a funding risk reserve."},{"name":"RESERVE_RELEASE","description":"Fees released from a risk reserve."},{"name":"RETURNED_PAYOUT","description":"An entry created when Square receives a response for the ACH file that Square sent indicating that the\nsettlement of the original entry failed."},{"name":"SQUARE_CAPITAL_PAYMENT","description":"A capital merchant cash advance (MCA) assessment. These are generally proportional to the merchant's sales but can be issued for other reasons related to the MCA."},{"name":"SQUARE_CAPITAL_REVERSED_PAYMENT","description":"A capital merchant cash advance (MCA) assessment refund. These are generally proportional to the merchant's refunds but can be issued for other reasons related to the MCA."},{"name":"SUBSCRIPTION_FEE","description":"A fee charged for subscription to a Square product."},{"name":"SUBSCRIPTION_FEE_PAID_REFUND","description":"A Square subscription fee that's been refunded."},{"name":"SUBSCRIPTION_FEE_REFUND","description":"The refund of a previously charged Square product subscription fee."},{"name":"TAX_ON_FEE","description":"The tax paid on fee amounts."},{"name":"THIRD_PARTY_FEE","description":"Fees collected by a third-party platform."},{"name":"THIRD_PARTY_FEE_REFUND","description":"Refunded fees from a third-party platform."},{"name":"PAYOUT","description":"The balance change due to a money transfer. Note that this type is never returned by the Payouts API."},{"name":"AUTOMATIC_BITCOIN_CONVERSIONS","description":"Indicates that the portion of each payment withheld by Square was automatically converted into bitcoin using Cash App. The seller manages their bitcoin in their Cash App account."},{"name":"AUTOMATIC_BITCOIN_CONVERSIONS_REVERSED","description":"Indicates that a withheld payment, which was scheduled to be converted into bitcoin using Cash App, was deposited back to the Square payments balance."},{"name":"CREDIT_CARD_REPAYMENT","description":"Indicates that a repayment toward the outstanding balance on the seller's Square credit card was made."},{"name":"CREDIT_CARD_REPAYMENT_REVERSED","description":"Indicates that a repayment toward the outstanding balance on the seller's Square credit card was reversed."},{"name":"LOCAL_OFFERS_CASHBACK","description":"Cashback amount given by a Square Local Offers seller to their customer for a purchase."},{"name":"LOCAL_OFFERS_FEE","description":"A commission fee paid by a Square Local Offers seller to Square for a purchase discovered through Square Local Offers."},{"name":"PERCENTAGE_PROCESSING_ENROLLMENT","description":"When activating Percentage Processing, a credit is applied to the seller’s account to offset any negative balance caused by a dispute."},{"name":"PERCENTAGE_PROCESSING_DEACTIVATION","description":"Deducting the outstanding Percentage Processing balance from the seller’s account. It's the final installment in repaying the dispute-induced negative balance through percentage processing."},{"name":"PERCENTAGE_PROCESSING_REPAYMENT","description":"Withheld funds from a payment to cover a negative balance. It's an installment to repay the amount from a dispute that had been offset during Percentage Processing enrollment."},{"name":"PERCENTAGE_PROCESSING_REPAYMENT_REVERSED","description":"The reversal of a percentage processing repayment that happens for example when a refund is issued for a payment."},{"name":"PROCESSING_FEE","description":"The processing fee for a payment. If sellers opt for Gross Settlement, i.e., direct bank withdrawal instead of deducting fees from daily sales, the processing fee is recorded separately as a new payout entry, not part of the CHARGE payout entry."},{"name":"PROCESSING_FEE_REFUND","description":"The processing fee for a payment refund issued by sellers enrolled in Gross Settlement. The refunded processing fee is recorded separately as a new payout entry, not part of the REFUND payout entry."},{"name":"UNDO_PROCESSING_FEE_REFUND","description":"When undoing a processing fee refund in a Gross Settlement payment, this payout entry type is used."},{"name":"GIFT_CARD_LOAD_FEE","description":"Fee collected during the sale or reload of a gift card. This fee, which is a portion of the amount loaded on the gift card, is deducted from the merchant's payment balance."},{"name":"GIFT_CARD_LOAD_FEE_REFUND","description":"Refund for fee charged during the sale or reload of a gift card."},{"name":"UNDO_GIFT_CARD_LOAD_FEE_REFUND","description":"The undo of a refund for a fee charged during the sale or reload of a gift card."},{"name":"BALANCE_FOLDERS_TRANSFER","description":"A transfer of funds to a banking folder. In the United States, the folder name is 'Checking Folder'; in Canada, it's 'Balance Folder.'"},{"name":"BALANCE_FOLDERS_TRANSFER_REVERSED","description":"A reversal of transfer of funds from a banking folder. In the United States, the folder name is 'Checking Folder'; in Canada, it's 'Balance Folder.'"},{"name":"GIFT_CARD_POOL_TRANSFER","description":"A transfer of gift card funds to a central gift card pool account. In franchises, when gift cards are loaded or reloaded at any location, the money transfers to the franchisor's account."},{"name":"GIFT_CARD_POOL_TRANSFER_REVERSED","description":"A reversal of transfer of gift card funds from a central gift card pool account. In franchises, when gift cards are loaded or reloaded at any location, the money transfers to the franchisor's account."},{"name":"SQUARE_PAYROLL_TRANSFER","description":"A payroll payment that was transferred to a team member’s bank account."},{"name":"SQUARE_PAYROLL_TRANSFER_REVERSED","description":"A payroll payment to a team member’s bank account that was deposited back to the seller’s account by Square."}],"x-release-status":"PUBLIC"},"AddGroupToCustomerResponse":{"type":"object","description":"Defines the fields that are included in the response body of\na request to the [AddGroupToCustomer](api-endpoint:Customers-AddGroupToCustomer) endpoint.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{}},"AdditionalRecipient":{"type":"object","description":"Represents an additional recipient (other than the merchant) receiving a portion of this tender.","x-release-status":"DEPRECATED","required":["location_id","amount_money"],"properties":{"location_id":{"type":"string","description":"The location ID for a recipient (other than the merchant) receiving a portion of this tender.","minLength":1,"maxLength":50},"description":{"type":"string","description":"The description of the additional recipient.","maxLength":100,"nullable":true},"amount_money":{"$ref":"#/components/schemas/Money","description":"The amount of money distributed to the recipient."},"receivable_id":{"type":"string","description":"The unique ID for the RETIRED `AdditionalRecipientReceivable` object. This field should be empty for any `AdditionalRecipient` objects created after the retirement.","maxLength":192,"nullable":true}}},"Address":{"type":"object","description":"Represents a postal address in a country. \nFor more information, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses).","x-release-status":"PUBLIC","properties":{"address_line_1":{"type":"string","description":"The first line of the address.\n\nFields that start with `address_line` provide the address's most specific\ndetails, like street number, street name, and building name. They do *not*\nprovide less specific details like city, state/province, or country (these\ndetails are provided in other fields).","nullable":true},"address_line_2":{"type":"string","description":"The second line of the address, if any.","nullable":true},"address_line_3":{"type":"string","description":"The third line of the address, if any.","nullable":true},"locality":{"type":"string","description":"The city or town of the address. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses).","nullable":true},"sublocality":{"type":"string","description":"A civil region within the address's `locality`, if any.","nullable":true},"sublocality_2":{"type":"string","description":"A civil region within the address's `sublocality`, if any.","nullable":true},"sublocality_3":{"type":"string","description":"A civil region within the address's `sublocality_2`, if any.","nullable":true},"administrative_district_level_1":{"type":"string","description":"A civil entity within the address's country. In the US, this\nis the state. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses).","nullable":true},"administrative_district_level_2":{"type":"string","description":"A civil entity within the address's `administrative_district_level_1`.\nIn the US, this is the county.","nullable":true},"administrative_district_level_3":{"type":"string","description":"A civil entity within the address's `administrative_district_level_2`,\nif any.","nullable":true},"postal_code":{"type":"string","description":"The address's postal code. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses).","nullable":true},"country":{"$ref":"#/components/schemas/Country","description":"The address's country, in the two-letter format of ISO 3166. For example, `US` or `FR`.\nSee [Country](#type-country) for possible values","nullable":true},"first_name":{"type":"string","description":"Optional first name when it's representing recipient.","nullable":true},"last_name":{"type":"string","description":"Optional last name when it's representing recipient.","nullable":true}}},"AdjustLoyaltyPointsRequest":{"type":"object","description":"Represents an [AdjustLoyaltyPoints](api-endpoint:Loyalty-AdjustLoyaltyPoints) request.","x-release-status":"PUBLIC","x-params-example":"?account_id=5adcb100-07f1-4ee7-b8c6-6bb9ebc474bd","required":["idempotency_key","adjust_points"],"properties":{"idempotency_key":{"type":"string","description":"A unique string that identifies this `AdjustLoyaltyPoints` request. \nKeys can be any valid string, but must be unique for every request.","minLength":1,"maxLength":128},"adjust_points":{"$ref":"#/components/schemas/LoyaltyEventAdjustPoints","description":"The points to add or subtract and the reason for the adjustment. To add points, specify a positive integer.\nTo subtract points, specify a negative integer."},"allow_negative_balance":{"type":"boolean","description":"Indicates whether to allow a negative adjustment to result in a negative balance. If `true`, a negative\nbalance is allowed when subtracting points. If `false`, Square returns a `BAD_REQUEST` error when subtracting\nthe specified number of points would result in a negative balance. The default value is `false`.","nullable":true}},"example":{"adjust_points":{"points":10,"reason":"Complimentary points"},"idempotency_key":"bc29a517-3dc9-450e-aa76-fae39ee849d1"}},"AdjustLoyaltyPointsResponse":{"type":"object","description":"Represents an [AdjustLoyaltyPoints](api-endpoint:Loyalty-AdjustLoyaltyPoints) request.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."},"event":{"$ref":"#/components/schemas/LoyaltyEvent","description":"The resulting event data for the adjustment."}},"example":{"event":{"adjust_points":{"loyalty_program_id":"d619f755-2d17-41f3-990d-c04ecedd64dd","points":10,"reason":"Complimentary points"},"created_at":"2020-05-08T21:42:32Z","id":"613a6fca-8d67-39d0-bad2-3b4bc45c8637","loyalty_account_id":"5adcb100-07f1-4ee7-b8c6-6bb9ebc474bd","source":"LOYALTY_API","type":"ADJUST_POINTS"}}},"AfterpayDetails":{"type":"object","description":"Additional details about Afterpay payments.","x-release-status":"PUBLIC","properties":{"email_address":{"type":"string","description":"Email address on the buyer's Afterpay account.","maxLength":255,"nullable":true}}},"ApplicationDetails":{"type":"object","description":"Details about the application that took the payment.","x-release-status":"PUBLIC","properties":{"square_product":{"$ref":"#/components/schemas/ApplicationDetailsExternalSquareProduct","description":"The Square product, such as Square Point of Sale (POS), \nSquare Invoices, or Square Virtual Terminal.\nSee [ExternalSquareProduct](#type-externalsquareproduct) for possible values","nullable":true},"application_id":{"type":"string","description":"The Square ID assigned to the application used to take the payment. \nApplication developers can use this information to identify payments that \ntheir application processed. \nFor example, if a developer uses a custom application to process payments, \nthis field contains the application ID from the Developer Dashboard. \nIf a seller uses a [Square App Marketplace](https://developer.squareup.com/docs/app-marketplace) \napplication to process payments, the field contains the corresponding application ID.","nullable":true}}},"ApplicationDetailsExternalSquareProduct":{"type":"string","enum":["APPOINTMENTS","ECOMMERCE_API","INVOICES","ONLINE_STORE","OTHER","RESTAURANTS","RETAIL","SQUARE_POS","TERMINAL_API","VIRTUAL_TERMINAL"],"x-enum-elements":[{"name":"APPOINTMENTS","description":""},{"name":"ECOMMERCE_API","description":""},{"name":"INVOICES","description":""},{"name":"ONLINE_STORE","description":""},{"name":"OTHER","description":""},{"name":"RESTAURANTS","description":""},{"name":"RETAIL","description":""},{"name":"SQUARE_POS","description":""},{"name":"TERMINAL_API","description":""},{"name":"VIRTUAL_TERMINAL","description":""}],"description":"A list of products to return to external callers.","x-release-status":"PUBLIC"},"ApplicationType":{"type":"string","enum":["TERMINAL_API"],"x-enum-elements":[{"name":"TERMINAL_API","description":""}],"x-release-status":"BETA"},"AppointmentSegment":{"type":"object","description":"Defines an appointment segment of a booking.","x-release-status":"PUBLIC","required":["team_member_id"],"properties":{"duration_minutes":{"type":"integer","description":"The time span in minutes of an appointment segment.","maximum":1500,"nullable":true},"service_variation_id":{"type":"string","description":"The ID of the [CatalogItemVariation](entity:CatalogItemVariation) object representing the service booked in this segment.","maxLength":36,"nullable":true},"team_member_id":{"type":"string","description":"The ID of the [TeamMember](entity:TeamMember) object representing the team member booked in this segment.","minLength":1,"maxLength":32},"service_variation_version":{"type":"integer","description":"The current version of the item variation representing the service booked in this segment.","format":"int64","nullable":true},"intermission_minutes":{"type":"integer","description":"Time between the end of this segment and the beginning of the subsequent segment.","readOnly":true},"any_team_member":{"type":"boolean","description":"Whether the customer accepts any team member, instead of a specific one, to serve this segment.","readOnly":true},"resource_ids":{"type":"array","items":{"type":"string"},"description":"The IDs of the seller-accessible resources used for this appointment segment.","readOnly":true}}},"ArchivedState":{"type":"string","enum":["ARCHIVED_STATE_NOT_ARCHIVED","ARCHIVED_STATE_ARCHIVED","ARCHIVED_STATE_ALL"],"x-enum-elements":[{"name":"ARCHIVED_STATE_NOT_ARCHIVED","description":"Requested items are not archived with the `is_archived` attribute set to `false`."},{"name":"ARCHIVED_STATE_ARCHIVED","description":"Requested items are archived with the `is_archived` attribute set to `true`."},{"name":"ARCHIVED_STATE_ALL","description":"Requested items can be archived or not archived."}],"description":"Defines the values for the `archived_state` query expression \nused in [SearchCatalogItems](api-endpoint:Catalog-SearchCatalogItems) \nto return the archived, not archived or either type of catalog items.","x-release-status":"PUBLIC"},"Availability":{"type":"object","description":"Defines an appointment slot that encapsulates the appointment segments, location and starting time available for booking.","x-release-status":"PUBLIC","properties":{"start_at":{"type":"string","description":"The RFC 3339 timestamp specifying the beginning time of the slot available for booking.","nullable":true},"location_id":{"type":"string","description":"The ID of the location available for booking.","maxLength":32,"readOnly":true},"appointment_segments":{"type":"array","items":{"$ref":"#/components/schemas/AppointmentSegment"},"description":"The list of appointment segments available for booking","nullable":true}}},"BankAccount":{"type":"object","description":"Represents a bank account. For more information about \nlinking a bank account to a Square account, see \n[Bank Accounts API](https://developer.squareup.com/docs/bank-accounts-api).","x-release-status":"PUBLIC","required":["id","account_number_suffix","country","currency","account_type","holder_name","primary_bank_identification_number","status","creditable","debitable"],"properties":{"id":{"type":"string","description":"The unique, Square-issued identifier for the bank account.","minLength":1,"maxLength":30},"account_number_suffix":{"type":"string","description":"The last few digits of the account number.","minLength":1},"country":{"$ref":"#/components/schemas/Country","description":"The ISO 3166 Alpha-2 country code where the bank account is based.\nSee [Country](#type-country) for possible values"},"currency":{"$ref":"#/components/schemas/Currency","description":"The 3-character ISO 4217 currency code indicating the operating\ncurrency of the bank account. For example, the currency code for US dollars\nis `USD`.\nSee [Currency](#type-currency) for possible values"},"account_type":{"$ref":"#/components/schemas/BankAccountType","description":"The financial purpose of the associated bank account.\nSee [BankAccountType](#type-bankaccounttype) for possible values"},"holder_name":{"type":"string","description":"Name of the account holder. This name must match the name \non the targeted bank account record.","minLength":1},"primary_bank_identification_number":{"type":"string","description":"Primary identifier for the bank. For more information, see \n[Bank Accounts API](https://developer.squareup.com/docs/bank-accounts-api).","maxLength":40},"secondary_bank_identification_number":{"type":"string","description":"Secondary identifier for the bank. For more information, see \n[Bank Accounts API](https://developer.squareup.com/docs/bank-accounts-api).","maxLength":40,"nullable":true},"debit_mandate_reference_id":{"type":"string","description":"Reference identifier that will be displayed to UK bank account owners\nwhen collecting direct debit authorization. Only required for UK bank accounts.","nullable":true},"reference_id":{"type":"string","description":"Client-provided identifier for linking the banking account to an entity\nin a third-party system (for example, a bank account number or a user identifier).","nullable":true},"location_id":{"type":"string","description":"The location to which the bank account belongs.","nullable":true},"status":{"$ref":"#/components/schemas/BankAccountStatus","description":"Read-only. The current verification status of this BankAccount object.\nSee [BankAccountStatus](#type-bankaccountstatus) for possible values"},"creditable":{"type":"boolean","description":"Indicates whether it is possible for Square to send money to this bank account."},"debitable":{"type":"boolean","description":"Indicates whether it is possible for Square to take money from this \nbank account."},"fingerprint":{"type":"string","description":"A Square-assigned, unique identifier for the bank account based on the\naccount information. The account fingerprint can be used to compare account\nentries and determine if the they represent the same real-world bank account.","nullable":true},"version":{"type":"integer","description":"The current version of the `BankAccount`."},"bank_name":{"type":"string","description":"Read only. Name of actual financial institution. \nFor example \"Bank of America\".","maxLength":100,"nullable":true},"customer_id":{"type":"string","description":"The ID of the customer who owns the bank account","readOnly":true,"x-release-status":"BETA"}}},"BankAccountCreatedEvent":{"type":"object","description":"Published when you link an external bank account to a Square\naccount in the Seller Dashboard. Square sets the initial status to\n`VERIFICATION_IN_PROGRESS` and publishes the event.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the target merchant associated with the event.","nullable":true},"location_id":{"type":"string","description":"The ID of the target location associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event this represents, `\"bank_account.created\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"Timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/BankAccountCreatedEventData","description":"Data associated with the event.","nullable":true}},"example":{"created_at":"2020-02-15T04:38:13Z","data":{"id":"bact:cgvL1yv43VFjexample","object":{"bank_account":{"account_number_suffix":"526","account_type":"CHECKING","bank_name":"Bank Name","country":"US","creditable":true,"currency":"USD","debitable":true,"holder_name":"John Doe","id":"bact:cgvL1yv43VFjexample","location_id":"S8GWD5DBJ3HF3","primary_bank_identification_number":"101211111","status":"VERIFICATION_IN_PROGRESS","version":1}},"type":"bank_account"},"event_id":"d214f854-adb1-4f56-b078-4b8697a3187a","location_id":"S8GWD5DBJ3HF3","merchant_id":"6SSW7HV8K2ST5","type":"bank_account.created"},"x-webhook":{"event":"bank_account.created","scopes":["BANK_ACCOUNTS_READ"]},"x-api":"#/components/x-apis/BankAccounts","x-since":"2020-02-26"},"BankAccountCreatedEventData":{"type":"object","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"Name of the affected object’s type, `\"bank_account\"`.","nullable":true},"id":{"type":"string","description":"ID of the affected bank account."},"object":{"$ref":"#/components/schemas/BankAccountCreatedEventObject","description":"An object containing the created bank account.","nullable":true}}},"BankAccountCreatedEventObject":{"type":"object","x-release-status":"PUBLIC","properties":{"bank_account":{"$ref":"#/components/schemas/BankAccount","description":"The created bank account.","nullable":true}}},"BankAccountDisabledEvent":{"type":"object","description":"Published when Square sets the status of a\n[BankAccount](entity:BankAccount) to `DISABLED`.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the target merchant associated with the event.","nullable":true},"location_id":{"type":"string","description":"The ID of the target location associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event this represents, `\"bank_account.disabled\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"Timestamp of when the event was disabled, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/BankAccountDisabledEventData","description":"Data associated with the event.","nullable":true}},"example":{"created_at":"2020-02-15T04:38:13Z","data":{"id":"bact:cgvL1yv43VFjexample","object":{"bank_account":{"account_number_suffix":"526","account_type":"CHECKING","bank_name":"Bank Name","country":"US","creditable":true,"currency":"USD","debitable":true,"holder_name":"John Doe","id":"bact:cgvL1yv43VFjexample","location_id":"S8GWD5DBJ3HF3","primary_bank_identification_number":"101211111","status":"DISABLED","version":5}},"type":"bank_account"},"event_id":"43e8b5c7-706f-49bf-8e2a-90fbe96af93e","location_id":"S8GWD5DBJ3HF3","merchant_id":"6SSW7HV8K2ST5","type":"bank_account.disabled"},"x-webhook":{"event":"bank_account.disabled","scopes":["BANK_ACCOUNTS_READ"]},"x-api":"#/components/x-apis/BankAccounts","x-since":"2020-02-26"},"BankAccountDisabledEventData":{"type":"object","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"Name of the affected object’s type, `\"bank_account\"`.","nullable":true},"id":{"type":"string","description":"ID of the affected bank account."},"object":{"$ref":"#/components/schemas/BankAccountDisabledEventObject","description":"An object containing the disabled bank account.","nullable":true}}},"BankAccountDisabledEventObject":{"type":"object","x-release-status":"PUBLIC","properties":{"bank_account":{"$ref":"#/components/schemas/BankAccount","description":"The disabled bank account.","nullable":true}}},"BankAccountPaymentDetails":{"type":"object","description":"Additional details about BANK_ACCOUNT type payments.","x-release-status":"PUBLIC","properties":{"bank_name":{"type":"string","description":"The name of the bank associated with the bank account.","maxLength":100,"nullable":true},"transfer_type":{"type":"string","description":"The type of the bank transfer. The type can be `ACH` or `UNKNOWN`.","maxLength":50,"nullable":true},"account_ownership_type":{"type":"string","description":"The ownership type of the bank account performing the transfer.\nThe type can be `INDIVIDUAL`, `COMPANY`, or `ACCOUNT_TYPE_UNKNOWN`.","maxLength":50,"nullable":true},"fingerprint":{"type":"string","description":"Uniquely identifies the bank account for this seller and can be used\nto determine if payments are from the same bank account.","maxLength":255,"nullable":true},"country":{"type":"string","description":"The two-letter ISO code representing the country the bank account is located in.","minLength":2,"maxLength":2,"nullable":true},"statement_description":{"type":"string","description":"The statement description as sent to the bank.","maxLength":1000,"nullable":true},"ach_details":{"$ref":"#/components/schemas/ACHDetails","description":"ACH-specific information about the transfer. The information is only populated\nif the `transfer_type` is `ACH`.","nullable":true},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information about errors encountered during the request.","nullable":true}}},"BankAccountStatus":{"type":"string","enum":["VERIFICATION_IN_PROGRESS","VERIFIED","DISABLED"],"x-enum-elements":[{"name":"VERIFICATION_IN_PROGRESS","description":"Indicates that the verification process has started. Some features\n(for example, creditable or debitable) may be provisionally enabled on the bank\naccount."},{"name":"VERIFIED","description":"Indicates that the bank account was successfully verified."},{"name":"DISABLED","description":"Indicates that the bank account is disabled and is permanently unusable\nfor funds transfer. A bank account can be disabled because of a failed verification\nattempt or a failed deposit attempt."}],"description":"Indicates the current verification status of a `BankAccount` object.","x-release-status":"PUBLIC"},"BankAccountType":{"type":"string","enum":["CHECKING","SAVINGS","INVESTMENT","OTHER","BUSINESS_CHECKING"],"x-enum-elements":[{"name":"CHECKING","description":"An account at a financial institution against which checks can be\ndrawn by the account depositor."},{"name":"SAVINGS","description":"An account at a financial institution that pays interest but cannot be\nused directly as money in the narrow sense of a medium of exchange."},{"name":"INVESTMENT","description":"An account at a financial institution that contains a deposit of funds\nand/or securities."},{"name":"OTHER","description":"An account at a financial institution which cannot be described by the\nother types."},{"name":"BUSINESS_CHECKING","description":"An account at a financial institution against which checks can be\ndrawn specifically for business purposes (non-personal use)."}],"description":"Indicates the financial purpose of the bank account.","x-release-status":"PUBLIC"},"BankAccountVerifiedEvent":{"type":"object","description":"Published when Square sets the status of a\n[BankAccount](entity:BankAccount) to `VERIFIED`.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the target merchant associated with the event.","nullable":true},"location_id":{"type":"string","description":"The ID of the target location associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event this represents, `\"bank_account.verified\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"Timestamp of when the event was verified, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/BankAccountVerifiedEventData","description":"Data associated with the event.","nullable":true}},"example":{"created_at":"2020-02-15T04:38:13Z","data":{"id":"bact:cgvL1yv43VFjexample","object":{"bank_account":{"account_number_suffix":"526","account_type":"CHECKING","bank_name":"Bank Name","country":"US","creditable":true,"currency":"USD","debitable":true,"holder_name":"John Doe","id":"bact:cgvL1yv43VFjexample","location_id":"S8GWD5DBJ3HF3","primary_bank_identification_number":"101211111","status":"VERIFIED","version":4}},"type":"bank_account"},"event_id":"4166853c-0e4c-4202-8fd8-7e65a8f42389","location_id":"S8GWD5DBJ3HF3","merchant_id":"6SSW7HV8K2ST5","type":"bank_account.verified"},"x-webhook":{"event":"bank_account.verified","scopes":["BANK_ACCOUNTS_READ"]},"x-api":"#/components/x-apis/BankAccounts","x-since":"2020-02-26"},"BankAccountVerifiedEventData":{"type":"object","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"Name of the affected object’s type, `\"bank_account\"`.","nullable":true},"id":{"type":"string","description":"ID of the affected bank account."},"object":{"$ref":"#/components/schemas/BankAccountVerifiedEventObject","description":"An object containing the verified bank account.","nullable":true}}},"BankAccountVerifiedEventObject":{"type":"object","x-release-status":"PUBLIC","properties":{"bank_account":{"$ref":"#/components/schemas/BankAccount","description":"The verified bank account.","nullable":true}}},"BatchChangeInventoryRequest":{"type":"object","x-release-status":"PUBLIC","required":["idempotency_key"],"properties":{"idempotency_key":{"type":"string","description":"A client-supplied, universally unique identifier (UUID) for the\nrequest.\n\nSee [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency) in the\n[API Development 101](https://developer.squareup.com/docs/buildbasics) section for more\ninformation.","minLength":1,"maxLength":128},"changes":{"type":"array","items":{"$ref":"#/components/schemas/InventoryChange"},"description":"The set of physical counts and inventory adjustments to be made.\nChanges are applied based on the client-supplied timestamp and may be sent\nout of order.","nullable":true},"ignore_unchanged_counts":{"type":"boolean","description":"Indicates whether the current physical count should be ignored if\nthe quantity is unchanged since the last physical count. Default: `true`.","nullable":true}},"example":{"changes":[{"physical_count":{"catalog_object_id":"W62UWFY35CWMYGVWK6TWJDNI","location_id":"C6W5YS5QM06F5","occurred_at":"2016-11-16T22:25:24.878Z","quantity":"53","reference_id":"1536bfbf-efed-48bf-b17d-a197141b2a92","state":"IN_STOCK","team_member_id":"LRK57NSQ5X7PUD05"},"type":"PHYSICAL_COUNT"}],"idempotency_key":"8fc6a5b0-9fe8-4b46-b46b-2ef95793abbe","ignore_unchanged_counts":true},"x-sq-sdk-sample-code":{"csharp":"/sdk_samples/Inventory/BatchChangeInventory/BatchChangeInventoryRequest.csharp","java":"/sdk_samples/Inventory/BatchChangeInventory/BatchChangeInventoryRequest.java","javascript":"/sdk_samples/Inventory/BatchChangeInventory/BatchChangeInventoryRequest.javascript","php":"/sdk_samples/Inventory/BatchChangeInventory/BatchChangeInventoryRequest.php","python":"/sdk_samples/Inventory/BatchChangeInventory/BatchChangeInventoryRequest.python","ruby":"/sdk_samples/Inventory/BatchChangeInventory/BatchChangeInventoryRequest.ruby"}},"BatchChangeInventoryResponse":{"type":"object","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."},"counts":{"type":"array","items":{"$ref":"#/components/schemas/InventoryCount"},"description":"The current counts for all objects referenced in the request."},"changes":{"type":"array","items":{"$ref":"#/components/schemas/InventoryChange"},"description":"Changes created for the request.","x-release-status":"BETA"}},"example":{"counts":[{"calculated_at":"2016-11-16T22:28:01.223Z","catalog_object_id":"W62UWFY35CWMYGVWK6TWJDNI","catalog_object_type":"ITEM_VARIATION","location_id":"C6W5YS5QM06F5","quantity":"53","state":"IN_STOCK"}],"errors":[]}},"BatchDeleteCatalogObjectsRequest":{"type":"object","x-release-status":"PUBLIC","required":["object_ids"],"properties":{"object_ids":{"type":"array","items":{"type":"string"},"description":"The IDs of the CatalogObjects to be deleted. When an object is deleted, other objects\nin the graph that depend on that object will be deleted as well (for example, deleting a\nCatalogItem will delete its CatalogItemVariation."}},"example":{"object_ids":["W62UWFY35CWMYGVWK6TWJDNI","AA27W3M2GGTF3H6AVPNB77CK"]},"x-sq-sdk-sample-code":{"csharp":"/sdk_samples/Catalog/BatchDeleteCatalogObjects/BatchDeleteCatalogObjectsRequest.csharp","java":"/sdk_samples/Catalog/BatchDeleteCatalogObjects/BatchDeleteCatalogObjectsRequest.java","javascript":"/sdk_samples/Catalog/BatchDeleteCatalogObjects/BatchDeleteCatalogObjectsRequest.javascript","php":"/sdk_samples/Catalog/BatchDeleteCatalogObjects/BatchDeleteCatalogObjectsRequest.php","python":"/sdk_samples/Catalog/BatchDeleteCatalogObjects/BatchDeleteCatalogObjectsRequest.python","ruby":"/sdk_samples/Catalog/BatchDeleteCatalogObjects/BatchDeleteCatalogObjectsRequest.ruby"}},"BatchDeleteCatalogObjectsResponse":{"type":"object","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."},"deleted_object_ids":{"type":"array","items":{"type":"string"},"description":"The IDs of all CatalogObjects deleted by this request."},"deleted_at":{"type":"string","description":"The database [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) of this deletion in RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\"."}},"example":{"deleted_at":"2016-11-16T22:25:24.878Z","deleted_object_ids":["W62UWFY35CWMYGVWK6TWJDNI","AA27W3M2GGTF3H6AVPNB77CK"]},"x-sq-sdk-sample-code":{"csharp":"/sdk_samples/Catalog/BatchDeleteCatalogObjects/BatchDeleteCatalogObjectsResponse.csharp","java":"/sdk_samples/Catalog/BatchDeleteCatalogObjects/BatchDeleteCatalogObjectsResponse.java","javascript":"/sdk_samples/Catalog/BatchDeleteCatalogObjects/BatchDeleteCatalogObjectsResponse.javascript","php":"/sdk_samples/Catalog/BatchDeleteCatalogObjects/BatchDeleteCatalogObjectsResponse.php","python":"/sdk_samples/Catalog/BatchDeleteCatalogObjects/BatchDeleteCatalogObjectsResponse.python","ruby":"/sdk_samples/Catalog/BatchDeleteCatalogObjects/BatchDeleteCatalogObjectsResponse.ruby"}},"BatchRetrieveCatalogObjectsRequest":{"type":"object","x-release-status":"PUBLIC","required":["object_ids"],"properties":{"object_ids":{"type":"array","items":{"type":"string"},"description":"The IDs of the CatalogObjects to be retrieved."},"include_related_objects":{"type":"boolean","description":"If `true`, the response will include additional objects that are related to the\nrequested objects. Related objects are defined as any objects referenced by ID by the results in the `objects` field\nof the response. These objects are put in the `related_objects` field. Setting this to `true` is\nhelpful when the objects are needed for immediate display to a user.\nThis process only goes one level deep. Objects referenced by the related objects will not be included. For example,\n\nif the `objects` field of the response contains a CatalogItem, its associated\nCatalogCategory objects, CatalogTax objects, CatalogImage objects and\nCatalogModifierLists will be returned in the `related_objects` field of the\nresponse. If the `objects` field of the response contains a CatalogItemVariation,\nits parent CatalogItem will be returned in the `related_objects` field of\nthe response.\n\nDefault value: `false`","nullable":true},"catalog_version":{"type":"integer","description":"The specific version of the catalog objects to be included in the response. \nThis allows you to retrieve historical versions of objects. The specified version value is matched against\nthe [CatalogObject](entity:CatalogObject)s' `version` attribute. If not included, results will\nbe from the current version of the catalog.","format":"int64","x-release-status":"BETA","nullable":true},"include_deleted_objects":{"type":"boolean","description":"Indicates whether to include (`true`) or not (`false`) in the response deleted objects, namely, those with the `is_deleted` attribute set to `true`.","nullable":true},"include_category_path_to_root":{"type":"boolean","description":"Specifies whether or not to include the `path_to_root` list for each returned category instance. The `path_to_root` list consists\nof `CategoryPathToRootNode` objects and specifies the path that starts with the immediate parent category of the returned category\nand ends with its root category. If the returned category is a top-level category, the `path_to_root` list is empty and is not returned\nin the response payload.","nullable":true},"include_options":{"$ref":"#/components/schemas/IncludeOptions","description":"Options to include related resources in the response.","x-release-status":"BETA","nullable":true}},"example":{"include_related_objects":true,"object_ids":["W62UWFY35CWMYGVWK6TWJDNI","AA27W3M2GGTF3H6AVPNB77CK"]},"x-sq-sdk-sample-code":{"csharp":"/sdk_samples/Catalog/BatchRetrieveCatalogObjects/BatchRetrieveCatalogObjectsRequest.csharp","java":"/sdk_samples/Catalog/BatchRetrieveCatalogObjects/BatchRetrieveCatalogObjectsRequest.java","javascript":"/sdk_samples/Catalog/BatchRetrieveCatalogObjects/BatchRetrieveCatalogObjectsRequest.javascript","php":"/sdk_samples/Catalog/BatchRetrieveCatalogObjects/BatchRetrieveCatalogObjectsRequest.php","python":"/sdk_samples/Catalog/BatchRetrieveCatalogObjects/BatchRetrieveCatalogObjectsRequest.python","ruby":"/sdk_samples/Catalog/BatchRetrieveCatalogObjects/BatchRetrieveCatalogObjectsRequest.ruby"}},"BatchRetrieveCatalogObjectsResponse":{"type":"object","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."},"objects":{"type":"array","items":{"$ref":"#/components/schemas/CatalogObject"},"description":"A list of [CatalogObject](entity:CatalogObject)s returned."},"related_objects":{"type":"array","items":{"$ref":"#/components/schemas/CatalogObject"},"description":"A list of [CatalogObject](entity:CatalogObject)s referenced by the object in the `objects` field."},"included_resources":{"$ref":"#/components/schemas/IncludedResources","description":"A list of [CatalogObject](entity:CatalogObject)s referenced by the object in the `objects` field and specifically requested.","x-release-status":"BETA"}},"example":{"objects":[{"id":"W62UWFY35CWMYGVWK6TWJDNI","is_deleted":false,"item_data":{"categories":[{"id":"BJNQCF2FJ6S6UIDT65ABHLRX","ordinal":0}],"description":"Hot Leaf Juice","name":"Tea","tax_ids":["HURXQOOAIC4IZSI2BEXQRYFY"],"variations":[{"id":"2TZFAOHWGG7PAK2QEXWYPZSP","is_deleted":false,"item_variation_data":{"item_id":"W62UWFY35CWMYGVWK6TWJDNI","name":"Mug","ordinal":0,"price_money":{"amount":150,"currency":"USD"},"pricing_type":"FIXED_PRICING"},"present_at_all_locations":true,"type":"ITEM_VARIATION","updated_at":"2016-11-16T22:25:24.878Z","version":1479335124878}]},"present_at_all_locations":true,"type":"ITEM","updated_at":"2016-11-16T22:25:24.878Z","version":1479335124878},{"id":"AA27W3M2GGTF3H6AVPNB77CK","is_deleted":false,"item_data":{"categories":[{"id":"BJNQCF2FJ6S6UIDT65ABHLRX","ordinal":0}],"description":"Hot Bean Juice","name":"Coffee","tax_ids":["HURXQOOAIC4IZSI2BEXQRYFY"],"variations":[{"id":"LBTYIHNHU52WOIHWT7SNRIYH","is_deleted":false,"item_variation_data":{"item_id":"AA27W3M2GGTF3H6AVPNB77CK","name":"Regular","ordinal":0,"price_money":{"amount":250,"currency":"USD"},"pricing_type":"FIXED_PRICING"},"present_at_all_locations":true,"type":"ITEM_VARIATION","updated_at":"2016-11-16T22:25:24.878Z","version":1479335124878},{"id":"PKYIC7HGGKW5CYVSCVDEIMHY","is_deleted":false,"item_variation_data":{"item_id":"AA27W3M2GGTF3H6AVPNB77CK","name":"Large","ordinal":1,"price_money":{"amount":350,"currency":"USD"},"pricing_type":"FIXED_PRICING"},"present_at_all_locations":true,"type":"ITEM_VARIATION","updated_at":"2016-11-16T22:25:24.878Z","version":1479335124878}]},"present_at_all_locations":true,"type":"ITEM","updated_at":"2016-11-16T22:25:24.878Z","version":1479335124878}],"related_objects":[{"category_data":{"name":"Beverages"},"id":"BJNQCF2FJ6S6UIDT65ABHLRX","is_deleted":false,"present_at_all_locations":true,"type":"CATEGORY","updated_at":"2016-11-16T22:25:24.878Z","version":1479335124878},{"id":"HURXQOOAIC4IZSI2BEXQRYFY","is_deleted":false,"present_at_all_locations":true,"tax_data":{"calculation_phase":"TAX_SUBTOTAL_PHASE","enabled":true,"inclusion_type":"ADDITIVE","name":"Sales Tax","percentage":"5.0"},"type":"TAX","updated_at":"2016-11-16T22:25:24.878Z","version":1479335124878}]},"x-sq-sdk-sample-code":{"csharp":"/sdk_samples/Catalog/BatchRetrieveCatalogObjects/BatchRetrieveCatalogObjectsResponse.csharp","java":"/sdk_samples/Catalog/BatchRetrieveCatalogObjects/BatchRetrieveCatalogObjectsResponse.java","javascript":"/sdk_samples/Catalog/BatchRetrieveCatalogObjects/BatchRetrieveCatalogObjectsResponse.javascript","php":"/sdk_samples/Catalog/BatchRetrieveCatalogObjects/BatchRetrieveCatalogObjectsResponse.php","python":"/sdk_samples/Catalog/BatchRetrieveCatalogObjects/BatchRetrieveCatalogObjectsResponse.python","ruby":"/sdk_samples/Catalog/BatchRetrieveCatalogObjects/BatchRetrieveCatalogObjectsResponse.ruby"}},"BatchRetrieveInventoryChangesRequest":{"type":"object","x-release-status":"PUBLIC","properties":{"catalog_object_ids":{"type":"array","items":{"type":"string"},"description":"The filter to return results by `CatalogObject` ID.\nThe filter is only applicable when set. The default value is null.","nullable":true},"location_ids":{"type":"array","items":{"type":"string"},"description":"The filter to return results by `Location` ID.\nThe filter is only applicable when set. The default value is null.","nullable":true},"types":{"type":"array","items":{"$ref":"#/components/schemas/InventoryChangeType"},"description":"The filter to return results by `InventoryChangeType` values other than `TRANSFER`.\nThe default value is `[PHYSICAL_COUNT, ADJUSTMENT]`.","nullable":true},"states":{"type":"array","items":{"$ref":"#/components/schemas/InventoryState"},"description":"The filter to return `ADJUSTMENT` query results by\n`InventoryState`. This filter is only applied when set.\nThe default value is null.","nullable":true},"updated_after":{"type":"string","description":"The filter to return results with their `calculated_at` value\nafter the given time as specified in an RFC 3339 timestamp.\nThe default value is the UNIX epoch of (`1970-01-01T00:00:00Z`).","nullable":true},"updated_before":{"type":"string","description":"The filter to return results with their `created_at` or `calculated_at` value\nstrictly before the given time as specified in an RFC 3339 timestamp.\nThe default value is the UNIX epoch of (`1970-01-01T00:00:00Z`).","nullable":true},"cursor":{"type":"string","description":"A pagination cursor returned by a previous call to this endpoint.\nProvide this to retrieve the next set of results for the original query.\n\nSee the [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide for more information.","nullable":true},"limit":{"type":"integer","description":"The number of [records](entity:InventoryChange) to return.","minimum":1,"maximum":1000,"nullable":true},"sort":{"$ref":"#/components/schemas/BatchRetrieveInventoryChangesSort","description":"Specification of how returned inventory changes should be ordered.\n\nCurrently, inventory changes can only be ordered by the occurred_at field.\nThe default sort order for occurred_at is ASC (changes are returned oldest-first by default).","x-release-status":"BETA","nullable":true},"reason_ids":{"type":"array","items":{"$ref":"#/components/schemas/InventoryAdjustmentReasonId"},"description":"The filter to return `ADJUSTMENT` query results by inventory\nadjustment reason. This filter is only applied when set. The request cannot\ninclude both `reason_ids` and `states`.","x-release-status":"BETA","nullable":true}},"example":{"catalog_object_ids":["W62UWFY35CWMYGVWK6TWJDNI"],"location_ids":["C6W5YS5QM06F5"],"states":["IN_STOCK"],"types":["PHYSICAL_COUNT"],"updated_after":"2016-11-01T00:00:00.000Z","updated_before":"2016-12-01T00:00:00.000Z"},"x-sq-sdk-sample-code":{"csharp":"/sdk_samples/Inventory/BatchRetrieveInventoryChanges/BatchRetrieveInventoryChangesRequest.csharp","java":"/sdk_samples/Inventory/BatchRetrieveInventoryChanges/BatchRetrieveInventoryChangesRequest.java","javascript":"/sdk_samples/Inventory/BatchRetrieveInventoryChanges/BatchRetrieveInventoryChangesRequest.javascript","php":"/sdk_samples/Inventory/BatchRetrieveInventoryChanges/BatchRetrieveInventoryChangesRequest.php","python":"/sdk_samples/Inventory/BatchRetrieveInventoryChanges/BatchRetrieveInventoryChangesRequest.python","ruby":"/sdk_samples/Inventory/BatchRetrieveInventoryChanges/BatchRetrieveInventoryChangesRequest.ruby"}},"BatchRetrieveInventoryChangesResponse":{"type":"object","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."},"changes":{"type":"array","items":{"$ref":"#/components/schemas/InventoryChange"},"description":"The current calculated inventory changes for the requested objects\nand locations."},"cursor":{"type":"string","description":"The pagination cursor to be used in a subsequent request. If unset,\nthis is the final response.\nSee the [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide for more information."}},"example":{"changes":[{"physical_count":{"catalog_object_id":"W62UWFY35CWMYGVWK6TWJDNI","catalog_object_type":"ITEM_VARIATION","created_at":"2016-11-16T22:25:24.878Z","id":"46YDTW253DWGGK9HMAE6XCAO","location_id":"C6W5YS5QM06F5","occurred_at":"2016-11-16T22:24:49.028Z","quantity":"86","reference_id":"22c07cf4-5626-4224-89f9-691112019399","source":{"application_id":"416ff29c-86c4-4feb-b58c-9705f21f3ea0","name":"Square Point of Sale 4.37","product":"SQUARE_POS"},"state":"IN_STOCK","team_member_id":"LRK57NSQ5X7PUD05"},"type":"PHYSICAL_COUNT"}],"errors":[]}},"BatchRetrieveInventoryChangesSort":{"type":"object","x-release-status":"BETA","properties":{"field":{"$ref":"#/components/schemas/BatchRetrieveInventoryChangesSortField","description":"The field to sort inventory changes by.\nSee [Field](#type-field) for possible values","nullable":true},"order":{"$ref":"#/components/schemas/SortOrder","description":"The order to sort inventory changes by.\nSee [SortOrder](#type-sortorder) for possible values","nullable":true}}},"BatchRetrieveInventoryChangesSortField":{"type":"string","enum":["OCCURRED_AT"],"x-enum-elements":[{"name":"OCCURRED_AT","description":""}],"x-release-status":"BETA"},"BatchRetrieveInventoryCountsRequest":{"type":"object","x-release-status":"PUBLIC","properties":{"catalog_object_ids":{"type":"array","items":{"type":"string"},"description":"The filter to return results by `CatalogObject` ID.\nThe filter is applicable only when set. The default is null.","nullable":true},"location_ids":{"type":"array","items":{"type":"string"},"description":"The filter to return results by `Location` ID.\nThis filter is applicable only when set. The default is null.","nullable":true},"updated_after":{"type":"string","description":"The filter to return results with their `calculated_at` value\nafter the given time as specified in an RFC 3339 timestamp.\nThe default value is the UNIX epoch of (`1970-01-01T00:00:00Z`).","nullable":true},"cursor":{"type":"string","description":"A pagination cursor returned by a previous call to this endpoint.\nProvide this to retrieve the next set of results for the original query.\n\nSee the [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide for more information.","nullable":true},"states":{"type":"array","items":{"$ref":"#/components/schemas/InventoryState"},"description":"The filter to return results by `InventoryState`. The filter is only applicable when set.\nIgnored are untracked states of `NONE`, `SOLD`, and `UNLINKED_RETURN`.\nThe default is null.","nullable":true},"limit":{"type":"integer","description":"The number of [records](entity:InventoryCount) to return.","minimum":1,"maximum":1000,"nullable":true}},"example":{"catalog_object_ids":["W62UWFY35CWMYGVWK6TWJDNI"],"location_ids":["59TNP9SA8VGDA"],"updated_after":"2016-11-16T00:00:00.000Z"},"x-sq-sdk-sample-code":{"csharp":"/sdk_samples/Inventory/BatchRetrieveInventoryCounts/BatchRetrieveInventoryCountsRequest.csharp","java":"/sdk_samples/Inventory/BatchRetrieveInventoryCounts/BatchRetrieveInventoryCountsRequest.java","javascript":"/sdk_samples/Inventory/BatchRetrieveInventoryCounts/BatchRetrieveInventoryCountsRequest.javascript","php":"/sdk_samples/Inventory/BatchRetrieveInventoryCounts/BatchRetrieveInventoryCountsRequest.php","python":"/sdk_samples/Inventory/BatchRetrieveInventoryCounts/BatchRetrieveInventoryCountsRequest.python","ruby":"/sdk_samples/Inventory/BatchRetrieveInventoryCounts/BatchRetrieveInventoryCountsRequest.ruby"}},"BatchRetrieveInventoryCountsResponse":{"type":"object","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."},"counts":{"type":"array","items":{"$ref":"#/components/schemas/InventoryCount"},"description":"The current calculated inventory counts for the requested objects\nand locations."},"cursor":{"type":"string","description":"The pagination cursor to be used in a subsequent request. If unset,\nthis is the final response.\n\nSee the [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide for more information."}},"example":{"counts":[{"calculated_at":"2016-11-16T22:28:01.223Z","catalog_object_id":"W62UWFY35CWMYGVWK6TWJDNI","catalog_object_type":"ITEM_VARIATION","location_id":"59TNP9SA8VGDA","quantity":"79","state":"IN_STOCK"}],"errors":[]}},"BatchRetrieveOrdersRequest":{"type":"object","description":"Defines the fields that are included in requests to the\n`BatchRetrieveOrders` endpoint.","x-release-status":"PUBLIC","required":["order_ids"],"properties":{"location_id":{"type":"string","description":"The ID of the location for these orders. This field is optional: omit it to retrieve\norders within the scope of the current authorization's merchant ID.","nullable":true},"order_ids":{"type":"array","items":{"type":"string"},"description":"The IDs of the orders to retrieve. A maximum of 100 orders can be retrieved per request."}},"example":{"location_id":"057P5VYJ4A5X1","order_ids":["CAISEM82RcpmcFBM0TfOyiHV3es","CAISENgvlJ6jLWAzERDzjyHVybY"]}},"BatchRetrieveOrdersResponse":{"type":"object","description":"Defines the fields that are included in the response body of\na request to the `BatchRetrieveOrders` endpoint.","x-release-status":"PUBLIC","properties":{"orders":{"type":"array","items":{"$ref":"#/components/schemas/Order"},"description":"The requested orders. This will omit any requested orders that do not exist."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{"orders":[{"id":"CAISEM82RcpmcFBM0TfOyiHV3es","line_items":[{"base_price_money":{"amount":1599,"currency":"USD"},"name":"Awesome product","quantity":"1","total_money":{"amount":1599,"currency":"USD"},"uid":"945986d1-9586-11e6-ad5a-28cfe92138cf"},{"base_price_money":{"amount":2000,"currency":"USD"},"name":"Another awesome product","quantity":"3","total_money":{"amount":6000,"currency":"USD"},"uid":"a8f4168c-9586-11e6-bdf0-28cfe92138cf"}],"location_id":"057P5VYJ4A5X1","reference_id":"my-order-001","total_money":{"amount":7599,"currency":"USD"}}]}},"BatchUpsertCatalogObjectsRequest":{"type":"object","x-release-status":"PUBLIC","required":["idempotency_key","batches"],"properties":{"idempotency_key":{"type":"string","description":"A value you specify that uniquely identifies this\nrequest among all your requests. A common way to create\na valid idempotency key is to use a Universally unique\nidentifier (UUID).\n\nIf you're unsure whether a particular request was successful,\nyou can reattempt it with the same idempotency key without\nworrying about creating duplicate objects.\n\nSee [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency) for more information.","minLength":1,"maxLength":128},"batches":{"type":"array","items":{"$ref":"#/components/schemas/CatalogObjectBatch"},"description":"A batch of CatalogObjects to be inserted/updated atomically.\nThe objects within a batch will be inserted in an all-or-nothing fashion, i.e., if an error occurs\nattempting to insert or update an object within a batch, the entire batch will be rejected. However, an error\nin one batch will not affect other batches within the same request.\n\nFor each object, its `updated_at` field is ignored and replaced with a current [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates), and its\n`is_deleted` field must not be set to `true`.\n\nTo modify an existing object, supply its ID. To create a new object, use an ID starting\nwith `#`. These IDs may be used to create relationships between an object and attributes of\nother objects that reference it. For example, you can create a CatalogItem with\nID `#ABC` and a CatalogItemVariation with its `item_id` attribute set to\n`#ABC` in order to associate the CatalogItemVariation with its parent\nCatalogItem.\n\nAny `#`-prefixed IDs are valid only within a single atomic batch, and will be replaced by server-generated IDs.\n\nEach batch may contain up to 1,000 objects. The total number of objects across all batches for a single request\nmay not exceed 10,000. If either of these limits is violated, an error will be returned and no objects will\nbe inserted or updated."}},"example":{"batches":[{"objects":[{"id":"#Tea","item_data":{"categories":[{"id":"#Beverages"}],"description_html":"<p><strong>Hot</strong> Leaf Juice</p>","name":"Tea","tax_ids":["#SalesTax"],"variations":[{"id":"#Tea_Mug","item_variation_data":{"item_id":"#Tea","name":"Mug","price_money":{"amount":150,"currency":"USD"},"pricing_type":"FIXED_PRICING"},"present_at_all_locations":true,"type":"ITEM_VARIATION"}]},"present_at_all_locations":true,"type":"ITEM"},{"id":"#Coffee","item_data":{"categories":[{"id":"#Beverages"}],"description_html":"<p>Hot <em>Bean Juice</em></p>","name":"Coffee","tax_ids":["#SalesTax"],"variations":[{"id":"#Coffee_Regular","item_variation_data":{"item_id":"#Coffee","name":"Regular","price_money":{"amount":250,"currency":"USD"},"pricing_type":"FIXED_PRICING"},"present_at_all_locations":true,"type":"ITEM_VARIATION"},{"id":"#Coffee_Large","item_variation_data":{"item_id":"#Coffee","name":"Large","price_money":{"amount":350,"currency":"USD"},"pricing_type":"FIXED_PRICING"},"present_at_all_locations":true,"type":"ITEM_VARIATION"}]},"present_at_all_locations":true,"type":"ITEM"},{"category_data":{"name":"Beverages"},"id":"#Beverages","present_at_all_locations":true,"type":"CATEGORY"},{"id":"#SalesTax","present_at_all_locations":true,"tax_data":{"applies_to_custom_amounts":true,"calculation_phase":"TAX_SUBTOTAL_PHASE","enabled":true,"inclusion_type":"ADDITIVE","name":"Sales Tax","percentage":"5.0"},"type":"TAX"}]}],"idempotency_key":"789ff020-f723-43a9-b4b5-43b5dc1fa3dc"},"x-sq-sdk-sample-code":{"csharp":"/sdk_samples/Catalog/BatchUpsertCatalogObjects/BatchUpsertCatalogObjectsRequest.csharp","java":"/sdk_samples/Catalog/BatchUpsertCatalogObjects/BatchUpsertCatalogObjectsRequest.java","javascript":"/sdk_samples/Catalog/BatchUpsertCatalogObjects/BatchUpsertCatalogObjectsRequest.javascript","php":"/sdk_samples/Catalog/BatchUpsertCatalogObjects/BatchUpsertCatalogObjectsRequest.php","python":"/sdk_samples/Catalog/BatchUpsertCatalogObjects/BatchUpsertCatalogObjectsRequest.python","ruby":"/sdk_samples/Catalog/BatchUpsertCatalogObjects/BatchUpsertCatalogObjectsRequest.ruby"}},"BatchUpsertCatalogObjectsResponse":{"type":"object","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."},"objects":{"type":"array","items":{"$ref":"#/components/schemas/CatalogObject"},"description":"The created successfully created CatalogObjects."},"updated_at":{"type":"string","description":"The database [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) of this update in RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\"."},"id_mappings":{"type":"array","items":{"$ref":"#/components/schemas/CatalogIdMapping"},"description":"The mapping between client and server IDs for this upsert."}},"example":{"id_mappings":[{"client_object_id":"#Tea","object_id":"67GA7XA2FWMRYY2VCONTYZJR"},{"client_object_id":"#Coffee","object_id":"MQ4TZKOG3SR2EQI3TWEK4AH7"},{"client_object_id":"#Beverages","object_id":"XCS4SCGN4WQYE2VU4U3TKXEH"},{"client_object_id":"#SalesTax","object_id":"HP5VNYPKZKTNCKZ2Z5NPUH6A"},{"client_object_id":"#Tea_Mug","object_id":"CAJBHUIQH7ONTSZI2KTVOUP6"},{"client_object_id":"#Coffee_Regular","object_id":"GY2GXJTVVPQAPW43GFRR3NG6"},{"client_object_id":"#Coffee_Large","object_id":"JE6VHPSRQL6IWSN26C36CJ7W"}],"objects":[{"created_at":"2023-11-30T19:24:35.4Z","id":"67GA7XA2FWMRYY2VCONTYZJR","is_deleted":false,"item_data":{"categories":[{"id":"XCS4SCGN4WQYE2VU4U3TKXEH","ordinal":-2251731094208512}],"description":"Hot Leaf Juice","description_html":"<p><strong>Hot</strong> Leaf Juice</p>","description_plaintext":"Hot Leaf Juice","is_archived":false,"is_taxable":true,"name":"Tea","product_type":"REGULAR","tax_ids":["HP5VNYPKZKTNCKZ2Z5NPUH6A"],"variations":[{"created_at":"2023-11-30T19:24:35.4Z","id":"CAJBHUIQH7ONTSZI2KTVOUP6","is_deleted":false,"item_variation_data":{"item_id":"67GA7XA2FWMRYY2VCONTYZJR","name":"Mug","ordinal":0,"price_money":{"amount":150,"currency":"USD"},"pricing_type":"FIXED_PRICING","sellable":true,"stockable":true},"present_at_all_locations":true,"type":"ITEM_VARIATION","updated_at":"2023-11-30T19:24:35.4Z","version":1701372275400}]},"present_at_all_locations":true,"type":"ITEM","updated_at":"2023-11-30T19:24:35.4Z","version":1701372275400},{"created_at":"2023-11-30T19:24:35.4Z","id":"MQ4TZKOG3SR2EQI3TWEK4AH7","is_deleted":false,"item_data":{"categories":[{"id":"XCS4SCGN4WQYE2VU4U3TKXEH","ordinal":-2251662374731776}],"description":"Hot Bean Juice","description_html":"<p>Hot <em>Bean Juice</em></p>","description_plaintext":"Hot Bean Juice","is_archived":false,"is_taxable":true,"name":"Coffee","product_type":"REGULAR","tax_ids":["HP5VNYPKZKTNCKZ2Z5NPUH6A"],"variations":[{"created_at":"2023-11-30T19:24:35.4Z","id":"GY2GXJTVVPQAPW43GFRR3NG6","is_deleted":false,"item_variation_data":{"item_id":"MQ4TZKOG3SR2EQI3TWEK4AH7","name":"Regular","ordinal":0,"price_money":{"amount":250,"currency":"USD"},"pricing_type":"FIXED_PRICING","sellable":true,"stockable":true},"present_at_all_locations":true,"type":"ITEM_VARIATION","updated_at":"2023-11-30T19:24:35.4Z","version":1701372275400},{"created_at":"2023-11-30T19:24:35.4Z","id":"JE6VHPSRQL6IWSN26C36CJ7W","is_deleted":false,"item_variation_data":{"item_id":"MQ4TZKOG3SR2EQI3TWEK4AH7","name":"Large","ordinal":1,"price_money":{"amount":350,"currency":"USD"},"pricing_type":"FIXED_PRICING","sellable":true,"stockable":true},"present_at_all_locations":true,"type":"ITEM_VARIATION","updated_at":"2023-11-30T19:24:35.4Z","version":1701372275400}]},"present_at_all_locations":true,"type":"ITEM","updated_at":"2023-11-30T19:24:35.4Z","version":1701372275400},{"category_data":{"category_type":"REGULAR_CATEGORY","is_top_level":true,"name":"Beverages","online_visibility":true,"parent_category":{"ordinal":-2250837741010944}},"created_at":"2023-11-30T19:24:35.4Z","id":"XCS4SCGN4WQYE2VU4U3TKXEH","is_deleted":false,"present_at_all_locations":true,"type":"CATEGORY","updated_at":"2023-11-30T19:24:35.4Z","version":1701372275400},{"created_at":"2023-11-30T19:24:35.4Z","id":"HP5VNYPKZKTNCKZ2Z5NPUH6A","is_deleted":false,"present_at_all_locations":true,"tax_data":{"applies_to_custom_amounts":true,"calculation_phase":"TAX_SUBTOTAL_PHASE","enabled":true,"inclusion_type":"ADDITIVE","name":"Sales Tax","percentage":"5.0"},"type":"TAX","updated_at":"2023-11-30T19:24:35.4Z","version":1701372275400}]},"x-sq-sdk-sample-code":{"csharp":"/sdk_samples/Catalog/BatchUpsertCatalogObjects/BatchUpsertCatalogObjectsResponse.csharp","java":"/sdk_samples/Catalog/BatchUpsertCatalogObjects/BatchUpsertCatalogObjectsResponse.java","javascript":"/sdk_samples/Catalog/BatchUpsertCatalogObjects/BatchUpsertCatalogObjectsResponse.javascript","php":"/sdk_samples/Catalog/BatchUpsertCatalogObjects/BatchUpsertCatalogObjectsResponse.php","python":"/sdk_samples/Catalog/BatchUpsertCatalogObjects/BatchUpsertCatalogObjectsResponse.python","ruby":"/sdk_samples/Catalog/BatchUpsertCatalogObjects/BatchUpsertCatalogObjectsResponse.ruby"}},"Booking":{"type":"object","description":"Represents a booking as a time-bound service contract for a seller's staff member to provide a specified service\nat a given location to a requesting customer in one or more appointment segments.","x-release-status":"PUBLIC","properties":{"id":{"type":"string","description":"A unique ID of this object representing a booking.","maxLength":36,"readOnly":true},"version":{"type":"integer","description":"The revision number for the booking used for optimistic concurrency."},"status":{"$ref":"#/components/schemas/BookingStatus","description":"The status of the booking, describing where the booking stands with respect to the booking state machine.\nSee [BookingStatus](#type-bookingstatus) for possible values","readOnly":true},"created_at":{"type":"string","description":"The RFC 3339 timestamp specifying the creation time of this booking.","readOnly":true},"updated_at":{"type":"string","description":"The RFC 3339 timestamp specifying the most recent update time of this booking.","readOnly":true},"start_at":{"type":"string","description":"The RFC 3339 timestamp specifying the starting time of this booking.","nullable":true},"location_id":{"type":"string","description":"The ID of the [Location](entity:Location) object representing the location where the booked service is provided. Once set when the booking is created, its value cannot be changed.","maxLength":32,"nullable":true},"customer_id":{"type":"string","description":"The ID of the [Customer](entity:Customer) object representing the customer receiving the booked service.","maxLength":192,"nullable":true},"customer_note":{"type":"string","description":"The free-text field for the customer to supply notes about the booking. For example, the note can be preferences that cannot be expressed by supported attributes of a relevant [CatalogObject](entity:CatalogObject) instance.","maxLength":4096,"nullable":true},"seller_note":{"type":"string","description":"The free-text field for the seller to supply notes about the booking. For example, the note can be preferences that cannot be expressed by supported attributes of a specific [CatalogObject](entity:CatalogObject) instance.\nThis field should not be visible to customers.","maxLength":4096,"nullable":true},"appointment_segments":{"type":"array","items":{"$ref":"#/components/schemas/AppointmentSegment"},"description":"A list of appointment segments for this booking.","nullable":true},"transition_time_minutes":{"type":"integer","description":"Additional time at the end of a booking.\nApplications should not make this field visible to customers of a seller.","readOnly":true},"all_day":{"type":"boolean","description":"Whether the booking is of a full business day.","readOnly":true},"location_type":{"$ref":"#/components/schemas/BusinessAppointmentSettingsBookingLocationType","description":"The type of location where the booking is held.\nSee [BusinessAppointmentSettingsBookingLocationType](#type-businessappointmentsettingsbookinglocationtype) for possible values","nullable":true},"creator_details":{"$ref":"#/components/schemas/BookingCreatorDetails","description":"Information about the booking creator.","readOnly":true},"source":{"$ref":"#/components/schemas/BookingBookingSource","description":"The source of the booking.\nAccess to this field requires seller-level permissions.\nSee [BookingBookingSource](#type-bookingbookingsource) for possible values","readOnly":true},"address":{"$ref":"#/components/schemas/Address","description":"Stores a customer address if the location type is `CUSTOMER_LOCATION`.","nullable":true}}},"BookingBookingSource":{"type":"string","enum":["FIRST_PARTY_MERCHANT","FIRST_PARTY_BUYER","THIRD_PARTY_BUYER","API"],"x-enum-elements":[{"name":"FIRST_PARTY_MERCHANT","description":"The booking was created by a seller from a Square Appointments application, such as the Square Appointments Dashboard or a Square Appointments mobile app."},{"name":"FIRST_PARTY_BUYER","description":"The booking was created by a buyer from a Square Appointments application, such as Square Online Booking Site."},{"name":"THIRD_PARTY_BUYER","description":"The booking was created by a buyer created from a third-party application."},{"name":"API","description":"The booking was created by a seller or a buyer from the Square Bookings API."}],"description":"Supported sources a booking was created from.","x-release-status":"PUBLIC"},"BookingCreatedEvent":{"type":"object","description":"Published when a booking is created.\n\nTo receive this event with buyer-level permissions, you must have `APPOINTMENTS_READ` set for the OAuth scope. \nTo receive this event with seller-level permissions, you must have `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` set for the OAuth scope.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the target seller associated with the event.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"booking.created\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"The timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/BookingCreatedEventData","description":"The data associated with the event.","nullable":true}},"example":{"created_at":"2020-12-08T19:56:53Z","data":{"id":"i2id2g3enyspi7:0","object":{"booking":{"appointment_segments":[{"duration_minutes":30,"service_variation_id":"T3WUWYFJOVW2EU6XGRU5YG4A","service_variation_version":1605808735978,"team_member_id":"_4GsfYnqGHyurOwzWdKj"}],"created_at":"2020-12-08T19:56:53Z","customer_id":"SSKBT02ECWZXK6W3VWYC78E52R","customer_note":"","id":"i2id2g3enyspi7","location_id":"L9R0X9X5SGDBJ","seller_note":"","start_at":"2020-12-17T16:00:00Z","status":"ACCEPTED","updated_at":"2020-12-08T19:56:53Z","version":0}},"type":"booking"},"event_id":"76193e8a-db85-53c6-b538-1837519cbc12","location_id":"L9R0X9X5SGDBJ","merchant_id":"GQQWA3J6A3AEZ","type":"booking.created"},"x-webhook":{"event":"booking.created","scopes":["APPOINTMENTS_READ"]},"x-api":"#/components/x-apis/Bookings","x-since":"2020-12-16"},"BookingCreatedEventData":{"type":"object","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"The type of the event data object. The value is `\"booking\"`.","maxLength":50,"nullable":true},"id":{"type":"string","description":"The ID of the event data object.","maxLength":192},"object":{"$ref":"#/components/schemas/BookingCreatedEventObject","description":"An object containing the created booking.","nullable":true}}},"BookingCreatedEventObject":{"type":"object","x-release-status":"PUBLIC","properties":{"booking":{"$ref":"#/components/schemas/Booking","description":"The created booking.","nullable":true}}},"BookingCreatorDetails":{"type":"object","description":"Information about a booking creator.","x-release-status":"PUBLIC","properties":{"creator_type":{"$ref":"#/components/schemas/BookingCreatorDetailsCreatorType","description":"The seller-accessible type of the creator of the booking.\nSee [BookingCreatorDetailsCreatorType](#type-bookingcreatordetailscreatortype) for possible values","readOnly":true},"team_member_id":{"type":"string","description":"The ID of the team member who created the booking, when the booking creator is of the `TEAM_MEMBER` type.\nAccess to this field requires seller-level permissions.","maxLength":32,"readOnly":true},"customer_id":{"type":"string","description":"The ID of the customer who created the booking, when the booking creator is of the `CUSTOMER` type.\nAccess to this field requires seller-level permissions.","maxLength":192,"readOnly":true}}},"BookingCreatorDetailsCreatorType":{"type":"string","enum":["TEAM_MEMBER","CUSTOMER"],"x-enum-elements":[{"name":"TEAM_MEMBER","description":"The creator is of the seller type."},{"name":"CUSTOMER","description":"The creator is of the buyer type."}],"description":"Supported types of a booking creator.","x-release-status":"PUBLIC"},"BookingCustomAttributeDefinitionOwnedCreatedEvent":{"type":"object","description":"Published when a booking [custom attribute definition](entity:CustomAttributeDefinition) \nis created by the subscribing application. Subscribe to this event to be notified \nwhen your application creates a booking custom attribute definition.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the seller associated with the event that triggered the event notification.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"booking.custom_attribute_definition.owned.created\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event notification.","nullable":true},"created_at":{"type":"string","description":"The timestamp that indicates when the event notification was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CustomAttributeDefinitionEventData","description":"The data associated with the event that triggered the event notification.","nullable":true}},"example":{"created_at":"2022-04-21T21:40:49.943Z","data":{"id":"sq0idp-LJ1Kr4Iim0hGDvAwrv8HIB:favorite-shampoo","object":{"created_at":"2022-04-21T21:40:49Z","description":"The customer's favorite shampoo","key":"sq0idp-LJ1Kr4Iim0hGDvAwrv8HIB:favorite-shampoo","name":"Favorite Shampoo","schema":{"$ref":"https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String"},"updated_at":"2022-04-21T21:40:49Z","version":1,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"type":"custom_attribute_definition"},"event_id":"347ab320-c0ba-48f5-959a-4e147b9aefcf","merchant_id":"DM7VKY8Q63GNP","type":"booking.custom_attribute_definition.owned.created"},"x-webhook":{"event":"booking.custom_attribute_definition.owned.created","scopes":["APPOINTMENTS_ALL_READ","APPOINTMENTS_READ"]},"x-api":"#/components/x-apis/BookingCustomAttributes","x-since":"2022-11-16"},"BookingCustomAttributeDefinitionOwnedDeletedEvent":{"type":"object","description":"Published when a booking [custom attribute definition](entity:CustomAttributeDefinition) \nis deleted by the subscribing application. Subscribe to this event to be notified \nwhen your application deletes a booking custom attribute definition.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the seller associated with the event that triggered the event notification.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"booking.custom_attribute_definition.owned.deleted\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event notification.","nullable":true},"created_at":{"type":"string","description":"The timestamp that indicates when the event notification was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CustomAttributeDefinitionEventData","description":"The data associated with the event that triggered the event notification.","nullable":true}},"example":{"created_at":"2022-04-26T01:22:29Z","data":{"deleted":true,"id":"sq0idp-LJ1Kr4Iim0hGDvAwrv8HIB:favorite-shampoo","object":{"created_at":"2022-04-21T21:40:49Z","description":"The customer's favorite shampoo","key":"sq0idp-LJ1Kr4Iim0hGDvAwrv8HIB:favorite-shampoo","name":"Favorite Shampoo","schema":{"$ref":"https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String"},"updated_at":"2022-04-27T11:31:29Z","version":3,"visibility":"VISIBILITY_READ_ONLY"},"type":"custom_attribute_definition"},"event_id":"49363646-7ae7-49b5-aaa0-296610883c61","merchant_id":"DM7VKY8Q63GNP","type":"booking.custom_attribute_definition.owned.deleted"},"x-webhook":{"event":"booking.custom_attribute_definition.owned.deleted","scopes":["APPOINTMENTS_ALL_READ","APPOINTMENTS_READ"]},"x-api":"#/components/x-apis/BookingCustomAttributes","x-since":"2022-11-16"},"BookingCustomAttributeDefinitionOwnedUpdatedEvent":{"type":"object","description":"Published when a booking [custom attribute definition](entity:CustomAttributeDefinition) \nis updated by the subscribing application. Subscribe to this event to be notified \nwhen your application updates a booking custom attribute definition.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the seller associated with the event that triggered the event notification.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"booking.custom_attribute_definition.owned.updated\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event notification.","nullable":true},"created_at":{"type":"string","description":"The timestamp that indicates when the event notification was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CustomAttributeDefinitionEventData","description":"The data associated with the event that triggered the event notification.","nullable":true}},"example":{"created_at":"2022-04-26T01:22:29Z","data":{"id":"sq0idp-LJ1Kr4Iim0hGDvAwrv8HIB:favorite-shampoo","object":{"created_at":"2022-04-21T21:57:39Z","description":"The customer's favorite shampoo","key":"sq0idp-LJ1Kr4Iim0hGDvAwrv8HIB:favorite-shampoo","name":"Favorite Shampoo","schema":{"$ref":"https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String"},"updated_at":"2022-04-26T01:22:29Z","version":2,"visibility":"VISIBILITY_READ_ONLY"},"type":"custom_attribute_definition"},"event_id":"d914e6ef-9e37-4bca-a663-ecc55f5d98d3","merchant_id":"DM7VKY8Q63GNP","type":"booking.custom_attribute_definition.owned.updated"},"x-webhook":{"event":"booking.custom_attribute_definition.owned.updated","scopes":["APPOINTMENTS_ALL_READ","APPOINTMENTS_READ"]},"x-api":"#/components/x-apis/BookingCustomAttributes","x-since":"2022-11-16"},"BookingCustomAttributeDefinitionVisibleCreatedEvent":{"type":"object","description":"Published when a booking [custom attribute definition](entity:CustomAttributeDefinition) \nwith the `visibility` field set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES` is created.\nAn application that subscribes to this event is notified when a booking custom attribute definition is created \nby any application for which the subscribing application has read access to the booking custom attribute definition.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the seller associated with the event that triggered the event notification.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"booking.custom_attribute_definition.visible.created\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event notification.","nullable":true},"created_at":{"type":"string","description":"The timestamp that indicates when the event notification was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CustomAttributeDefinitionEventData","description":"The data associated with the event that triggered the event notification.","nullable":true}},"example":{"created_at":"2022-04-21T21:40:49.943Z","data":{"id":"sq0idp-BushoY39o1X-GPxRRUWc0A:party-size","object":{"created_at":"2022-04-21T21:40:49Z","description":"Number of party members","key":"sq0idp-BushoY39o1X-GPxRRUWc0A:party-size","name":"Party Size","schema":{"$ref":"https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.Number"},"updated_at":"2022-04-21T21:40:49Z","version":1,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"type":"custom_attribute_definition"},"event_id":"f679dc4f-3619-4764-a4de-94a54735cd32","merchant_id":"DM7VKY8Q63GNP","type":"booking.custom_attribute_definition.visible.created"},"x-webhook":{"event":"booking.custom_attribute_definition.visible.created","scopes":["APPOINTMENTS_ALL_READ","APPOINTMENTS_READ"]},"x-api":"#/components/x-apis/BookingCustomAttributes","x-since":"2022-11-16"},"BookingCustomAttributeDefinitionVisibleDeletedEvent":{"type":"object","description":"Published when a booking [custom attribute definition](entity:CustomAttributeDefinition) \nwith the `visibility` field set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES` is deleted.\nAn application that subscribes to this event is notified when a booking custom attribute definition is deleted \nby any application for which the subscribing application has read access to the booking custom attribute definition.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the seller associated with the event that triggered the event notification.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"booking.custom_attribute_definition.visible.deleted\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event notification.","nullable":true},"created_at":{"type":"string","description":"The timestamp that indicates when the event notification was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CustomAttributeDefinitionEventData","description":"The data associated with the event that triggered the event notification.","nullable":true}},"example":{"created_at":"2022-04-26T01:22:29Z","data":{"deleted":true,"id":"sq0idp-BushoY39o1X-GPxRRUWc0A:party-size","object":{"created_at":"2022-04-21T21:40:49Z","description":"Number of party members","key":"sq0idp-BushoY39o1X-GPxRRUWc0A:party-size","name":"Party Size","schema":{"$ref":"https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.Number"},"updated_at":"2022-04-27T11:31:29Z","version":3,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"type":"custom_attribute_definition"},"event_id":"81c10a07-c329-4943-af20-7d70a300c7e6","merchant_id":"DM7VKY8Q63GNP","type":"booking.custom_attribute_definition.visible.deleted"},"x-webhook":{"event":"booking.custom_attribute_definition.visible.deleted","scopes":["APPOINTMENTS_ALL_READ","APPOINTMENTS_READ"]},"x-api":"#/components/x-apis/BookingCustomAttributes","x-since":"2022-11-16"},"BookingCustomAttributeDefinitionVisibleUpdatedEvent":{"type":"object","description":"Published when a booking [custom attribute definition](entity:CustomAttributeDefinition) \nwith the `visibility` field set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES` is updated.\nAn application that subscribes to this event is notified when a booking custom attribute definition is updated \nby any application for which the subscribing application has read access to the booking custom attribute definition.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the seller associated with the event that triggered the event notification.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"booking.custom_attribute_definition.visible.updated\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event notification.","nullable":true},"created_at":{"type":"string","description":"The timestamp that indicates when the event notification was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CustomAttributeDefinitionEventData","description":"The data associated with the event that triggered the event notification.","nullable":true}},"example":{"created_at":"2022-04-26T01:22:29Z","data":{"id":"sq0idp-BushoY39o1X-GPxRRUWc0A:party-size","object":{"created_at":"2022-04-21T21:57:39Z","description":"Number of party members","key":"sq0idp-BushoY39o1X-GPxRRUWc0A:party-size","name":"Party Size","schema":{"$ref":"https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.Number"},"updated_at":"2022-04-26T01:22:29Z","version":2,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"type":"custom_attribute_definition"},"event_id":"ae376c21-d360-4694-96c7-1b27830f07d7","merchant_id":"DM7VKY8Q63GNP","type":"booking.custom_attribute_definition.visible.updated"},"x-webhook":{"event":"booking.custom_attribute_definition.visible.updated","scopes":["APPOINTMENTS_ALL_READ","APPOINTMENTS_READ"]},"x-api":"#/components/x-apis/BookingCustomAttributes","x-since":"2022-11-16"},"BookingCustomAttributeDeleteRequest":{"type":"object","description":"Represents an individual delete request in a [BulkDeleteBookingCustomAttributes](api-endpoint:BookingCustomAttributes-BulkDeleteBookingCustomAttributes)\nrequest. An individual request contains a booking ID, the custom attribute to delete, and an optional idempotency key.","x-release-status":"PUBLIC","required":["booking_id","key"],"properties":{"booking_id":{"type":"string","description":"The ID of the target [booking](entity:Booking).","minLength":1,"maxLength":36},"key":{"type":"string","description":"The key of the custom attribute to delete. This key must match the `key` of a\ncustom attribute definition in the Square seller account. If the requesting application is not\nthe definition owner, you must use the qualified key.","minLength":1}}},"BookingCustomAttributeDeleteResponse":{"type":"object","description":"Represents a response for an individual upsert request in a [BulkDeleteBookingCustomAttributes](api-endpoint:BookingCustomAttributes-BulkDeleteBookingCustomAttributes) operation.","x-release-status":"PUBLIC","properties":{"booking_id":{"type":"string","description":"The ID of the [booking](entity:Booking) associated with the custom attribute."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred while processing the individual request."}},"example":{"booking_id":"N3NCVYY3WS27HF0HKANA3R9FP8","errors":[]}},"BookingCustomAttributeOwnedDeletedEvent":{"type":"object","description":"Published when a booking [custom attribute](entity:CustomAttribute) \nassociated with a [custom attribute definition](entity:CustomAttributeDefinition) that is\nowned by the subscribing application is deleted.\nSubscribe to this event to be notified \nwhen your application deletes a booking custom attribute.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the seller associated with the event that triggered the event notification.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"booking.custom_attribute.owned.deleted\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event notification.","nullable":true},"created_at":{"type":"string","description":"The timestamp that indicates when the event notification was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CustomAttributeEventData","description":"The data associated with the event that triggered the event notification.","nullable":true}},"example":{"created_at":"2022-04-26T01:22:29Z","data":{"deleted":true,"id":"sq0idp-LJ1Kr4Iim0hGDvAwrv8HIB:favorite-shampoo:BOOKING:TNQC0TYTWMRSFFQ157KK4V7MVR","object":{"created_at":"2022-04-21T21:58:59Z","key":"sq0idp-LJ1Kr4Iim0hGDvAwrv8HIB:favorite-shampoo","updated_at":"2022-04-27T11:31:29Z","value":"Generic shampoo","version":3,"visibility":"VISIBILITY_READ_ONLY"},"type":"custom_attribute"},"event_id":"f57b27d4-a4d6-43de-9e58-bc6ff90525f1","merchant_id":"DM7VKY8Q63GNP","type":"booking.custom_attribute.owned.deleted"},"x-webhook":{"event":"booking.custom_attribute.owned.deleted","scopes":["APPOINTMENTS_ALL_READ","APPOINTMENTS_READ"]},"x-api":"#/components/x-apis/BookingCustomAttributes","x-since":"2022-11-16"},"BookingCustomAttributeOwnedUpdatedEvent":{"type":"object","description":"Published when a booking [custom attribute](entity:CustomAttribute) \nis updated by the subscribing application. Subscribe to this event to be notified \nwhen your application updates a booking custom attribute.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the seller associated with the event that triggered the event notification.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"booking.custom_attribute.owned.updated\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event notification.","nullable":true},"created_at":{"type":"string","description":"The timestamp that indicates when the event notification was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CustomAttributeEventData","description":"The data associated with the event that triggered the event notification.","nullable":true}},"example":{"created_at":"2022-04-21T21:40:54Z","data":{"id":"sq0idp-LJ1Kr4Iim0hGDvAwrv8HIB:favorite-shampoo:BOOKING:TNQC0TYTWMRSFFQ157KK4V7MVR","object":{"created_at":"2022-04-21T21:40:54Z","key":"sq0idp-LJ1Kr4Iim0hGDvAwrv8HIB:favorite-shampoo","updated_at":"2022-04-21T21:40:54Z","value":"Volume up","version":1,"visibility":"VISIBILITY_READ_ONLY"},"type":"custom_attribute"},"event_id":"e26ca6f2-97f8-426a-b4bf-873044617e94","merchant_id":"DM7VKY8Q63GNP","type":"booking.custom_attribute.owned.updated"},"x-webhook":{"event":"booking.custom_attribute.owned.updated","scopes":["APPOINTMENTS_ALL_READ","APPOINTMENTS_READ"]},"x-api":"#/components/x-apis/BookingCustomAttributes","x-since":"2022-11-16"},"BookingCustomAttributeUpsertRequest":{"type":"object","description":"Represents an individual upsert request in a [BulkUpsertBookingCustomAttributes](api-endpoint:BookingCustomAttributes-BulkUpsertBookingCustomAttributes)\nrequest. An individual request contains a booking ID, the custom attribute to create or update,\nand an optional idempotency key.","x-release-status":"PUBLIC","required":["booking_id","custom_attribute"],"properties":{"booking_id":{"type":"string","description":"The ID of the target [booking](entity:Booking).","minLength":1,"maxLength":36},"custom_attribute":{"$ref":"#/components/schemas/CustomAttribute","description":"The custom attribute to create or update, with following fields:\n\n- `key`. This key must match the `key` of a custom attribute definition in the Square seller\naccount. If the requesting application is not the definition owner, you must provide the qualified key.\n\n- `value`. This value must conform to the `schema` specified by the definition.\nFor more information, see [Value data types](https://developer.squareup.com/docs/booking-custom-attributes-api/custom-attributes#value-data-types).\n\n- `version`. To enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency)\ncontrol for update operations, include this optional field in the request and set the\nvalue to the current version of the custom attribute."},"idempotency_key":{"type":"string","description":"A unique identifier for this individual upsert request, used to ensure idempotency.\nFor more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).","maxLength":45,"nullable":true}}},"BookingCustomAttributeUpsertResponse":{"type":"object","description":"Represents a response for an individual upsert request in a [BulkUpsertBookingCustomAttributes](api-endpoint:BookingCustomAttributes-BulkUpsertBookingCustomAttributes) operation.","x-release-status":"PUBLIC","properties":{"booking_id":{"type":"string","description":"The ID of the [booking](entity:Booking) associated with the custom attribute."},"custom_attribute":{"$ref":"#/components/schemas/CustomAttribute","description":"The new or updated custom attribute."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred while processing the individual request."}},"example":{"custom_attribute":{"created_at":"2022-11-16T00:14:47Z","key":"favoriteShampoo","updated_at":"2022-11-16T00:16:23Z","value":"Spring Fresh","version":1,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"errors":[]}},"BookingCustomAttributeVisibleDeletedEvent":{"type":"object","description":"Published when a booking [custom attribute](entity:CustomAttribute) with\nthe `visibility` field set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES` is deleted.\nAn application that subscribes to this event is notified when a booking custom attribute is deleted \nby any application for which the subscribing application has read access to the booking custom attribute.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the seller associated with the event that triggered the event notification.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"booking.custom_attribute.visible.deleted\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event notification.","nullable":true},"created_at":{"type":"string","description":"The timestamp that indicates when the event notification was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CustomAttributeEventData","description":"The data associated with the event that triggered the event notification.","nullable":true}},"example":{"created_at":"2022-04-26T01:22:29Z","data":{"deleted":true,"id":"sq0idp-BushoY39o1X-GPxRRUWc0A:party-size:BOOKING:TNQC0TYTWMRSFFQ157KK4V7MVR","object":{"created_at":"2022-04-21T21:58:59Z","key":"sq0idp-BushoY39o1X-GPxRRUWc0A:party-size","updated_at":"2022-04-27T11:31:29Z","value":"10","version":3,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"type":"custom_attribute"},"event_id":"18ef5adc-2efc-4ad9-9b1a-b274a607da3e","merchant_id":"DM7VKY8Q63GNP","type":"booking.custom_attribute.visible.deleted"},"x-webhook":{"event":"booking.custom_attribute.visible.deleted","scopes":["APPOINTMENTS_ALL_READ","APPOINTMENTS_READ"]},"x-api":"#/components/x-apis/BookingCustomAttributes","x-since":"2022-11-16"},"BookingCustomAttributeVisibleUpdatedEvent":{"type":"object","description":"Published when a booking [custom attribute](entity:CustomAttribute) \nwith the `visibility` field set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES` is updated.\nAn application that subscribes to this event is notified when a booking custom attribute is updated \nby any application for which the subscribing application has read access to the booking custom attribute.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the seller associated with the event that triggered the event notification.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"booking.custom_attribute.visible.updated\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event notification.","nullable":true},"created_at":{"type":"string","description":"The timestamp that indicates when the event notification was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CustomAttributeEventData","description":"The data associated with the event that triggered the event notification.","nullable":true}},"example":{"created_at":"2022-04-26T01:22:29Z","data":{"id":"sq0idp-BushoY39o1X-GPxRRUWc0A:party-size:BOOKING:TNQC0TYTWMRSFFQ157KK4V7MVR","object":{"created_at":"2022-04-21T21:40:54Z","key":"sq0idp-BushoY39o1X-GPxRRUWc0A:party-size","updated_at":"2022-04-26T01:22:29Z","value":"5","version":2,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"type":"custom_attribute"},"event_id":"1cc2925c-f6e2-4fb6-a597-07c198de59e1","merchant_id":"DM7VKY8Q63GNP","type":"booking.custom_attribute.visible.updated"},"x-webhook":{"event":"booking.custom_attribute.visible.updated","scopes":["APPOINTMENTS_ALL_READ","APPOINTMENTS_READ"]},"x-api":"#/components/x-apis/BookingCustomAttributes","x-since":"2022-11-16"},"BookingStatus":{"type":"string","enum":["PENDING","CANCELLED_BY_CUSTOMER","CANCELLED_BY_SELLER","DECLINED","ACCEPTED","NO_SHOW"],"x-enum-elements":[{"name":"PENDING","description":"An unaccepted booking. It is visible to both sellers and customers."},{"name":"CANCELLED_BY_CUSTOMER","description":"A customer-cancelled booking. It is visible to both the seller and the customer."},{"name":"CANCELLED_BY_SELLER","description":"A seller-cancelled booking. It is visible to both the seller and the customer."},{"name":"DECLINED","description":"A declined booking. It had once been pending, but was then declined by the seller."},{"name":"ACCEPTED","description":"An accepted booking agreed to or accepted by the seller."},{"name":"NO_SHOW","description":"A no-show booking. The booking was accepted at one time, but have now been marked as a no-show by\nthe seller because the client either missed the booking or cancelled it without enough notice."}],"description":"Supported booking statuses.","x-release-status":"PUBLIC"},"BookingUpdatedEvent":{"type":"object","description":"Published when a booking is updated or cancelled.\n\nTo receive this event with buyer-level permissions, you must have `APPOINTMENTS_READ` set for the OAuth scope. \nTo receive this event with seller-level permissions, you must have `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` set for the OAuth scope.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the target seller associated with the event.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"booking.updated\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"The timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/BookingUpdatedEventData","description":"The data associated with the event.","nullable":true}},"example":{"created_at":"2020-12-08T20:05:00Z","data":{"id":"i2id2g3enyspi7:1","object":{"booking":{"appointment_segments":[{"duration_minutes":30,"service_variation_id":"T3WUWYFJOVW2EU6XGRU5YG4A","service_variation_version":1605808735978,"team_member_id":"_4GsfYnqGHyurOwzWdKj"}],"created_at":"2020-12-08T19:56:53Z","customer_id":"SSKBT02ECWZXK6W3VWYC78E52R","customer_note":"I would like to sit near the window please","id":"i2id2g3enyspi7","location_id":"L9R0X9X5SGDBJ","seller_note":"","start_at":"2020-12-17T16:00:00Z","status":"ACCEPTED","updated_at":"2020-12-08T20:05:00Z","version":1}},"type":"booking"},"event_id":"d954ea4e-a393-52d4-bda6-bfd10cbd571f","location_id":"L9R0X9X5SGDBJ","merchant_id":"GQQWA3J6A3AEZ","type":"booking.updated"},"x-webhook":{"event":"booking.updated","scopes":["APPOINTMENTS_READ"]},"x-api":"#/components/x-apis/Bookings","x-since":"2020-12-16"},"BookingUpdatedEventData":{"type":"object","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"The type of the event data object. The value is `\"booking\"`.","maxLength":50,"nullable":true},"id":{"type":"string","description":"The ID of the event data object.","maxLength":192},"object":{"$ref":"#/components/schemas/BookingUpdatedEventObject","description":"An object containing the updated booking.","nullable":true}}},"BookingUpdatedEventObject":{"type":"object","x-release-status":"PUBLIC","properties":{"booking":{"$ref":"#/components/schemas/Booking","description":"The updated booking.","nullable":true}}},"Break":{"type":"object","description":"A record of a team member's break on a [timecard](entity:Timecard).","x-release-status":"PUBLIC","required":["start_at","break_type_id","name","expected_duration","is_paid"],"properties":{"id":{"type":"string","description":"The UUID for this object."},"start_at":{"type":"string","description":"RFC 3339; follows the same timezone information as the [timecard](entity:Timecard). Precision up to\nthe minute is respected; seconds are truncated.","minLength":1},"end_at":{"type":"string","description":"RFC 3339; follows the same timezone information as the [timecard](entity:Timecard). Precision up to\nthe minute is respected; seconds are truncated.","nullable":true},"break_type_id":{"type":"string","description":"The [BreakType](entity:BreakType) that this break was templated on.","minLength":1},"name":{"type":"string","description":"A human-readable name.","minLength":1},"expected_duration":{"type":"string","description":"Format: RFC-3339 P[n]Y[n]M[n]DT[n]H[n]M[n]S. The expected length of\nthe break.\n\nExample for break expected duration of 15 minutes: PT15M","minLength":1},"is_paid":{"type":"boolean","description":"Whether this break counts towards time worked for compensation\npurposes."}}},"BreakType":{"type":"object","description":"A template for a type of [break](entity:Break) that can be added to a\n[timecard](entity:Timecard), including the expected duration and paid status.","x-release-status":"PUBLIC","required":["location_id","break_name","expected_duration","is_paid"],"properties":{"id":{"type":"string","description":"The UUID for this object.","maxLength":255},"location_id":{"type":"string","description":"The ID of the business location this type of break applies to.","minLength":1},"break_name":{"type":"string","description":"A human-readable name for this type of break. The name is displayed to\nteam members in Square products.","minLength":1},"expected_duration":{"type":"string","description":"Format: RFC-3339 P[n]Y[n]M[n]DT[n]H[n]M[n]S. The expected length of\nthis break. Precision less than minutes is truncated.\n\nExample for break expected duration of 15 minutes: PT15M","minLength":1},"is_paid":{"type":"boolean","description":"Whether this break counts towards time worked for compensation\npurposes."},"version":{"type":"integer","description":"Used for resolving concurrency issues. The request fails if the version\nprovided does not match the server version at the time of the request. If a value is not\nprovided, Square's servers execute a \"blind\" write; potentially\noverwriting another writer's data."},"created_at":{"type":"string","description":"A read-only timestamp in RFC 3339 format.","readOnly":true},"updated_at":{"type":"string","description":"A read-only timestamp in RFC 3339 format.","readOnly":true}}},"BulkCreateCustomerData":{"type":"object","description":"Defines the customer data provided in individual create requests for a\n[BulkCreateCustomers](api-endpoint:Customers-BulkCreateCustomers) operation.","x-release-status":"PUBLIC","properties":{"given_name":{"type":"string","description":"The given name (that is, the first name) associated with the customer profile.","maxLength":300,"nullable":true},"family_name":{"type":"string","description":"The family name (that is, the last name) associated with the customer profile.","maxLength":300,"nullable":true},"company_name":{"type":"string","description":"A business name associated with the customer profile.","maxLength":500,"nullable":true},"nickname":{"type":"string","description":"A nickname for the customer profile.","maxLength":100,"nullable":true},"email_address":{"type":"string","description":"The email address associated with the customer profile.","maxLength":254,"nullable":true},"address":{"$ref":"#/components/schemas/Address","description":"The physical address associated with the customer profile. For maximum length constraints,\nsee [Customer addresses](https://developer.squareup.com/docs/customers-api/use-the-api/keep-records#address).\nThe `first_name` and `last_name` fields are ignored if they are present in the request.","nullable":true},"phone_number":{"type":"string","description":"The phone number associated with the customer profile. The phone number must be valid\nand can contain 9–16 digits, with an optional `+` prefix and country code. For more information,\nsee [Customer phone numbers](https://developer.squareup.com/docs/customers-api/use-the-api/keep-records#phone-number).","nullable":true},"reference_id":{"type":"string","description":"An optional second ID used to associate the customer profile with an\nentity in another system.","maxLength":100,"nullable":true},"note":{"type":"string","description":"A custom note associated with the customer profile.","nullable":true},"birthday":{"type":"string","description":"The birthday associated with the customer profile, in `YYYY-MM-DD` or `MM-DD` format.\nFor example, specify `1998-09-21` for September 21, 1998, or `09-21` for September 21.\nBirthdays are returned in `YYYY-MM-DD` format, where `YYYY` is the specified birth year or\n`0000` if a birth year is not specified.","nullable":true},"tax_ids":{"$ref":"#/components/schemas/CustomerTaxIds","description":"The tax ID associated with the customer profile. This field is available only for\ncustomers of sellers in EU countries or the United Kingdom. For more information, see\n[Customer tax IDs](https://developer.squareup.com/docs/customers-api/what-it-does#customer-tax-ids).","nullable":true}}},"BulkCreateCustomersRequest":{"type":"object","description":"Defines the body parameters that can be included in requests to the\n[BulkCreateCustomers](api-endpoint:Customers-BulkCreateCustomers) endpoint.","x-release-status":"PUBLIC","required":["customers"],"properties":{"customers":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BulkCreateCustomerData"},"description":"A map of 1 to 100 individual create requests, represented by `idempotency key: { customer data }`\nkey-value pairs.\n\nEach key is an [idempotency key](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency)\nthat uniquely identifies the create request. Each value contains the customer data used to create the\ncustomer profile."}},"example":{"customers":{"8bb76c4f-e35d-4c5b-90de-1194cd9179f0":{"address":{"address_line_1":"500 Electric Ave","address_line_2":"Suite 600","administrative_district_level_1":"NY","country":"US","locality":"New York","postal_code":"10003"},"email_address":"[email protected]","family_name":"Earhart","given_name":"Amelia","note":"a customer","phone_number":"+1-212-555-4240","reference_id":"YOUR_REFERENCE_ID"},"d1689f23-b25d-4932-b2f0-aed00f5e2029":{"address":{"address_line_1":"500 Electric Ave","address_line_2":"Suite 601","administrative_district_level_1":"NY","country":"US","locality":"New York","postal_code":"10003"},"email_address":"[email protected]","family_name":"Curie","given_name":"Marie","note":"another customer","phone_number":"+1-212-444-4240","reference_id":"YOUR_REFERENCE_ID"}}}},"BulkCreateCustomersResponse":{"type":"object","description":"Defines the fields included in the response body from the\n[BulkCreateCustomers](api-endpoint:Customers-BulkCreateCustomers) endpoint.","x-release-status":"PUBLIC","properties":{"responses":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/CreateCustomerResponse"},"description":"A map of responses that correspond to individual create requests, represented by\nkey-value pairs.\n\nEach key is the idempotency key that was provided for a create request and each value\nis the corresponding response.\nIf the request succeeds, the value is the new customer profile.\nIf the request fails, the value contains any errors that occurred during the request."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any top-level errors that prevented the bulk operation from running."}},"example":{"responses":{"8bb76c4f-e35d-4c5b-90de-1194cd9179f4":{"customer":{"address":{"address_line_1":"500 Electric Ave","address_line_2":"Suite 600","administrative_district_level_1":"NY","country":"US","locality":"New York","postal_code":"10003"},"created_at":"2024-03-23T20:21:54.859Z","creation_source":"THIRD_PARTY","email_address":"[email protected]","family_name":"Earhart","given_name":"Amelia","id":"8DDA5NZVBZFGAX0V3HPF81HHE0","note":"a customer","phone_number":"+1-212-555-4240","preferences":{"email_unsubscribed":false},"reference_id":"YOUR_REFERENCE_ID","updated_at":"2024-03-23T20:21:54.859Z","version":0}},"d1689f23-b25d-4932-b2f0-aed00f5e2029":{"customer":{"address":{"address_line_1":"500 Electric Ave","address_line_2":"Suite 601","administrative_district_level_1":"NY","country":"US","locality":"New York","postal_code":"10003"},"created_at":"2024-03-23T20:21:54.859Z","creation_source":"THIRD_PARTY","email_address":"[email protected]","family_name":"Curie","given_name":"Marie","id":"N18CPRVXR5214XPBBA6BZQWF3C","note":"another customer","phone_number":"+1-212-444-4240","preferences":{"email_unsubscribed":false},"reference_id":"YOUR_REFERENCE_ID","updated_at":"2024-03-23T20:21:54.859Z","version":0}}}}},"BulkCreateTeamMembersRequest":{"type":"object","description":"Represents a bulk create request for `TeamMember` objects.","x-release-status":"PUBLIC","required":["team_members"],"properties":{"team_members":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/CreateTeamMemberRequest"},"description":"The data used to create the `TeamMember` objects. Each key is the `idempotency_key` that maps to the `CreateTeamMemberRequest`.\nThe maximum number of create objects is 25.\n\nIf you include a team member's `wage_setting`, you must provide `job_id` for each job assignment. To get job IDs,\ncall [ListJobs](api-endpoint:Team-ListJobs)."}},"example":{"team_members":{"idempotency-key-1":{"team_member":{"assigned_locations":{"assignment_type":"EXPLICIT_LOCATIONS","location_ids":["YSGH2WBKG94QZ","GA2Y9HSJ8KRYT"]},"email_address":"[email protected]","family_name":"Doe","given_name":"Joe","phone_number":"+14159283333","reference_id":"reference_id_1"}},"idempotency-key-2":{"team_member":{"assigned_locations":{"assignment_type":"ALL_CURRENT_AND_FUTURE_LOCATIONS"},"email_address":"[email protected]","family_name":"Smith","given_name":"Jane","phone_number":"+14159223334","reference_id":"reference_id_2"}}}}},"BulkCreateTeamMembersResponse":{"type":"object","description":"Represents a response from a bulk create request containing the created `TeamMember` objects or error messages.","x-release-status":"PUBLIC","properties":{"team_members":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/CreateTeamMemberResponse"},"description":"The successfully created `TeamMember` objects. Each key is the `idempotency_key` that maps to the `CreateTeamMemberRequest`."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"The errors that occurred during the request."}},"example":{"team_members":{"idempotency-key-1":{"team_member":{"assigned_locations":{"assignment_type":"EXPLICIT_LOCATIONS","location_ids":["GA2Y9HSJ8KRYT","YSGH2WBKG94QZ"]},"email_address":"[email protected]","family_name":"Doe","given_name":"Joe","id":"ywhG1qfIOoqsHfVRubFV","is_owner":false,"phone_number":"+14159283333","reference_id":"reference_id_1","status":"ACTIVE"}},"idempotency-key-2":{"team_member":{"assigned_locations":{"assignment_type":"ALL_CURRENT_AND_FUTURE_LOCATIONS"},"email_address":"[email protected]","family_name":"Smith","given_name":"Jane","id":"IF_Ncrg7fHhCqxVI9T6R","is_owner":false,"phone_number":"+14159223334","reference_id":"reference_id_2","status":"ACTIVE"}}}}},"BulkCreateVendorsRequest":{"type":"object","description":"Represents an input to a call to [BulkCreateVendors](api-endpoint:Vendors-BulkCreateVendors).","x-release-status":"BETA","required":["vendors"],"properties":{"vendors":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/Vendor"},"description":"Specifies a set of new [Vendor](entity:Vendor) objects as represented by a collection of idempotency-key/`Vendor`-object pairs."}},"example":{"47bb76a8-c9fb-4f33-9df8-25ce02ca4505":{"contacts":[{"email_address":"[email protected]","name":"Annie Thomas","phone_number":"1-212-555-4250"}],"name":"Annie’s Hot Sauce"},"vendors":{"8fc6a5b0-9fe8-4b46-b46b-2ef95793abbe":{"account_number":"4025391","address":{"address_line_1":"505 Electric Ave","address_line_2":"Suite 600","administrative_district_level_1":"NY","country":"US","locality":"New York","postal_code":"10003"},"contacts":[{"email_address":"[email protected]","name":"Joe Burrow","phone_number":"1-212-555-4250"}],"name":"Joe's Fresh Seafood","note":"a vendor"}}}},"BulkCreateVendorsResponse":{"type":"object","description":"Represents an output from a call to [BulkCreateVendors](api-endpoint:Vendors-BulkCreateVendors).","x-release-status":"BETA","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."},"responses":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/CreateVendorResponse"},"description":"A set of [CreateVendorResponse](entity:CreateVendorResponse) objects encapsulating successfully created [Vendor](entity:Vendor)\nobjects or error responses for failed attempts. The set is represented by \na collection of idempotency-key/`Vendor`-object or idempotency-key/error-object pairs. The idempotency keys correspond to those specified\nin the input."}},"example":{"47bb76a8-c9fb-4f33-9df8-25ce02ca4505":{"vendor":{"contacts":[{"email_address":"[email protected]","id":"INV_VC_ABYYHBWT1TPL8MFH52PBMENPJ4","name":"Annie Thomas","phone_number":"1-212-555-4250"}],"created_at":"2022-03-16T10:21:54.859Z","id":"INV_V_FMCYHBWT1TPL8MFH52PBMEN92A","name":"Annie’s Hot Sauce","status":"ACTIVE","updated_at":"2022-03-16T10:21:54.859Z","version":1}},"responses":{"8fc6a5b0-9fe8-4b46-b46b-2ef95793abbe":{"vendor":{"account_number":"4025391","address":{"address_line_1":"505 Electric Ave","address_line_2":"Suite 600","administrative_district_level_1":"NY","country":"US","locality":"New York","postal_code":"10003"},"contacts":[{"email_address":"[email protected]","id":"INV_VC_FMCYHBWT1TPL8MFH52PBMEN92A","name":"Joe Burrow","phone_number":"1-212-555-4250"}],"created_at":"2022-03-16T10:21:54.859Z","id":"INV_V_JDKYHBWT1D4F8MFH63DBMEN8Y4","name":"Joe's Fresh Seafood","note":"a vendor","status":"ACTIVE","updated_at":"2022-03-16T10:21:54.859Z","version":0}}}}},"BulkDeleteBookingCustomAttributesRequest":{"type":"object","description":"Represents a [BulkDeleteBookingCustomAttributes](api-endpoint:BookingCustomAttributes-BulkDeleteBookingCustomAttributes) request.","x-release-status":"PUBLIC","required":["values"],"properties":{"values":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BookingCustomAttributeDeleteRequest"},"description":"A map containing 1 to 25 individual Delete requests. For each request, provide an\narbitrary ID that is unique for this `BulkDeleteBookingCustomAttributes` request and the\ninformation needed to delete a custom attribute."}}},"BulkDeleteBookingCustomAttributesResponse":{"type":"object","description":"Represents a [BulkDeleteBookingCustomAttributes](api-endpoint:BookingCustomAttributes-BulkDeleteBookingCustomAttributes) response,\nwhich contains a map of responses that each corresponds to an individual delete request.","x-release-status":"PUBLIC","properties":{"values":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BookingCustomAttributeDeleteResponse"},"description":"A map of responses that correspond to individual delete requests. Each response has the\nsame ID as the corresponding request and contains `booking_id` and `errors` field."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{"errors":[],"values":{"id1":{"booking_id":"N3NCVYY3WS27HF0HKANA3R9FP8","errors":[]},"id2":{"booking_id":"SY8EMWRNDN3TQDP2H4KS1QWMMM","errors":[]},"id3":{"booking_id":"SY8EMWRNDN3TQDP2H4KS1QWMMM","errors":[]}}}},"BulkDeleteCustomersRequest":{"type":"object","description":"Defines the body parameters that can be included in requests to the\n[BulkDeleteCustomers](api-endpoint:Customers-BulkDeleteCustomers) endpoint.","x-release-status":"PUBLIC","required":["customer_ids"],"properties":{"customer_ids":{"type":"array","items":{"type":"string"},"description":"The IDs of the [customer profiles](entity:Customer) to delete."}},"example":{"customer_ids":["8DDA5NZVBZFGAX0V3HPF81HHE0","N18CPRVXR5214XPBBA6BZQWF3C","2GYD7WNXF7BJZW1PMGNXZ3Y8M8"]}},"BulkDeleteCustomersResponse":{"type":"object","description":"Defines the fields included in the response body from the\n[BulkDeleteCustomers](api-endpoint:Customers-BulkDeleteCustomers) endpoint.","x-release-status":"PUBLIC","properties":{"responses":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/DeleteCustomerResponse"},"description":"A map of responses that correspond to individual delete requests, represented by\nkey-value pairs.\n\nEach key is the customer ID that was specified for a delete request and each value\nis the corresponding response.\nIf the request succeeds, the value is an empty object (`{ }`).\nIf the request fails, the value contains any errors that occurred during the request."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any top-level errors that prevented the bulk operation from running."}},"example":{"responses":{"2GYD7WNXF7BJZW1PMGNXZ3Y8M8":{"errors":[{"category":"INVALID_REQUEST_ERROR","code":"NOT_FOUND","detail":"Customer with ID `2GYD7WNXF7BJZW1PMGNXZ3Y8M8` not found."}]},"8DDA5NZVBZFGAX0V3HPF81HHE0":{},"N18CPRVXR5214XPBBA6BZQWF3C":{}}}},"BulkDeleteLocationCustomAttributesRequest":{"type":"object","description":"Represents a [BulkDeleteLocationCustomAttributes](api-endpoint:LocationCustomAttributes-BulkDeleteLocationCustomAttributes) request.","x-release-status":"BETA","required":["values"],"properties":{"values":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest"},"description":"The data used to update the `CustomAttribute` objects.\nThe keys must be unique and are used to map to the corresponding response."}},"example":{"values":{"id1":{"key":"bestseller","location_id":"L0TBCBTB7P8RQ"},"id2":{"key":"bestseller","location_id":"L9XMD04V3STJX"},"id3":{"key":"phone-number","location_id":"L0TBCBTB7P8RQ"}}}},"BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest":{"type":"object","description":"Represents an individual delete request in a [BulkDeleteLocationCustomAttributes](api-endpoint:LocationCustomAttributes-BulkDeleteLocationCustomAttributes)\nrequest. An individual request contains an optional ID of the associated custom attribute definition\nand optional key of the associated custom attribute definition.","x-release-status":"BETA","properties":{"key":{"type":"string","description":"The key of the associated custom attribute definition.\nRepresented as a qualified key if the requesting app is not the definition owner.","pattern":"^([a-zA-Z0-9_-]+:)?[a-zA-Z0-9_-]{1,60}$","readOnly":true}}},"BulkDeleteLocationCustomAttributesResponse":{"type":"object","description":"Represents a [BulkDeleteLocationCustomAttributes](api-endpoint:LocationCustomAttributes-BulkDeleteLocationCustomAttributes) response,\nwhich contains a map of responses that each corresponds to an individual delete request.","x-release-status":"BETA","required":["values"],"properties":{"values":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse"},"description":"A map of responses that correspond to individual delete requests. Each response has the\nsame key as the corresponding request."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{"values":{"id1":{"errors":[],"location_id":"L0TBCBTB7P8RQ"},"id2":{"errors":[],"location_id":"L9XMD04V3STJX"},"id3":{"errors":[],"location_id":"L0TBCBTB7P8RQ"}}}},"BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse":{"type":"object","description":"Represents an individual delete response in a [BulkDeleteLocationCustomAttributes](api-endpoint:LocationCustomAttributes-BulkDeleteLocationCustomAttributes)\nrequest.","x-release-status":"BETA","properties":{"location_id":{"type":"string","description":"The ID of the location associated with the custom attribute."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Errors that occurred while processing the individual LocationCustomAttributeDeleteRequest request"}},"example":{"errors":[],"location_id":"L0TBCBTB7P8RQ"}},"BulkDeleteMerchantCustomAttributesRequest":{"type":"object","description":"Represents a [BulkDeleteMerchantCustomAttributes](api-endpoint:MerchantCustomAttributes-BulkDeleteMerchantCustomAttributes) request.","x-release-status":"BETA","required":["values"],"properties":{"values":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest"},"description":"The data used to update the `CustomAttribute` objects.\nThe keys must be unique and are used to map to the corresponding response."}},"example":{"values":{"id1":{"key":"alternative_seller_name","merchant_id":"DM7VKY8Q63GNP"},"id2":{"key":"has_seen_tutorial","merchant_id":"DM7VKY8Q63GNP"}}}},"BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest":{"type":"object","description":"Represents an individual delete request in a [BulkDeleteMerchantCustomAttributes](api-endpoint:MerchantCustomAttributes-BulkDeleteMerchantCustomAttributes)\nrequest. An individual request contains an optional ID of the associated custom attribute definition\nand optional key of the associated custom attribute definition.","x-release-status":"BETA","properties":{"key":{"type":"string","description":"The key of the associated custom attribute definition.\nRepresented as a qualified key if the requesting app is not the definition owner.","pattern":"^([a-zA-Z0-9_-]+:)?[a-zA-Z0-9_-]{1,60}$","readOnly":true}}},"BulkDeleteMerchantCustomAttributesResponse":{"type":"object","description":"Represents a [BulkDeleteMerchantCustomAttributes](api-endpoint:MerchantCustomAttributes-BulkDeleteMerchantCustomAttributes) response,\nwhich contains a map of responses that each corresponds to an individual delete request.","x-release-status":"BETA","required":["values"],"properties":{"values":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BulkDeleteMerchantCustomAttributesResponseMerchantCustomAttributeDeleteResponse"},"description":"A map of responses that correspond to individual delete requests. Each response has the\nsame key as the corresponding request."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{"values":{"id1":{"errors":[],"merchant_id":"DM7VKY8Q63GNP"},"id2":{"errors":[],"merchant_id":"DM7VKY8Q63GNP"}}}},"BulkDeleteMerchantCustomAttributesResponseMerchantCustomAttributeDeleteResponse":{"type":"object","description":"Represents an individual delete response in a [BulkDeleteMerchantCustomAttributes](api-endpoint:MerchantCustomAttributes-BulkDeleteMerchantCustomAttributes)\nrequest.","x-release-status":"BETA","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Errors that occurred while processing the individual MerchantCustomAttributeDeleteRequest request"}},"example":{"errors":[],"merchant_id":"DM7VKY8Q63GNP"}},"BulkDeleteOrderCustomAttributesRequest":{"type":"object","description":"Represents a bulk delete request for one or more order custom attributes.","x-release-status":"BETA","required":["values"],"properties":{"values":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute"},"description":"A map of requests that correspond to individual delete operations for custom attributes."}},"example":{"values":{"cover-count":{"key":"cover-count","order_id":"7BbXGEIWNldxAzrtGf9GPVZTwZ4F"},"table-number":{"key":"table-number","order_id":"7BbXGEIWNldxAzrtGf9GPVZTwZ4F"}}}},"BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute":{"type":"object","description":"Represents one delete within the bulk operation.","x-release-status":"BETA","required":["order_id"],"properties":{"key":{"type":"string","description":"The key of the custom attribute to delete. This key must match the key \nof an existing custom attribute definition.","minLength":1,"readOnly":true},"order_id":{"type":"string","description":"The ID of the target [order](entity:Order).","minLength":1,"maxLength":255}}},"BulkDeleteOrderCustomAttributesResponse":{"type":"object","description":"Represents a response from deleting one or more order custom attributes.","x-release-status":"BETA","required":["values"],"properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."},"values":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/DeleteOrderCustomAttributeResponse"},"description":" A map of responses that correspond to individual delete requests. Each response has the same ID \nas the corresponding request and contains either a `custom_attribute` or an `errors` field."}},"example":{"values":{"cover-count":{},"table-number":{}}}},"BulkPublishScheduledShiftsData":{"type":"object","description":"Represents options for an individual publish request in a\n[BulkPublishScheduledShifts](api-endpoint:Labor-BulkPublishScheduledShifts)\noperation, provided as the value in a key-value pair.","x-release-status":"BETA","properties":{"version":{"type":"integer","description":"The current version of the scheduled shift, used to enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency)\ncontrol. If the provided version doesn't match the server version, the request fails.\nIf omitted, Square executes a blind write, potentially overwriting data from another publish request."}}},"BulkPublishScheduledShiftsRequest":{"type":"object","description":"Represents a [BulkPublishScheduledShifts](api-endpoint:Labor-BulkPublishScheduledShifts) request.","x-release-status":"BETA","required":["scheduled_shifts"],"properties":{"scheduled_shifts":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BulkPublishScheduledShiftsData"},"description":"A map of 1 to 100 key-value pairs that represent individual publish requests.\n\n- Each key is the ID of a scheduled shift you want to publish.\n- Each value is a `BulkPublishScheduledShiftsData` object that contains the\n`version` field or is an empty object."},"scheduled_shift_notification_audience":{"$ref":"#/components/schemas/ScheduledShiftNotificationAudience","description":"Indicates whether Square should send email notifications to team members and\nwhich team members should receive the notifications. This setting applies to all shifts\nspecified in the bulk operation. The default value is `AFFECTED`.\nSee [ScheduledShiftNotificationAudience](#type-scheduledshiftnotificationaudience) for possible values","nullable":true}},"example":{"scheduled-shifts":{"K0YH4CV5462JB":{"version":3},"scheduled-shift-2":{"version":2}},"scheduled_shift_notification_audience":"AFFECTED"}},"BulkPublishScheduledShiftsResponse":{"type":"object","description":"Represents a [BulkPublishScheduledShifts](api-endpoint:Labor-BulkPublishScheduledShifts) response.\nEither `scheduled_shifts` or `errors` is present in the response.","x-release-status":"BETA","properties":{"responses":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/PublishScheduledShiftResponse"},"description":"A map of key-value pairs that represent responses for individual publish requests.\nThe order of responses might differ from the order in which the requests were provided.\n\n- Each key is the scheduled shift ID that was specified for a publish request.\n- Each value is the corresponding response. If the request succeeds, the value is the\npublished scheduled shift. If the request fails, the value is an `errors` array containing\nany errors that occurred while processing the request."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any top-level errors that prevented the bulk operation from succeeding."}},"example":{"responses":{"idp_key_1":{"scheduled_shift":{"created_at":"2019-02-25T03:11:00-05:00","draft_shift_details":{"end_at":"2019-03-25T13:18:00-05:00","is_deleted":false,"job_id":"FzbJAtt9qEWncK1BWgVCxQ6M","location_id":"PAA1RJZZKXBFG","notes":"Don't forget to prep the vegetables","start_at":"2019-03-25T03:11:00-05:00","team_member_id":"ormj0jJJZ5OZIzxrZYJI","timezone":"America/New_York"},"id":"K0YH4CV5462JB","published_shift_details":{"end_at":"2019-03-25T13:18:00-05:00","is_deleted":false,"job_id":"FzbJAtt9qEWncK1BWgVCxQ6M","location_id":"PAA1RJZZKXBFG","notes":"Don't forget to prep the vegetables","start_at":"2019-03-25T03:11:00-05:00","team_member_id":"ormj0jJJZ5OZIzxrZYJI","timezone":"America/New_York"},"updated_at":"2019-02-25T03:11:15-05:00","version":3}},"idp_key_2":{"errors":[{"category":"INVALID_REQUEST_ERROR","code":"INVALID_VALUE","detail":"Scheduled shift with id 'scheduled-shift-2' not found","field":"scheduled-shifts.scheduled-shift-2"}]}}}},"BulkRetrieveBookingsRequest":{"type":"object","description":"Request payload for bulk retrieval of bookings.","x-release-status":"PUBLIC","required":["booking_ids"],"properties":{"booking_ids":{"type":"array","items":{"type":"string"},"description":"A non-empty list of [Booking](entity:Booking) IDs specifying bookings to retrieve."}}},"BulkRetrieveBookingsResponse":{"type":"object","description":"Response payload for bulk retrieval of bookings.","x-release-status":"PUBLIC","properties":{"bookings":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/RetrieveBookingResponse"},"description":"Requested bookings returned as a map containing `booking_id` as the key and `RetrieveBookingResponse` as the value."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Errors that occurred during the request."}},"example":{"bookings":{"sc3p3m7dvctfr1":{"booking":{"all_day":false,"appointment_segments":[{"any_team_member":false,"duration_minutes":60,"service_variation_id":"VG4FYBKK3UL6UITOEYQ6MFLS","service_variation_version":1641341724039,"team_member_id":"TMjiqI3PxyLMKr4k"}],"created_at":"2023-04-26T18:19:21Z","customer_id":"4TDWKN9E8165X8Z77MRS0VFMJM","id":"sc3p3m7dvctfr1","location_id":"LY6WNBPVM6VGV","start_at":"2023-05-01T14:00:00Z","status":"ACCEPTED","updated_at":"2023-04-26T18:19:21Z","version":0},"errors":[]},"tdegug1dvctdef":{"errors":[{"category":"INVALID_REQUEST_ERROR","code":"NOT_FOUND","detail":"Specified booking was not found.","field":"booking_id"}]},"tdegug1fqni3wh":{"booking":{"all_day":false,"appointment_segments":[{"any_team_member":false,"duration_minutes":60,"service_variation_id":"VG4FYBKK3UL6UITOEYQ6MFLS","service_variation_version":1641341724039,"team_member_id":"TMjiqI3PxyLMKr4k"}],"created_at":"2023-04-26T18:19:30Z","customer_id":"4TDWKN9E8165X8Z77MRS0VFMJM","id":"tdegug1fqni3wh","location_id":"LY6WNBPVM6VGV","start_at":"2023-05-02T14:00:00Z","status":"ACCEPTED","updated_at":"2023-04-26T18:19:30Z","version":0},"errors":[]}},"errors":[]}},"BulkRetrieveChannelsRequest":{"type":"object","description":"Defines the fields that are included in the request body for the\n[BulkRetrieveChannels](api-endpoint:Channels-BulkRetrieveChannels) endpoint.","x-release-status":"BETA","required":["channel_ids"],"properties":{"channel_ids":{"type":"array","items":{"type":"string"}}},"example":{"channel_ids":["CH_9C03D0B59","CH_6X139B5MN","NOT_EXISTING"]}},"BulkRetrieveChannelsRequestConstants":{"type":"string","enum":["MAX_BATCH_SIZE"],"x-enum-elements":[{"name":"MAX_BATCH_SIZE","description":""}],"x-release-status":"BETA"},"BulkRetrieveChannelsResponse":{"type":"object","description":"Defines the fields that are included in the request body for the\n[BulkRetrieveChannels](api-endpoint:Channels-BulkRetrieveChannels) endpoint.","x-release-status":"BETA","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information about errors encountered during the request."},"responses":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/RetrieveChannelResponse"},"description":"A map of channel IDs to channel responses which tell whether\nretrieval for a specific channel is success or not.\nChannel response of a success retrieval would contain channel info\nwhereas channel response of a failed retrieval would have error info."}},"example":{"responses":{"CH_6X139B5MN":{"channel":{"created_at":"2022-10-25T16:27:00Z","id":"CH_6X139B5MN","merchant_id":"ML64FACEA","name":"Contoso Fulfillment Application","reference":{"id":"OA_9C03D0444","type":"OAUTH_APPLICATION"},"status":"ACTIVE","updated_at":"2022-10-25T16:48:00Z","version":1}},"CH_9C03D0B59":{"channel":{"created_at":"2022-10-25T16:27:00Z","id":"CH_9C03D0B59","merchant_id":"ML64FACEA","name":"State Street Store","reference":{"id":"OA_9C03D0B59","type":"LOCATION"},"status":"ACTIVE","updated_at":"2022-10-25T16:48:00Z","version":1}},"NOT_EXISTING":{"errors":[{"code":"NOT_FOUND"}]}}}},"BulkRetrieveCustomersRequest":{"type":"object","description":"Defines the body parameters that can be included in requests to the\n[BulkRetrieveCustomers](api-endpoint:Customers-BulkRetrieveCustomers) endpoint.","x-release-status":"PUBLIC","required":["customer_ids"],"properties":{"customer_ids":{"type":"array","items":{"type":"string"},"description":"The IDs of the [customer profiles](entity:Customer) to retrieve."}},"example":{"customer_ids":["8DDA5NZVBZFGAX0V3HPF81HHE0","N18CPRVXR5214XPBBA6BZQWF3C","2GYD7WNXF7BJZW1PMGNXZ3Y8M8"]}},"BulkRetrieveCustomersResponse":{"type":"object","description":"Defines the fields included in the response body from the\n[BulkRetrieveCustomers](api-endpoint:Customers-BulkRetrieveCustomers) endpoint.","x-release-status":"PUBLIC","properties":{"responses":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/RetrieveCustomerResponse"},"description":"A map of responses that correspond to individual retrieve requests, represented by\nkey-value pairs.\n\nEach key is the customer ID that was specified for a retrieve request and each value\nis the corresponding response.\nIf the request succeeds, the value is the requested customer profile.\nIf the request fails, the value contains any errors that occurred during the request."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any top-level errors that prevented the bulk operation from running."}},"example":{"responses":{"2GYD7WNXF7BJZW1PMGNXZ3Y8M8":{"errors":[{"category":"INVALID_REQUEST_ERROR","code":"NOT_FOUND","detail":"Customer with ID `2GYD7WNXF7BJZW1PMGNXZ3Y8M8` not found."}]},"8DDA5NZVBZFGAX0V3HPF81HHE0":{"customer":{"birthday":"1897-07-24","created_at":"2024-01-19T00:27:54.59Z","creation_source":"THIRD_PARTY","email_address":"[email protected]","family_name":"Earhart","given_name":"Amelia","id":"8DDA5NZVBZFGAX0V3HPF81HHE0","note":"updated customer note","preferences":{"email_unsubscribed":false},"updated_at":"2024-01-19T00:38:06Z","version":3}},"N18CPRVXR5214XPBBA6BZQWF3C":{"customer":{"created_at":"2024-01-19T00:27:54.59Z","creation_source":"THIRD_PARTY","family_name":"Curie","given_name":"Marie","id":"N18CPRVXR5214XPBBA6BZQWF3C","preferences":{"email_unsubscribed":false},"updated_at":"2024-01-19T00:38:06Z","version":1}}}}},"BulkRetrieveTeamMemberBookingProfilesRequest":{"type":"object","description":"Request payload for the [BulkRetrieveTeamMemberBookingProfiles](api-endpoint:Bookings-BulkRetrieveTeamMemberBookingProfiles) endpoint.","x-release-status":"PUBLIC","required":["team_member_ids"],"properties":{"team_member_ids":{"type":"array","items":{"type":"string"},"description":"A non-empty list of IDs of team members whose booking profiles you want to retrieve."}}},"BulkRetrieveTeamMemberBookingProfilesResponse":{"type":"object","description":"Response payload for the [BulkRetrieveTeamMemberBookingProfiles](api-endpoint:Bookings-BulkRetrieveTeamMemberBookingProfiles) endpoint.","x-release-status":"PUBLIC","properties":{"team_member_booking_profiles":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/RetrieveTeamMemberBookingProfileResponse"},"description":"The returned team members' booking profiles, as a map with `team_member_id` as the key and [TeamMemberBookingProfile](entity:TeamMemberBookingProfile) the value."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Errors that occurred during the request."}},"example":{"errors":[],"team_member_booking_profiles":{"TMXUrsBWWcHTt79t":{"errors":[{"category":"INVALID_REQUEST_ERROR","code":"NOT_FOUND","detail":"Resource not found."}]},"TMaJcbiRqPIGZuS9":{"errors":[],"team_member_booking_profile":{"display_name":"Sandbox Staff 1","is_bookable":true,"team_member_id":"TMaJcbiRqPIGZuS9"}},"TMtdegug1fqni3wh":{"errors":[],"team_member_booking_profile":{"display_name":"Sandbox Staff 2","is_bookable":true,"team_member_id":"TMtdegug1fqni3wh"}}}}},"BulkRetrieveVendorsRequest":{"type":"object","description":"Represents an input to a call to [BulkRetrieveVendors](api-endpoint:Vendors-BulkRetrieveVendors).","x-release-status":"BETA","properties":{"vendor_ids":{"type":"array","items":{"type":"string"},"description":"IDs of the [Vendor](entity:Vendor) objects to retrieve.","nullable":true}},"example":{"vendor_ids":["INV_V_JDKYHBWT1D4F8MFH63DBMEN8Y4"]}},"BulkRetrieveVendorsResponse":{"type":"object","description":"Represents an output from a call to [BulkRetrieveVendors](api-endpoint:Vendors-BulkRetrieveVendors).","x-release-status":"BETA","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."},"responses":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/RetrieveVendorResponse"},"description":"The set of [RetrieveVendorResponse](entity:RetrieveVendorResponse) objects encapsulating successfully retrieved [Vendor](entity:Vendor)\nobjects or error responses for failed attempts. The set is represented by \na collection of `Vendor`-ID/`Vendor`-object or `Vendor`-ID/error-object pairs."}},"example":{"responses":{"INV_V_JDKYHBWT1D4F8MFH63DBMEN8Y4":{"vendor":{"account_number":"4025391","address":{"address_line_1":"505 Electric Ave","address_line_2":"Suite 600","administrative_district_level_1":"NY","country":"US","locality":"New York","postal_code":"10003"},"contacts":[{"email_address":"[email protected]","id":"INV_VC_FMCYHBWT1TPL8MFH52PBMEN92A","name":"Joe Burrow","phone_number":"1-212-555-4250"}],"created_at":"2022-03-16T10:21:54.859Z","id":"INV_V_JDKYHBWT1D4F8MFH63DBMEN8Y4","name":"Joe's Fresh Seafood","note":"a vendor","status":"ACTIVE","updated_at":"2022-03-16T10:21:54.859Z","version":1}}}}},"BulkSwapPlanRequest":{"type":"object","description":"Defines input parameters in a call to the\n[BulkSwapPlan](api-endpoint:Subscriptions-BulkSwapPlan) endpoint.","x-release-status":"BETA","required":["new_plan_variation_id","old_plan_variation_id","location_id"],"properties":{"new_plan_variation_id":{"type":"string","description":"The ID of the new subscription plan variation.\n\nThis field is required.","minLength":1},"old_plan_variation_id":{"type":"string","description":"The ID of the plan variation whose subscriptions should be swapped. Active subscriptions\nusing this plan variation will be subscribed to the new plan variation on their next billing\nday.","minLength":1},"location_id":{"type":"string","description":"The ID of the location to associate with the swapped subscriptions.","minLength":1}},"example":{"location_id":"S8GWD5R9QB376","new_plan_variation_id":"FQ7CDXXWSLUJRPM3GFJSJGZ7","old_plan_variation_id":"6JHXF3B2CW3YKHDV4XEM674H"}},"BulkSwapPlanResponse":{"type":"object","description":"Defines output parameters in a response of the\n[BulkSwapPlan](api-endpoint:Subscriptions-BulkSwapPlan) endpoint.","x-release-status":"BETA","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Errors encountered during the request."},"affected_subscriptions":{"type":"integer","description":"The number of affected subscriptions."}},"example":{"affected_subscriptions":12}},"BulkUpdateCustomerData":{"type":"object","description":"Defines the customer data provided in individual update requests for a\n[BulkUpdateCustomers](api-endpoint:Customers-BulkUpdateCustomers) operation.","x-release-status":"PUBLIC","properties":{"given_name":{"type":"string","description":"The given name (that is, the first name) associated with the customer profile.","maxLength":300,"nullable":true},"family_name":{"type":"string","description":"The family name (that is, the last name) associated with the customer profile.","maxLength":300,"nullable":true},"company_name":{"type":"string","description":"A business name associated with the customer profile.","maxLength":500,"nullable":true},"nickname":{"type":"string","description":"A nickname for the customer profile.","maxLength":100,"nullable":true},"email_address":{"type":"string","description":"The email address associated with the customer profile.","maxLength":254,"nullable":true},"address":{"$ref":"#/components/schemas/Address","description":"The physical address associated with the customer profile. For maximum length constraints,\nsee [Customer addresses](https://developer.squareup.com/docs/customers-api/use-the-api/keep-records#address).\nThe `first_name` and `last_name` fields are ignored if they are present in the request.","nullable":true},"phone_number":{"type":"string","description":"The phone number associated with the customer profile. The phone number must be valid\nand can contain 9–16 digits, with an optional `+` prefix and country code. For more information,\nsee [Customer phone numbers](https://developer.squareup.com/docs/customers-api/use-the-api/keep-records#phone-number).","nullable":true},"reference_id":{"type":"string","description":"An optional second ID used to associate the customer profile with an\nentity in another system.","maxLength":100,"nullable":true},"note":{"type":"string","description":"An custom note associates with the customer profile.","nullable":true},"birthday":{"type":"string","description":"The birthday associated with the customer profile, in `YYYY-MM-DD` or `MM-DD` format.\nFor example, specify `1998-09-21` for September 21, 1998, or `09-21` for September 21.\nBirthdays are returned in `YYYY-MM-DD` format, where `YYYY` is the specified birth year or\n`0000` if a birth year is not specified.","nullable":true},"tax_ids":{"$ref":"#/components/schemas/CustomerTaxIds","description":"The tax ID associated with the customer profile. This field is available only for\ncustomers of sellers in EU countries or the United Kingdom. For more information, see\n[Customer tax IDs](https://developer.squareup.com/docs/customers-api/what-it-does#customer-tax-ids).","nullable":true},"version":{"type":"integer","description":"The current version of the customer profile.\n\nAs a best practice, you should include this field to enable\n[optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency)\ncontrol.","format":"int64"}}},"BulkUpdateCustomersRequest":{"type":"object","description":"Defines the body parameters that can be included in requests to the\n[BulkUpdateCustomers](api-endpoint:Customers-BulkUpdateCustomers) endpoint.","x-release-status":"PUBLIC","required":["customers"],"properties":{"customers":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BulkUpdateCustomerData"},"description":"A map of 1 to 100 individual update requests, represented by `customer ID: { customer data }`\nkey-value pairs.\n\nEach key is the ID of the [customer profile](entity:Customer) to update. To update a customer profile\nthat was created by merging existing profiles, provide the ID of the newly created profile.\n\nEach value contains the updated customer data. Only new or changed fields are required. To add or\nupdate a field, specify the new value. To remove a field, specify `null`."}},"example":{"customers":{"8DDA5NZVBZFGAX0V3HPF81HHE0":{"email_address":"[email protected]","note":"updated customer note","phone_number":null,"version":2},"N18CPRVXR5214XPBBA6BZQWF3C":{"family_name":"Curie","given_name":"Marie","version":0}}}},"BulkUpdateCustomersResponse":{"type":"object","description":"Defines the fields included in the response body from the\n[BulkUpdateCustomers](api-endpoint:Customers-BulkUpdateCustomers) endpoint.","x-release-status":"PUBLIC","properties":{"responses":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/UpdateCustomerResponse"},"description":"A map of responses that correspond to individual update requests, represented by\nkey-value pairs.\n\nEach key is the customer ID that was specified for an update request and each value\nis the corresponding response.\nIf the request succeeds, the value is the updated customer profile.\nIf the request fails, the value contains any errors that occurred during the request."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any top-level errors that prevented the bulk operation from running."}},"example":{"responses":{"8DDA5NZVBZFGAX0V3HPF81HHE0":{"customer":{"birthday":"1897-07-24","created_at":"2024-01-19T00:27:54.59Z","creation_source":"THIRD_PARTY","email_address":"[email protected]","family_name":"Earhart","given_name":"Amelia","id":"8DDA5NZVBZFGAX0V3HPF81HHE0","note":"updated customer note","preferences":{"email_unsubscribed":false},"updated_at":"2024-01-19T00:38:06Z","version":3}},"N18CPRVXR5214XPBBA6BZQWF3C":{"customer":{"created_at":"2024-01-19T00:27:54.59Z","creation_source":"THIRD_PARTY","family_name":"Curie","given_name":"Marie","id":"N18CPRVXR5214XPBBA6BZQWF3C","preferences":{"email_unsubscribed":false},"updated_at":"2024-01-19T00:38:06Z","version":1}}}}},"BulkUpdateTeamMembersRequest":{"type":"object","description":"Represents a bulk update request for `TeamMember` objects.","x-release-status":"PUBLIC","required":["team_members"],"properties":{"team_members":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/UpdateTeamMemberRequest"},"description":"The data used to update the `TeamMember` objects. Each key is the `team_member_id` that maps to the `UpdateTeamMemberRequest`.\nThe maximum number of update objects is 25.\n\nFor each team member, include the fields to add, change, or clear. Fields can be cleared using a null value.\nTo update `wage_setting.job_assignments`, you must provide the complete list of job assignments. If needed,\ncall [ListJobs](api-endpoint:Team-ListJobs) to get the required `job_id` values."}},"example":{"team_members":{"AFMwA08kR-MIF-3Vs0OE":{"team_member":{"assigned_locations":{"assignment_type":"ALL_CURRENT_AND_FUTURE_LOCATIONS"},"email_address":"[email protected]","family_name":"Smith","given_name":"Jane","is_owner":false,"phone_number":"+14159223334","reference_id":"reference_id_2","status":"ACTIVE"}},"fpgteZNMaf0qOK-a4t6P":{"team_member":{"assigned_locations":{"assignment_type":"EXPLICIT_LOCATIONS","location_ids":["YSGH2WBKG94QZ","GA2Y9HSJ8KRYT"]},"email_address":"[email protected]","family_name":"Doe","given_name":"Joe","is_owner":false,"phone_number":"+14159283333","reference_id":"reference_id_1","status":"ACTIVE"}}}}},"BulkUpdateTeamMembersResponse":{"type":"object","description":"Represents a response from a bulk update request containing the updated `TeamMember` objects or error messages.","x-release-status":"PUBLIC","properties":{"team_members":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/UpdateTeamMemberResponse"},"description":"The successfully updated `TeamMember` objects. Each key is the `team_member_id` that maps to the `UpdateTeamMemberRequest`."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"The errors that occurred during the request."}},"example":{"team_members":{"AFMwA08kR-MIF-3Vs0OE":{"team_member":{"assigned_locations":{"assignment_type":"ALL_CURRENT_AND_FUTURE_LOCATIONS"},"created_at":"2020-03-24T18:14:00Z","email_address":"[email protected]","family_name":"Smith","given_name":"Jane","id":"AFMwA08kR-MIF-3Vs0OE","is_owner":false,"phone_number":"+14159223334","reference_id":"reference_id_2","status":"ACTIVE","updated_at":"2020-03-24T18:18:00Z"}},"fpgteZNMaf0qOK-a4t6P":{"team_member":{"assigned_locations":{"assignment_type":"EXPLICIT_LOCATIONS","location_ids":["GA2Y9HSJ8KRYT","YSGH2WBKG94QZ"]},"created_at":"2020-03-24T18:14:00Z","email_address":"[email protected]","family_name":"Doe","given_name":"Joe","id":"fpgteZNMaf0qOK-a4t6P","is_owner":false,"phone_number":"+14159283333","reference_id":"reference_id_1","status":"ACTIVE","updated_at":"2020-03-24T18:18:00Z"}}}}},"BulkUpdateVendorsRequest":{"type":"object","description":"Represents an input to a call to [BulkUpdateVendors](api-endpoint:Vendors-BulkUpdateVendors).","x-release-status":"BETA","required":["vendors"],"properties":{"vendors":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/UpdateVendorRequest"},"description":"A set of [UpdateVendorRequest](entity:UpdateVendorRequest) objects encapsulating to-be-updated [Vendor](entity:Vendor)\nobjects. The set is represented by a collection of `Vendor`-ID/`UpdateVendorRequest`-object pairs."}},"example":{"vendors":{"FMCYHBWT1TPL8MFH52PBMEN92A":{"address":{"address_line_1":"202 Mill St","administrative_district_level_1":"NJ","country":"US","locality":"Moorestown","postal_code":"08057"},"status":"ACTIVE","version":10},"INV_V_JDKYHBWT1D4F8MFH63DBMEN8Y4":{"note":"favorite vendor","status":"ACTIVE","version":30}}}},"BulkUpdateVendorsResponse":{"type":"object","description":"Represents an output from a call to [BulkUpdateVendors](api-endpoint:Vendors-BulkUpdateVendors).","x-release-status":"BETA","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Errors encountered when the request fails."},"responses":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/UpdateVendorResponse"},"description":"A set of [UpdateVendorResponse](entity:UpdateVendorResponse) objects encapsulating successfully created [Vendor](entity:Vendor)\nobjects or error responses for failed attempts. The set is represented by a collection of `Vendor`-ID/`UpdateVendorResponse`-object or \n`Vendor`-ID/error-object pairs."}},"example":{"responses":{"INV_V_FMCYHBWT1TPL8MFH52PBMEN92A":{"vendor":{"address":{"address_line_1":"202 Mill St","administrative_district_level_1":"NJ","country":"US","locality":"Moorestown","postal_code":"08057"},"contacts":[{"email_address":"[email protected]","id":"INV_VC_ABYYHBWT1TPL8MFH52PBMENPJ4","name":"Annie Thomas","ordinal":0,"phone_number":"1-212-555-4250"}],"created_at":"2022-03-16T10:21:54.859Z","id":"INV_V_FMCYHBWT1TPL8MFH52PBMEN92A","name":"Annie’s Hot Sauce","status":"ACTIVE","updated_at":"2022-03-16T20:21:54.859Z","version":11}},"INV_V_JDKYHBWT1D4F8MFH63DBMEN8Y4":{"vendor":{"account_number":"4025391","address":{"address_line_1":"505 Electric Ave","address_line_2":"Suite 600","administrative_district_level_1":"NY","country":"US","locality":"New York","postal_code":"10003"},"contacts":[{"email_address":"[email protected]","id":"INV_VC_FMCYHBWT1TPL8MFH52PBMEN92A","name":"Joe Burrow","ordinal":0,"phone_number":"1-212-555-4250"}],"created_at":"2022-03-16T10:10:54.859Z","id":"INV_V_JDKYHBWT1D4F8MFH63DBMEN8Y4","name":"Joe's Fresh Seafood","note":"favorite vendor","status":"ACTIVE","updated_at":"2022-03-16T20:21:54.859Z","version":31}}}}},"BulkUpsertBookingCustomAttributesRequest":{"type":"object","description":"Represents a [BulkUpsertBookingCustomAttributes](api-endpoint:BookingCustomAttributes-BulkUpsertBookingCustomAttributes) request.","x-release-status":"PUBLIC","required":["values"],"properties":{"values":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BookingCustomAttributeUpsertRequest"},"description":"A map containing 1 to 25 individual upsert requests. For each request, provide an\narbitrary ID that is unique for this `BulkUpsertBookingCustomAttributes` request and the\ninformation needed to create or update a custom attribute."}}},"BulkUpsertBookingCustomAttributesResponse":{"type":"object","description":"Represents a [BulkUpsertBookingCustomAttributes](api-endpoint:BookingCustomAttributes-BulkUpsertBookingCustomAttributes) response,\nwhich contains a map of responses that each corresponds to an individual upsert request.","x-release-status":"PUBLIC","properties":{"values":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BookingCustomAttributeUpsertResponse"},"description":"A map of responses that correspond to individual upsert requests. Each response has the\nsame ID as the corresponding request and contains either a `booking_id` and `custom_attribute` or an `errors` field."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{"errors":[],"values":{"id1":{"booking_id":"N3NCVYY3WS27HF0HKANA3R9FP8","custom_attribute":{"created_at":"2022-11-16T23:14:47Z","key":"favoriteShampoo","updated_at":"2022-11-16T00:16:23Z","value":"Spring Fresh","version":1,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"errors":[]},"id2":{"booking_id":"SY8EMWRNDN3TQDP2H4KS1QWMMM","custom_attribute":{"created_at":"2022-11-16T00:16:20Z","key":"hasShoes","updated_at":"2022-11-16T00:16:23Z","value":false,"version":2,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"errors":[]},"id3":{"booking_id":"SY8EMWRNDN3TQDP2H4KS1QWMMM","custom_attribute":{"created_at":"2022-11-16T00:16:20Z","key":"favoriteShampoo","updated_at":"2022-11-16T00:16:23Z","value":"Hydro-Cool","version":2,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"errors":[]},"id4":{"booking_id":"N3NCVYY3WS27HF0HKANA3R9FP8","custom_attribute":{"created_at":"2022-11-16T23:14:47Z","key":"partySize","updated_at":"2022-11-16T00:16:23Z","value":4,"version":1,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"errors":[]},"id5":{"booking_id":"70548QG1HN43B05G0KCZ4MMC1G","custom_attribute":{"created_at":"2022-11-16T00:16:20Z","key":"celebrating","updated_at":"2022-11-16T00:16:23Z","value":"birthday","version":2,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"errors":[]}}}},"BulkUpsertCustomerCustomAttributesRequest":{"type":"object","description":"Represents a [BulkUpsertCustomerCustomAttributes](api-endpoint:CustomerCustomAttributes-BulkUpsertCustomerCustomAttributes) request.","x-release-status":"PUBLIC","required":["values"],"properties":{"values":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BulkUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest"},"description":"A map containing 1 to 25 individual upsert requests. For each request, provide an\narbitrary ID that is unique for this `BulkUpsertCustomerCustomAttributes` request and the\ninformation needed to create or update a custom attribute."}},"example":{"values":{"id1":{"custom_attribute":{"key":"favoritemovie","value":"Dune"},"customer_id":"N3NCVYY3WS27HF0HKANA3R9FP8"},"id2":{"custom_attribute":{"key":"ownsmovie","value":false},"customer_id":"SY8EMWRNDN3TQDP2H4KS1QWMMM"},"id3":{"custom_attribute":{"key":"favoritemovie","value":"Star Wars"},"customer_id":"SY8EMWRNDN3TQDP2H4KS1QWMMM"},"id4":{"custom_attribute":{"key":"square:a0f1505a-2aa1-490d-91a8-8d31ff181808","value":"10.5"},"customer_id":"N3NCVYY3WS27HF0HKANA3R9FP8"},"id5":{"custom_attribute":{"key":"sq0ids-0evKIskIGaY45fCyNL66aw:backupemail","value":"[email protected]"},"customer_id":"70548QG1HN43B05G0KCZ4MMC1G"}}}},"BulkUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest":{"type":"object","description":"Represents an individual upsert request in a [BulkUpsertCustomerCustomAttributes](api-endpoint:CustomerCustomAttributes-BulkUpsertCustomerCustomAttributes)\nrequest. An individual request contains a customer ID, the custom attribute to create or update,\nand an optional idempotency key.","x-release-status":"PUBLIC","required":["customer_id","custom_attribute"],"properties":{"customer_id":{"type":"string","description":"The ID of the target [customer profile](entity:Customer).","minLength":1},"custom_attribute":{"$ref":"#/components/schemas/CustomAttribute","description":"The custom attribute to create or update, with following fields:\n\n- `key`. This key must match the `key` of a custom attribute definition in the Square seller \naccount. If the requesting application is not the definition owner, you must provide the qualified key.\n\n- `value`. This value must conform to the `schema` specified by the definition. \nFor more information, see [Value data types](https://developer.squareup.com/docs/customer-custom-attributes-api/custom-attributes#value-data-types).\n\n- `version`. To enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency)\ncontrol for update operations, include this optional field in the request and set the\nvalue to the current version of the custom attribute."},"idempotency_key":{"type":"string","description":"A unique identifier for this individual upsert request, used to ensure idempotency.\nFor more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).","maxLength":45,"nullable":true}}},"BulkUpsertCustomerCustomAttributesResponse":{"type":"object","description":"Represents a [BulkUpsertCustomerCustomAttributes](api-endpoint:CustomerCustomAttributes-BulkUpsertCustomerCustomAttributes) response,\nwhich contains a map of responses that each corresponds to an individual upsert request.","x-release-status":"PUBLIC","properties":{"values":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BulkUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse"},"description":"A map of responses that correspond to individual upsert requests. Each response has the\nsame ID as the corresponding request and contains either a `customer_id` and `custom_attribute` or an `errors` field."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{"values":{"id1":{"custom_attribute":{"created_at":"2021-12-08T23:14:47Z","key":"favoritemovie","updated_at":"2021-12-09T00:16:23Z","value":"Dune","version":1,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"customer_id":"N3NCVYY3WS27HF0HKANA3R9FP8"},"id2":{"custom_attribute":{"created_at":"2021-12-09T00:16:20Z","key":"ownsmovie","updated_at":"2021-12-09T00:16:23Z","value":false,"version":2,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"customer_id":"SY8EMWRNDN3TQDP2H4KS1QWMMM"},"id3":{"custom_attribute":{"created_at":"2021-12-09T00:16:20Z","key":"favoritemovie","updated_at":"2021-12-09T00:16:23Z","value":"Star Wars","version":2,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"customer_id":"SY8EMWRNDN3TQDP2H4KS1QWMMM"},"id4":{"custom_attribute":{"created_at":"2021-12-08T23:14:47Z","key":"square:a0f1505a-2aa1-490d-91a8-8d31ff181808","updated_at":"2021-12-09T00:16:23Z","value":"10.5","version":1,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"customer_id":"N3NCVYY3WS27HF0HKANA3R9FP8"},"id5":{"custom_attribute":{"created_at":"2021-12-09T00:16:20Z","key":"sq0ids-0evKIskIGaY45fCyNL66aw:backupemail","updated_at":"2021-12-09T00:16:23Z","value":"[email protected]","version":2,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"customer_id":"70548QG1HN43B05G0KCZ4MMC1G"}}}},"BulkUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse":{"type":"object","description":"Represents a response for an individual upsert request in a [BulkUpsertCustomerCustomAttributes](api-endpoint:CustomerCustomAttributes-BulkUpsertCustomerCustomAttributes) operation.","x-release-status":"PUBLIC","properties":{"customer_id":{"type":"string","description":"The ID of the customer profile associated with the custom attribute."},"custom_attribute":{"$ref":"#/components/schemas/CustomAttribute","description":"The new or updated custom attribute."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred while processing the individual request."}},"example":{"custom_attribute":{"created_at":"2021-12-08T23:14:47Z","key":"favoritemovie","updated_at":"2021-12-09T00:16:23Z","value":"Dune","version":1,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"customer_id":"N3NCVYY3WS27HF0HKANA3R9FP8"}},"BulkUpsertLocationCustomAttributesRequest":{"type":"object","description":"Represents a [BulkUpsertLocationCustomAttributes](api-endpoint:LocationCustomAttributes-BulkUpsertLocationCustomAttributes) request.","x-release-status":"BETA","required":["values"],"properties":{"values":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest"},"description":"A map containing 1 to 25 individual upsert requests. For each request, provide an\narbitrary ID that is unique for this `BulkUpsertLocationCustomAttributes` request and the\ninformation needed to create or update a custom attribute."}},"example":{"values":{"id1":{"custom_attribute":{"key":"bestseller","value":"hot cocoa"},"location_id":"L0TBCBTB7P8RQ"},"id2":{"custom_attribute":{"key":"bestseller","value":"berry smoothie"},"location_id":"L9XMD04V3STJX"},"id3":{"custom_attribute":{"key":"phone-number","value":"+12223334444"},"location_id":"L0TBCBTB7P8RQ"}}}},"BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest":{"type":"object","description":"Represents an individual upsert request in a [BulkUpsertLocationCustomAttributes](api-endpoint:LocationCustomAttributes-BulkUpsertLocationCustomAttributes)\nrequest. An individual request contains a location ID, the custom attribute to create or update,\nand an optional idempotency key.","x-release-status":"BETA","required":["location_id","custom_attribute"],"properties":{"location_id":{"type":"string","description":"The ID of the target [location](entity:Location).","minLength":1},"custom_attribute":{"$ref":"#/components/schemas/CustomAttribute","description":"The custom attribute to create or update, with following fields:\n- `key`. This key must match the `key` of a custom attribute definition in the Square seller\naccount. If the requesting application is not the definition owner, you must provide the qualified key.\n- `value`. This value must conform to the `schema` specified by the definition.\nFor more information, see [Supported data types](https://developer.squareup.com/docs/devtools/customattributes/overview#supported-data-types)..\n- `version`. To enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency)\ncontrol, specify the current version of the custom attribute. \nIf this is not important for your application, `version` can be set to -1."},"idempotency_key":{"type":"string","description":"A unique identifier for this individual upsert request, used to ensure idempotency.\nFor more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).","maxLength":45,"nullable":true}}},"BulkUpsertLocationCustomAttributesResponse":{"type":"object","description":"Represents a [BulkUpsertLocationCustomAttributes](api-endpoint:LocationCustomAttributes-BulkUpsertLocationCustomAttributes) response,\nwhich contains a map of responses that each corresponds to an individual upsert request.","x-release-status":"BETA","properties":{"values":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse"},"description":"A map of responses that correspond to individual upsert requests. Each response has the\nsame ID as the corresponding request and contains either a `location_id` and `custom_attribute` or an `errors` field."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{"values":{"id1":{"custom_attribute":{"created_at":"2023-01-09T19:02:58.647Z","key":"bestseller","updated_at":"2023-01-09T19:21:04.551Z","value":"hot cocoa","version":2,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"location_id":"L0TBCBTB7P8RQ"},"id2":{"custom_attribute":{"created_at":"2023-01-09T19:02:58.647Z","key":"bestseller","updated_at":"2023-01-09T19:21:04.551Z","value":"berry smoothie","version":1,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"location_id":"L9XMD04V3STJX"},"id3":{"custom_attribute":{"created_at":"2023-01-09T19:04:57.985Z","key":"phone-number","updated_at":"2023-01-09T19:21:04.563Z","value":"+12239903892","version":2,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"location_id":"L0TBCBTB7P8RQ"}}}},"BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse":{"type":"object","description":"Represents a response for an individual upsert request in a [BulkUpsertLocationCustomAttributes](api-endpoint:LocationCustomAttributes-BulkUpsertLocationCustomAttributes) operation.","x-release-status":"BETA","properties":{"location_id":{"type":"string","description":"The ID of the location associated with the custom attribute."},"custom_attribute":{"$ref":"#/components/schemas/CustomAttribute","description":"The new or updated custom attribute."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred while processing the individual request."}},"example":{"custom_attribute":{"created_at":"2023-01-09T19:02:58.647Z","key":"bestseller","updated_at":"2023-01-09T19:21:04.551Z","value":"hot cocoa","version":2,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"location_id":"L0TBCBTB7P8RQ"}},"BulkUpsertMerchantCustomAttributesRequest":{"type":"object","description":"Represents a [BulkUpsertMerchantCustomAttributes](api-endpoint:MerchantCustomAttributes-BulkUpsertMerchantCustomAttributes) request.","x-release-status":"BETA","required":["values"],"properties":{"values":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest"},"description":"A map containing 1 to 25 individual upsert requests. For each request, provide an\narbitrary ID that is unique for this `BulkUpsertMerchantCustomAttributes` request and the\ninformation needed to create or update a custom attribute."}},"example":{"values":{"id1":{"custom_attribute":{"key":"alternative_seller_name","value":"Ultimate Sneaker Store"},"merchant_id":"DM7VKY8Q63GNP"},"id2":{"custom_attribute":{"key":"has_seen_tutorial","value":true},"merchant_id":"DM7VKY8Q63GNP"}}}},"BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest":{"type":"object","description":"Represents an individual upsert request in a [BulkUpsertMerchantCustomAttributes](api-endpoint:MerchantCustomAttributes-BulkUpsertMerchantCustomAttributes)\nrequest. An individual request contains a merchant ID, the custom attribute to create or update,\nand an optional idempotency key.","x-release-status":"BETA","required":["merchant_id","custom_attribute"],"properties":{"merchant_id":{"type":"string","description":"The ID of the target [merchant](entity:Merchant).","minLength":1},"custom_attribute":{"$ref":"#/components/schemas/CustomAttribute","description":"The custom attribute to create or update, with following fields:\n- `key`. This key must match the `key` of a custom attribute definition in the Square seller\naccount. If the requesting application is not the definition owner, you must provide the qualified key.\n- `value`. This value must conform to the `schema` specified by the definition.\nFor more information, see [Supported data types](https://developer.squareup.com/docs/devtools/customattributes/overview#supported-data-types).\n- The version field must match the current version of the custom attribute definition to enable\n[optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency)\nIf this is not important for your application, version can be set to -1. For any other values, the request fails with a BAD_REQUEST error."},"idempotency_key":{"type":"string","description":"A unique identifier for this individual upsert request, used to ensure idempotency.\nFor more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).","maxLength":45,"nullable":true}}},"BulkUpsertMerchantCustomAttributesResponse":{"type":"object","description":"Represents a [BulkUpsertMerchantCustomAttributes](api-endpoint:MerchantCustomAttributes-BulkUpsertMerchantCustomAttributes) response,\nwhich contains a map of responses that each corresponds to an individual upsert request.","x-release-status":"BETA","properties":{"values":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse"},"description":"A map of responses that correspond to individual upsert requests. Each response has the\nsame ID as the corresponding request and contains either a `merchant_id` and `custom_attribute` or an `errors` field."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{"values":{"id1":{"custom_attribute":{"created_at":"2023-05-06T19:02:58.647Z","key":"alternative_seller_name","updated_at":"2023-05-06T19:21:04.551Z","value":"Ultimate Sneaker Store","version":2,"visibility":"VISIBILITY_READ_ONLY"},"merchant_id":"DM7VKY8Q63GNP"},"id2":{"custom_attribute":{"created_at":"2023-05-06T19:02:58.647Z","key":"has_seen_tutorial","updated_at":"2023-05-06T19:21:04.551Z","value":true,"version":1,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"merchant_id":"DM7VKY8Q63GNP"}}}},"BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse":{"type":"object","description":"Represents a response for an individual upsert request in a [BulkUpsertMerchantCustomAttributes](api-endpoint:MerchantCustomAttributes-BulkUpsertMerchantCustomAttributes) operation.","x-release-status":"BETA","properties":{"merchant_id":{"type":"string","description":"The ID of the merchant associated with the custom attribute."},"custom_attribute":{"$ref":"#/components/schemas/CustomAttribute","description":"The new or updated custom attribute."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred while processing the individual request."}},"example":{"custom_attribute":{"created_at":"2023-05-06T19:02:58.647Z","key":"alternative_seller_name","updated_at":"2023-05-06T19:21:04.551Z","value":"Ultimate Sneaker Store","version":2,"visibility":"VISIBILITY_READ_ONLY"},"merchant_id":"DM7VKY8Q63GNP"}},"BulkUpsertOrderCustomAttributesRequest":{"type":"object","description":"Represents a bulk upsert request for one or more order custom attributes.","x-release-status":"BETA","required":["values"],"properties":{"values":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute"},"description":"A map of requests that correspond to individual upsert operations for custom attributes."}},"example":{"values":{"cover-count":{"custom_attribute":{"key":"cover-count","value":"6","version":2},"order_id":"7BbXGEIWNldxAzrtGf9GPVZTwZ4F"},"table-number":{"custom_attribute":{"key":"table-number","value":"11","version":4},"order_id":"7BbXGEIWNldxAzrtGf9GPVZTwZ4F"}}}},"BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute":{"type":"object","description":"Represents one upsert within the bulk operation.","x-release-status":"BETA","required":["custom_attribute","order_id"],"properties":{"custom_attribute":{"$ref":"#/components/schemas/CustomAttribute","description":"The custom attribute to create or update, with the following fields:\n\n- `value`. This value must conform to the `schema` specified by the definition. \nFor more information, see [Value data types](https://developer.squareup.com/docs/customer-custom-attributes-api/custom-attributes#value-data-types).\n\n- `version`. To enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency)\ncontrol, include this optional field and specify the current version of the custom attribute."},"idempotency_key":{"type":"string","description":"A unique identifier for this request, used to ensure idempotency. \nFor more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).","minLength":1,"maxLength":45,"nullable":true},"order_id":{"type":"string","description":"The ID of the target [order](entity:Order).","minLength":1,"maxLength":255}}},"BulkUpsertOrderCustomAttributesResponse":{"type":"object","description":"Represents a response from a bulk upsert of order custom attributes.","x-release-status":"BETA","required":["values"],"properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."},"values":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/UpsertOrderCustomAttributeResponse"},"description":" A map of responses that correspond to individual upsert operations for custom attributes."}},"example":{"values":{"cover-count":{"custom_attribute":{"created_at":"2022-11-22T21:27:33.429Z","key":"cover-count","updated_at":"2022-11-22T21:28:35.721Z","value":"6","visibility":"VISIBILITY_READ_WRITE_VALUES"}},"table-number":{"custom_attribute":{"created_at":"2022-11-22T21:24:57.823Z","key":"table-number","updated_at":"2022-11-22T21:28:35.726Z","value":"11","visibility":"VISIBILITY_HIDDEN"}}}}},"BusinessAppointmentSettings":{"type":"object","description":"The service appointment settings, including where and how the service is provided.","x-release-status":"PUBLIC","properties":{"location_types":{"type":"array","items":{"$ref":"#/components/schemas/BusinessAppointmentSettingsBookingLocationType"},"description":"Types of the location allowed for bookings.\nSee [BusinessAppointmentSettingsBookingLocationType](#type-businessappointmentsettingsbookinglocationtype) for possible values","nullable":true},"alignment_time":{"$ref":"#/components/schemas/BusinessAppointmentSettingsAlignmentTime","description":"The time unit of the service duration for bookings.\nSee [BusinessAppointmentSettingsAlignmentTime](#type-businessappointmentsettingsalignmenttime) for possible values","nullable":true},"min_booking_lead_time_seconds":{"type":"integer","description":"The minimum lead time in seconds before a service can be booked. A booking must be created at least this amount of time before its starting time.","nullable":true},"max_booking_lead_time_seconds":{"type":"integer","description":"The maximum lead time in seconds before a service can be booked. A booking must be created at most this amount of time before its starting time.","nullable":true},"any_team_member_booking_enabled":{"type":"boolean","description":"Indicates whether a customer can choose from all available time slots and have a staff member assigned\nautomatically (`true`) or not (`false`).","nullable":true},"multiple_service_booking_enabled":{"type":"boolean","description":"Indicates whether a customer can book multiple services in a single online booking.","nullable":true},"max_appointments_per_day_limit_type":{"$ref":"#/components/schemas/BusinessAppointmentSettingsMaxAppointmentsPerDayLimitType","description":"Indicates whether the daily appointment limit applies to team members or to\nbusiness locations.\nSee [BusinessAppointmentSettingsMaxAppointmentsPerDayLimitType](#type-businessappointmentsettingsmaxappointmentsperdaylimittype) for possible values","nullable":true},"max_appointments_per_day_limit":{"type":"integer","description":"The maximum number of daily appointments per team member or per location.","nullable":true},"cancellation_window_seconds":{"type":"integer","description":"The cut-off time in seconds for allowing clients to cancel or reschedule an appointment.","nullable":true},"cancellation_fee_money":{"$ref":"#/components/schemas/Money","description":"The flat-fee amount charged for a no-show booking.","nullable":true},"cancellation_policy":{"$ref":"#/components/schemas/BusinessAppointmentSettingsCancellationPolicy","description":"The cancellation policy adopted by the seller.\nSee [BusinessAppointmentSettingsCancellationPolicy](#type-businessappointmentsettingscancellationpolicy) for possible values","nullable":true},"cancellation_policy_text":{"type":"string","description":"The free-form text of the seller's cancellation policy.","maxLength":65536,"nullable":true},"skip_booking_flow_staff_selection":{"type":"boolean","description":"Indicates whether customers has an assigned staff member (`true`) or can select s staff member of their choice (`false`).","nullable":true}}},"BusinessAppointmentSettingsAlignmentTime":{"type":"string","enum":["SERVICE_DURATION","QUARTER_HOURLY","HALF_HOURLY","HOURLY"],"x-enum-elements":[{"name":"SERVICE_DURATION","description":"The service duration unit is one visit of a fixed time interval specified by the seller."},{"name":"QUARTER_HOURLY","description":"The service duration unit is a 15-minute interval. Bookings can be scheduled every quarter hour."},{"name":"HALF_HOURLY","description":"The service duration unit is a 30-minute interval. Bookings can be scheduled every half hour."},{"name":"HOURLY","description":"The service duration unit is a 60-minute interval. Bookings can be scheduled every hour."}],"description":"Time units of a service duration for bookings.","x-release-status":"PUBLIC"},"BusinessAppointmentSettingsBookingLocationType":{"type":"string","enum":["BUSINESS_LOCATION","CUSTOMER_LOCATION","PHONE"],"x-enum-elements":[{"name":"BUSINESS_LOCATION","description":"The service is provided at a seller location."},{"name":"CUSTOMER_LOCATION","description":"The service is provided at a customer location."},{"name":"PHONE","description":"The service is provided over the phone."}],"description":"Supported types of location where service is provided.","x-release-status":"PUBLIC"},"BusinessAppointmentSettingsCancellationPolicy":{"type":"string","enum":["CANCELLATION_TREATED_AS_NO_SHOW","CUSTOM_POLICY"],"x-enum-elements":[{"name":"CANCELLATION_TREATED_AS_NO_SHOW","description":"Cancellations are treated as no shows and may incur a fee as specified by `cancellation_fee_money`."},{"name":"CUSTOM_POLICY","description":"Cancellations follow the seller-specified policy that is described in free-form text and not enforced automatically by Square."}],"description":"The category of the seller’s cancellation policy.","x-release-status":"PUBLIC"},"BusinessAppointmentSettingsMaxAppointmentsPerDayLimitType":{"type":"string","enum":["PER_TEAM_MEMBER","PER_LOCATION"],"x-enum-elements":[{"name":"PER_TEAM_MEMBER","description":"The maximum number of daily appointments is set on a per team member basis."},{"name":"PER_LOCATION","description":"The maximum number of daily appointments is set on a per location basis."}],"description":"Types of daily appointment limits.","x-release-status":"PUBLIC"},"BusinessBookingProfile":{"type":"object","description":"A seller's business booking profile, including booking policy, appointment settings, etc.","x-release-status":"PUBLIC","properties":{"seller_id":{"type":"string","description":"The ID of the seller, obtainable using the Merchants API.","maxLength":32,"nullable":true},"created_at":{"type":"string","description":"The RFC 3339 timestamp specifying the booking's creation time.","readOnly":true},"booking_enabled":{"type":"boolean","description":"Indicates whether the seller is open for booking.","nullable":true},"customer_timezone_choice":{"$ref":"#/components/schemas/BusinessBookingProfileCustomerTimezoneChoice","description":"The choice of customer's time zone information of a booking.\nThe Square online booking site and all notifications to customers uses either the seller location’s time zone\nor the time zone the customer chooses at booking.\nSee [BusinessBookingProfileCustomerTimezoneChoice](#type-businessbookingprofilecustomertimezonechoice) for possible values","nullable":true},"booking_policy":{"$ref":"#/components/schemas/BusinessBookingProfileBookingPolicy","description":"The policy for the seller to automatically accept booking requests (`ACCEPT_ALL`) or not (`REQUIRES_ACCEPTANCE`).\nSee [BusinessBookingProfileBookingPolicy](#type-businessbookingprofilebookingpolicy) for possible values","nullable":true},"allow_user_cancel":{"type":"boolean","description":"Indicates whether customers can cancel or reschedule their own bookings (`true`) or not (`false`).","nullable":true},"business_appointment_settings":{"$ref":"#/components/schemas/BusinessAppointmentSettings","description":"Settings for appointment-type bookings.","nullable":true},"support_seller_level_writes":{"type":"boolean","description":"Indicates whether the seller's subscription to Square Appointments supports creating, updating or canceling an appointment through the API (`true`) or not (`false`) using seller permission.","nullable":true}}},"BusinessBookingProfileBookingPolicy":{"type":"string","enum":["ACCEPT_ALL","REQUIRES_ACCEPTANCE"],"x-enum-elements":[{"name":"ACCEPT_ALL","description":"The seller accepts all booking requests automatically."},{"name":"REQUIRES_ACCEPTANCE","description":"The seller must accept requests to complete bookings."}],"description":"Policies for accepting bookings.","x-release-status":"PUBLIC"},"BusinessBookingProfileCustomerTimezoneChoice":{"type":"string","enum":["BUSINESS_LOCATION_TIMEZONE","CUSTOMER_CHOICE"],"x-enum-elements":[{"name":"BUSINESS_LOCATION_TIMEZONE","description":"Use the time zone of the business location for bookings."},{"name":"CUSTOMER_CHOICE","description":"Use the customer-chosen time zone for bookings."}],"description":"Choices of customer-facing time zone used for bookings.","x-release-status":"PUBLIC"},"BusinessHours":{"type":"object","description":"The hours of operation for a location.","x-release-status":"PUBLIC","properties":{"periods":{"type":"array","items":{"$ref":"#/components/schemas/BusinessHoursPeriod"},"description":"The list of time periods during which the business is open. There can be at most 10 periods per day.","nullable":true}}},"BusinessHoursPeriod":{"type":"object","description":"Represents a period of time during which a business location is open.","x-release-status":"PUBLIC","properties":{"day_of_week":{"$ref":"#/components/schemas/DayOfWeek","description":"The day of the week for this time period.\nSee [DayOfWeek](#type-dayofweek) for possible values","nullable":true},"start_local_time":{"type":"string","description":"The start time of a business hours period, specified in local time using partial-time\nRFC 3339 format. For example, `8:30:00` for a period starting at 8:30 in the morning.\nNote that the seconds value is always :00, but it is appended for conformance to the RFC.","nullable":true},"end_local_time":{"type":"string","description":"The end time of a business hours period, specified in local time using partial-time\nRFC 3339 format. For example, `21:00:00` for a period ending at 9:00 in the evening.\nNote that the seconds value is always :00, but it is appended for conformance to the RFC.","nullable":true}}},"BuyNowPayLaterDetails":{"type":"object","description":"Additional details about a Buy Now Pay Later payment type.","x-release-status":"PUBLIC","properties":{"brand":{"type":"string","description":"The brand used for the Buy Now Pay Later payment.\nThe brand can be `AFTERPAY`, `CLEARPAY` or `UNKNOWN`.","maxLength":50,"nullable":true},"afterpay_details":{"$ref":"#/components/schemas/AfterpayDetails","description":"Details about an Afterpay payment. These details are only populated if the `brand` is\n`AFTERPAY`.","nullable":true},"clearpay_details":{"$ref":"#/components/schemas/ClearpayDetails","description":"Details about a Clearpay payment. These details are only populated if the `brand` is\n`CLEARPAY`.","nullable":true},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information about errors encountered during the payment.","readOnly":true}}},"CalculateLoyaltyPointsRequest":{"type":"object","description":"Represents a [CalculateLoyaltyPoints](api-endpoint:Loyalty-CalculateLoyaltyPoints) request.","x-release-status":"PUBLIC","x-params-example":"?program_id=d619f755-2d17-41f3-990d-c04ecedd64dd","properties":{"order_id":{"type":"string","description":"The [order](entity:Order) ID for which to calculate the points.\nSpecify this field if your application uses the Orders API to process orders.\nOtherwise, specify the `transaction_amount_money`.","nullable":true},"transaction_amount_money":{"$ref":"#/components/schemas/Money","description":"The purchase amount for which to calculate the points. \nSpecify this field if your application does not use the Orders API to process orders.\nOtherwise, specify the `order_id`.","nullable":true},"loyalty_account_id":{"type":"string","description":"The ID of the target [loyalty account](entity:LoyaltyAccount). Optionally specify this field\nif your application uses the Orders API to process orders.\n\nIf specified, the `promotion_points` field in the response shows the number of points the buyer would\nearn from the purchase. In this case, Square uses the account ID to determine whether the promotion's\n`trigger_limit` (the maximum number of times that a buyer can trigger the promotion) has been reached.\nIf not specified, the `promotion_points` field shows the number of points the purchase qualifies\nfor regardless of the trigger limit.","minLength":1,"maxLength":36,"nullable":true}},"example":{"loyalty_account_id":"79b807d2-d786-46a9-933b-918028d7a8c5","order_id":"RFZfrdtm3mhO1oGzf5Cx7fEMsmGZY"}},"CalculateLoyaltyPointsResponse":{"type":"object","description":"Represents a [CalculateLoyaltyPoints](api-endpoint:Loyalty-CalculateLoyaltyPoints) response.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."},"points":{"type":"integer","description":"The number of points that the buyer can earn from the base loyalty program."},"promotion_points":{"type":"integer","description":"The number of points that the buyer can earn from a loyalty promotion. To be eligible\nto earn promotion points, the purchase must first qualify for program points. When `order_id`\nis not provided in the request, this value is always 0."}},"example":{"points":6,"promotion_points":12}},"CalculateOrderRequest":{"type":"object","x-release-status":"BETA","required":["order"],"properties":{"order":{"$ref":"#/components/schemas/Order","description":"The order to be calculated. Expects the entire order, not a sparse update."},"proposed_rewards":{"type":"array","items":{"$ref":"#/components/schemas/OrderReward"},"description":"Identifies one or more loyalty reward tiers to apply during the order calculation.\nThe discounts defined by the reward tiers are added to the order only to preview the\neffect of applying the specified rewards. The rewards do not correspond to actual\nredemptions; that is, no `reward`s are created. Therefore, the reward `id`s are\nrandom strings used only to reference the reward tier.","nullable":true}},"example":{"idempotency_key":"b3e98fe3-b8de-471c-82f1-545f371e637c","order":{"discounts":[{"name":"50% Off","percentage":"50","scope":"ORDER"}],"line_items":[{"base_price_money":{"amount":500,"currency":"USD"},"name":"Item 1","quantity":"1"},{"base_price_money":{"amount":300,"currency":"USD"},"name":"Item 2","quantity":"2"}],"location_id":"D7AVYMEAPJ3A3"}}},"CalculateOrderResponse":{"type":"object","x-release-status":"BETA","properties":{"order":{"$ref":"#/components/schemas/Order","description":"The calculated version of the order provided in the request."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{"order":{"created_at":"2020-05-18T16:30:49.614Z","discounts":[{"applied_money":{"amount":550,"currency":"USD"},"name":"50% Off","percentage":"50","scope":"ORDER","type":"FIXED_PERCENTAGE","uid":"zGsRZP69aqSSR9lq9euSPB"}],"line_items":[{"applied_discounts":[{"applied_money":{"amount":250,"currency":"USD"},"discount_uid":"zGsRZP69aqSSR9lq9euSPB","uid":"9zr9S4dxvPAixvn0lpa1VC"}],"base_price_money":{"amount":500,"currency":"USD"},"gross_sales_money":{"amount":500,"currency":"USD"},"name":"Item 1","quantity":"1","total_discount_money":{"amount":250,"currency":"USD"},"total_money":{"amount":250,"currency":"USD"},"total_service_charge_money":{"amount":0,"currency":"USD"},"total_tax_money":{"amount":0,"currency":"USD"},"uid":"ULkg0tQTRK2bkU9fNv3IJD","variation_total_price_money":{"amount":500,"currency":"USD"}},{"applied_discounts":[{"applied_money":{"amount":300,"currency":"USD"},"discount_uid":"zGsRZP69aqSSR9lq9euSPB","uid":"qa8LwwZK82FgSEkQc2HYVC"}],"base_price_money":{"amount":300,"currency":"USD"},"gross_sales_money":{"amount":600,"currency":"USD"},"name":"Item 2","quantity":"2","total_discount_money":{"amount":300,"currency":"USD"},"total_money":{"amount":300,"currency":"USD"},"total_service_charge_money":{"amount":0,"currency":"USD"},"total_tax_money":{"amount":0,"currency":"USD"},"uid":"mumY8Nun4BC5aKe2yyx5a","variation_total_price_money":{"amount":600,"currency":"USD"}}],"location_id":"D7AVYMEAPJ3A3","net_amounts":{"discount_money":{"amount":550,"currency":"USD"},"service_charge_money":{"amount":0,"currency":"USD"},"tax_money":{"amount":0,"currency":"USD"},"tip_money":{"amount":0,"currency":"USD"},"total_money":{"amount":550,"currency":"USD"}},"state":"OPEN","total_discount_money":{"amount":550,"currency":"USD"},"total_money":{"amount":550,"currency":"USD"},"total_service_charge_money":{"amount":0,"currency":"USD"},"total_tax_money":{"amount":0,"currency":"USD"},"total_tip_money":{"amount":0,"currency":"USD"},"updated_at":"2020-05-18T16:30:49.614Z","version":1}}},"CancelBookingRequest":{"type":"object","x-release-status":"PUBLIC","properties":{"idempotency_key":{"type":"string","description":"A unique key to make this request an idempotent operation.","maxLength":255,"nullable":true},"booking_version":{"type":"integer","description":"The revision number for the booking used for optimistic concurrency.","nullable":true}}},"CancelBookingResponse":{"type":"object","x-release-status":"PUBLIC","properties":{"booking":{"$ref":"#/components/schemas/Booking","description":"The booking that was cancelled."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Errors that occurred during the request."}},"example":{"booking":{"appointment_segments":[{"duration_minutes":60,"service_variation_id":"RU3PBTZTK7DXZDQFCJHOK2MC","service_variation_version":1599775456731,"team_member_id":"TMXUrsBWWcHTt79t"}],"created_at":"2020-10-28T15:47:41Z","customer_id":"EX2QSVGTZN4K1E5QE1CBFNVQ8M","customer_note":"","id":"zkras0xv0xwswx","location_id":"LEQHH0YY8B42M","seller_note":"","start_at":"2020-11-26T13:00:00Z","status":"CANCELLED_BY_CUSTOMER","updated_at":"2020-10-28T15:49:25Z","version":1},"errors":[]}},"CancelInvoiceRequest":{"type":"object","description":"Describes a `CancelInvoice` request.","x-release-status":"PUBLIC","required":["version"],"properties":{"version":{"type":"integer","description":"The version of the [invoice](entity:Invoice) to cancel.\nIf you do not know the version, you can call \n[GetInvoice](api-endpoint:Invoices-GetInvoice) or [ListInvoices](api-endpoint:Invoices-ListInvoices)."}},"example":{"version":0}},"CancelInvoiceResponse":{"type":"object","description":"The response returned by the `CancelInvoice` request.","x-release-status":"PUBLIC","properties":{"invoice":{"$ref":"#/components/schemas/Invoice","description":"The canceled invoice."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information about errors encountered during the request."}},"example":{"invoice":{"accepted_payment_methods":{"bank_account":false,"buy_now_pay_later":false,"card":true,"cash_app_pay":false,"square_gift_card":false},"created_at":"2020-06-18T17:45:13Z","custom_fields":[{"label":"Event Reference Number","placement":"ABOVE_LINE_ITEMS","value":"Ref. #1234"},{"label":"Terms of Service","placement":"BELOW_LINE_ITEMS","value":"The terms of service are..."}],"delivery_method":"EMAIL","description":"We appreciate your business!","id":"inv:0-ChCHu2mZEabLeeHahQnXDjZQECY","invoice_number":"inv-100","location_id":"ES0RJRZYEC39A","order_id":"CAISENgvlJ6jLWAzERDzjyHVybY","payment_requests":[{"automatic_payment_source":"NONE","computed_amount_money":{"amount":10000,"currency":"USD"},"due_date":"2030-01-24","reminders":[{"message":"Your invoice is due tomorrow","relative_scheduled_days":-1,"status":"PENDING","uid":"beebd363-e47f-4075-8785-c235aaa7df11"}],"request_type":"BALANCE","tipping_enabled":true,"total_completed_amount_money":{"amount":0,"currency":"USD"},"uid":"2da7964f-f3d2-4f43-81e8-5aa220bf3355"}],"primary_recipient":{"customer_id":"JDKYHBWT1D4F8MFH63DBMEN8Y4","email_address":"[email protected]","family_name":"Earhart","given_name":"Amelia","phone_number":"1-212-555-4240"},"sale_or_service_date":"2030-01-24","scheduled_at":"2030-01-13T10:00:00Z","status":"CANCELED","store_payment_method_enabled":false,"timezone":"America/Los_Angeles","title":"Event Planning Services","updated_at":"2020-06-18T18:23:11Z","version":1}}},"CancelLoyaltyPromotionResponse":{"type":"object","description":"Represents a [CancelLoyaltyPromotion](api-endpoint:Loyalty-CancelLoyaltyPromotion) response.\nEither `loyalty_promotion` or `errors` is present in the response.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."},"loyalty_promotion":{"$ref":"#/components/schemas/LoyaltyPromotion","description":"The canceled loyalty promotion."}},"example":{"loyalty_promotion":{"available_time":{"start_date":"2022-08-16","time_periods":["BEGIN:VEVENT\nDTSTART:20220816T160000\nDURATION:PT2H\nRRULE:FREQ=WEEKLY;BYDAY=TU\nEND:VEVENT"]},"canceled_at":"2022-08-17T12:42:49Z","created_at":"2022-08-16T08:38:54Z","id":"loypromo_f0f9b849-725e-378d-b810-511237e07b67","incentive":{"points_multiplier_data":{"multiplier":"3.000","points_multiplier":3},"type":"POINTS_MULTIPLIER"},"loyalty_program_id":"d619f755-2d17-41f3-990d-c04ecedd64dd","minimum_spend_amount_money":{"amount":2000,"currency":"USD"},"name":"Tuesday Happy Hour Promo","qualifying_category_ids":["XTQPYLR3IIU9C44VRCB3XD12"],"status":"CANCELED","trigger_limit":{"interval":"DAY","times":1},"updated_at":"2022-08-17T12:42:49Z"}}},"CancelPaymentByIdempotencyKeyRequest":{"type":"object","description":"Describes a request to cancel a payment using\n[CancelPaymentByIdempotencyKey](api-endpoint:Payments-CancelPaymentByIdempotencyKey).","x-release-status":"PUBLIC","required":["idempotency_key"],"properties":{"idempotency_key":{"type":"string","description":"The `idempotency_key` identifying the payment to be canceled.","minLength":1,"maxLength":45}},"example":{"idempotency_key":"a7e36d40-d24b-11e8-b568-0800200c9a66"}},"CancelPaymentByIdempotencyKeyResponse":{"type":"object","description":"Defines the response returned by\n[CancelPaymentByIdempotencyKey](api-endpoint:Payments-CancelPaymentByIdempotencyKey).\nOn success, `errors` is empty.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{}},"CancelPaymentResponse":{"type":"object","description":"Defines the response returned by [CancelPayment](api-endpoint:Payments-CancelPayment).","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information about errors encountered during the request."},"payment":{"$ref":"#/components/schemas/Payment","description":"The successfully canceled `Payment` object."}},"example":{"payment":{"amount_money":{"amount":1000,"currency":"USD"},"application_details":{"application_id":"sq0ids-TcgftTEtKxJTRF1lCFJ9TA","square_product":"ECOMMERCE_API"},"approved_money":{"amount":1000,"currency":"USD"},"card_details":{"auth_result_code":"68aLBM","avs_status":"AVS_ACCEPTED","card":{"bin":"411111","card_brand":"VISA","card_type":"DEBIT","exp_month":11,"exp_year":2022,"fingerprint":"sq-1-Hxim77tbdcbGejOejnoAklBVJed2YFLTmirfl8Q5XZzObTc8qY_U8RkwzoNL8dCEcQ","last_4":"1111","prepaid_type":"NOT_PREPAID"},"card_payment_timeline":{"authorized_at":"2021-10-13T20:26:44.364Z","voided_at":"2021-10-13T20:31:21.597Z"},"cvv_status":"CVV_ACCEPTED","entry_method":"ON_FILE","statement_description":"SQ *EXAMPLE TEST GOSQ.C","status":"VOIDED"},"created_at":"2021-10-13T20:26:44.191Z","customer_id":"W92WH6P11H4Z77CTET0RNTGFW8","delay_action":"CANCEL","delay_duration":"PT168H","delayed_until":"2021-10-20T20:26:44.191Z","id":"1QjqpBVyrI9S4H9sTGDWU9JeiWdZY","location_id":"L88917AVBK2S5","note":"Example Note","order_id":"nUSN9TdxpiK3SrQg3wzmf6r8LP9YY","risk_evaluation":{"created_at":"2021-10-13T20:26:45.271Z","risk_level":"NORMAL"},"source_type":"CARD","status":"CANCELED","tip_money":{"amount":100,"currency":"USD"},"total_money":{"amount":1100,"currency":"USD"},"updated_at":"2021-10-13T20:31:21.597Z","version_token":"N8AGYgEjCiY9Q57Jw7aVHEpBq8bzGCDCQMRX8Vs56N06o"}}},"CancelSubscriptionResponse":{"type":"object","description":"Defines output parameters in a response from the \n[CancelSubscription](api-endpoint:Subscriptions-CancelSubscription) endpoint.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Errors encountered during the request."},"subscription":{"$ref":"#/components/schemas/Subscription","description":"The specified subscription scheduled for cancellation according to the action created by the request."},"actions":{"type":"array","items":{"$ref":"#/components/schemas/SubscriptionAction"},"description":"A list of a single `CANCEL` action scheduled for the subscription.","x-release-status":"BETA"}},"example":{"subscription":{"canceled_date":"2023-06-05","card_id":"ccof:qy5x8hHGYsgLrp4Q4GB","created_at":"2022-01-19T21:53:10Z","customer_id":"CHFGVKYY8RSV93M5KCYTG4PN0G","id":"910afd30-464a-4e00-a8d8-2296e","invoice_ids":["inv:0-ChCHu2mZEabLeeHahQnXDjZQECY","inv:0-ChrcX_i3sNmfsHTGKhI4Wg2mceA"],"location_id":"S8GWD5R9QB376","paid_until_date":"2023-12-31","plan_variation_id":"6JHXF3B2CW3YKHDV4XEM674H","source":{"name":"My Application"},"start_date":"2022-01-19","status":"ACTIVE","timezone":"America/Los_Angeles","version":3}}},"CancelTerminalActionResponse":{"type":"object","x-release-status":"BETA","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information on errors encountered during the request."},"action":{"$ref":"#/components/schemas/TerminalAction","description":"The canceled `TerminalAction`"}},"example":{"action":{"app_id":"APP_ID","cancel_reason":"SELLER_CANCELED","created_at":"2021-07-28T23:22:07.476Z","deadline_duration":"PT5M","device_id":"DEVICE_ID","id":"termapia:jveJIAkkAjILHkdCE","location_id":"LOCATION_ID","save_card_options":{"customer_id":"CUSTOMER_ID","reference_id":"user-id-1"},"status":"CANCELED","type":"SAVE_CARD","updated_at":"2021-07-28T23:22:29.511Z"}}},"CancelTerminalCheckoutResponse":{"type":"object","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information about errors encountered during the request."},"checkout":{"$ref":"#/components/schemas/TerminalCheckout","description":"The canceled `TerminalCheckout`."}},"example":{"checkout":{"amount_money":{"amount":123,"currency":"USD"},"app_id":"APP_ID","cancel_reason":"SELLER_CANCELED","created_at":"2020-03-16T15:31:19.934Z","deadline_duration":"PT5M","device_options":{"device_id":"dbb5d83a-7838-11ea-bc55-0242ac130003","skip_receipt_screen":true,"tip_settings":{"allow_tipping":true}},"id":"S1yDlPQx7slqO","location_id":"LOCATION_ID","reference_id":"id36815","status":"CANCELED","updated_at":"2020-03-16T15:31:45.787Z"}}},"CancelTerminalRefundResponse":{"type":"object","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information about errors encountered during the request."},"refund":{"$ref":"#/components/schemas/TerminalRefund","description":"The updated `TerminalRefund`."}},"example":{"refund":{"amount_money":{"amount":100,"currency":"CAD"},"app_id":"sandbox-sq0idb-c2OuYt13YaCAeJq_2cd8OQ","cancel_reason":"SELLER_CANCELED","card":{"bin":"411111","card_brand":"INTERAC","card_type":"CREDIT","exp_month":1,"exp_year":2022,"fingerprint":"sq-1-B1fP9MNNmZgVVaPKRND6oDKYbz25S2cTvg9Mzwg3RMTK1zT1PiGRT-AE3nTA8vSmmw","last_4":"1111"},"created_at":"2020-10-21T22:47:23.241Z","deadline_duration":"PT5M","device_id":"42690809-faa2-4701-a24b-19d3d34c9aaa","id":"g6ycb6HD-5O5OvgkcNUhl7JBuINflcjKqUzXZY","location_id":"76C9W6K8CNNQ5","order_id":"kcuKDKreRaI4gF4TjmEgZjHk8Z7YY","payment_id":"5O5OvgkcNUhl7JBuINflcjKqUzXZY","reason":"reason","status":"CANCELED","updated_at":"2020-10-21T22:47:30.096Z"}}},"CancelTransferOrderRequest":{"type":"object","description":"Request to cancel a transfer order, marking any unreceived quantities as canceled","x-release-status":"BETA","required":["idempotency_key"],"properties":{"idempotency_key":{"type":"string","description":"A unique string that identifies this UpdateTransferOrder request. Keys can be\nany valid string but must be unique for every UpdateTransferOrder request.","minLength":1},"version":{"type":"integer","description":"Version for optimistic concurrency","format":"int64"}},"example":{"idempotency_key":"65cc0586-3e82-4d08-b524-3885cffd52","transfer_order_id":"EXAMPLE_TRANSFER_ORDER_ID_123","version":1753117449752}},"CancelTransferOrderResponse":{"type":"object","description":"Response for canceling a transfer order","x-release-status":"BETA","properties":{"transfer_order":{"$ref":"#/components/schemas/TransferOrder","description":"The updated transfer order with status changed to CANCELED"},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request"}},"example":{"transfer_order":{"completed_at":"2025-01-15T10:45:00Z","created_at":"2025-01-15T10:30:00Z","created_by_team_member_id":"EXAMPLE_TEAM_MEMBER_ID_789","destination_location_id":"EXAMPLE_DEST_LOCATION_ID_456","expected_at":"2025-11-09T05:00:00Z","id":"EXAMPLE_TRANSFER_ORDER_ID_123","line_items":[{"item_variation_id":"EXAMPLE_ITEM_VARIATION_ID_001","quantity_canceled":"5","quantity_damaged":"0","quantity_ordered":"5","quantity_pending":"0","quantity_received":"0","uid":"1"},{"item_variation_id":"EXAMPLE_ITEM_VARIATION_ID_002","quantity_canceled":"3","quantity_damaged":"0","quantity_ordered":"3","quantity_pending":"0","quantity_received":"0","uid":"2"}],"notes":"Example transfer order for inventory redistribution between locations","source_location_id":"EXAMPLE_SOURCE_LOCATION_ID_123","status":"CANCELED","tracking_number":"TRACK123456789","updated_at":"2025-01-15T10:45:00Z","version":1753117461842}}},"Card":{"type":"object","description":"Represents the payment details of a card to be used for payments. These\ndetails are determined by the payment token generated by Web Payments SDK.","x-release-status":"PUBLIC","properties":{"id":{"type":"string","description":"Unique ID for this card. Generated by Square.","maxLength":64,"readOnly":true},"card_brand":{"$ref":"#/components/schemas/CardBrand","description":"The card's brand.\nSee [CardBrand](#type-cardbrand) for possible values","readOnly":true},"last_4":{"type":"string","description":"The last 4 digits of the card number.","maxLength":4,"readOnly":true},"exp_month":{"type":"integer","description":"The expiration month of the associated card as an integer between 1 and 12.","format":"int64","nullable":true},"exp_year":{"type":"integer","description":"The four-digit year of the card's expiration date.","format":"int64","nullable":true},"cardholder_name":{"type":"string","description":"The name of the cardholder.","maxLength":96,"nullable":true},"billing_address":{"$ref":"#/components/schemas/Address","description":"The billing address for this card. `US` postal codes can be provided as a 5-digit zip code\nor 9-digit ZIP+4 (example: `12345-6789`). For a full list of field meanings by country, see\n[Working with Addresses](https://developer.squareup.com/docs/build-basics/common-data-types/working-with-addresses).","nullable":true},"fingerprint":{"type":"string","description":"Intended as a Square-assigned identifier, based\non the card number, to identify the card across multiple locations within a\nsingle application.","maxLength":255,"readOnly":true},"customer_id":{"type":"string","description":"**Required** The ID of a [customer](entity:Customer) to be associated with the card.","nullable":true},"merchant_id":{"type":"string","description":"The ID of the merchant associated with the card.","readOnly":true},"reference_id":{"type":"string","description":"An optional user-defined reference ID that associates this card with\nanother entity in an external system. For example, a customer ID from an\nexternal customer management system.","maxLength":128,"nullable":true},"enabled":{"type":"boolean","description":"Indicates whether or not a card can be used for payments.","readOnly":true},"card_type":{"$ref":"#/components/schemas/CardType","description":"The type of the card.\nThe Card object includes this field only in response to Payments API calls.\nSee [CardType](#type-cardtype) for possible values","readOnly":true},"prepaid_type":{"$ref":"#/components/schemas/CardPrepaidType","description":"Indicates whether the card is prepaid or not.\nSee [CardPrepaidType](#type-cardprepaidtype) for possible values","readOnly":true},"bin":{"type":"string","description":"The first six digits of the card number, known as the Bank Identification Number (BIN). Only the Payments API\nreturns this field.","maxLength":6,"readOnly":true},"created_at":{"type":"string","description":"Timestamp for when the card object was created on Square’s servers. In RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\".","readOnly":true},"disabled_at":{"type":"string","description":"Timestamp for when the card object was disabled on Square’s servers. In RFC 3339 format, e.g., \"2016-09-04T23:59:33.123Z\".","readOnly":true},"version":{"type":"integer","description":"Current version number of the card. Increments with each card update. Requests to update an\nexisting Card object will be rejected unless the version in the request matches the current\nversion for the Card.","format":"int64"},"card_co_brand":{"$ref":"#/components/schemas/CardCoBrand","description":"The card's co-brand if available. For example, an Afterpay virtual card would have a\nco-brand of AFTERPAY.\nSee [CardCoBrand](#type-cardcobrand) for possible values","readOnly":true},"issuer_alert":{"$ref":"#/components/schemas/CardIssuerAlert","description":"An alert from the issuing bank about the card status. Alerts can indicate whether\nfuture charges to the card are likely to fail. For more information, see\n[Manage Card on File Declines](https://developer.squareup.com/docs/cards-api/manage-card-on-file-declines).\n\nThis field is present only if there's an active issuer alert.\nSee [IssuerAlert](#type-issueralert) for possible values","readOnly":true,"x-release-status":"BETA"},"issuer_alert_at":{"type":"string","description":"The timestamp of when the current issuer alert was received and processed, in\nRFC 3339 format.\n\nThis field is present only if there's an active issuer alert.","readOnly":true,"x-release-status":"BETA"},"hsa_fsa":{"type":"boolean","description":"Indicates whether the card is linked to a Health Savings Account (HSA) or Flexible\nSpending Account (FSA), based on the card BIN.","readOnly":true,"x-release-status":"BETA"}}},"CardAutomaticallyUpdatedEvent":{"type":"object","description":"Published when Square automatically updates the expiration date or\nprimary account number (PAN) of a [card](entity:Card) or adds or removes an issuer alert.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the target seller associated with the event.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"card.automatically_updated\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"The timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CardAutomaticallyUpdatedEventData","description":"The data associated with the event.","nullable":true}},"example":{"created_at":"2020-02-15T04:38:13Z","data":{"id":"ccof:uIbfJXhXETSP197M3GB","object":{"card":{"billing_address":{"address_line_1":"500 Electric Ave","address_line_2":"Suite 600","administrative_district_level_1":"NY","country":"US","locality":"New York","postal_code":"10003"},"bin":"411111","card_brand":"VISA","card_type":"CREDIT","cardholder_name":"Amelia Earhart","customer_id":"VDKXEEKPJN48QDG3BGGFAK05P8","enabled":true,"exp_month":11,"exp_year":2022,"fingerprint":"ex-p-cs80EK9Flz7LsCMv-szbptQ_ssAGrhemzSTsPFgt9nzyE6t7okiLIQc-qw_quqKX4Q","hsa_fsa":false,"id":"ccof:uIbfJXhXETSP197M3GB","last_4":"1111","merchant_id":"6SSW7HV8K2ST5","prepaid_type":"NOT_PREPAID","reference_id":"user-id-2","version":2}},"type":"card"},"event_id":"d214f854-adb1-4f56-b078-4b8697a3187a","merchant_id":"6SSW7HV8K2ST5","type":"card.automatically_updated"},"x-webhook":{"event":"card.automatically_updated","scopes":["PAYMENTS_READ"]},"x-api":"#/components/x-apis/Cards","x-since":"2021-06-16"},"CardAutomaticallyUpdatedEventData":{"type":"object","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"The type of the event data object. The value is `\"card\"`.","maxLength":50,"nullable":true},"id":{"type":"string","description":"The ID of the event data object.","maxLength":192},"object":{"$ref":"#/components/schemas/CardAutomaticallyUpdatedEventObject","description":"An object containing the automatically updated card.","nullable":true}}},"CardAutomaticallyUpdatedEventObject":{"type":"object","x-release-status":"PUBLIC","properties":{"card":{"$ref":"#/components/schemas/Card","description":"The automatically updated card.","nullable":true}}},"CardBrand":{"type":"string","enum":["OTHER_BRAND","VISA","MASTERCARD","AMERICAN_EXPRESS","DISCOVER","DISCOVER_DINERS","JCB","CHINA_UNIONPAY","SQUARE_GIFT_CARD","SQUARE_CAPITAL_CARD","INTERAC","EFTPOS","FELICA","EBT","QUICPAY","ID","TRANSPORTATION_IC","CARNET"],"x-enum-elements":[{"name":"OTHER_BRAND","description":""},{"name":"VISA","description":""},{"name":"MASTERCARD","description":""},{"name":"AMERICAN_EXPRESS","description":""},{"name":"DISCOVER","description":""},{"name":"DISCOVER_DINERS","description":""},{"name":"JCB","description":""},{"name":"CHINA_UNIONPAY","description":""},{"name":"SQUARE_GIFT_CARD","description":""},{"name":"SQUARE_CAPITAL_CARD","description":""},{"name":"INTERAC","description":""},{"name":"EFTPOS","description":""},{"name":"FELICA","description":""},{"name":"EBT","description":""},{"name":"QUICPAY","description":""},{"name":"ID","description":""},{"name":"TRANSPORTATION_IC","description":""},{"name":"CARNET","description":""}],"description":"Indicates a card's brand, such as `VISA` or `MASTERCARD`.","x-release-status":"PUBLIC"},"CardCoBrand":{"type":"string","enum":["UNKNOWN","AFTERPAY","CLEARPAY"],"x-enum-elements":[{"name":"UNKNOWN","description":""},{"name":"AFTERPAY","description":""},{"name":"CLEARPAY","description":""}],"description":"Indicates the brand for a co-branded card.","x-release-status":"PUBLIC"},"CardCreatedEvent":{"type":"object","description":"Published when a [card](entity:Card) is created or imported.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the target seller associated with the event.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"card.created\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"The timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CardCreatedEventData","description":"The data associated with the event.","nullable":true}},"example":{"created_at":"2020-02-15T04:38:13Z","data":{"id":"ccof:uIbfJXhXETSP197M3GB","object":{"card":{"billing_address":{"address_line_1":"500 Electric Ave","address_line_2":"Suite 600","administrative_district_level_1":"NY","country":"US","locality":"New York","postal_code":"10003"},"bin":"411111","card_brand":"VISA","card_type":"CREDIT","cardholder_name":"Amelia Earhart","customer_id":"VDKXEEKPJN48QDG3BGGFAK05P8","enabled":true,"exp_month":11,"exp_year":2022,"fingerprint":"ex-p-cs80EK9Flz7LsCMv-szbptQ_ssAGrhemzSTsPFgt9nzyE6t7okiLIQc-qw_quqKX4Q","hsa_fsa":false,"id":"ccof:uIbfJXhXETSP197M3GB","last_4":"1111","merchant_id":"6SSW7HV8K2ST5","prepaid_type":"NOT_PREPAID","reference_id":"user-id-1","version":1}},"type":"card"},"event_id":"d214f854-adb1-4f56-b078-4b8697a3187a","merchant_id":"6SSW7HV8K2ST5","type":"card.created"},"x-webhook":{"event":"card.created","scopes":["PAYMENTS_READ"]},"x-api":"#/components/x-apis/Cards","x-since":"2021-06-16"},"CardCreatedEventData":{"type":"object","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"The type of the event data object. The value is `\"card\"`.","maxLength":50,"nullable":true},"id":{"type":"string","description":"The ID of the event data object.","maxLength":192},"object":{"$ref":"#/components/schemas/CardCreatedEventObject","description":"An object containing the created card.","nullable":true}}},"CardCreatedEventObject":{"type":"object","x-release-status":"PUBLIC","properties":{"card":{"$ref":"#/components/schemas/Card","description":"The created card.","nullable":true}}},"CardDisabledEvent":{"type":"object","description":"Published when a [card](entity:Card) is disabled.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the target seller associated with the event.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"card.disabled\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"The timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CardDisabledEventData","description":"The data associated with the event.","nullable":true}},"example":{"created_at":"2020-02-15T04:38:13Z","data":{"id":"ccof:uIbfJXhXETSP197M3GB","object":{"card":{"billing_address":{"address_line_1":"500 Electric Ave","address_line_2":"Suite 600","administrative_district_level_1":"NY","country":"US","locality":"New York","postal_code":"10003"},"bin":"411111","card_brand":"VISA","card_type":"CREDIT","cardholder_name":"Amelia Earhart","customer_id":"VDKXEEKPJN48QDG3BGGFAK05P8","enabled":false,"exp_month":11,"exp_year":2022,"fingerprint":"ex-p-cs80EK9Flz7LsCMv-szbptQ_ssAGrhemzSTsPFgt9nzyE6t7okiLIQc-qw_quqKX4Q","hsa_fsa":false,"id":"ccof:uIbfJXhXETSP197M3GB","last_4":"1111","merchant_id":"6SSW7HV8K2ST5","prepaid_type":"NOT_PREPAID","reference_id":"user-id-1","version":2}},"type":"card"},"event_id":"d214f854-adb1-4f56-b078-4b8697a3187a","merchant_id":"6SSW7HV8K2ST5","type":"card.disabled"},"x-webhook":{"event":"card.disabled","scopes":["PAYMENTS_READ"]},"x-api":"#/components/x-apis/Cards","x-since":"2021-06-16"},"CardDisabledEventData":{"type":"object","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"The type of the event data object. The value is `\"card\"`.","maxLength":50,"nullable":true},"id":{"type":"string","description":"The ID of the event data object.","maxLength":192},"object":{"$ref":"#/components/schemas/CardDisabledEventObject","description":"An object containing the disabled card.","nullable":true}}},"CardDisabledEventObject":{"type":"object","x-release-status":"PUBLIC","properties":{"card":{"$ref":"#/components/schemas/Card","description":"The disabled card.","nullable":true}}},"CardForgottenEvent":{"type":"object","description":"Published when a [card](entity:Card) is GDPR forgotten or vaulted.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the target seller associated with the event.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"card.forgotten\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"The timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CardForgottenEventData","description":"The data associated with the event.","nullable":true}},"example":{"created_at":"2020-02-15T04:38:13Z","data":{"id":"ccof:uIbfJXhXETSP197M3GB","object":{"card":{"customer_id":"VDKXEEKPJN48QDG3BGGFAK05P8","enabled":false,"hsa_fsa":false,"id":"ccof:uIbfJXhXETSP197M3GB","merchant_id":"6SSW7HV8K2ST5","reference_id":"user-id-1","version":2}},"type":"card"},"event_id":"d214f854-adb1-4f56-b078-4b8697a3187a","merchant_id":"6SSW7HV8K2ST5","type":"card.forgotten"},"x-webhook":{"event":"card.forgotten","scopes":["PAYMENTS_READ"]},"x-api":"#/components/x-apis/Cards","x-since":"2021-06-16"},"CardForgottenEventCard":{"type":"object","x-release-status":"PUBLIC","properties":{"id":{"type":"string","description":"Unique ID for this card. Generated by Square.","maxLength":64,"readOnly":true},"customer_id":{"type":"string","description":"The ID of a customer created using the Customers API associated with the card.","nullable":true},"enabled":{"type":"boolean","description":"Indicates whether or not a card can be used for payments.","nullable":true},"reference_id":{"type":"string","description":"An optional user-defined reference ID that associates this card with\nanother entity in an external system. For example, a customer ID from an\nexternal customer management system.","nullable":true},"version":{"type":"integer","description":"Current version number of the card. Increments with each card update. Requests to update an\nexisting Card object will be rejected unless the version in the request matches the current\nversion for the Card.","format":"int64"},"merchant_id":{"type":"string","description":"The ID of the merchant associated with the card.","nullable":true}}},"CardForgottenEventData":{"type":"object","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"The type of the event data object. The value is `\"card\"`.","maxLength":50,"nullable":true},"id":{"type":"string","description":"The ID of the event data object.","maxLength":192},"object":{"$ref":"#/components/schemas/CardForgottenEventObject","description":"An object containing the forgotten card.","nullable":true}}},"CardForgottenEventObject":{"type":"object","x-release-status":"PUBLIC","properties":{"card":{"$ref":"#/components/schemas/CardForgottenEventCard","description":"The forgotten card.","nullable":true}}},"CardIssuerAlert":{"type":"string","enum":["ISSUER_ALERT_CARD_CLOSED"],"x-enum-elements":[{"name":"ISSUER_ALERT_CARD_CLOSED","description":"The underlying account of the card was closed, which is a strong signal that future\ncharges to the card are likely to fail."}],"description":"Indicates the type of issuer alert for a [card on file](entity:Card).","x-release-status":"BETA"},"CardPaymentDetails":{"type":"object","description":"Reflects the current status of a card payment. Contains only non-confidential information.","x-release-status":"PUBLIC","properties":{"status":{"type":"string","description":"The card payment's current state. The state can be AUTHORIZED, CAPTURED, VOIDED, or\nFAILED.","maxLength":50,"readOnly":true},"card":{"$ref":"#/components/schemas/Card","description":"The credit card's non-confidential details.","readOnly":true},"entry_method":{"type":"string","description":"The method used to enter the card's details for the payment. The method can be\n`KEYED`, `SWIPED`, `EMV`, `ON_FILE`, or `CONTACTLESS`.","maxLength":50,"readOnly":true},"cvv_status":{"type":"string","description":"The status code returned from the Card Verification Value (CVV) check. The code can be\n`CVV_ACCEPTED`, `CVV_REJECTED`, or `CVV_NOT_CHECKED`.","maxLength":50,"readOnly":true},"avs_status":{"type":"string","description":"The status code returned from the Address Verification System (AVS) check. The code can be\n`AVS_ACCEPTED`, `AVS_REJECTED`, or `AVS_NOT_CHECKED`.","maxLength":50,"readOnly":true},"auth_result_code":{"type":"string","description":"The status code returned by the card issuer that describes the payment's\nauthorization status.","maxLength":10,"readOnly":true},"application_identifier":{"type":"string","description":"For EMV payments, the application ID identifies the EMV application used for the payment.","maxLength":32,"readOnly":true},"application_name":{"type":"string","description":"For EMV payments, the human-readable name of the EMV application used for the payment.","maxLength":16,"readOnly":true},"application_cryptogram":{"type":"string","description":"For EMV payments, the cryptogram generated for the payment.","maxLength":16,"readOnly":true},"verification_method":{"type":"string","description":"For EMV payments, the method used to verify the cardholder's identity. The method can be\n`PIN`, `SIGNATURE`, `PIN_AND_SIGNATURE`, `ON_DEVICE`, or `NONE`.","maxLength":50,"readOnly":true},"verification_results":{"type":"string","description":"For EMV payments, the results of the cardholder verification. The result can be\n`SUCCESS`, `FAILURE`, or `UNKNOWN`.","maxLength":50,"readOnly":true},"statement_description":{"type":"string","description":"The statement description sent to the card networks.\n\nNote: The actual statement description varies and is likely to be truncated and appended with\nadditional information on a per issuer basis.","maxLength":50,"readOnly":true},"device_details":{"$ref":"#/components/schemas/DeviceDetails","description":"__Deprecated__: Use `Payment.device_details` instead.\n\nDetails about the device that took the payment.","x-release-status":"DEPRECATED","nullable":true},"card_payment_timeline":{"$ref":"#/components/schemas/CardPaymentTimeline","description":"The timeline for card payments.","readOnly":true},"refund_requires_card_presence":{"type":"boolean","description":"Whether the card must be physically present for the payment to\nbe refunded. If set to `true`, the card must be present.","readOnly":true,"x-release-status":"BETA"},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information about errors encountered during the request.","readOnly":true},"applied_card_surcharge_details":{"$ref":"#/components/schemas/CardSurchargeDetails","description":"Additional information about a card_surcharge on the payment.","readOnly":true},"wallet_type":{"type":"string","description":"The type of digital wallet used for this card payment, if applicable.\nCurrently only populated for in-person Apple Pay payments. Detection has no false\npositives but may have false negatives (some Apple Pay payments may not be detected).\n\nFor payments with `source_type` of `WALLET`, see `DigitalWalletDetails` instead.\n\nValues: `APPLE_PAY`","maxLength":50,"readOnly":true,"x-release-status":"BETA"}}},"CardPaymentTimeline":{"type":"object","description":"The timeline for card payments.","x-release-status":"PUBLIC","properties":{"authorized_at":{"type":"string","description":"The timestamp when the payment was authorized, in RFC 3339 format.","nullable":true},"captured_at":{"type":"string","description":"The timestamp when the payment was captured, in RFC 3339 format.","nullable":true},"voided_at":{"type":"string","description":"The timestamp when the payment was voided, in RFC 3339 format.","nullable":true}}},"CardPrepaidType":{"type":"string","enum":["UNKNOWN_PREPAID_TYPE","NOT_PREPAID","PREPAID"],"x-enum-elements":[{"name":"UNKNOWN_PREPAID_TYPE","description":""},{"name":"NOT_PREPAID","description":""},{"name":"PREPAID","description":""}],"description":"Indicates a card's prepaid type, such as `NOT_PREPAID` or `PREPAID`.","x-release-status":"PUBLIC"},"CardSurchargeDetails":{"type":"object","description":"Details related to an attempt to apply a card surcharge to this payment. When surcharge\neligibility is not known in advance, such as when the card type (debit or credit) is required\nto make the eligibility determination, proposed_card_surcharge_money and\nproposed_additional_amount_money will match the values in the request, while card_surcharge_money\nand additional_amount_money are present only when the payment has a surcharge applied.","x-release-status":"PUBLIC","properties":{"card_surcharge_money":{"$ref":"#/components/schemas/Money","description":"A specific surcharge levied by the merchant, if a card payment is used, instead of cash or\nsome other payment type. Should only include the base surcharge amount. Any additional fees related\nto the surcharge (e.g. taxes on the surcharge) should only be included in the additional_amount_money.\nThis amount is specified in the smallest denomination of the applicable currency (for example,\nUS dollar amounts are specified in cents). For more information, see\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts).\nThe currency code must match the currency associated with the business that is accepting the\npayment.","nullable":true}}},"CardType":{"type":"string","enum":["UNKNOWN_CARD_TYPE","CREDIT","DEBIT"],"x-enum-elements":[{"name":"UNKNOWN_CARD_TYPE","description":""},{"name":"CREDIT","description":""},{"name":"DEBIT","description":""}],"description":"Indicates a card's type, such as `CREDIT` or `DEBIT`.","x-release-status":"PUBLIC"},"CardUpdatedEvent":{"type":"object","description":"Published when a [card](entity:Card) is updated by the seller in the Square Dashboard.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the target seller associated with the event.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"card.updated\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"The timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CardUpdatedEventData","description":"The data associated with the event.","nullable":true}},"example":{"created_at":"2020-02-15T04:38:13Z","data":{"id":"ccof:uIbfJXhXETSP197M3GB","object":{"card":{"billing_address":{"address_line_1":"500 Electric Ave","address_line_2":"Suite 600","administrative_district_level_1":"NY","country":"US","locality":"New York","postal_code":"10003"},"bin":"411111","card_brand":"VISA","card_type":"CREDIT","cardholder_name":"Amelia Earhart","customer_id":"VDKXEEKPJN48QDG3BGGFAK05P8","enabled":true,"exp_month":11,"exp_year":2022,"fingerprint":"ex-p-cs80EK9Flz7LsCMv-szbptQ_ssAGrhemzSTsPFgt9nzyE6t7okiLIQc-qw_quqKX4Q","hsa_fsa":false,"id":"ccof:uIbfJXhXETSP197M3GB","last_4":"1111","merchant_id":"6SSW7HV8K2ST5","prepaid_type":"NOT_PREPAID","reference_id":"user-id-2","version":2}},"type":"card"},"event_id":"d214f854-adb1-4f56-b078-4b8697a3187a","merchant_id":"6SSW7HV8K2ST5","type":"card.updated"},"x-webhook":{"event":"card.updated","scopes":["PAYMENTS_READ"]},"x-api":"#/components/x-apis/Cards","x-since":"2021-06-16"},"CardUpdatedEventData":{"type":"object","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"The type of the event data object. The value is `\"card\"`.","maxLength":50,"nullable":true},"id":{"type":"string","description":"The ID of the event data object.","maxLength":192},"object":{"$ref":"#/components/schemas/CardUpdatedEventObject","description":"An object containing the updated card.","nullable":true}}},"CardUpdatedEventObject":{"type":"object","x-release-status":"PUBLIC","properties":{"card":{"$ref":"#/components/schemas/Card","description":"The updated card.","nullable":true}}},"CashAppDetails":{"type":"object","description":"Additional details about `WALLET` type payments with the `brand` of `CASH_APP`.","x-release-status":"PUBLIC","properties":{"buyer_full_name":{"type":"string","description":"The name of the Cash App account holder.","maxLength":255,"nullable":true},"buyer_country_code":{"type":"string","description":"The country of the Cash App account holder, in ISO 3166-1-alpha-2 format.\n\nFor possible values, see [Country](entity:Country).","minLength":2,"maxLength":2,"nullable":true},"buyer_cashtag":{"type":"string","description":"$Cashtag of the Cash App account holder.","minLength":1,"maxLength":21,"readOnly":true}}},"CashDrawerDevice":{"type":"object","x-release-status":"PUBLIC","properties":{"id":{"type":"string","description":"The device Square-issued ID"},"name":{"type":"string","description":"The device merchant-specified name.","nullable":true}}},"CashDrawerEventType":{"type":"string","enum":["NO_SALE","CASH_TENDER_PAYMENT","OTHER_TENDER_PAYMENT","CASH_TENDER_CANCELLED_PAYMENT","OTHER_TENDER_CANCELLED_PAYMENT","CASH_TENDER_REFUND","OTHER_TENDER_REFUND","PAID_IN","PAID_OUT"],"x-enum-elements":[{"name":"NO_SALE","description":"Triggered when a no sale occurs on a cash drawer.\nA CashDrawerEvent of this type must have a zero money amount."},{"name":"CASH_TENDER_PAYMENT","description":"Triggered when a cash tender payment occurs on a cash drawer.\nA CashDrawerEvent of this type can must not have a negative amount."},{"name":"OTHER_TENDER_PAYMENT","description":"Triggered when a check, gift card, or other non-cash payment occurs\non a cash drawer.\nA CashDrawerEvent of this type must have a zero money amount."},{"name":"CASH_TENDER_CANCELLED_PAYMENT","description":"Triggered when a split tender bill is cancelled after cash has been\ntendered.\nA CASH_TENDER_CANCELLED_PAYMENT should have a corresponding CASH_TENDER_PAYMENT.\nA CashDrawerEvent of this type must not have a negative amount."},{"name":"OTHER_TENDER_CANCELLED_PAYMENT","description":"Triggered when a split tender bill is cancelled after a non-cash tender\nhas been tendered. An OTHER_TENDER_CANCELLED_PAYMENT should have a corresponding\nOTHER_TENDER_PAYMENT. A CashDrawerEvent of this type must have a zero money\namount."},{"name":"CASH_TENDER_REFUND","description":"Triggered when a cash tender refund occurs.\nA CashDrawerEvent of this type must not have a negative amount."},{"name":"OTHER_TENDER_REFUND","description":"Triggered when an other tender refund occurs.\nA CashDrawerEvent of this type must have a zero money amount."},{"name":"PAID_IN","description":"Triggered when money unrelated to a payment is added to the cash drawer.\nFor example, an employee adds coins to the drawer.\nA CashDrawerEvent of this type must not have a negative amount."},{"name":"PAID_OUT","description":"Triggered when money is removed from the drawer for other reasons\nthan making change.\nFor example, an employee pays a delivery person with cash from the cash drawer.\nA CashDrawerEvent of this type must not have a negative amount."}],"description":"The types of events on a CashDrawerShift.\nEach event type represents an employee action on the actual cash drawer\nrepresented by a CashDrawerShift.","x-release-status":"PUBLIC"},"CashDrawerShift":{"type":"object","description":"This model gives the details of a cash drawer shift.\nThe cash_payment_money, cash_refund_money, cash_paid_in_money,\nand cash_paid_out_money fields are all computed by summing their respective\nevent types.","x-release-status":"PUBLIC","properties":{"id":{"type":"string","description":"The shift unique ID."},"state":{"$ref":"#/components/schemas/CashDrawerShiftState","description":"The shift current state.\nSee [CashDrawerShiftState](#type-cashdrawershiftstate) for possible values","nullable":true},"opened_at":{"type":"string","description":"The time when the shift began, in ISO 8601 format.","nullable":true},"ended_at":{"type":"string","description":"The time when the shift ended, in ISO 8601 format.","nullable":true},"closed_at":{"type":"string","description":"The time when the shift was closed, in ISO 8601 format.","nullable":true},"description":{"type":"string","description":"The free-form text description of a cash drawer by an employee.","nullable":true},"opened_cash_money":{"$ref":"#/components/schemas/Money","description":"The amount of money in the cash drawer at the start of the shift.\nThe amount must be greater than or equal to zero.","nullable":true},"cash_payment_money":{"$ref":"#/components/schemas/Money","description":"The amount of money added to the cash drawer from cash payments.\nThis is computed by summing all events with the types CASH_TENDER_PAYMENT and\nCASH_TENDER_CANCELED_PAYMENT. The amount is always greater than or equal to\nzero.","nullable":true},"cash_refunds_money":{"$ref":"#/components/schemas/Money","description":"The amount of money removed from the cash drawer from cash refunds.\nIt is computed by summing the events of type CASH_TENDER_REFUND. The amount\nis always greater than or equal to zero.","nullable":true},"cash_paid_in_money":{"$ref":"#/components/schemas/Money","description":"The amount of money added to the cash drawer for reasons other than cash\npayments. It is computed by summing the events of type PAID_IN. The amount is\nalways greater than or equal to zero.","nullable":true},"cash_paid_out_money":{"$ref":"#/components/schemas/Money","description":"The amount of money removed from the cash drawer for reasons other than\ncash refunds. It is computed by summing the events of type PAID_OUT. The amount\nis always greater than or equal to zero.","nullable":true},"expected_cash_money":{"$ref":"#/components/schemas/Money","description":"The amount of money that should be in the cash drawer at the end of the\nshift, based on the shift's other money amounts.\nThis can be negative if employees have not correctly recorded all the events\non the cash drawer.\ncash_paid_out_money is a summation of amounts from cash_payment_money (zero\nor positive), cash_refunds_money (zero or negative), cash_paid_in_money (zero\nor positive), and cash_paid_out_money (zero or negative) event types.","nullable":true},"closed_cash_money":{"$ref":"#/components/schemas/Money","description":"The amount of money found in the cash drawer at the end of the shift\nby an auditing employee. The amount should be positive.","nullable":true},"device":{"$ref":"#/components/schemas/CashDrawerDevice","description":"The device running Square Point of Sale that was connected to the cash drawer.","nullable":true},"created_at":{"type":"string","description":"The shift start time in RFC 3339 format.","readOnly":true},"updated_at":{"type":"string","description":"The shift updated at time in RFC 3339 format.","readOnly":true},"location_id":{"type":"string","description":"The ID of the location the cash drawer shift belongs to.","readOnly":true},"team_member_ids":{"type":"array","items":{"type":"string"},"description":"The IDs of all team members that were logged into Square Point of Sale at any\npoint while the cash drawer shift was open.","readOnly":true},"opening_team_member_id":{"type":"string","description":"The ID of the team member that started the cash drawer shift.","readOnly":true},"ending_team_member_id":{"type":"string","description":"The ID of the team member that ended the cash drawer shift.","readOnly":true},"closing_team_member_id":{"type":"string","description":"The ID of the team member that closed the cash drawer shift by auditing\nthe cash drawer contents.","readOnly":true}}},"CashDrawerShiftEvent":{"type":"object","x-release-status":"PUBLIC","properties":{"id":{"type":"string","description":"The unique ID of the event."},"event_type":{"$ref":"#/components/schemas/CashDrawerEventType","description":"The type of cash drawer shift event.\nSee [CashDrawerEventType](#type-cashdrawereventtype) for possible values","nullable":true},"event_money":{"$ref":"#/components/schemas/Money","description":"The amount of money that was added to or removed from the cash drawer\nin the event. The amount can be positive (for added money)\nor zero (for other tender type payments). The addition or removal of money can be determined by\nby the event type.","nullable":true},"created_at":{"type":"string","description":"The event time in RFC 3339 format.","readOnly":true},"description":{"type":"string","description":"An optional description of the event, entered by the employee that\ncreated the event.","nullable":true},"team_member_id":{"type":"string","description":"The ID of the team member that created the event.","readOnly":true}}},"CashDrawerShiftState":{"type":"string","enum":["OPEN","ENDED","CLOSED"],"x-enum-elements":[{"name":"OPEN","description":"An open cash drawer shift."},{"name":"ENDED","description":"A cash drawer shift that is ended but has not yet had an employee content audit."},{"name":"CLOSED","description":"An ended cash drawer shift that is closed with a completed employee\ncontent audit and recorded result."}],"description":"The current state of a cash drawer shift.","x-release-status":"PUBLIC"},"CashDrawerShiftSummary":{"type":"object","description":"The summary of a closed cash drawer shift.\nThis model contains only the money counted to start a cash drawer shift, counted\nat the end of the shift, and the amount that should be in the drawer at shift\nend based on summing all cash drawer shift events.","x-release-status":"PUBLIC","properties":{"id":{"type":"string","description":"The shift unique ID."},"state":{"$ref":"#/components/schemas/CashDrawerShiftState","description":"The shift current state.\nSee [CashDrawerShiftState](#type-cashdrawershiftstate) for possible values","nullable":true},"opened_at":{"type":"string","description":"The shift start time in ISO 8601 format.","nullable":true},"ended_at":{"type":"string","description":"The shift end time in ISO 8601 format.","nullable":true},"closed_at":{"type":"string","description":"The shift close time in ISO 8601 format.","nullable":true},"description":{"type":"string","description":"An employee free-text description of a cash drawer shift.","nullable":true},"opened_cash_money":{"$ref":"#/components/schemas/Money","description":"The amount of money in the cash drawer at the start of the shift. This\nmust be a positive amount.","nullable":true},"expected_cash_money":{"$ref":"#/components/schemas/Money","description":"The amount of money that should be in the cash drawer at the end of the\nshift, based on the cash drawer events on the shift.\nThe amount is correct if all shift employees accurately recorded their\ncash drawer shift events. Unrecorded events and events with the wrong amount\nresult in an incorrect expected_cash_money amount that can be negative.","nullable":true},"closed_cash_money":{"$ref":"#/components/schemas/Money","description":"The amount of money found in the cash drawer at the end of the shift by\nan auditing employee. The amount must be greater than or equal to zero.","nullable":true},"created_at":{"type":"string","description":"The shift start time in RFC 3339 format.","readOnly":true},"updated_at":{"type":"string","description":"The shift updated at time in RFC 3339 format.","readOnly":true},"location_id":{"type":"string","description":"The ID of the location the cash drawer shift belongs to.","readOnly":true}}},"CashPaymentDetails":{"type":"object","description":"Stores details about a cash payment. Contains only non-confidential information. For more information, see \n[Take Cash Payments](https://developer.squareup.com/docs/payments-api/take-payments/cash-payments).","x-release-status":"PUBLIC","required":["buyer_supplied_money"],"properties":{"buyer_supplied_money":{"$ref":"#/components/schemas/Money","description":"The amount and currency of the money supplied by the buyer."},"change_back_money":{"$ref":"#/components/schemas/Money","description":"The amount of change due back to the buyer. \nThis read-only field is calculated\nfrom the `amount_money` and `buyer_supplied_money` fields.","readOnly":true}}},"CatalogAvailabilityPeriod":{"type":"object","description":"Represents a time period of availability.","x-release-status":"BETA","properties":{"start_local_time":{"type":"string","description":"The start time of an availability period, specified in local time using partial-time\nRFC 3339 format. For example, `8:30:00` for a period starting at 8:30 in the morning.\nNote that the seconds value is always :00, but it is appended for conformance to the RFC.","nullable":true},"end_local_time":{"type":"string","description":"The end time of an availability period, specified in local time using partial-time\nRFC 3339 format. For example, `21:00:00` for a period ending at 9:00 in the evening.\nNote that the seconds value is always :00, but it is appended for conformance to the RFC.","nullable":true},"day_of_week":{"$ref":"#/components/schemas/DayOfWeek","description":"The day of the week for this availability period.\nSee [DayOfWeek](#type-dayofweek) for possible values","nullable":true}}},"CatalogCategory":{"type":"object","description":"A category to which a `CatalogItem` instance belongs.","x-release-status":"PUBLIC","properties":{"name":{"type":"string","description":"The category name. This is a searchable attribute for use in applicable query filters, and its value length is of Unicode code points.","maxLength":255,"nullable":true},"image_ids":{"type":"array","items":{"type":"string"},"description":"The IDs of images associated with this `CatalogCategory` instance.\nCurrently these images are not displayed by Square, but are free to be displayed in 3rd party applications.","nullable":true},"category_type":{"$ref":"#/components/schemas/CatalogCategoryType","description":"The type of the category.\nSee [CatalogCategoryType](#type-catalogcategorytype) for possible values","nullable":true},"parent_category":{"$ref":"#/components/schemas/CatalogObjectCategory","description":"The parent category of this category instance. This includes the parent category ID and an ordinal\nvalue that determines the category's relative position among sibling categories with the same parent.","nullable":true},"is_top_level":{"type":"boolean","description":"Indicates whether a category is a top level category, which does not have any parent_category.","nullable":true},"channels":{"type":"array","items":{"type":"string"},"description":"A list of IDs representing channels, such as a Square Online site, where the category can be made visible.","nullable":true},"availability_period_ids":{"type":"array","items":{"type":"string"},"description":"The IDs of the `CatalogAvailabilityPeriod` objects associated with the category.","nullable":true},"online_visibility":{"type":"boolean","description":"Indicates whether the category is visible (`true`) or hidden (`false`) on all of the seller's Square Online sites.","nullable":true},"root_category":{"type":"string","description":"The top-level category in a category hierarchy.","readOnly":true},"ecom_seo_data":{"$ref":"#/components/schemas/CatalogEcomSeoData","description":"The SEO data for a seller's Square Online store.","nullable":true},"path_to_root":{"type":"array","items":{"$ref":"#/components/schemas/CategoryPathToRootNode"},"description":"The path from the category to its root category. The first node of the path is the parent of the category\nand the last is the root category. The path is empty if the category is a root category.","nullable":true}},"example":{"object":{"category_data":{"name":"Beverages"},"id":"#Beverages","present_at_all_locations":true,"type":"CATEGORY"}}},"CatalogCategoryType":{"type":"string","enum":["REGULAR_CATEGORY","MENU_CATEGORY","KITCHEN_CATEGORY"],"x-enum-elements":[{"name":"REGULAR_CATEGORY","description":"The regular category."},{"name":"MENU_CATEGORY","description":"The menu category."},{"name":"KITCHEN_CATEGORY","description":"Kitchen categories are used by KDS (Kitchen Display System) to route items to specific clients"}],"description":"Indicates the type of a category.","x-release-status":"PUBLIC"},"CatalogCustomAttributeDefinition":{"type":"object","description":"Contains information defining a custom attribute. Custom attributes are\nintended to store additional information about a catalog object or to associate a\ncatalog object with an entity in another system. Do not use custom attributes\nto store any sensitive information (personally identifiable information, card details, etc.).\n[Read more about custom attributes](https://developer.squareup.com/docs/catalog-api/add-custom-attributes)","x-release-status":"PUBLIC","required":["type","name","allowed_object_types"],"properties":{"type":{"$ref":"#/components/schemas/CatalogCustomAttributeDefinitionType","description":"The type of this custom attribute. Cannot be modified after creation.\nRequired.\nSee [CatalogCustomAttributeDefinitionType](#type-catalogcustomattributedefinitiontype) for possible values"},"name":{"type":"string","description":" The name of this definition for API and seller-facing UI purposes.\nThe name must be unique within the (merchant, application) pair. Required.\nMay not be empty and may not exceed 255 characters. Can be modified after creation.","minLength":1,"maxLength":255},"description":{"type":"string","description":"Seller-oriented description of the meaning of this Custom Attribute,\nany constraints that the seller should observe, etc. May be displayed as a tooltip in Square UIs.","maxLength":255,"nullable":true},"source_application":{"$ref":"#/components/schemas/SourceApplication","description":"__Read only.__ Contains information about the application that\ncreated this custom attribute definition.","nullable":true},"allowed_object_types":{"type":"array","items":{"$ref":"#/components/schemas/CatalogObjectType"},"description":"The set of `CatalogObject` types that this custom atttribute may be applied to.\nCurrently, only `ITEM`, `ITEM_VARIATION`, `MODIFIER`, `MODIFIER_LIST`, and `CATEGORY` are allowed. At least one type must be included.\nSee [CatalogObjectType](#type-catalogobjecttype) for possible values"},"seller_visibility":{"$ref":"#/components/schemas/CatalogCustomAttributeDefinitionSellerVisibility","description":"The visibility of a custom attribute in seller-facing UIs (including Square Point\nof Sale applications and Square Dashboard). May be modified.\nSee [CatalogCustomAttributeDefinitionSellerVisibility](#type-catalogcustomattributedefinitionsellervisibility) for possible values","nullable":true},"app_visibility":{"$ref":"#/components/schemas/CatalogCustomAttributeDefinitionAppVisibility","description":"The visibility of a custom attribute to applications other than the application\nthat created the attribute.\nSee [CatalogCustomAttributeDefinitionAppVisibility](#type-catalogcustomattributedefinitionappvisibility) for possible values","nullable":true},"string_config":{"$ref":"#/components/schemas/CatalogCustomAttributeDefinitionStringConfig","description":"Optionally, populated when `type` = `STRING`, unset otherwise.","nullable":true},"number_config":{"$ref":"#/components/schemas/CatalogCustomAttributeDefinitionNumberConfig","description":"Optionally, populated when `type` = `NUMBER`, unset otherwise.","nullable":true},"selection_config":{"$ref":"#/components/schemas/CatalogCustomAttributeDefinitionSelectionConfig","description":"Populated when `type` is set to `SELECTION`, unset otherwise.","nullable":true},"custom_attribute_usage_count":{"type":"integer","description":"The number of custom attributes that reference this\ncustom attribute definition. Set by the server in response to a ListCatalog\nrequest with `include_counts` set to `true`. If the actual count is greater\nthan 100, `custom_attribute_usage_count` will be set to `100`.","readOnly":true},"key":{"type":"string","description":"The name of the desired custom attribute key that can be used to access\nthe custom attribute value on catalog objects. Cannot be modified after the\ncustom attribute definition has been created.\nMust be between 1 and 60 characters, and may only contain the characters `[a-zA-Z0-9_-]`.","minLength":1,"maxLength":60,"pattern":"^[a-zA-Z0-9_-]*$","nullable":true}}},"CatalogCustomAttributeDefinitionAppVisibility":{"type":"string","enum":["APP_VISIBILITY_HIDDEN","APP_VISIBILITY_READ_ONLY","APP_VISIBILITY_READ_WRITE_VALUES"],"x-enum-elements":[{"name":"APP_VISIBILITY_HIDDEN","description":"Other applications cannot read this custom attribute."},{"name":"APP_VISIBILITY_READ_ONLY","description":"Other applications can read this custom attribute definition and\nvalues."},{"name":"APP_VISIBILITY_READ_WRITE_VALUES","description":"Other applications can read and write custom attribute values on objects.\nThey can read but cannot edit the custom attribute definition."}],"description":"Defines the visibility of a custom attribute to applications other than their\ncreating application.","x-release-status":"PUBLIC"},"CatalogCustomAttributeDefinitionNumberConfig":{"type":"object","x-release-status":"PUBLIC","properties":{"precision":{"type":"integer","description":"An integer between 0 and 5 that represents the maximum number of\npositions allowed after the decimal in number custom attribute values\nFor example:\n\n- if the precision is 0, the quantity can be 1, 2, 3, etc.\n- if the precision is 1, the quantity can be 0.1, 0.2, etc.\n- if the precision is 2, the quantity can be 0.01, 0.12, etc.\n\nDefault: 5","maximum":5,"nullable":true}}},"CatalogCustomAttributeDefinitionSelectionConfig":{"type":"object","description":"Configuration associated with `SELECTION`-type custom attribute definitions.","x-release-status":"PUBLIC","properties":{"max_allowed_selections":{"type":"integer","description":"The maximum number of selections that can be set. The maximum value for this\nattribute is 100. The default value is 1. The value can be modified, but changing the value will not\naffect existing custom attribute values on objects. Clients need to\nhandle custom attributes with more selected values than allowed by this limit.","maximum":100,"nullable":true},"allowed_selections":{"type":"array","items":{"$ref":"#/components/schemas/CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection"},"description":"The set of valid `CatalogCustomAttributeSelections`. Up to a maximum of 100\nselections can be defined. Can be modified.","nullable":true}}},"CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection":{"type":"object","description":"A named selection for this `SELECTION`-type custom attribute definition.","x-release-status":"PUBLIC","required":["name"],"properties":{"uid":{"type":"string","description":"Unique ID set by Square.","nullable":true},"name":{"type":"string","description":"Selection name, unique within `allowed_selections`.","minLength":1,"maxLength":255}}},"CatalogCustomAttributeDefinitionSellerVisibility":{"type":"string","enum":["SELLER_VISIBILITY_HIDDEN","SELLER_VISIBILITY_READ_WRITE_VALUES"],"x-enum-elements":[{"name":"SELLER_VISIBILITY_HIDDEN","description":"Sellers cannot read this custom attribute in Square client\napplications or Square APIs."},{"name":"SELLER_VISIBILITY_READ_WRITE_VALUES","description":"Sellers can read and write this custom attribute value in catalog objects,\nbut cannot edit the custom attribute definition."}],"description":"Defines the visibility of a custom attribute to sellers in Square\nclient applications, Square APIs or in Square UIs (including Square Point\nof Sale applications and Square Dashboard).","x-release-status":"PUBLIC"},"CatalogCustomAttributeDefinitionStringConfig":{"type":"object","description":"Configuration associated with Custom Attribute Definitions of type `STRING`.","x-release-status":"PUBLIC","properties":{"enforce_uniqueness":{"type":"boolean","description":"If true, each Custom Attribute instance associated with this Custom Attribute\nDefinition must have a unique value within the seller's catalog. For\nexample, this may be used for a value like a SKU that should not be\nduplicated within a seller's catalog. May not be modified after the\ndefinition has been created.","nullable":true}}},"CatalogCustomAttributeDefinitionType":{"type":"string","enum":["STRING","BOOLEAN","NUMBER","SELECTION"],"x-enum-elements":[{"name":"STRING","description":"A free-form string containing up to 255 characters."},{"name":"BOOLEAN","description":"A `true` or `false` value."},{"name":"NUMBER","description":"A decimal string representation of a number. Can support up to 5 digits after the decimal point."},{"name":"SELECTION","description":"One or more choices from `allowed_selections`."}],"description":"Defines the possible types for a custom attribute.","x-release-status":"PUBLIC"},"CatalogCustomAttributeValue":{"type":"object","description":"An instance of a custom attribute. Custom attributes can be defined and\nadded to `ITEM` and `ITEM_VARIATION` type catalog objects.\n[Read more about custom attributes](https://developer.squareup.com/docs/catalog-api/add-custom-attributes).","x-release-status":"PUBLIC","properties":{"name":{"type":"string","description":"The name of the custom attribute.","nullable":true},"string_value":{"type":"string","description":"The string value of the custom attribute. Populated if `type` = `STRING`.","nullable":true},"custom_attribute_definition_id":{"type":"string","description":"The id of the [CatalogCustomAttributeDefinition](entity:CatalogCustomAttributeDefinition) this value belongs to.","readOnly":true},"type":{"$ref":"#/components/schemas/CatalogCustomAttributeDefinitionType","description":"A copy of type from the associated `CatalogCustomAttributeDefinition`.\nSee [CatalogCustomAttributeDefinitionType](#type-catalogcustomattributedefinitiontype) for possible values","readOnly":true},"number_value":{"type":"string","description":"Populated if `type` = `NUMBER`. Contains a string\nrepresentation of a decimal number, using a `.` as the decimal separator.","nullable":true},"boolean_value":{"type":"boolean","description":"A `true` or `false` value. Populated if `type` = `BOOLEAN`.","nullable":true},"selection_uid_values":{"type":"array","items":{"type":"string"},"description":"One or more choices from `allowed_selections`. Populated if `type` = `SELECTION`.","nullable":true},"key":{"type":"string","description":"If the associated `CatalogCustomAttributeDefinition` object is defined by another application, this key is prefixed by the defining application ID.\nFor example, if the CatalogCustomAttributeDefinition has a key attribute of \"cocoa_brand\" and the defining application ID is \"abcd1234\", this key is \"abcd1234:cocoa_brand\"\nwhen the application making the request is different from the application defining the custom attribute definition. Otherwise, the key is simply \"cocoa_brand\".","readOnly":true}}},"CatalogDiscount":{"type":"object","description":"A discount applicable to items.","x-release-status":"PUBLIC","properties":{"name":{"type":"string","description":"The discount name. This is a searchable attribute for use in applicable query filters, and its value length is of Unicode code points.","maxLength":255,"nullable":true},"discount_type":{"$ref":"#/components/schemas/CatalogDiscountType","description":"Indicates whether the discount is a fixed amount or percentage, or entered at the time of sale.\nSee [CatalogDiscountType](#type-catalogdiscounttype) for possible values","nullable":true},"percentage":{"type":"string","description":"The percentage of the discount as a string representation of a decimal number, using a `.` as the decimal\nseparator and without a `%` sign. A value of `7.5` corresponds to `7.5%`. Specify a percentage of `0` if `discount_type`\nis `VARIABLE_PERCENTAGE`.\n\nDo not use this field for amount-based or variable discounts.","nullable":true},"amount_money":{"$ref":"#/components/schemas/Money","description":"The amount of the discount. Specify an amount of `0` if `discount_type` is `VARIABLE_AMOUNT`.\n\nDo not use this field for percentage-based or variable discounts.","nullable":true},"pin_required":{"type":"boolean","description":"Indicates whether a mobile staff member needs to enter their PIN to apply the\ndiscount to a payment in the Square Point of Sale app.","nullable":true},"label_color":{"type":"string","description":"The color of the discount display label in the Square Point of Sale app. This must be a valid hex color code.","nullable":true},"modify_tax_basis":{"$ref":"#/components/schemas/CatalogDiscountModifyTaxBasis","description":"Indicates whether this discount should reduce the price used to calculate tax.\n\nMost discounts should use `MODIFY_TAX_BASIS`. However, in some circumstances taxes must\nbe calculated based on an item's price, ignoring a particular discount. For example,\nin many US jurisdictions, a manufacturer coupon or instant rebate reduces the price a\ncustomer pays but does not reduce the sale price used to calculate how much sales tax is\ndue. In this case, the discount representing that manufacturer coupon should have\n`DO_NOT_MODIFY_TAX_BASIS` for this field.\n\nIf you are unsure whether you need to use this field, consult your tax professional.\nSee [CatalogDiscountModifyTaxBasis](#type-catalogdiscountmodifytaxbasis) for possible values","nullable":true},"maximum_amount_money":{"$ref":"#/components/schemas/Money","description":"For a percentage discount, the maximum absolute value of the discount. For example, if a\n50% discount has a `maximum_amount_money` of $20, a $100 purchase will yield a $20 discount,\nnot a $50 discount.","nullable":true}},"example":{"object":{"discount_data":{"discount_type":"FIXED_PERCENTAGE","label_color":"red","name":"Welcome to the Dark(Roast) Side!","percentage":"5.4","pin_required":false},"id":"#Maythe4th","present_at_all_locations":true,"type":"DISCOUNT"}}},"CatalogDiscountModifyTaxBasis":{"type":"string","enum":["MODIFY_TAX_BASIS","DO_NOT_MODIFY_TAX_BASIS"],"x-enum-elements":[{"name":"MODIFY_TAX_BASIS","description":"Application of the discount will modify the tax basis."},{"name":"DO_NOT_MODIFY_TAX_BASIS","description":"Application of the discount will not modify the tax basis."}],"x-release-status":"PUBLIC"},"CatalogDiscountType":{"type":"string","enum":["FIXED_PERCENTAGE","FIXED_AMOUNT","VARIABLE_PERCENTAGE","VARIABLE_AMOUNT"],"x-enum-elements":[{"name":"FIXED_PERCENTAGE","description":"Apply the discount as a fixed percentage (e.g., 5%) off the item price."},{"name":"FIXED_AMOUNT","description":"Apply the discount as a fixed amount (e.g., $1.00) off the item price."},{"name":"VARIABLE_PERCENTAGE","description":"Apply the discount as a variable percentage off the item price. The percentage will be specified at the time of sale."},{"name":"VARIABLE_AMOUNT","description":"Apply the discount as a variable amount off the item price. The amount will be specified at the time of sale."}],"description":"How to apply a CatalogDiscount to a CatalogItem.","x-release-status":"PUBLIC"},"CatalogEcomSeoData":{"type":"object","description":"SEO data for for a seller's Square Online store.","x-release-status":"PUBLIC","properties":{"page_title":{"type":"string","description":"The SEO title used for the Square Online store.","nullable":true},"page_description":{"type":"string","description":"The SEO description used for the Square Online store.","nullable":true},"permalink":{"type":"string","description":"The SEO permalink used for the Square Online store.","nullable":true}}},"CatalogIdMapping":{"type":"object","description":"A mapping between a temporary client-supplied ID and a permanent server-generated ID.\n\nWhen calling [UpsertCatalogObject](api-endpoint:Catalog-UpsertCatalogObject) or\n[BatchUpsertCatalogObjects](api-endpoint:Catalog-BatchUpsertCatalogObjects) to\ncreate a [CatalogObject](entity:CatalogObject) instance, you can supply\na temporary ID for the to-be-created object, especially when the object is to be referenced\nelsewhere in the same request body. This temporary ID can be any string unique within\nthe call, but must be prefixed by \"#\".\n\nAfter the request is submitted and the object created, a permanent server-generated ID is assigned\nto the new object. The permanent ID is unique across the Square catalog.","x-release-status":"PUBLIC","properties":{"client_object_id":{"type":"string","description":"The client-supplied temporary `#`-prefixed ID for a new `CatalogObject`.","nullable":true},"object_id":{"type":"string","description":"The permanent ID for the CatalogObject created by the server.","nullable":true}}},"CatalogImage":{"type":"object","description":"An image file to use in Square catalogs. It can be associated with\n`CatalogItem`, `CatalogItemVariation`, `CatalogCategory`, and `CatalogModifierList` objects.\nOnly the images on items and item variations are exposed in Dashboard.\nOnly the first image on an item is displayed in Square Point of Sale (SPOS).\nImages on items and variations are displayed through Square Online Store.\nImages on other object types are for use by 3rd party application developers.","x-release-status":"PUBLIC","properties":{"name":{"type":"string","description":"The internal name to identify this image in calls to the Square API.\nThis is a searchable attribute for use in applicable query filters\nusing the [SearchCatalogObjects](api-endpoint:Catalog-SearchCatalogObjects).\nIt is not unique and should not be shown in a buyer facing context.","nullable":true},"url":{"type":"string","description":"The URL of this image, generated by Square after an image is uploaded\nusing the [CreateCatalogImage](api-endpoint:Catalog-CreateCatalogImage) endpoint.\nTo modify the image, use the UpdateCatalogImage endpoint. Do not change the URL field.","nullable":true},"caption":{"type":"string","description":"A caption that describes what is shown in the image. Displayed in the\nSquare Online Store. This is a searchable attribute for use in applicable query filters\nusing the [SearchCatalogObjects](api-endpoint:Catalog-SearchCatalogObjects).","nullable":true},"photo_studio_order_id":{"type":"string","description":"The immutable order ID for this image object created by the Photo Studio service in Square Online Store.","nullable":true}}},"CatalogInfoResponse":{"type":"object","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."},"limits":{"$ref":"#/components/schemas/CatalogInfoResponseLimits","description":"Limits that apply to this API."},"standard_unit_description_group":{"$ref":"#/components/schemas/StandardUnitDescriptionGroup","description":"Names and abbreviations for standard units."}},"example":{"limits":{"batch_delete_max_object_ids":200,"batch_retrieve_max_object_ids":1000,"batch_upsert_max_objects_per_batch":1000,"batch_upsert_max_total_objects":10000,"search_max_page_limit":1000,"update_item_modifier_lists_max_item_ids":1000,"update_item_modifier_lists_max_modifier_lists_to_disable":1000,"update_item_modifier_lists_max_modifier_lists_to_enable":1000,"update_item_taxes_max_item_ids":1000,"update_item_taxes_max_taxes_to_disable":1000,"update_item_taxes_max_taxes_to_enable":1000}},"x-sq-sdk-sample-code":{"csharp":"/sdk_samples/Catalog/CatalogInfo/CatalogInfoResponse.csharp","java":"/sdk_samples/Catalog/CatalogInfo/CatalogInfoResponse.java","javascript":"/sdk_samples/Catalog/CatalogInfo/CatalogInfoResponse.javascript","php":"/sdk_samples/Catalog/CatalogInfo/CatalogInfoResponse.php","python":"/sdk_samples/Catalog/CatalogInfo/CatalogInfoResponse.python","ruby":"/sdk_samples/Catalog/CatalogInfo/CatalogInfoResponse.ruby"}},"CatalogInfoResponseLimits":{"type":"object","x-release-status":"PUBLIC","properties":{"batch_upsert_max_objects_per_batch":{"type":"integer","description":"The maximum number of objects that may appear within a single batch in a\n`/v2/catalog/batch-upsert` request.","nullable":true},"batch_upsert_max_total_objects":{"type":"integer","description":"The maximum number of objects that may appear across all batches in a\n`/v2/catalog/batch-upsert` request.","nullable":true},"batch_retrieve_max_object_ids":{"type":"integer","description":"The maximum number of object IDs that may appear in a `/v2/catalog/batch-retrieve`\nrequest.","nullable":true},"search_max_page_limit":{"type":"integer","description":"The maximum number of results that may be returned in a page of a\n`/v2/catalog/search` response.","nullable":true},"batch_delete_max_object_ids":{"type":"integer","description":"The maximum number of object IDs that may be included in a single\n`/v2/catalog/batch-delete` request.","nullable":true},"update_item_taxes_max_item_ids":{"type":"integer","description":"The maximum number of item IDs that may be included in a single\n`/v2/catalog/update-item-taxes` request.","nullable":true},"update_item_taxes_max_taxes_to_enable":{"type":"integer","description":"The maximum number of tax IDs to be enabled that may be included in a single\n`/v2/catalog/update-item-taxes` request.","nullable":true},"update_item_taxes_max_taxes_to_disable":{"type":"integer","description":"The maximum number of tax IDs to be disabled that may be included in a single\n`/v2/catalog/update-item-taxes` request.","nullable":true},"update_item_modifier_lists_max_item_ids":{"type":"integer","description":"The maximum number of item IDs that may be included in a single\n`/v2/catalog/update-item-modifier-lists` request.","nullable":true},"update_item_modifier_lists_max_modifier_lists_to_enable":{"type":"integer","description":"The maximum number of modifier list IDs to be enabled that may be included in\na single `/v2/catalog/update-item-modifier-lists` request.","nullable":true},"update_item_modifier_lists_max_modifier_lists_to_disable":{"type":"integer","description":"The maximum number of modifier list IDs to be disabled that may be included in\na single `/v2/catalog/update-item-modifier-lists` request.","nullable":true}}},"CatalogItem":{"type":"object","description":"A [CatalogObject](entity:CatalogObject) instance of the `ITEM` type, also referred to as an item, in the catalog.","x-release-status":"PUBLIC","properties":{"name":{"type":"string","description":"The item's name. This is a searchable attribute for use in applicable query filters, its value must not be empty, and the length is of Unicode code points.","maxLength":512,"nullable":true},"description":{"type":"string","description":"The item's description. This is a searchable attribute for use in applicable query filters, and its value length is of Unicode code points.\n\nDeprecated at 2022-07-20, this field is planned to retire in 6 months. You should migrate to use `description_html` to set the description\nof the [CatalogItem](entity:CatalogItem) instance. The `description` and `description_html` field values are kept in sync. If you try to\nset the both fields, the `description_html` text value overwrites the `description` value. Updates in one field are also reflected in the other,\nexcept for when you use an early version before Square API 2022-07-20 and `description_html` is set to blank, setting the `description` value to null\ndoes not nullify `description_html`.","maxLength":4096,"x-release-status":"DEPRECATED","nullable":true},"abbreviation":{"type":"string","description":"The text of the item's display label in the Square Point of Sale app. Only up to the first five characters of the string are used.\nThis attribute is searchable, and its value length is of Unicode code points.","maxLength":24,"nullable":true},"label_color":{"type":"string","description":"The color of the item's display label in the Square Point of Sale app. This must be a valid hex color code.","nullable":true},"is_taxable":{"type":"boolean","description":"Indicates whether the item is taxable (`true`) or non-taxable (`false`). Default is `true`.","nullable":true},"category_id":{"type":"string","description":"The ID of the item's category, if any. Deprecated since 2023-12-13. Use `CatalogItem.categories`, instead.","x-release-status":"DEPRECATED","nullable":true},"buyer_facing_name":{"type":"string","description":"The override to a product name to display to users","maxLength":512,"nullable":true},"tax_ids":{"type":"array","items":{"type":"string"},"description":"A set of IDs indicating the taxes enabled for\nthis item. When updating an item, any taxes listed here will be added to the item.\nTaxes may also be added to or deleted from an item using `UpdateItemTaxes`.","nullable":true},"modifier_list_info":{"type":"array","items":{"$ref":"#/components/schemas/CatalogItemModifierListInfo"},"description":"A set of `CatalogItemModifierListInfo` objects\nrepresenting the modifier lists that apply to this item, along with the overrides and min\nand max limits that are specific to this item. Modifier lists\nmay also be added to or deleted from an item using `UpdateItemModifierLists`.","nullable":true},"variations":{"type":"array","items":{"$ref":"#/components/schemas/CatalogObject"},"description":"A list of [CatalogItemVariation](entity:CatalogItemVariation) objects for this item. An item must have\nat least one variation.","nullable":true},"product_type":{"$ref":"#/components/schemas/CatalogItemProductType","description":"The product type of the item. Once set, the `product_type` value cannot be modified.\n\nItems of the `LEGACY_SQUARE_ONLINE_SERVICE` and `LEGACY_SQUARE_ONLINE_MEMBERSHIP` product types can be updated\nbut cannot be created using the API.\nSee [CatalogItemProductType](#type-catalogitemproducttype) for possible values","nullable":true},"skip_modifier_screen":{"type":"boolean","description":"If `false`, the Square Point of Sale app will present the `CatalogItem`'s\ndetails screen immediately, allowing the merchant to choose `CatalogModifier`s\nbefore adding the item to the cart. This is the default behavior.\n\nIf `true`, the Square Point of Sale app will immediately add the item to the cart with the pre-selected\nmodifiers, and merchants can edit modifiers by drilling down onto the item's details.\n\nThird-party clients are encouraged to implement similar behaviors.","nullable":true},"item_options":{"type":"array","items":{"$ref":"#/components/schemas/CatalogItemOptionForItem"},"description":"List of item options IDs for this item. Used to manage and group item\nvariations in a specified order.\n\nMaximum: 6 item options.","nullable":true},"ecom_uri":{"type":"string","description":"Deprecated. A URI pointing to a published e-commerce product page for the Item.","x-release-status":"DEPRECATED","nullable":true},"ecom_image_uris":{"type":"array","items":{"type":"string"},"description":"Deprecated. A comma-separated list of encoded URIs pointing to a set of published e-commerce images for the Item.","x-release-status":"DEPRECATED","nullable":true},"image_ids":{"type":"array","items":{"type":"string"},"description":"The IDs of images associated with this `CatalogItem` instance.\nThese images will be shown to customers in Square Online Store.\nThe first image will show up as the icon for this item in POS.","x-release-status":"BETA","nullable":true},"sort_name":{"type":"string","description":"A name to sort the item by. If this name is unspecified, namely, the `sort_name` field is absent, the regular `name` field is used for sorting.\nIts value must not be empty.\n\nIt is currently supported for sellers of the Japanese locale only.","x-release-status":"BETA","nullable":true},"categories":{"type":"array","items":{"$ref":"#/components/schemas/CatalogObjectCategory"},"description":"The list of categories to which this item belongs. Each entry includes the category ID and an ordinal\nvalue that determines the item's relative position within that category.","nullable":true},"description_html":{"type":"string","description":"The item's description as expressed in valid HTML elements. The length of this field value, including those of HTML tags,\nis of Unicode points. With application query filters, the text values of the HTML elements and attributes are searchable. Invalid or\nunsupported HTML elements or attributes are ignored.\n\nSupported HTML elements include:\n- `a`: Link. Supports linking to website URLs, email address, and telephone numbers.\n- `b`, `strong`: Bold text\n- `br`: Line break\n- `code`: Computer code\n- `div`: Section\n- `h1-h6`: Headings\n- `i`, `em`: Italics\n- `li`: List element\n- `ol`: Numbered list\n- `p`: Paragraph\n- `ul`: Bullet list\n- `u`: Underline\n\n\nSupported HTML attributes include:\n- `align`: Alignment of the text content\n- `href`: Link destination\n- `rel`: Relationship between link's target and source\n- `target`: Place to open the linked document","maxLength":65535,"nullable":true},"description_plaintext":{"type":"string","description":"A server-generated plaintext version of the `description_html` field, without formatting tags.","maxLength":65535,"readOnly":true},"kitchen_name":{"type":"string","description":"(Optional) Name that the restaurant wants to display to their kitchen workers\ninstead of the customer-facing name.\ne.g., customer name might be \"Big John's Mega Burger\" and the\nkitchen name is \"12oz beef burger\"","x-release-status":"BETA","nullable":true},"channels":{"type":"array","items":{"type":"string"},"description":"A list of IDs representing channels, such as a Square Online site, where the item can be made visible or available.\nThis field is read only and cannot be edited.","nullable":true},"is_archived":{"type":"boolean","description":"Indicates whether this item is archived (`true`) or not (`false`).","nullable":true},"ecom_seo_data":{"$ref":"#/components/schemas/CatalogEcomSeoData","description":"The SEO data for a seller's Square Online store.","nullable":true},"food_and_beverage_details":{"$ref":"#/components/schemas/CatalogItemFoodAndBeverageDetails","description":"The food and beverage-specific details for the `FOOD_AND_BEV` item.","nullable":true},"reporting_category":{"$ref":"#/components/schemas/CatalogObjectCategory","description":"The item's reporting category.","nullable":true},"is_alcoholic":{"type":"boolean","description":"Indicates whether this item is alcoholic (`true`) or not (`false`).","nullable":true}},"example":{"object":{"id":"#Cocoa","item_data":{"abbreviation":"Ch","description":"Hot chocolate","name":"Cocoa","visibility":"PRIVATE"},"present_at_all_locations":true,"type":"ITEM"}}},"CatalogItemFoodAndBeverageDetails":{"type":"object","description":"The food and beverage-specific details of a `FOOD_AND_BEV` item.","x-release-status":"PUBLIC","properties":{"calorie_count":{"type":"integer","description":"The calorie count (in the unit of kcal) for the `FOOD_AND_BEV` type of items.","nullable":true},"dietary_preferences":{"type":"array","items":{"$ref":"#/components/schemas/CatalogItemFoodAndBeverageDetailsDietaryPreference"},"description":"The dietary preferences for the `FOOD_AND_BEV` item.","nullable":true},"ingredients":{"type":"array","items":{"$ref":"#/components/schemas/CatalogItemFoodAndBeverageDetailsIngredient"},"description":"The ingredients for the `FOOD_AND_BEV` type item.","nullable":true}}},"CatalogItemFoodAndBeverageDetailsDietaryPreference":{"type":"object","description":"Dietary preferences that can be assigned to an `FOOD_AND_BEV` item and its ingredients.","x-release-status":"PUBLIC","properties":{"type":{"$ref":"#/components/schemas/CatalogItemFoodAndBeverageDetailsDietaryPreferenceType","description":"The dietary preference type. Supported values include `STANDARD` and `CUSTOM` as specified in `FoodAndBeverageDetails.DietaryPreferenceType`.\nSee [DietaryPreferenceType](#type-dietarypreferencetype) for possible values","nullable":true},"standard_name":{"$ref":"#/components/schemas/CatalogItemFoodAndBeverageDetailsDietaryPreferenceStandardDietaryPreference","description":"The name of the dietary preference from a standard pre-defined list. This should be null if it's a custom dietary preference.\nSee [StandardDietaryPreference](#type-standarddietarypreference) for possible values","nullable":true},"custom_name":{"type":"string","description":"The name of a user-defined custom dietary preference. This should be null if it's a standard dietary preference.","nullable":true}}},"CatalogItemFoodAndBeverageDetailsDietaryPreferenceStandardDietaryPreference":{"type":"string","enum":["DAIRY_FREE","GLUTEN_FREE","HALAL","KOSHER","NUT_FREE","VEGAN","VEGETARIAN"],"x-enum-elements":[{"name":"DAIRY_FREE","description":""},{"name":"GLUTEN_FREE","description":""},{"name":"HALAL","description":""},{"name":"KOSHER","description":""},{"name":"NUT_FREE","description":""},{"name":"VEGAN","description":""},{"name":"VEGETARIAN","description":""}],"description":"Standard dietary preferences for food and beverage items that are recommended on item creation.","x-release-status":"PUBLIC"},"CatalogItemFoodAndBeverageDetailsDietaryPreferenceType":{"type":"string","enum":["STANDARD","CUSTOM"],"x-enum-elements":[{"name":"STANDARD","description":"A standard value from a pre-determined list."},{"name":"CUSTOM","description":"A user-defined custom value."}],"description":"The type of dietary preference for the `FOOD_AND_BEV` type of items and integredients.","x-release-status":"PUBLIC"},"CatalogItemFoodAndBeverageDetailsIngredient":{"type":"object","description":"Describes the ingredient used in a `FOOD_AND_BEV` item.","x-release-status":"PUBLIC","properties":{"type":{"$ref":"#/components/schemas/CatalogItemFoodAndBeverageDetailsDietaryPreferenceType","description":"The dietary preference type of the ingredient. Supported values include `STANDARD` and `CUSTOM` as specified in `FoodAndBeverageDetails.DietaryPreferenceType`.\nSee [DietaryPreferenceType](#type-dietarypreferencetype) for possible values","nullable":true},"standard_name":{"$ref":"#/components/schemas/CatalogItemFoodAndBeverageDetailsIngredientStandardIngredient","description":"The name of the ingredient from a standard pre-defined list. This should be null if it's a custom dietary preference.\nSee [StandardIngredient](#type-standardingredient) for possible values","nullable":true},"custom_name":{"type":"string","description":"The name of a custom user-defined ingredient. This should be null if it's a standard dietary preference.","nullable":true}}},"CatalogItemFoodAndBeverageDetailsIngredientStandardIngredient":{"type":"string","enum":["CELERY","CRUSTACEANS","EGGS","FISH","GLUTEN","LUPIN","MILK","MOLLUSCS","MUSTARD","PEANUTS","SESAME","SOY","SULPHITES","TREE_NUTS"],"x-enum-elements":[{"name":"CELERY","description":""},{"name":"CRUSTACEANS","description":""},{"name":"EGGS","description":""},{"name":"FISH","description":""},{"name":"GLUTEN","description":""},{"name":"LUPIN","description":""},{"name":"MILK","description":""},{"name":"MOLLUSCS","description":""},{"name":"MUSTARD","description":""},{"name":"PEANUTS","description":""},{"name":"SESAME","description":""},{"name":"SOY","description":""},{"name":"SULPHITES","description":""},{"name":"TREE_NUTS","description":""}],"description":"Standard ingredients for food and beverage items that are recommended on item creation.","x-release-status":"PUBLIC"},"CatalogItemModifierListInfo":{"type":"object","description":"Controls how a modifier list is applied to a specific item. This object allows for item-specific customization of modifier list behavior\nand provides the ability to override global modifier list settings.","x-release-status":"PUBLIC","required":["modifier_list_id"],"properties":{"modifier_list_id":{"type":"string","description":"The ID of the `CatalogModifierList` controlled by this `CatalogModifierListInfo`.","minLength":1},"modifier_overrides":{"type":"array","items":{"$ref":"#/components/schemas/CatalogModifierOverride"},"description":"A set of `CatalogModifierOverride` objects that override default modifier settings for this item.","nullable":true},"min_selected_modifiers":{"type":"integer","description":"The minimum number of modifiers that must be selected from this modifier list.\nValues:\n\n- 0: No selection is required.\n- -1: Default value, the attribute was not set by the client. When `max_selected_modifiers` is\nalso -1, use the minimum and maximum selection values set on the `CatalogItemModifierList`.\n- >0: The required minimum modifier selections. This can be larger than the total `CatalogModifiers` when `allow_quantities` is enabled.\n- < -1: Invalid. Treated as no selection required.","nullable":true},"max_selected_modifiers":{"type":"integer","description":"The maximum number of modifiers that can be selected.\nValues:\n\n- 0: No maximum limit.\n- -1: Default value, the attribute was not set by the client. When `min_selected_modifiers` is\nalso -1, use the minimum and maximum selection values set on the `CatalogItemModifierList`.\n- >0: The maximum total modifier selections. This can be larger than the total `CatalogModifiers` when `allow_quantities` is enabled.\n- < -1: Invalid. Treated as no maximum limit.","nullable":true},"enabled":{"type":"boolean","description":"If `true`, enable this `CatalogModifierList`. The default value is `true`.","nullable":true},"ordinal":{"type":"integer","description":"The position of this `CatalogItemModifierListInfo` object within the `modifier_list_info` list applied\nto a `CatalogItem` instance.","x-release-status":"BETA","nullable":true},"allow_quantities":{"$ref":"#/components/schemas/CatalogModifierToggleOverrideType","description":"Controls whether multiple quantities of the same modifier can be selected for this item.\n- `YES` means that every modifier in the `CatalogModifierList` can have multiple quantities\nselected for this item.\n- `NO` means that each modifier in the `CatalogModifierList` can be selected only once for this item.\n- `NOT_SET` means that the `allow_quantities` setting on the `CatalogModifierList` is obeyed.\nSee [CatalogModifierToggleOverrideType](#type-catalogmodifiertoggleoverridetype) for possible values","x-release-status":"BETA","nullable":true},"is_conversational":{"$ref":"#/components/schemas/CatalogModifierToggleOverrideType","description":"Controls whether conversational mode is enabled for modifiers on this item.\n\n- `YES` means conversational mode is enabled for every modifier in the `CatalogModifierList`.\n- `NO` means that conversational mode is not enabled for any modifier in the `CatalogModifierList`.\n- `NOT_SET` means that conversational mode is not enabled for any modifier in the `CatalogModifierList`.\nSee [CatalogModifierToggleOverrideType](#type-catalogmodifiertoggleoverridetype) for possible values","x-release-status":"BETA","nullable":true},"hidden_from_customer_override":{"$ref":"#/components/schemas/CatalogModifierToggleOverrideType","description":"Controls whether all modifiers for this item are hidden from customer receipts.\n- `YES` means that all modifiers in the `CatalogModifierList` are hidden from customer\nreceipts for this item.\n- `NO` means that all modifiers in the `CatalogModifierList` are visible on customer receipts for this item.\n- `NOT_SET` means that the `hidden_from_customer` setting on the `CatalogModifierList` is obeyed.\nSee [CatalogModifierToggleOverrideType](#type-catalogmodifiertoggleoverridetype) for possible values","x-release-status":"BETA","nullable":true}}},"CatalogItemOption":{"type":"object","description":"A group of variations for a `CatalogItem`.","x-release-status":"PUBLIC","properties":{"name":{"type":"string","description":"The item option's display name for the seller. Must be unique across\nall item options. This is a searchable attribute for use in applicable query filters.","nullable":true},"display_name":{"type":"string","description":"The item option's display name for the customer. This is a searchable attribute for use in applicable query filters.","nullable":true},"description":{"type":"string","description":"The item option's human-readable description. Displayed in the Square\nPoint of Sale app for the seller and in the Online Store or on receipts for\nthe buyer. This is a searchable attribute for use in applicable query filters.","nullable":true},"show_colors":{"type":"boolean","description":"If true, display colors for entries in `values` when present.","nullable":true},"values":{"type":"array","items":{"$ref":"#/components/schemas/CatalogObject"},"description":"A list of CatalogObjects containing the\n`CatalogItemOptionValue`s for this item.","nullable":true}}},"CatalogItemOptionForItem":{"type":"object","description":" An option that can be assigned to an item.\nFor example, a t-shirt item may offer a color option or a size option.","x-release-status":"BETA","properties":{"item_option_id":{"type":"string","description":"The unique id of the item option, used to form the dimensions of the item option matrix in a specified order.","nullable":true}}},"CatalogItemOptionValue":{"type":"object","description":"An enumerated value that can link a\n`CatalogItemVariation` to an item option as one of\nits item option values.","x-release-status":"PUBLIC","properties":{"item_option_id":{"type":"string","description":"Unique ID of the associated item option.","nullable":true},"name":{"type":"string","description":"Name of this item option value. This is a searchable attribute for use in applicable query filters.","nullable":true},"description":{"type":"string","description":"A human-readable description for the option value. This is a searchable attribute for use in applicable query filters.","nullable":true},"color":{"type":"string","description":"The HTML-supported hex color for the item option (e.g., \"#ff8d4e85\").\nOnly displayed if `show_colors` is enabled on the parent `ItemOption`. When\nleft unset, `color` defaults to white (\"#ffffff\") when `show_colors` is\nenabled on the parent `ItemOption`.","nullable":true},"ordinal":{"type":"integer","description":"Determines where this option value appears in a list of option values.","nullable":true}}},"CatalogItemOptionValueForItemVariation":{"type":"object","description":"A `CatalogItemOptionValue` links an item variation to an item option as\nan item option value. For example, a t-shirt item may offer a color option and\na size option. An item option value would represent each variation of t-shirt:\nFor example, \"Color:Red, Size:Small\" or \"Color:Blue, Size:Medium\".","x-release-status":"PUBLIC","properties":{"item_option_id":{"type":"string","description":"The unique id of an item option.","nullable":true},"item_option_value_id":{"type":"string","description":"The unique id of the selected value for the item option.","nullable":true}}},"CatalogItemProductType":{"type":"string","enum":["REGULAR","GIFT_CARD","APPOINTMENTS_SERVICE","FOOD_AND_BEV","EVENT","DIGITAL","DONATION","LEGACY_SQUARE_ONLINE_SERVICE","LEGACY_SQUARE_ONLINE_MEMBERSHIP"],"x-enum-elements":[{"name":"REGULAR","description":"An ordinary item."},{"name":"GIFT_CARD","description":"A Square gift card."},{"name":"APPOINTMENTS_SERVICE","description":"A service that can be booked using the Square Appointments app."},{"name":"FOOD_AND_BEV","description":"A food or beverage item that can be sold by restaurants and other food venues."},{"name":"EVENT","description":"An event which tickets can be sold for, including location, address, and times."},{"name":"DIGITAL","description":"A digital item like an ebook or song."},{"name":"DONATION","description":"A donation which site visitors can send for any cause."},{"name":"LEGACY_SQUARE_ONLINE_SERVICE","description":"A legacy Square Online service that is manually fulfilled. This corresponds to the `Other` item type displayed in the Square Seller Dashboard and Square POS apps."},{"name":"LEGACY_SQUARE_ONLINE_MEMBERSHIP","description":"A legacy Square Online membership that is manually fulfilled. This corresponds to the `Membership` item type displayed in the Square Seller Dashboard and Square POS apps."}],"description":"The type of a CatalogItem. Connect V2 only allows the creation of `REGULAR` or `APPOINTMENTS_SERVICE` items.","x-release-status":"PUBLIC"},"CatalogItemVariation":{"type":"object","description":"An item variation, representing a product for sale, in the Catalog object model. Each [item](entity:CatalogItem) must have at least one\nitem variation and can have at most 250 item variations.\n\nAn item variation can be sellable, stockable, or both if it has a unit of measure for its count for the sold number of the variation, the stocked\nnumber of the variation, or both. For example, when a variation representing wine is stocked and sold by the bottle, the variation is both\nstockable and sellable. But when a variation of the wine is sold by the glass, the sold units cannot be used as a measure of the stocked units. This by-the-glass\nvariation is sellable, but not stockable. To accurately keep track of the wine's inventory count at any time, the sellable count must be\nconverted to stockable count. Typically, the seller defines this unit conversion. For example, 1 bottle equals 5 glasses. The Square API exposes\nthe `stockable_conversion` property on the variation to specify the conversion. Thus, when two glasses of the wine are sold, the sellable count\ndecreases by 2, and the stockable count automatically decreases by 0.4 bottle according to the conversion.","x-release-status":"PUBLIC","properties":{"item_id":{"type":"string","description":"The ID of the `CatalogItem` associated with this item variation.","nullable":true},"name":{"type":"string","description":"The item variation's name. This is a searchable attribute for use in applicable query filters.\n\nIts value has a maximum length of 255 Unicode code points. However, when the parent [item](entity:CatalogItem)\nuses [item options](entity:CatalogItemOption), this attribute is auto-generated, read-only, and can be\nlonger than 255 Unicode code points.","nullable":true},"sku":{"type":"string","description":"The item variation's SKU, if any. This is a searchable attribute for use in applicable query filters.","nullable":true},"upc":{"type":"string","description":"The universal product code (UPC) of the item variation, if any. This is a searchable attribute for use in applicable query filters.\n\nThe value of this attribute should be a number of 12-14 digits long. This restriction is enforced on the Square Seller Dashboard,\nSquare Point of Sale or Retail Point of Sale apps, where this attribute shows in the GTIN field. If a non-compliant UPC value is assigned\nto this attribute using the API, the value is not editable on the Seller Dashboard, Square Point of Sale or Retail Point of Sale apps\nunless it is updated to fit the expected format.","nullable":true},"ordinal":{"type":"integer","description":"The order in which this item variation should be displayed. This value is read-only. On writes, the ordinal\nfor each item variation within a parent `CatalogItem` is set according to the item variations's\nposition. On reads, the value is not guaranteed to be sequential or unique.","readOnly":true},"pricing_type":{"$ref":"#/components/schemas/CatalogPricingType","description":"Indicates whether the item variation's price is fixed or determined at the time\nof sale.\nSee [CatalogPricingType](#type-catalogpricingtype) for possible values","nullable":true},"price_money":{"$ref":"#/components/schemas/Money","description":"The item variation's price, if fixed pricing is used.","nullable":true},"location_overrides":{"type":"array","items":{"$ref":"#/components/schemas/ItemVariationLocationOverrides"},"description":"Per-location price and inventory overrides.","nullable":true},"track_inventory":{"type":"boolean","description":"If `true`, inventory tracking is active for the variation at all locations by default.\nThis value can be overridden for specific locations using `ItemVariationLocationOverrides.track_inventory`.\nIf unset at both levels, inventory tracking is disabled.","nullable":true},"inventory_alert_type":{"$ref":"#/components/schemas/InventoryAlertType","description":"Indicates whether the item variation displays an alert when its inventory quantity is less than or equal\nto its `inventory_alert_threshold`.\n\nDeprecated because this field has never been global.\nSee [InventoryAlertType](#type-inventoryalerttype) for possible values","nullable":true},"inventory_alert_threshold":{"type":"integer","description":"If the inventory quantity for the variation is less than or equal to this value and `inventory_alert_type`\nis `LOW_QUANTITY`, the variation displays an alert in the merchant dashboard. This value is always an integer.\n\nDeprecated because this field has never been global.","format":"int64","nullable":true},"user_data":{"type":"string","description":"Arbitrary user metadata to associate with the item variation. This attribute value length is of Unicode code points.","maxLength":255,"nullable":true},"service_duration":{"type":"integer","description":"If the `CatalogItem` that owns this item variation is of type\n`APPOINTMENTS_SERVICE`, then this is the duration of the service in milliseconds. For\nexample, a 30 minute appointment would have the value `1800000`, which is equal to\n30 (minutes) * 60 (seconds per minute) * 1000 (milliseconds per second).","format":"int64","nullable":true},"available_for_booking":{"type":"boolean","description":"If the `CatalogItem` that owns this item variation is of type\n`APPOINTMENTS_SERVICE`, a bool representing whether this service is available for booking.","x-release-status":"BETA","nullable":true},"item_option_values":{"type":"array","items":{"$ref":"#/components/schemas/CatalogItemOptionValueForItemVariation"},"description":"List of item option values associated with this item variation. Listed\nin the same order as the item options of the parent item.","nullable":true},"measurement_unit_id":{"type":"string","description":"ID of the ‘CatalogMeasurementUnit’ that is used to measure the quantity\nsold of this item variation. If left unset, the item will be sold in\nwhole quantities.","nullable":true},"sellable":{"type":"boolean","description":"Whether this variation can be sold. The inventory count of a sellable variation indicates\nthe number of units available for sale. When a variation is both stockable and sellable,\nits sellable inventory count can be smaller than or equal to its stockable count.","x-release-status":"BETA","nullable":true},"stockable":{"type":"boolean","description":"Whether stock is counted directly on this variation (TRUE) or only on its components (FALSE).\nWhen a variation is both stockable and sellable, the inventory count of a stockable variation keeps track of the number of units of this variation in stock\nand is not an indicator of the number of units of the variation that can be sold.","x-release-status":"BETA","nullable":true},"image_ids":{"type":"array","items":{"type":"string"},"description":"The IDs of images associated with this `CatalogItemVariation` instance.\nThese images will be shown to customers in Square Online Store.","nullable":true},"team_member_ids":{"type":"array","items":{"type":"string"},"description":"Tokens of employees that can perform the service represented by this variation. Only valid for\nvariations of type `APPOINTMENTS_SERVICE`.","x-release-status":"BETA","nullable":true},"stockable_conversion":{"$ref":"#/components/schemas/CatalogStockConversion","description":"The unit conversion rule, as prescribed by the [CatalogStockConversion](entity:CatalogStockConversion) type,\nthat describes how this non-stockable (i.e., sellable/receivable) item variation is converted\nto/from the stockable item variation sharing the same parent item. With the stock conversion,\nyou can accurately track inventory when an item variation is sold in one unit, but stocked in\nanother unit.","x-release-status":"BETA","nullable":true},"kitchen_name":{"type":"string","description":"(Optional) Name that the restaurant wants to display to their kitchen workers\ninstead of the customer-facing name.\ne.g., customer name might be \"Mega-Jumbo Triplesized\" and the\nkitchen name is \"Large container\"","x-release-status":"BETA","nullable":true},"vendor_information":{"type":"array","items":{"$ref":"#/components/schemas/CatalogItemVariationVendorInformation"},"description":"Details of the vendor this product is purchased from.\nThis field can be set only if the seller has an active subscription\nto either Square for Retail Premium or Square for Restaurants Premium.","x-release-status":"BETA","nullable":true}}},"CatalogItemVariationVendorInformation":{"type":"object","description":"Information about the vendor of an item variation.","x-release-status":"BETA","properties":{"vendor_id":{"type":"string","description":"ID of the [Vendor](entity:Vendor) linked to a default cost of this product.\nWhen the product is added to a purchase order, the default cost is pre-filled.\nThis field is not validated. Clients should gracefully handle cases where the vendor_id\ndoes not match any existing vendor.","nullable":true},"vendor_code":{"type":"string","description":"Unique identifier of this product in the specified vendor's' inventory system.\nWhen the product is added to a purchase order, the vendor code is pre-filled based\non the selected vendor.","nullable":true},"unit_cost_money":{"$ref":"#/components/schemas/Money","description":"The unit cost of the linked product, when purchased from the linked vendor.","nullable":true}}},"CatalogMeasurementUnit":{"type":"object","description":"Represents the unit used to measure a `CatalogItemVariation` and\nspecifies the precision for decimal quantities.","x-release-status":"PUBLIC","properties":{"measurement_unit":{"$ref":"#/components/schemas/MeasurementUnit","description":"Indicates the unit used to measure the quantity of a catalog item variation.","nullable":true},"precision":{"type":"integer","description":"An integer between 0 and 5 that represents the maximum number of\npositions allowed after the decimal in quantities measured with this unit.\nFor example:\n\n- if the precision is 0, the quantity can be 1, 2, 3, etc.\n- if the precision is 1, the quantity can be 0.1, 0.2, etc.\n- if the precision is 2, the quantity can be 0.01, 0.12, etc.\n\nDefault: 3","nullable":true}}},"CatalogModifier":{"type":"object","description":"A modifier that can be applied to items at the time of sale. For example, a cheese modifier for a burger, or a flavor modifier for a serving of ice cream.","x-release-status":"PUBLIC","properties":{"name":{"type":"string","description":"The modifier name. This is a searchable attribute for use in applicable query filters, and its value length is of Unicode code points.","maxLength":255,"nullable":true},"price_money":{"$ref":"#/components/schemas/Money","description":"The modifier price.","nullable":true},"on_by_default":{"type":"boolean","description":"When `true`, this modifier is selected by default when displaying the modifier list.\nThis setting can be overridden at the item level using `CatalogModifierListInfo.modifier_overrides`.","x-release-status":"BETA","nullable":true},"ordinal":{"type":"integer","description":"Determines where this `CatalogModifier` appears in the `CatalogModifierList`.","nullable":true},"modifier_list_id":{"type":"string","description":"The ID of the `CatalogModifierList` associated with this modifier.","nullable":true},"location_overrides":{"type":"array","items":{"$ref":"#/components/schemas/ModifierLocationOverrides"},"description":"Location-specific price overrides.","nullable":true},"kitchen_name":{"type":"string","description":"(Optional) Name that the restaurant wants to display to their kitchen workers\ninstead of the customer-facing name.\ne.g., customer name might be \"Double Baconize\" and the\nkitchen name is \"Add 2x bacon\"","x-release-status":"BETA","nullable":true},"image_id":{"type":"string","description":"The ID of the image associated with this `CatalogModifier` instance.\nCurrently this image is not displayed by Square, but is free to be displayed in 3rd party applications.","x-release-status":"BETA","nullable":true},"hidden_online":{"type":"boolean","description":"When `true`, this modifier is hidden from online ordering channels. This setting can be overridden at the item level using `CatalogModifierListInfo.modifier_overrides`.","x-release-status":"BETA","nullable":true},"child_modifier_list_ids":{"type":"array","items":{"type":"string"},"description":"Child `CatalogModifierList`s that this `CatalogModifier` nests for multi-step choices.\nWhen a customer or staff member selects this modifier, the relevant follow-up modifier list appears.\nFor example, selecting \"Hummus\" reveals a secondary \"Choose Hummus Flavor\" set, and selecting a flavor\ncould reveal a third-level portion size set.\n\nEach entry references a child modifier list. Each modifier can nest up to 5 child modifier list, and\nsupports up to 3 levels of nesting depth. The order in `child_modifier_list_ids` determines display order\nduring checkout.","x-release-status":"BETA","nullable":true}},"example":{"object":{"modifier_data":{"name":"Almond Milk","price_money":{"amount":250,"currency":"USD"}},"present_at_all_locations":true,"type":"MODIFIER"}}},"CatalogModifierList":{"type":"object","description":"A container for a list of modifiers, or a text-based modifier.\nFor text-based modifiers, this represents text configuration for an item. (For example, custom text to print on a t-shirt).\nFor non text-based modifiers, this represents a list of modifiers that can be applied to items at the time of sale.\n(For example, a list of condiments for a hot dog, or a list of ice cream flavors).\nEach element of the modifier list is a `CatalogObject` instance of the `MODIFIER` type.","x-release-status":"PUBLIC","properties":{"name":{"type":"string","description":"The name of the `CatalogModifierList` instance. This is a searchable attribute for use in applicable query filters, and its value length is of\nUnicode code points.","maxLength":255,"nullable":true},"ordinal":{"type":"integer","description":"The position of this `CatalogModifierList` within a list of `CatalogModifierList` instances.","nullable":true},"selection_type":{"$ref":"#/components/schemas/CatalogModifierListSelectionType","description":"__Deprecated__: Indicates whether a single (`SINGLE`) modifier or multiple (`MULTIPLE`) modifiers can be selected. Use\n`min_selected_modifiers` and `max_selected_modifiers` instead.\nSee [CatalogModifierListSelectionType](#type-catalogmodifierlistselectiontype) for possible values","x-release-status":"DEPRECATED","nullable":true},"modifiers":{"type":"array","items":{"$ref":"#/components/schemas/CatalogObject"},"description":"A non-empty list of `CatalogModifier` objects to be included in the `CatalogModifierList`,\nfor non text-based modifiers when the `modifier_type` attribute is `LIST`. Each element of this list\nis a `CatalogObject` instance of the `MODIFIER` type, containing the following attributes:\n```\n{\n\"id\": \"{{catalog_modifier_id}}\",\n\"type\": \"MODIFIER\",\n\"modifier_data\": {{a CatalogModifier instance>}}\n}\n```","nullable":true},"image_ids":{"type":"array","items":{"type":"string"},"description":"The IDs of images associated with this `CatalogModifierList` instance.\nCurrently these images are not displayed on Square products, but may be displayed in 3rd-party applications.","nullable":true},"allow_quantities":{"type":"boolean","description":"When `true`, allows multiple quantities of the same modifier to be selected.","x-release-status":"BETA","nullable":true},"is_conversational":{"type":"boolean","description":"True if modifiers belonging to this list can be used conversationally.","x-release-status":"BETA","nullable":true},"modifier_type":{"$ref":"#/components/schemas/CatalogModifierListModifierType","description":"The type of the modifier.\n\nWhen this `modifier_type` value is `TEXT`, the `CatalogModifierList` represents a text-based modifier.\nWhen this `modifier_type` value is `LIST`, the `CatalogModifierList` contains a list of `CatalogModifier` objects.\nSee [CatalogModifierListModifierType](#type-catalogmodifierlistmodifiertype) for possible values","x-release-status":"BETA","nullable":true},"max_length":{"type":"integer","description":"The maximum length, in Unicode points, of the text string of the text-based modifier as represented by\nthis `CatalogModifierList` object with the `modifier_type` set to `TEXT`.","x-release-status":"BETA","nullable":true},"text_required":{"type":"boolean","description":"Whether the text string must be a non-empty string (`true`) or not (`false`) for a text-based modifier\nas represented by this `CatalogModifierList` object with the `modifier_type` set to `TEXT`.","x-release-status":"BETA","nullable":true},"internal_name":{"type":"string","description":"A note for internal use by the business.\n\nFor example, for a text-based modifier applied to a T-shirt item, if the buyer-supplied text of \"Hello, Kitty!\"\nis to be printed on the T-shirt, this `internal_name` attribute can be \"Use italic face\" as\nan instruction for the business to follow.\n\nFor non text-based modifiers, this `internal_name` attribute can be\nused to include SKUs, internal codes, or supplemental descriptions for internal use.","maxLength":512,"x-release-status":"BETA","nullable":true},"min_selected_modifiers":{"type":"integer","description":"The minimum number of modifiers that must be selected from this list. The value can be overridden with `CatalogItemModifierListInfo`.\n\nValues:\n\n- 0: No selection is required.\n- -1: Default value, the attribute was not set by the client. Treated as no selection required.\n- >0: The required minimum modifier selections. This can be larger than the total `CatalogModifiers` when `allow_quantities` is enabled.\n- < -1: Invalid. Treated as no selection required.","format":"int64","x-release-status":"BETA","nullable":true},"max_selected_modifiers":{"type":"integer","description":"The maximum number of modifiers that must be selected from this list. The value can be overridden with `CatalogItemModifierListInfo`.\n\nValues:\n\n- 0: No maximum limit.\n- -1: Default value, the attribute was not set by the client. Treated as no maximum limit.\n- >0: The maximum total modifier selections. This can be larger than the total `CatalogModifiers` when `allow_quantities` is enabled.\n- < -1: Invalid. Treated as no maximum limit.","format":"int64","x-release-status":"BETA","nullable":true},"hidden_from_customer":{"type":"boolean","description":"If `true`, modifiers from this list are hidden from customer receipts. The default value is `false`.\nThis setting can be overridden with `CatalogItemModifierListInfo.hidden_from_customer_override`.","x-release-status":"BETA","nullable":true}},"example":{"id":"#MilkType","modifier_list_data":{"allow_quantities":false,"modifiers":[{"modifier_data":{"name":"Whole Milk","price_money":{"amount":0,"currency":"USD"}},"present_at_all_locations":true,"type":"MODIFIER"},{"modifier_data":{"name":"Almond Milk","price_money":{"amount":250,"currency":"USD"}},"present_at_all_locations":true,"type":"MODIFIER"},{"modifier_data":{"name":"Soy Milk","price_money":{"amount":250,"currency":"USD"}},"present_at_all_locations":true,"type":"MODIFIER"}],"name":"Milk Type","selection_type":"SINGLE"},"present_at_all_locations":true,"type":"MODIFIER_LIST"}},"CatalogModifierListModifierType":{"type":"string","enum":["LIST","TEXT"],"x-enum-elements":[{"name":"LIST","description":"The `CatalogModifierList` instance is a non-empty list of non text-based modifiers."},{"name":"TEXT","description":"The `CatalogModifierList` instance is a single text-based modifier."}],"description":"Defines the type of `CatalogModifierList`.","x-release-status":"BETA"},"CatalogModifierListSelectionType":{"type":"string","enum":["SINGLE","MULTIPLE"],"x-enum-elements":[{"name":"SINGLE","description":"Indicates that a CatalogModifierList allows only a\nsingle CatalogModifier to be selected."},{"name":"MULTIPLE","description":"Indicates that a CatalogModifierList allows multiple\nCatalogModifier to be selected."}],"description":"Indicates whether a CatalogModifierList supports multiple selections.","x-release-status":"PUBLIC"},"CatalogModifierOverride":{"type":"object","description":"Options to control how to override the default behavior of the specified modifier.","x-release-status":"PUBLIC","required":["modifier_id"],"properties":{"modifier_id":{"type":"string","description":"The ID of the `CatalogModifier` whose default behavior is being overridden.","minLength":1},"on_by_default":{"type":"boolean","description":"__Deprecated__: Use `on_by_default_override` instead.","x-release-status":"DEPRECATED","nullable":true},"hidden_online_override":{"$ref":"#/components/schemas/CatalogModifierToggleOverrideType","description":"If `YES`, this setting overrides the `hidden_online` setting on the `CatalogModifier` object,\nand the modifier is always hidden from online sales channels.\nIf `NO`, the modifier is not hidden. It is always visible in online sales channels for this catalog item.\n`NOT_SET` means the `hidden_online` setting on the `CatalogModifier` object is obeyed.\nSee [CatalogModifierToggleOverrideType](#type-catalogmodifiertoggleoverridetype) for possible values","x-release-status":"BETA","nullable":true},"on_by_default_override":{"$ref":"#/components/schemas/CatalogModifierToggleOverrideType","description":"If `YES`, this setting overrides the `on_by_default` setting on the `CatalogModifier` object,\nand the modifier is always selected by default for the catalog item.\n\nIf `NO`, the modifier is not selected by default for this catalog item.\n`NOT_SET` means the `on_by_default` setting on the `CatalogModifier` object is obeyed.\nSee [CatalogModifierToggleOverrideType](#type-catalogmodifiertoggleoverridetype) for possible values","x-release-status":"BETA","nullable":true}}},"CatalogModifierToggleOverrideType":{"type":"string","enum":["NO","YES","NOT_SET"],"x-enum-elements":[{"name":"NO","description":"False override"},{"name":"YES","description":"True override"},{"name":"NOT_SET","description":"No override"}],"description":"Item level overrides for bool attributes","x-release-status":"BETA"},"CatalogObject":{"type":"object","description":"The wrapper object for the catalog entries of a given object type.\n\nDepending on the `type` attribute value, a `CatalogObject` instance assumes a type-specific data to yield the corresponding type of catalog object.\n\nFor example, if `type=ITEM`, the `CatalogObject` instance must have the ITEM-specific data set on the `item_data` attribute. The resulting `CatalogObject` instance is also a `CatalogItem` instance.\n\nIn general, if `type=<OBJECT_TYPE>`, the `CatalogObject` instance must have the `<OBJECT_TYPE>`-specific data set on the `<object_type>_data` attribute. The resulting `CatalogObject` instance is also a `Catalog<ObjectType>` instance.\n\nFor a more detailed discussion of the Catalog data model, please see the\n[Design a Catalog](https://developer.squareup.com/docs/catalog-api/design-a-catalog) guide.","x-release-status":"PUBLIC","required":["type","id"],"properties":{"type":{"$ref":"#/components/schemas/CatalogObjectType","description":"The type of this object. Each object type has expected\nproperties expressed in a structured format within its corresponding `*_data` field below.\nSee [CatalogObjectType](#type-catalogobjecttype) for possible values"},"id":{"type":"string","description":"An identifier to reference this object in the catalog. When a new `CatalogObject`\nis inserted, the client should set the id to a temporary identifier starting with\na \"`#`\" character. Other objects being inserted or updated within the same request\nmay use this identifier to refer to the new object.\n\nWhen the server receives the new object, it will supply a unique identifier that\nreplaces the temporary identifier for all future references.","minLength":1},"updated_at":{"type":"string","description":"Last modification [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) in RFC 3339 format, e.g., `\"2016-08-15T23:59:33.123Z\"`\nwould indicate the UTC time (denoted by `Z`) of August 15, 2016 at 23:59:33 and 123 milliseconds.","readOnly":true},"version":{"type":"integer","description":"The version of the object. When updating an object, the version supplied should match\nthe version in the database. If it does not, the server attempts a three-way merge. If the\nclient's changes and the concurrent changes don't overlap, the merge succeeds silently. A\n`VERSION_MISMATCH` error is only returned when both sides changed the same field to different\nvalues.\n\nUse the same API version (`Square-Version` header) for both reading and writing catalog\nobjects. The server uses the API version on a write request to determine which missing fields\nthe client intentionally cleared versus which fields the client simply could not see at that\nversion. If a client reads an object at an older API version and writes it back at a newer\nversion, fields that were introduced between those two versions will be absent from the\nrequest, and the server will interpret that absence as an intentional clear.","format":"int64"},"is_deleted":{"type":"boolean","description":"If `true`, the object has been deleted from the database. Must be `false` for new objects\nbeing inserted. When deleted, the `updated_at` field will equal the deletion time.","nullable":true},"custom_attribute_values":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/CatalogCustomAttributeValue"},"description":"A map (key-value pairs) of application-defined custom attribute values. The value of a key-value pair\nis a [CatalogCustomAttributeValue](entity:CatalogCustomAttributeValue) object. The key is the `key` attribute\nvalue defined in the associated [CatalogCustomAttributeDefinition](entity:CatalogCustomAttributeDefinition)\nobject defined by the application making the request.\n\nIf the `CatalogCustomAttributeDefinition` object is\ndefined by another application, the `CatalogCustomAttributeDefinition`'s key attribute value is prefixed by\nthe defining application ID. For example, if the `CatalogCustomAttributeDefinition` has a `key` attribute of\n`\"cocoa_brand\"` and the defining application ID is `\"abcd1234\"`, the key in the map is `\"abcd1234:cocoa_brand\"`\nif the application making the request is different from the application defining the custom attribute definition.\nOtherwise, the key used in the map is simply `\"cocoa_brand\"`.\n\nApplication-defined custom attributes are set at a global (location-independent) level.\nCustom attribute values are intended to store additional information about a catalog object\nor associations with an entity in another system. Do not use custom attributes\nto store any sensitive information (personally identifiable information, card details, etc.).","nullable":true},"catalog_v1_ids":{"type":"array","items":{"$ref":"#/components/schemas/CatalogV1Id"},"description":"The Connect v1 IDs for this object at each location where it is present, where they\ndiffer from the object's Connect V2 ID. The field will only be present for objects that\nhave been created or modified by legacy APIs.","nullable":true},"present_at_all_locations":{"type":"boolean","description":"Controls whether this object is present at all locations, including future locations.\n\nMost object types have independent location control, including `TAX`, `DISCOUNT`, and\n`MODIFIER_LIST`.\n\n`ITEM` and `ITEM_VARIATION` have separate settings, but a variation can only be enabled\nat locations where its parent item is enabled. Disabling a variation everywhere is valid\neven when the parent item is enabled at specific locations.\n\n`MODIFIER` objects nested within a `MODIFIER_LIST` inherit location settings from their parent.\nSome object types, including `CATEGORY`, `IMAGE`, and `CUSTOM_ATTRIBUTE_DEFINITION`, must\nalways be globally enabled and cannot use location-specific fields.\n\nThe field operates in two modes. When true (the default), the object is available at\nall current and future locations except those in `absent_at_location_ids`. When false,\nthe object is available only at locations in `present_at_location_ids`. The unused\nlist in each mode is ignored.","nullable":true},"present_at_location_ids":{"type":"array","items":{"type":"string"},"description":"Locations where the object is present, used when `present_at_all_locations` is false.\n\nWhen `present_at_all_locations` is true, this field is ignored since the object is\nalready present everywhere. Can include deactivated locations. Empty strings are rejected.","nullable":true},"absent_at_location_ids":{"type":"array","items":{"type":"string"},"description":"Locations where the object is not present, used when `present_at_all_locations` is true.\n\nWhen `present_at_all_locations` is false, this field is ignored since the object is\nalready absent everywhere except those in `present_at_location_ids`. Can include\ndeactivated locations. Empty strings are rejected.","nullable":true},"item_data":{"$ref":"#/components/schemas/CatalogItem","description":"Structured data for a `CatalogItem`, set for CatalogObjects of type `ITEM`.","nullable":true},"category_data":{"$ref":"#/components/schemas/CatalogCategory","description":"Structured data for a `CatalogCategory`, set for CatalogObjects of type `CATEGORY`.","nullable":true},"item_variation_data":{"$ref":"#/components/schemas/CatalogItemVariation","description":"Structured data for a `CatalogItemVariation`, set for CatalogObjects of type `ITEM_VARIATION`.","nullable":true},"tax_data":{"$ref":"#/components/schemas/CatalogTax","description":"Structured data for a `CatalogTax`, set for CatalogObjects of type `TAX`.","nullable":true},"discount_data":{"$ref":"#/components/schemas/CatalogDiscount","description":"Structured data for a `CatalogDiscount`, set for CatalogObjects of type `DISCOUNT`.","nullable":true},"modifier_list_data":{"$ref":"#/components/schemas/CatalogModifierList","description":"Structured data for a `CatalogModifierList`, set for CatalogObjects of type `MODIFIER_LIST`.","nullable":true},"modifier_data":{"$ref":"#/components/schemas/CatalogModifier","description":"Structured data for a `CatalogModifier`, set for CatalogObjects of type `MODIFIER`.","nullable":true},"time_period_data":{"$ref":"#/components/schemas/CatalogTimePeriod","description":"Structured data for a `CatalogTimePeriod`, set for CatalogObjects of type `TIME_PERIOD`.","nullable":true},"product_set_data":{"$ref":"#/components/schemas/CatalogProductSet","description":"Structured data for a `CatalogProductSet`, set for CatalogObjects of type `PRODUCT_SET`.","nullable":true},"pricing_rule_data":{"$ref":"#/components/schemas/CatalogPricingRule","description":"Structured data for a `CatalogPricingRule`, set for CatalogObjects of type `PRICING_RULE`.\nA `CatalogPricingRule` object often works with a `CatalogProductSet` object or a `CatalogTimePeriod` object.","nullable":true},"image_data":{"$ref":"#/components/schemas/CatalogImage","description":"Structured data for a `CatalogImage`, set for CatalogObjects of type `IMAGE`.","nullable":true},"measurement_unit_data":{"$ref":"#/components/schemas/CatalogMeasurementUnit","description":"Structured data for a `CatalogMeasurementUnit`, set for CatalogObjects of type `MEASUREMENT_UNIT`.","nullable":true},"subscription_plan_data":{"$ref":"#/components/schemas/CatalogSubscriptionPlan","description":"Structured data for a `CatalogSubscriptionPlan`, set for CatalogObjects of type `SUBSCRIPTION_PLAN`.","nullable":true},"item_option_data":{"$ref":"#/components/schemas/CatalogItemOption","description":"Structured data for a `CatalogItemOption`, set for CatalogObjects of type `ITEM_OPTION`.","nullable":true},"item_option_value_data":{"$ref":"#/components/schemas/CatalogItemOptionValue","description":"Structured data for a `CatalogItemOptionValue`, set for CatalogObjects of type `ITEM_OPTION_VAL`.","nullable":true},"custom_attribute_definition_data":{"$ref":"#/components/schemas/CatalogCustomAttributeDefinition","description":"Structured data for a `CatalogCustomAttributeDefinition`, set for CatalogObjects of type `CUSTOM_ATTRIBUTE_DEFINITION`.","nullable":true},"quick_amounts_settings_data":{"$ref":"#/components/schemas/CatalogQuickAmountsSettings","description":"Structured data for a `CatalogQuickAmountsSettings`, set for CatalogObjects of type `QUICK_AMOUNTS_SETTINGS`.","x-release-status":"BETA","nullable":true},"subscription_plan_variation_data":{"$ref":"#/components/schemas/CatalogSubscriptionPlanVariation","description":"Structured data for a `CatalogSubscriptionPlanVariation`, set for CatalogObjects of type `SUBSCRIPTION_PLAN_VARIATION`.","nullable":true},"availability_period_data":{"$ref":"#/components/schemas/CatalogAvailabilityPeriod","description":"Structured data for a `CatalogAvailabilityPeriod`, set for CatalogObjects of type `AVAILABILITY_PERIOD`.","nullable":true}},"example":{"catalog_object":{"absent_at_location_ids":["{{ LOCATIONID-1 }}","{{ LOCATIONID-N }}"],"category_data":"{{ CatalogCategory object only if type=CATEGORY }}","connect_v1_ids":{"catalog_v1_id":"{{ itemID from Catalog v1 }}","location_id":"{{ location where v1 ID is used }}"},"discount_data":"{{ CatalogDiscount object only if type=DISCOUNT }}","id":"{{ set by Catalog during object creation }}","is_deleted":"{{ [true | false] }}","item_data":"{{ CatalogItem object only if type=ITEM }}","item_variation_data":"{{ CatalogItemVariation object only if type=ITEM_VARIATION }}","modifier_data":"{{ CatalogModifier object only if type=MODIFIER }}","modifier_list_data":"{{ CatalogModifierList object only if type=MODIFIER_LIST }}","present_at_all_locations":"{{ [true | false] }}","present_at_location_ids":["{{ LOCATIONID-1 }}","{{ LOCATIONID-N }}"],"tax_data":"{{ CatalogTax object only if type=TAX }}","type":"{{ [ITEM | ITEM_VARIATION | MODIFIER | MODIFIER_LIST | CATEGORY | DISCOUNT | TAX] }}","updated_at":"{{ date & time of most recent update }}","version":"{{ version of the CatalogObject }}"}}},"CatalogObjectBatch":{"type":"object","description":"A batch of catalog objects.","x-release-status":"PUBLIC","required":["objects"],"properties":{"objects":{"type":"array","items":{"$ref":"#/components/schemas/CatalogObject"},"description":"A list of CatalogObjects belonging to this batch."}}},"CatalogObjectCategory":{"type":"object","description":"A category that can be assigned to an item or a parent category that can be assigned \nto another category. For example, a clothing category can be assigned to a t-shirt item or \nbe made as the parent category to the pants category.","x-release-status":"BETA","properties":{"id":{"type":"string","description":"The ID of the object's category."},"ordinal":{"type":"integer","description":"The position of this object within the specified category. When an item is assigned to a category,\nthe ordinal determines the item's position relative to other items in the same category. When used for a\nparent category reference, the ordinal determines the category's position among its sibling categories.","format":"int64","nullable":true}}},"CatalogObjectReference":{"type":"object","description":"A reference to a Catalog object at a specific version. In general this is\nused as an entry point into a graph of catalog objects, where the objects exist\nat a specific version.","x-release-status":"PUBLIC","properties":{"object_id":{"type":"string","description":"The ID of the referenced object.","nullable":true},"catalog_version":{"type":"integer","description":"The version of the object.","format":"int64","nullable":true}}},"CatalogObjectType":{"type":"string","enum":["ITEM","IMAGE","CATEGORY","ITEM_VARIATION","TAX","DISCOUNT","MODIFIER_LIST","MODIFIER","PRICING_RULE","PRODUCT_SET","TIME_PERIOD","MEASUREMENT_UNIT","SUBSCRIPTION_PLAN_VARIATION","ITEM_OPTION","ITEM_OPTION_VAL","CUSTOM_ATTRIBUTE_DEFINITION","QUICK_AMOUNTS_SETTINGS","SUBSCRIPTION_PLAN","AVAILABILITY_PERIOD"],"x-enum-elements":[{"name":"ITEM","description":"The `CatalogObject` instance is of the [CatalogItem](entity:CatalogItem) type and represents an item. The item-specific data\nmust be set on the `item_data` field."},{"name":"IMAGE","description":"The `CatalogObject` instance is of the [CatalogImage](entity:CatalogImage) type and represents an image. The image-specific data\nmust be set on the `image_data` field."},{"name":"CATEGORY","description":"The `CatalogObject` instance is of the [CatalogCategory](entity:CatalogCategory) type and represents a category. The category-specific data\nmust be set on the `category_data` field."},{"name":"ITEM_VARIATION","description":"The `CatalogObject` instance is of the [CatalogItemVariation](entity:CatalogItemVariation) type and represents an item variation, also referred to as variation.\nThe item variation-specific data must be set on the `item_variation_data` field."},{"name":"TAX","description":"The `CatalogObject` instance is of the [CatalogTax](entity:CatalogTax) type and represents a tax. The tax-specific data\nmust be set on the `tax_data` field."},{"name":"DISCOUNT","description":"The `CatalogObject` instance is of the [CatalogDiscount](entity:CatalogDiscount) type and represents a discount. The discount-specific data\nmust be set on the `discount_data` field."},{"name":"MODIFIER_LIST","description":"The `CatalogObject` instance is of the [CatalogModifierList](entity:CatalogModifierList) type and represents a modifier list.\nThe modifier-list-specific data must be set on the `modifier_list_data` field."},{"name":"MODIFIER","description":"The `CatalogObject` instance is of the [CatalogModifier](entity:CatalogModifier) type and represents a modifier. The modifier-specific data\nmust be set on the `modifier_data` field."},{"name":"PRICING_RULE","description":"The `CatalogObject` instance is of the [CatalogPricingRule](entity:CatalogPricingRule) type and represents a pricing rule. The pricing-rule-specific data\nmust be set on the `pricing_rule_data` field."},{"name":"PRODUCT_SET","description":"The `CatalogObject` instance is of the [CatalogProductSet](entity:CatalogProductSet) type and represents a product set.\nThe product-set-specific data will be stored in the `product_set_data` field."},{"name":"TIME_PERIOD","description":"The `CatalogObject` instance is of the [CatalogTimePeriod](entity:CatalogTimePeriod) type and represents a time period.\nThe time-period-specific data must be set on the `time_period_data` field."},{"name":"MEASUREMENT_UNIT","description":"The `CatalogObject` instance is of the [CatalogMeasurementUnit](entity:CatalogMeasurementUnit) type and represents a measurement unit specifying the unit of\nmeasure and precision in which an item variation is sold. The measurement-unit-specific data must set on the `measurement_unit_data` field."},{"name":"SUBSCRIPTION_PLAN_VARIATION","description":"The `CatalogObject` instance is of the [CatalogSubscriptionPlan](entity:CatalogSubscriptionPlan) type and represents a subscription plan.\nThe subscription-plan-specific data must be stored on the `subscription_plan_data` field."},{"name":"ITEM_OPTION","description":"The `CatalogObject` instance is of the [CatalogItemOption](entity:CatalogItemOption) type and represents a list of options (such as a color or size of a T-shirt)\nthat can be assigned to item variations. The item-option-specific data must be on the `item_option_data` field."},{"name":"ITEM_OPTION_VAL","description":"The `CatalogObject` instance is of the [CatalogItemOptionValue](entity:CatalogItemOptionValue) type and represents a value associated with one or more item options.\nFor example, an item option of \"Size\" may have item option values such as \"Small\" or \"Medium\".\nThe item-option-value-specific data must be on the `item_option_value_data` field."},{"name":"CUSTOM_ATTRIBUTE_DEFINITION","description":"The `CatalogObject` instance is of the [CatalogCustomAttributeDefinition](entity:CatalogCustomAttributeDefinition) type and represents the definition of a custom attribute.\nThe custom-attribute-definition-specific data must be set on the `custom_attribute_definition_data` field."},{"name":"QUICK_AMOUNTS_SETTINGS","description":"The `CatalogObject` instance is of the [CatalogQuickAmountsSettings](entity:CatalogQuickAmountsSettings) type and represents settings to configure preset charges for quick payments at each location.\nFor example, a location may have a list of both AUTO and MANUAL quick amounts that are set to DISABLED.\nThe quick-amounts-settings-specific data must be set on the `quick_amounts_settings_data` field."},{"name":"SUBSCRIPTION_PLAN","description":"The `CatalogObject` instance is of the [CatalogSubscriptionPlan](entity:CatalogSubscriptionPlan) type and represents a subscription plan.\nThe subscription plan specific data must be stored on the `subscription_plan_data` field."},{"name":"AVAILABILITY_PERIOD","description":"The `CatalogObject` instance is of the [CatalogAvailabilityPeriod](entity:CatalogAvailabilityPeriod) type and represents an availability period.\nThe availability period specific data must be stored on the `availability_period_data` field."}],"description":"Possible types of CatalogObjects returned from the catalog, each\ncontaining type-specific properties in the `*_data` field corresponding to the specified object type.","x-release-status":"PUBLIC"},"CatalogPricingRule":{"type":"object","description":"Defines how discounts are automatically applied to a set of items that match the pricing rule\nduring the active time period.","x-release-status":"PUBLIC","properties":{"name":{"type":"string","description":"User-defined name for the pricing rule. For example, \"Buy one get one\nfree\" or \"10% off\".","nullable":true},"time_period_ids":{"type":"array","items":{"type":"string"},"description":"A list of unique IDs for the catalog time periods when\nthis pricing rule is in effect. If left unset, the pricing rule is always\nin effect.","nullable":true},"discount_id":{"type":"string","description":"Unique ID for the `CatalogDiscount` to take off\nthe price of all matched items.","nullable":true},"match_products_id":{"type":"string","description":"Unique ID for the `CatalogProductSet` that will be matched by this rule. A match rule\nmatches within the entire cart, and can match multiple times. This field will always be set.","nullable":true},"apply_products_id":{"type":"string","description":"__Deprecated__: Please use the `exclude_products_id` field to apply\nan exclude set instead. Exclude sets allow better control over quantity\nranges and offer more flexibility for which matched items receive a discount.\n\n`CatalogProductSet` to apply the pricing to.\nAn apply rule matches within the subset of the cart that fits the match rules (the match set).\nAn apply rule can only match once in the match set.\nIf not supplied, the pricing will be applied to all products in the match set.\nOther products retain their base price, or a price generated by other rules.","x-release-status":"DEPRECATED","nullable":true},"exclude_products_id":{"type":"string","description":"`CatalogProductSet` to exclude from the pricing rule.\nAn exclude rule matches within the subset of the cart that fits the match rules (the match set).\nAn exclude rule can only match once in the match set.\nIf not supplied, the pricing will be applied to all products in the match set.\nOther products retain their base price, or a price generated by other rules.","nullable":true},"valid_from_date":{"type":"string","description":"Represents the date the Pricing Rule is valid from. Represented in RFC 3339 full-date format (YYYY-MM-DD).","nullable":true},"valid_from_local_time":{"type":"string","description":"Represents the local time the pricing rule should be valid from. Represented in RFC 3339 partial-time format\n(HH:MM:SS). Partial seconds will be truncated.","nullable":true},"valid_until_date":{"type":"string","description":"Represents the date the Pricing Rule is valid until. Represented in RFC 3339 full-date format (YYYY-MM-DD).","nullable":true},"valid_until_local_time":{"type":"string","description":"Represents the local time the pricing rule should be valid until. Represented in RFC 3339 partial-time format\n(HH:MM:SS). Partial seconds will be truncated.","nullable":true},"exclude_strategy":{"$ref":"#/components/schemas/ExcludeStrategy","description":"If an `exclude_products_id` was given, controls which subset of matched\nproducts is excluded from any discounts.\n\nDefault value: `LEAST_EXPENSIVE`\nSee [ExcludeStrategy](#type-excludestrategy) for possible values","nullable":true},"minimum_order_subtotal_money":{"$ref":"#/components/schemas/Money","description":"The minimum order subtotal (before discounts or taxes are applied)\nthat must be met before this rule may be applied.","nullable":true},"customer_group_ids_any":{"type":"array","items":{"type":"string"},"description":"A list of IDs of customer groups, the members of which are eligible for discounts specified in this pricing rule.\nNotice that a group ID is generated by the Customers API.\nIf this field is not set, the specified discount applies to matched products sold to anyone whether the buyer\nhas a customer profile created or not. If this `customer_group_ids_any` field is set, the specified discount\napplies only to matched products sold to customers belonging to the specified customer groups.","nullable":true}}},"CatalogPricingType":{"type":"string","enum":["FIXED_PRICING","VARIABLE_PRICING"],"x-enum-elements":[{"name":"FIXED_PRICING","description":"The catalog item variation's price is fixed."},{"name":"VARIABLE_PRICING","description":"The catalog item variation's price is entered at the time of sale."}],"description":"Indicates whether the price of a CatalogItemVariation should be entered manually at the time of sale.","x-release-status":"PUBLIC"},"CatalogProductSet":{"type":"object","description":"Represents a collection of catalog objects for the purpose of applying a\n`PricingRule`. Including a catalog object will include all of its subtypes.\nFor example, including a category in a product set will include all of its\nitems and associated item variations in the product set. Including an item in\na product set will also include its item variations.","x-release-status":"PUBLIC","properties":{"name":{"type":"string","description":"User-defined name for the product set. For example, \"Clearance Items\"\nor \"Winter Sale Items\".","nullable":true},"product_ids_any":{"type":"array","items":{"type":"string"},"description":" Unique IDs for any `CatalogObject` included in this product set. Any\nnumber of these catalog objects can be in an order for a pricing rule to apply.\n\nThis can be used with `product_ids_all` in a parent `CatalogProductSet` to\nmatch groups of products for a bulk discount, such as a discount for an\nentree and side combo.\n\nOnly one of `product_ids_all`, `product_ids_any`, or `all_products` can be set.\n\nMax: 5000 catalog object IDs.","nullable":true},"product_ids_all":{"type":"array","items":{"type":"string"},"description":"Unique IDs for any `CatalogObject` included in this product set.\nAll objects in this set must be included in an order for a pricing rule to apply.\n\nOnly one of `product_ids_all`, `product_ids_any`, or `all_products` can be set.\n\nMax: 5000 catalog object IDs.","nullable":true},"quantity_exact":{"type":"integer","description":"If set, there must be exactly this many items from `products_any` or `products_all`\nin the cart for the discount to apply.\n\nCannot be combined with either `quantity_min` or `quantity_max`.","format":"int64","nullable":true},"quantity_min":{"type":"integer","description":"If set, there must be at least this many items from `products_any` or `products_all`\nin a cart for the discount to apply. See `quantity_exact`. Defaults to 0 if\n`quantity_exact`, `quantity_min` and `quantity_max` are all unspecified.","format":"int64","nullable":true},"quantity_max":{"type":"integer","description":"If set, the pricing rule will apply to a maximum of this many items from\n`products_any` or `products_all`.","format":"int64","nullable":true},"all_products":{"type":"boolean","description":"If set to `true`, the product set will include every item in the catalog.\nOnly one of `product_ids_all`, `product_ids_any`, or `all_products` can be set.","nullable":true}}},"CatalogQuery":{"type":"object","description":"A query composed of one or more different types of filters to narrow the scope of targeted objects when calling the `SearchCatalogObjects` endpoint.\n\nAlthough a query can have multiple filters, only certain query types can be combined per call to [SearchCatalogObjects](api-endpoint:Catalog-SearchCatalogObjects).\nAny combination of the following types may be used together:\n- [exact_query](entity:CatalogQueryExact)\n- [prefix_query](entity:CatalogQueryPrefix)\n- [range_query](entity:CatalogQueryRange)\n- [sorted_attribute_query](entity:CatalogQuerySortedAttribute)\n- [text_query](entity:CatalogQueryText)\n\nAll other query types cannot be combined with any others.\n\nWhen a query filter is based on an attribute, the attribute must be searchable.\nSearchable attributes are listed as follows, along their parent types that can be searched for with applicable query filters.\n\nSearchable attribute and objects queryable by searchable attributes:\n- `name`: `CatalogItem`, `CatalogItemVariation`, `CatalogCategory`, `CatalogTax`, `CatalogDiscount`, `CatalogModifier`, `CatalogModifierList`, `CatalogItemOption`, `CatalogItemOptionValue`\n- `description`: `CatalogItem`, `CatalogItemOptionValue`\n- `abbreviation`: `CatalogItem`\n- `upc`: `CatalogItemVariation`\n- `sku`: `CatalogItemVariation`\n- `caption`: `CatalogImage`\n- `display_name`: `CatalogItemOption`\n\nFor example, to search for [CatalogItem](entity:CatalogItem) objects by searchable attributes, you can use\nthe `\"name\"`, `\"description\"`, or `\"abbreviation\"` attribute in an applicable query filter.","x-release-status":"PUBLIC","properties":{"sorted_attribute_query":{"$ref":"#/components/schemas/CatalogQuerySortedAttribute","description":"A query expression to sort returned query result by the given attribute.","nullable":true},"exact_query":{"$ref":"#/components/schemas/CatalogQueryExact","description":"An exact query expression to return objects with attribute name and value\nmatching the specified attribute name and value exactly. Value matching is case insensitive.","nullable":true},"set_query":{"$ref":"#/components/schemas/CatalogQuerySet","description":"A set query expression to return objects with attribute name and value\nmatching the specified attribute name and any of the specified attribute values exactly.\nValue matching is case insensitive.","nullable":true},"prefix_query":{"$ref":"#/components/schemas/CatalogQueryPrefix","description":"A prefix query expression to return objects with attribute values\nthat have a prefix matching the specified string value. Value matching is case insensitive.","nullable":true},"range_query":{"$ref":"#/components/schemas/CatalogQueryRange","description":"A range query expression to return objects with numeric values\nthat lie in the specified range.","nullable":true},"text_query":{"$ref":"#/components/schemas/CatalogQueryText","description":"A text query expression to return objects whose searchable attributes contain all of the given\nkeywords, irrespective of their order. For example, if a `CatalogItem` contains custom attribute values of\n`{\"name\": \"t-shirt\"}` and `{\"description\": \"Small, Purple\"}`, the query filter of `{\"keywords\": [\"shirt\", \"sma\", \"purp\"]}`\nreturns this item.","nullable":true},"items_for_tax_query":{"$ref":"#/components/schemas/CatalogQueryItemsForTax","description":"A query expression to return items that have any of the specified taxes (as identified by the corresponding `CatalogTax` object IDs) enabled.","nullable":true},"items_for_modifier_list_query":{"$ref":"#/components/schemas/CatalogQueryItemsForModifierList","description":"A query expression to return items that have any of the given modifier list (as identified by the corresponding `CatalogModifierList`s IDs) enabled.","nullable":true},"items_for_item_options_query":{"$ref":"#/components/schemas/CatalogQueryItemsForItemOptions","description":"A query expression to return items that contains the specified item options (as identified the corresponding `CatalogItemOption` IDs).","nullable":true},"item_variations_for_item_option_values_query":{"$ref":"#/components/schemas/CatalogQueryItemVariationsForItemOptionValues","description":"A query expression to return item variations (of the [CatalogItemVariation](entity:CatalogItemVariation) type) that\ncontain all of the specified `CatalogItemOption` IDs.","nullable":true},"modifiers_for_child_list_query":{"$ref":"#/components/schemas/CatalogQueryModifiersForChildList","description":"A query expression to return `CatalogModifier` objects that nest the specified modifier lists (via `child_modifier_list_ids`)","x-release-status":"BETA","nullable":true}}},"CatalogQueryExact":{"type":"object","description":"The query filter to return the search result by exact match of the specified attribute name and value.","x-release-status":"PUBLIC","required":["attribute_name","attribute_value"],"properties":{"attribute_name":{"type":"string","description":"The name of the attribute to be searched. Matching of the attribute name is exact.","minLength":1},"attribute_value":{"type":"string","description":"The desired value of the search attribute. Matching of the attribute value is case insensitive and can be partial.\nFor example, if a specified value of \"sma\", objects with the named attribute value of \"Small\", \"small\" are both matched."}}},"CatalogQueryItemVariationsForItemOptionValues":{"type":"object","description":"The query filter to return the item variations containing the specified item option value IDs.","x-release-status":"PUBLIC","properties":{"item_option_value_ids":{"type":"array","items":{"type":"string"},"description":"A set of `CatalogItemOptionValue` IDs to be used to find associated\n`CatalogItemVariation`s. All ItemVariations that contain all of the given\nItem Option Values (in any order) will be returned.","nullable":true}}},"CatalogQueryItemsForItemOptions":{"type":"object","description":"The query filter to return the items containing the specified item option IDs.","x-release-status":"PUBLIC","properties":{"item_option_ids":{"type":"array","items":{"type":"string"},"description":"A set of `CatalogItemOption` IDs to be used to find associated\n`CatalogItem`s. All Items that contain all of the given Item Options (in any order)\nwill be returned.","nullable":true}}},"CatalogQueryItemsForModifierList":{"type":"object","description":"The query filter to return the items containing the specified modifier list IDs.","x-release-status":"PUBLIC","required":["modifier_list_ids"],"properties":{"modifier_list_ids":{"type":"array","items":{"type":"string"},"description":"A set of `CatalogModifierList` IDs to be used to find associated `CatalogItem`s."}}},"CatalogQueryItemsForTax":{"type":"object","description":"The query filter to return the items containing the specified tax IDs.","x-release-status":"PUBLIC","required":["tax_ids"],"properties":{"tax_ids":{"type":"array","items":{"type":"string"},"description":"A set of `CatalogTax` IDs to be used to find associated `CatalogItem`s."}}},"CatalogQueryModifiersForChildList":{"type":"object","description":"Query to find `CatalogModifier` objects that reference a given `CatalogModifierList` in their `child_modifier_list_ids` field.","x-release-status":"BETA","required":["child_modifier_list_ids"],"properties":{"child_modifier_list_ids":{"type":"array","items":{"type":"string"},"description":"The `CatalogModifierList` IDs to find parent `CatalogModifier`s for.\nReturns `CatalogModifier` objects where `child_modifier_list_ids` contains any of these IDs."}}},"CatalogQueryPrefix":{"type":"object","description":"The query filter to return the search result whose named attribute values are prefixed by the specified attribute value.","x-release-status":"PUBLIC","required":["attribute_name","attribute_prefix"],"properties":{"attribute_name":{"type":"string","description":"The name of the attribute to be searched.","minLength":1},"attribute_prefix":{"type":"string","description":"The desired prefix of the search attribute value.","minLength":1}}},"CatalogQueryRange":{"type":"object","description":"The query filter to return the search result whose named attribute values fall between the specified range.","x-release-status":"PUBLIC","required":["attribute_name"],"properties":{"attribute_name":{"type":"string","description":"The name of the attribute to be searched.","minLength":1},"attribute_min_value":{"type":"integer","description":"The desired minimum value for the search attribute (inclusive).","format":"int64","nullable":true},"attribute_max_value":{"type":"integer","description":"The desired maximum value for the search attribute (inclusive).","format":"int64","nullable":true}}},"CatalogQuerySet":{"type":"object","description":"The query filter to return the search result(s) by exact match of the specified `attribute_name` and any of\nthe `attribute_values`.","x-release-status":"PUBLIC","required":["attribute_name","attribute_values"],"properties":{"attribute_name":{"type":"string","description":"The name of the attribute to be searched. Matching of the attribute name is exact.","minLength":1},"attribute_values":{"type":"array","items":{"type":"string"},"description":"The desired values of the search attribute. Matching of the attribute values is exact and case insensitive.\nA maximum of 250 values may be searched in a request."}}},"CatalogQuerySortedAttribute":{"type":"object","description":"The query expression to specify the key to sort search results.","x-release-status":"PUBLIC","required":["attribute_name"],"properties":{"attribute_name":{"type":"string","description":"The attribute whose value is used as the sort key.","minLength":1},"initial_attribute_value":{"type":"string","description":"The first attribute value to be returned by the query. Ascending sorts will return only\nobjects with this value or greater, while descending sorts will return only objects with this value\nor less. If unset, start at the beginning (for ascending sorts) or end (for descending sorts).","nullable":true},"sort_order":{"$ref":"#/components/schemas/SortOrder","description":"The desired sort order, `\"ASC\"` (ascending) or `\"DESC\"` (descending).\nSee [SortOrder](#type-sortorder) for possible values","nullable":true}}},"CatalogQueryText":{"type":"object","description":"The query filter to return the search result whose searchable attribute values contain all of the specified keywords or tokens, independent of the token order or case.","x-release-status":"PUBLIC","required":["keywords"],"properties":{"keywords":{"type":"array","items":{"type":"string"},"description":"A list of 1, 2, or 3 search keywords. Keywords with fewer than 3 alphanumeric characters are ignored."}}},"CatalogQuickAmount":{"type":"object","description":"Represents a Quick Amount in the Catalog.","x-release-status":"BETA","required":["type","amount"],"properties":{"type":{"$ref":"#/components/schemas/CatalogQuickAmountType","description":"Represents the type of the Quick Amount.\nSee [CatalogQuickAmountType](#type-catalogquickamounttype) for possible values"},"amount":{"$ref":"#/components/schemas/Money","description":"Represents the actual amount of the Quick Amount with Money type."},"score":{"type":"integer","description":"Describes the ranking of the Quick Amount provided by machine learning model, in the range [0, 100].\nMANUAL type amount will always have score = 100.","format":"int64","nullable":true},"ordinal":{"type":"integer","description":"The order in which this Quick Amount should be displayed.","format":"int64","nullable":true}}},"CatalogQuickAmountType":{"type":"string","enum":["QUICK_AMOUNT_TYPE_MANUAL","QUICK_AMOUNT_TYPE_AUTO"],"x-enum-elements":[{"name":"QUICK_AMOUNT_TYPE_MANUAL","description":"Quick Amount is created manually by the seller."},{"name":"QUICK_AMOUNT_TYPE_AUTO","description":"Quick Amount is generated automatically by machine learning algorithms."}],"description":"Determines the type of a specific Quick Amount.","x-release-status":"BETA"},"CatalogQuickAmountsSettings":{"type":"object","description":"A parent Catalog Object model represents a set of Quick Amounts and the settings control the amounts.","x-release-status":"BETA","required":["option"],"properties":{"option":{"$ref":"#/components/schemas/CatalogQuickAmountsSettingsOption","description":"Represents the option seller currently uses on Quick Amounts.\nSee [CatalogQuickAmountsSettingsOption](#type-catalogquickamountssettingsoption) for possible values"},"eligible_for_auto_amounts":{"type":"boolean","description":"Represents location's eligibility for auto amounts\nThe boolean should be consistent with whether there are AUTO amounts in the `amounts`.","nullable":true},"amounts":{"type":"array","items":{"$ref":"#/components/schemas/CatalogQuickAmount"},"description":"Represents a set of Quick Amounts at this location.","nullable":true}}},"CatalogQuickAmountsSettingsOption":{"type":"string","enum":["DISABLED","MANUAL","AUTO"],"x-enum-elements":[{"name":"DISABLED","description":"Option for seller to disable Quick Amounts."},{"name":"MANUAL","description":"Option for seller to choose manually created Quick Amounts."},{"name":"AUTO","description":"Option for seller to choose automatically created Quick Amounts."}],"description":"Determines a seller's option on Quick Amounts feature.","x-release-status":"BETA"},"CatalogStockConversion":{"type":"object","description":"Represents the rule of conversion between a stockable [CatalogItemVariation](entity:CatalogItemVariation)\nand a non-stockable sell-by or receive-by `CatalogItemVariation` that\nshare the same underlying stock.","x-release-status":"BETA","required":["stockable_item_variation_id","stockable_quantity","nonstockable_quantity"],"properties":{"stockable_item_variation_id":{"type":"string","description":"References to the stockable [CatalogItemVariation](entity:CatalogItemVariation)\nfor this stock conversion. Selling, receiving or recounting the non-stockable `CatalogItemVariation`\ndefined with a stock conversion results in adjustments of this stockable `CatalogItemVariation`.\nThis immutable field must reference a stockable `CatalogItemVariation`\nthat shares the parent [CatalogItem](entity:CatalogItem) of the converted `CatalogItemVariation.`","minLength":1},"stockable_quantity":{"type":"string","description":"The quantity of the stockable item variation (as identified by `stockable_item_variation_id`)\nequivalent to the non-stockable item variation quantity (as specified in `nonstockable_quantity`)\nas defined by this stock conversion. It accepts a decimal number in a string format that can take\nup to 10 digits before the decimal point and up to 5 digits after the decimal point.","minLength":1,"maxLength":16},"nonstockable_quantity":{"type":"string","description":"The converted equivalent quantity of the non-stockable [CatalogItemVariation](entity:CatalogItemVariation)\nin its measurement unit. The `stockable_quantity` value and this `nonstockable_quantity` value together\ndefine the conversion ratio between stockable item variation and the non-stockable item variation.\nIt accepts a decimal number in a string format that can take up to 10 digits before the decimal point\nand up to 5 digits after the decimal point.","minLength":1,"maxLength":16}}},"CatalogSubscriptionPlan":{"type":"object","description":"Describes a subscription plan. A subscription plan represents what you want to sell in a subscription model, and includes references to each of the associated subscription plan variations.\nFor more information, see [Subscription Plans and Variations](https://developer.squareup.com/docs/subscriptions-api/plans-and-variations).","x-release-status":"PUBLIC","required":["name"],"properties":{"name":{"type":"string","description":"The name of the plan."},"phases":{"type":"array","items":{"$ref":"#/components/schemas/SubscriptionPhase"},"description":"A list of SubscriptionPhase containing the [SubscriptionPhase](entity:SubscriptionPhase) for this plan.\nThis field it required. Not including this field will throw a REQUIRED_FIELD_MISSING error","nullable":true},"subscription_plan_variations":{"type":"array","items":{"$ref":"#/components/schemas/CatalogObject"},"description":"The list of subscription plan variations available for this product","nullable":true},"eligible_item_ids":{"type":"array","items":{"type":"string"},"description":"The list of IDs of `CatalogItems` that are eligible for subscription by this SubscriptionPlan's variations.","nullable":true},"eligible_category_ids":{"type":"array","items":{"type":"string"},"description":"The list of IDs of `CatalogCategory` that are eligible for subscription by this SubscriptionPlan's variations.","nullable":true},"all_items":{"type":"boolean","description":"If true, all items in the merchant's catalog are subscribable by this SubscriptionPlan.","nullable":true}}},"CatalogSubscriptionPlanVariation":{"type":"object","description":"Describes a subscription plan variation. A subscription plan variation represents how the subscription for a product or service is sold.\nFor more information, see [Subscription Plans and Variations](https://developer.squareup.com/docs/subscriptions-api/plans-and-variations).","x-release-status":"PUBLIC","required":["name","phases"],"properties":{"name":{"type":"string","description":"The name of the plan variation."},"phases":{"type":"array","items":{"$ref":"#/components/schemas/SubscriptionPhase"},"description":"A list containing each [SubscriptionPhase](entity:SubscriptionPhase) for this plan variation."},"subscription_plan_id":{"type":"string","description":"The id of the subscription plan, if there is one.","nullable":true},"monthly_billing_anchor_date":{"type":"integer","description":"The day of the month the billing period starts.","format":"int64","minimum":1,"maximum":31,"nullable":true},"can_prorate":{"type":"boolean","description":"Whether bills for this plan variation can be split for proration.","nullable":true},"successor_plan_variation_id":{"type":"string","description":"The ID of a \"successor\" plan variation to this one. If the field is set, and this object is disabled at all\nlocations, it indicates that this variation is deprecated and the object identified by the successor ID be used in\nits stead.","nullable":true}}},"CatalogTax":{"type":"object","description":"A tax applicable to an item.","x-release-status":"PUBLIC","properties":{"name":{"type":"string","description":"The tax's name. This is a searchable attribute for use in applicable query filters, and its value length is of Unicode code points.","maxLength":255,"nullable":true},"calculation_phase":{"$ref":"#/components/schemas/TaxCalculationPhase","description":"Whether the tax is calculated based on a payment's subtotal or total.\nSee [TaxCalculationPhase](#type-taxcalculationphase) for possible values","nullable":true},"inclusion_type":{"$ref":"#/components/schemas/TaxInclusionType","description":"Whether the tax is `ADDITIVE` or `INCLUSIVE`.\nSee [TaxInclusionType](#type-taxinclusiontype) for possible values","nullable":true},"percentage":{"type":"string","description":"The percentage of the tax in decimal form, using a `'.'` as the decimal separator and without a `'%'` sign.\nA value of `7.5` corresponds to 7.5%. For a location-specific tax rate, contact the tax authority of the location or a tax consultant.","nullable":true},"applies_to_custom_amounts":{"type":"boolean","description":"If `true`, the fee applies to custom amounts entered into the Square Point of Sale\napp that are not associated with a particular `CatalogItem`.","nullable":true},"enabled":{"type":"boolean","description":"A Boolean flag to indicate whether the tax is displayed as enabled (`true`) in the Square Point of Sale app or not (`false`).","nullable":true},"applies_to_product_set_id":{"type":"string","description":"The ID of a `CatalogProductSet` object. If set, the tax is applicable to all products in the product set.","x-release-status":"BETA","nullable":true}},"example":{"object":{"id":"#SalesTax","present_at_all_locations":true,"tax_data":{"calculation_phase":"TAX_SUBTOTAL_PHASE","enabled":true,"fee_applies_to_custom_amounts":true,"inclusion_type":"ADDITIVE","name":"Sales Tax","percentage":"5.0"},"type":"TAX"}}},"CatalogTimePeriod":{"type":"object","description":"Represents a time period - either a single period or a repeating period.","x-release-status":"PUBLIC","properties":{"event":{"type":"string","description":"An iCalendar (RFC 5545) [event](https://tools.ietf.org/html/rfc5545#section-3.6.1), which\nspecifies the name, timing, duration and recurrence of this time period.\n\nExample:\n\n```\nDTSTART:20190707T180000\nDURATION:P2H\nRRULE:FREQ=WEEKLY;BYDAY=MO,WE,FR\n```\n\nOnly `SUMMARY`, `DTSTART`, `DURATION` and `RRULE` fields are supported.\n`DTSTART` must be in local (unzoned) time format. Note that while `BEGIN:VEVENT`\nand `END:VEVENT` is not required in the request. The response will always\ninclude them.","nullable":true}}},"CatalogV1Id":{"type":"object","description":"A Square API V1 identifier of an item, including the object ID and its associated location ID.","x-release-status":"PUBLIC","properties":{"catalog_v1_id":{"type":"string","description":"The ID for an object used in the Square API V1, if the object ID differs from the Square API V2 object ID.","nullable":true},"location_id":{"type":"string","description":"The ID of the `Location` this Connect V1 ID is associated with.","nullable":true}}},"CatalogVersionUpdatedEvent":{"type":"object","description":"Published when the catalog is updated.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the target merchant associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event this represents.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"Timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CatalogVersionUpdatedEventData","description":"Data associated with the event.","nullable":true}},"example":{"created_at":"2019-10-29T17:26:16.808603647Z","data":{"id":"732b6677-1acb-4d81-b09c-5a3a49399d8f","object":{"catalog_version":{"updated_at":"2019-10-29T17:26:16.53Z"}},"type":"catalog_version"},"event_id":"aeaaa5f6-c4fd-4e93-b688-71b50706266f","merchant_id":"6SSW7HV8K2ST5","type":"catalog.version.updated"},"x-webhook":{"event":"catalog.version.updated","scopes":["ITEMS_READ"]},"x-api":"#/components/x-apis/Catalog","x-since":"2019-09-25"},"CatalogVersionUpdatedEventCatalogVersion":{"type":"object","x-release-status":"PUBLIC","properties":{"updated_at":{"type":"string","description":"Last modification timestamp in RFC 3339 format.","readOnly":true}}},"CatalogVersionUpdatedEventData":{"type":"object","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"Name of the affected object’s type.","nullable":true},"object":{"$ref":"#/components/schemas/CatalogVersionUpdatedEventObject","description":"An object containing fields and values relevant to the event. Is absent if affected object was deleted.","nullable":true}}},"CatalogVersionUpdatedEventObject":{"type":"object","x-release-status":"PUBLIC","properties":{"catalog_version":{"$ref":"#/components/schemas/CatalogVersionUpdatedEventCatalogVersion","description":"The version of the object.","nullable":true}}},"CategoryPathToRootNode":{"type":"object","description":"A node in the path from a retrieved category to its root node.","x-release-status":"PUBLIC","properties":{"category_id":{"type":"string","description":"The category's ID.","nullable":true},"category_name":{"type":"string","description":"The category's name.","nullable":true}}},"ChangeBillingAnchorDateRequest":{"type":"object","description":"Defines input parameters in a request to the\n[ChangeBillingAnchorDate](api-endpoint:Subscriptions-ChangeBillingAnchorDate) endpoint.","x-release-status":"BETA","properties":{"monthly_billing_anchor_date":{"type":"integer","description":"The anchor day for the billing cycle.","minimum":1,"maximum":31,"nullable":true},"effective_date":{"type":"string","description":"The `YYYY-MM-DD`-formatted date when the scheduled `BILLING_ANCHOR_CHANGE` action takes\nplace on the subscription.\n\nWhen this date is unspecified or falls within the current billing cycle, the billing anchor date\nis changed immediately.","nullable":true}},"example":{"monthly_billing_anchor_date":1}},"ChangeBillingAnchorDateResponse":{"type":"object","description":"Defines output parameters in a request to the\n[ChangeBillingAnchorDate](api-endpoint:Subscriptions-ChangeBillingAnchorDate) endpoint.","x-release-status":"BETA","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Errors encountered during the request."},"subscription":{"$ref":"#/components/schemas/Subscription","description":"The specified subscription for updating billing anchor date."},"actions":{"type":"array","items":{"$ref":"#/components/schemas/SubscriptionAction"},"description":"A list of a single billing anchor date change for the subscription."}},"example":{"actions":[{"effective_date":"2023-11-01","id":"f0a1dfdc-675b-3a14-a640-99f7ac1cee83","monthly_billing_anchor_date":1,"type":"CHANGE_BILLING_ANCHOR_DATE"}],"subscription":{"created_at":"2023-06-20T21:53:10Z","customer_id":"CHFGVKYY8RSV93M5KCYTG4PN0G","id":"9ba40961-995a-4a3d-8c53-048c40cafc13","location_id":"S8GWD5R9QB376","monthly_billing_anchor_date":20,"phases":[{"order_template_id":"E6oBY5WfQ2eN4pkYZwq4ka6n7KeZY","ordinal":0,"plan_phase_uid":"C66BKH3ASTDYGJJCEZXQQSS7","uid":"98d6f53b-40e1-4714-8827-032fd923be25"}],"plan_variation_id":"FQ7CDXXWSLUJRPM3GFJSJGZ7","price_override_money":{"amount":2000,"currency":"USD"},"source":{"name":"My Application"},"status":"ACTIVE","timezone":"America/Los_Angeles","version":3}}},"ChangeTiming":{"type":"string","enum":["IMMEDIATE","END_OF_BILLING_CYCLE"],"x-enum-elements":[{"name":"IMMEDIATE","description":"The action occurs immediately."},{"name":"END_OF_BILLING_CYCLE","description":"The action occurs at the end of the billing cycle."}],"description":"Supported timings when a pending change, as an action, takes place to a subscription.","x-release-status":"BETA"},"Channel":{"type":"object","x-release-status":"BETA","properties":{"id":{"type":"string","description":"The channel's unique ID.","readOnly":true},"merchant_id":{"type":"string","description":"The unique ID of the merchant this channel belongs to.","readOnly":true},"name":{"type":"string","description":"The name of the channel.","nullable":true},"version":{"type":"integer","description":"The version number which is incremented each time an update is made to the channel.","readOnly":true},"reference":{"$ref":"#/components/schemas/Reference","description":"Represents an entity the channel is associated with.","nullable":true},"status":{"$ref":"#/components/schemas/ChannelStatus","description":"Status of the channel.\nSee [Status](#type-status) for possible values","nullable":true},"created_at":{"type":"string","description":"The timestamp for when the channel was created, in RFC 3339 format (for example, \"2016-09-04T23:59:33.123Z\").\nFor more information, see [Working with Dates](https://developer.squareup.com/docs/build-basics/working-with-dates).","readOnly":true},"updated_at":{"type":"string","description":"The timestamp for when the channel was last updated, in RFC 3339 format (for example, \"2016-09-04T23:59:33.123Z\").\nFor more information, see [Working with Dates](https://developer.squareup.com/docs/build-basics/working-with-dates).","readOnly":true}}},"ChannelStatus":{"type":"string","enum":["ACTIVE","INACTIVE"],"x-enum-elements":[{"name":"ACTIVE","description":""},{"name":"INACTIVE","description":""}],"x-release-status":"BETA"},"ChargeRequestAdditionalRecipient":{"type":"object","description":"Represents an additional recipient (other than the merchant) entitled to a portion of the tender.\nSupport is currently limited to USD, CAD and GBP currencies","x-release-status":"DEPRECATED","required":["location_id","description","amount_money"],"properties":{"location_id":{"type":"string","description":"The location ID for a recipient (other than the merchant) receiving a portion of the tender.","minLength":1,"maxLength":50},"description":{"type":"string","description":"The description of the additional recipient.","minLength":1,"maxLength":100},"amount_money":{"$ref":"#/components/schemas/Money","description":"The amount of money distributed to the recipient."}}},"Checkout":{"type":"object","description":"Square Checkout lets merchants accept online payments for supported\npayment types using a checkout workflow hosted on squareup.com.","x-release-status":"PUBLIC","properties":{"id":{"type":"string","description":"ID generated by Square Checkout when a new checkout is requested."},"checkout_page_url":{"type":"string","description":"The URL that the buyer's browser should be redirected to after the\ncheckout is completed.","nullable":true},"ask_for_shipping_address":{"type":"boolean","description":"If `true`, Square Checkout will collect shipping information on your\nbehalf and store that information with the transaction information in your\nSquare Dashboard.\n\nDefault: `false`.","nullable":true},"merchant_support_email":{"type":"string","description":"The email address to display on the Square Checkout confirmation page\nand confirmation email that the buyer can use to contact the merchant.\n\nIf this value is not set, the confirmation page and email will display the\nprimary email address associated with the merchant's Square account.\n\nDefault: none; only exists if explicitly set.","nullable":true},"pre_populate_buyer_email":{"type":"string","description":"If provided, the buyer's email is pre-populated on the checkout page\nas an editable text field.\n\nDefault: none; only exists if explicitly set.","nullable":true},"pre_populate_shipping_address":{"$ref":"#/components/schemas/Address","description":"If provided, the buyer's shipping info is pre-populated on the\ncheckout page as editable text fields.\n\nDefault: none; only exists if explicitly set.","nullable":true},"redirect_url":{"type":"string","description":"The URL to redirect to after checkout is completed with `checkoutId`,\nSquare's `orderId`, `transactionId`, and `referenceId` appended as URL\nparameters. For example, if the provided redirect_url is\n`http://www.example.com/order-complete`, a successful transaction redirects\nthe customer to:\n\n<pre><code>http://www.example.com/order-complete?checkoutId=xxxxxx&orderId=xxxxxx&referenceId=xxxxxx&transactionId=xxxxxx</code></pre>\n\nIf you do not provide a redirect URL, Square Checkout will display an order\nconfirmation page on your behalf; however Square strongly recommends that\nyou provide a redirect URL so you can verify the transaction results and\nfinalize the order through your existing/normal confirmation workflow.","nullable":true},"order":{"$ref":"#/components/schemas/Order","description":"Order to be checked out.","nullable":true},"created_at":{"type":"string","description":"The time when the checkout was created, in RFC 3339 format.","readOnly":true},"additional_recipients":{"type":"array","items":{"$ref":"#/components/schemas/AdditionalRecipient"},"description":"Additional recipients (other than the merchant) receiving a portion of this checkout.\nFor example, fees assessed on the purchase by a third party integration.","x-release-status":"DEPRECATED","nullable":true}}},"CheckoutLocationSettings":{"type":"object","x-release-status":"BETA","properties":{"location_id":{"type":"string","description":"The ID of the location that these settings apply to.","nullable":true},"customer_notes_enabled":{"type":"boolean","description":"Indicates whether customers are allowed to leave notes at checkout.","nullable":true},"policies":{"type":"array","items":{"$ref":"#/components/schemas/CheckoutLocationSettingsPolicy"},"description":"Policy information is displayed at the bottom of the checkout pages.\nYou can set a maximum of two policies.","nullable":true},"branding":{"$ref":"#/components/schemas/CheckoutLocationSettingsBranding","description":"The branding settings for this location.","nullable":true},"tipping":{"$ref":"#/components/schemas/CheckoutLocationSettingsTipping","description":"The tip settings for this location.","nullable":true},"coupons":{"$ref":"#/components/schemas/CheckoutLocationSettingsCoupons","description":"The coupon settings for this location.","nullable":true},"updated_at":{"type":"string","description":"The timestamp when the settings were last updated, in RFC 3339 format.\nExamples for January 25th, 2020 6:25:34pm Pacific Standard Time:\nUTC: 2020-01-26T02:25:34Z\nPacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00","readOnly":true}}},"CheckoutLocationSettingsBranding":{"type":"object","x-release-status":"BETA","properties":{"header_type":{"$ref":"#/components/schemas/CheckoutLocationSettingsBrandingHeaderType","description":"Show the location logo on the checkout page.\nSee [HeaderType](#type-headertype) for possible values","nullable":true},"button_color":{"type":"string","description":"The HTML-supported hex color for the button on the checkout page (for example, \"#FFFFFF\").","minLength":7,"maxLength":7,"nullable":true},"button_shape":{"$ref":"#/components/schemas/CheckoutLocationSettingsBrandingButtonShape","description":"The shape of the button on the checkout page.\nSee [ButtonShape](#type-buttonshape) for possible values","nullable":true}}},"CheckoutLocationSettingsBrandingButtonShape":{"type":"string","enum":["SQUARED","ROUNDED","PILL"],"x-enum-elements":[{"name":"SQUARED","description":""},{"name":"ROUNDED","description":""},{"name":"PILL","description":""}],"x-release-status":"BETA"},"CheckoutLocationSettingsBrandingHeaderType":{"type":"string","enum":["BUSINESS_NAME","FRAMED_LOGO","FULL_WIDTH_LOGO"],"x-enum-elements":[{"name":"BUSINESS_NAME","description":""},{"name":"FRAMED_LOGO","description":""},{"name":"FULL_WIDTH_LOGO","description":""}],"x-release-status":"BETA"},"CheckoutLocationSettingsCoupons":{"type":"object","x-release-status":"BETA","properties":{"enabled":{"type":"boolean","description":"Indicates whether coupons are enabled for this location.","nullable":true}}},"CheckoutLocationSettingsPolicy":{"type":"object","x-release-status":"BETA","properties":{"uid":{"type":"string","description":"A unique ID to identify the policy when making changes. You must set the UID for policy updates, but it’s optional when setting new policies.","nullable":true},"title":{"type":"string","description":"The title of the policy. This is required when setting the description, though you can update it in a different request.","maxLength":50,"nullable":true},"description":{"type":"string","description":"The description of the policy.","maxLength":4096,"nullable":true}}},"CheckoutLocationSettingsTipping":{"type":"object","x-release-status":"BETA","properties":{"percentages":{"type":"array","items":{"type":"integer"},"description":"Set three custom percentage amounts that buyers can select at checkout. If Smart Tip is enabled, this only applies to transactions totaling $10 or more.","nullable":true},"smart_tipping_enabled":{"type":"boolean","description":"Enables Smart Tip Amounts. If Smart Tip Amounts is enabled, tipping works as follows:\nIf a transaction is less than $10, the available tipping options include No Tip, $1, $2, or $3.\nIf a transaction is $10 or more, the available tipping options include No Tip, 15%, 20%, or 25%. \nYou can set custom percentage amounts with the `percentages` field.","nullable":true},"default_percent":{"type":"integer","description":"Set the pre-selected percentage amounts that appear at checkout. If Smart Tip is enabled, this only applies to transactions totaling $10 or more.","nullable":true},"smart_tips":{"type":"array","items":{"$ref":"#/components/schemas/Money"},"description":"Show the Smart Tip Amounts for this location.","nullable":true},"default_smart_tip":{"$ref":"#/components/schemas/Money","description":"Set the pre-selected whole amount that appears at checkout when Smart Tip is enabled and the transaction amount is less than $10.","nullable":true}}},"CheckoutMerchantSettings":{"type":"object","x-release-status":"BETA","properties":{"payment_methods":{"$ref":"#/components/schemas/CheckoutMerchantSettingsPaymentMethods","description":"The set of payment methods accepted for the merchant's account.","nullable":true},"updated_at":{"type":"string","description":"The timestamp when the settings were last updated, in RFC 3339 format.\nExamples for January 25th, 2020 6:25:34pm Pacific Standard Time:\nUTC: 2020-01-26T02:25:34Z\nPacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00","readOnly":true}}},"CheckoutMerchantSettingsPaymentMethods":{"type":"object","x-release-status":"BETA","properties":{"apple_pay":{"$ref":"#/components/schemas/CheckoutMerchantSettingsPaymentMethodsPaymentMethod","nullable":true},"google_pay":{"$ref":"#/components/schemas/CheckoutMerchantSettingsPaymentMethodsPaymentMethod","nullable":true},"cash_app":{"$ref":"#/components/schemas/CheckoutMerchantSettingsPaymentMethodsPaymentMethod","nullable":true},"afterpay_clearpay":{"$ref":"#/components/schemas/CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay","nullable":true}}},"CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay":{"type":"object","description":"The settings allowed for AfterpayClearpay.","x-release-status":"BETA","properties":{"order_eligibility_range":{"$ref":"#/components/schemas/CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange","description":"Afterpay is shown as an option for order totals falling within the configured range.","nullable":true},"item_eligibility_range":{"$ref":"#/components/schemas/CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange","description":"Afterpay is shown as an option for item totals falling within the configured range.","nullable":true},"enabled":{"type":"boolean","description":"Indicates whether the payment method is enabled for the account.","readOnly":true}}},"CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange":{"type":"object","description":"A range of purchase price that qualifies.","x-release-status":"BETA","required":["min","max"],"properties":{"min":{"$ref":"#/components/schemas/Money"},"max":{"$ref":"#/components/schemas/Money"}}},"CheckoutMerchantSettingsPaymentMethodsPaymentMethod":{"type":"object","description":"The settings allowed for a payment method.","x-release-status":"BETA","properties":{"enabled":{"type":"boolean","description":"Indicates whether the payment method is enabled for the account.","nullable":true}}},"CheckoutOptions":{"type":"object","x-release-status":"PUBLIC","properties":{"allow_tipping":{"type":"boolean","description":"Indicates whether the payment allows tipping.","nullable":true},"custom_fields":{"type":"array","items":{"$ref":"#/components/schemas/CustomField"},"description":"The custom fields requesting information from the buyer.","nullable":true},"subscription_plan_id":{"type":"string","description":"The ID of the subscription plan for the buyer to pay and subscribe.\nFor more information, see [Subscription Plan Checkout](https://developer.squareup.com/docs/checkout-api/subscription-plan-checkout).","maxLength":255,"nullable":true},"redirect_url":{"type":"string","description":"The confirmation page URL to redirect the buyer to after Square processes the payment.","maxLength":2048,"nullable":true},"merchant_support_email":{"type":"string","description":"The email address that buyers can use to contact the seller.","maxLength":256,"nullable":true},"ask_for_shipping_address":{"type":"boolean","description":"Indicates whether to include the address fields in the payment form.","nullable":true},"accepted_payment_methods":{"$ref":"#/components/schemas/AcceptedPaymentMethods","description":"The methods allowed for buyers during checkout.","nullable":true},"app_fee_money":{"$ref":"#/components/schemas/Money","description":"The amount of money that the developer is taking as a fee for facilitating the payment on behalf of the seller.\n\nThe amount cannot be more than 90% of the total amount of the payment.\n\nThe amount must be specified in the smallest denomination of the applicable currency (for example, US dollar amounts are specified in cents). For more information, see [Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/common-data-types/working-with-monetary-amounts).\n\nThe fee currency code must match the currency associated with the seller that is accepting the payment. The application must be from a developer account in the same country and using the same currency code as the seller. For more information about the application fee scenario, see [Take Payments and Collect Fees](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees).\n\nTo set this field, `PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS` OAuth permission is required. For more information, see [Permissions](https://developer.squareup.com/docs/payments-api/collect-fees/additional-considerations#permissions).","nullable":true},"shipping_fee":{"$ref":"#/components/schemas/ShippingFee","description":"The fee associated with shipping to be applied to the `Order` as a service charge.","nullable":true},"enable_coupon":{"type":"boolean","description":"Indicates whether to include the `Add coupon` section for the buyer to provide a Square marketing coupon in the payment form.","nullable":true},"enable_loyalty":{"type":"boolean","description":"Indicates whether to include the `REWARDS` section for the buyer to opt in to loyalty, redeem rewards in the payment form, or both.","nullable":true}}},"CheckoutOptionsPaymentType":{"type":"string","enum":["CARD_PRESENT","MANUAL_CARD_ENTRY","FELICA_ID","FELICA_QUICPAY","FELICA_TRANSPORTATION_GROUP","FELICA_ALL","PAYPAY","QR_CODE"],"x-enum-elements":[{"name":"CARD_PRESENT","description":"Accept credit card or debit card payments via tap, dip or swipe."},{"name":"MANUAL_CARD_ENTRY","description":"Launches the manual credit or debit card entry screen for the buyer to complete."},{"name":"FELICA_ID","description":"Launches the iD checkout screen for the buyer to complete."},{"name":"FELICA_QUICPAY","description":"Launches the QUICPay checkout screen for the buyer to complete."},{"name":"FELICA_TRANSPORTATION_GROUP","description":"Launches the Transportation Group checkout screen for the buyer to complete."},{"name":"FELICA_ALL","description":"Launches a checkout screen for the buyer on the Square Terminal that\nallows them to select a specific FeliCa brand or select the check balance screen."},{"name":"PAYPAY","description":"Replaced by `QR_CODE`."},{"name":"QR_CODE","description":"Launches Square's QR Code checkout screen for the buyer to complete.\nDisplays a single code that supports all digital wallets connected to the target\nSeller location (e.g. PayPay)"}],"x-release-status":"PUBLIC"},"ClearpayDetails":{"type":"object","description":"Additional details about Clearpay payments.","x-release-status":"PUBLIC","properties":{"email_address":{"type":"string","description":"Email address on the buyer's Clearpay account.","maxLength":255,"nullable":true}}},"CloneOrderRequest":{"type":"object","description":"Defines the fields that are included in requests to the\n[CloneOrder](api-endpoint:Orders-CloneOrder) endpoint.","x-release-status":"BETA","required":["order_id"],"properties":{"order_id":{"type":"string","description":"The ID of the order to clone."},"version":{"type":"integer","description":"An optional order version for concurrency protection.\n\nIf a version is provided, it must match the latest stored version of the order to clone.\nIf a version is not provided, the API clones the latest version."},"idempotency_key":{"type":"string","description":"A value you specify that uniquely identifies this clone request.\n\nIf you are unsure whether a particular order was cloned successfully,\nyou can reattempt the call with the same idempotency key without\nworrying about creating duplicate cloned orders.\nThe originally cloned order is returned.\n\nFor more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).","nullable":true}},"example":{"idempotency_key":"UNIQUE_STRING","order_id":"ZAISEM52YcpmcWAzERDOyiWS123","version":3}},"CloneOrderResponse":{"type":"object","description":"Defines the fields that are included in the response body of\na request to the [CloneOrder](api-endpoint:Orders-CloneOrder) endpoint.","x-release-status":"BETA","properties":{"order":{"$ref":"#/components/schemas/Order","description":"The cloned order."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{"order":{"created_at":"2020-01-17T20:47:53.293Z","discounts":[{"applied_money":{"amount":30,"currency":"USD"},"catalog_object_id":"DB7L55ZH2BGWI4H23ULIWOQ7","name":"Membership Discount","percentage":"0.5","scope":"ORDER","type":"FIXED_PERCENTAGE","uid":"membership-discount"},{"applied_money":{"amount":303,"currency":"USD"},"name":"Labor Day Sale","percentage":"5","scope":"ORDER","type":"FIXED_PERCENTAGE","uid":"labor-day-sale"},{"amount_money":{"amount":100,"currency":"USD"},"applied_money":{"amount":100,"currency":"USD"},"name":"Sale - $1.00 off","scope":"LINE_ITEM","type":"FIXED_AMOUNT","uid":"one-dollar-off"}],"id":"CAISENgvlJ6jLWAzERDzjyHVybY","line_items":[{"applied_discounts":[{"applied_money":{"amount":8,"currency":"USD"},"discount_uid":"membership-discount","uid":"jWdgP1TpHPFBuVrz81mXVC"},{"applied_money":{"amount":79,"currency":"USD"},"discount_uid":"labor-day-sale","uid":"jnZOjjVY57eRcQAVgEwFuC"}],"applied_taxes":[{"applied_money":{"amount":136,"currency":"USD"},"tax_uid":"state-sales-tax","uid":"aKG87ArnDpvMLSZJHxWUl"}],"base_price_money":{"amount":1599,"currency":"USD"},"gross_sales_money":{"amount":1599,"currency":"USD"},"name":"New York Strip Steak","quantity":"1","total_discount_money":{"amount":87,"currency":"USD"},"total_money":{"amount":1648,"currency":"USD"},"total_service_charge_money":{"amount":0,"currency":"USD"},"total_tax_money":{"amount":136,"currency":"USD"},"uid":"8uSwfzvUImn3IRrvciqlXC","variation_total_price_money":{"amount":1599,"currency":"USD"}},{"applied_discounts":[{"applied_money":{"amount":22,"currency":"USD"},"discount_uid":"membership-discount","uid":"nUXvdsIItfKko0dbYtY58C"},{"applied_money":{"amount":224,"currency":"USD"},"discount_uid":"labor-day-sale","uid":"qSdkOOOernlVQqsJ94SPjB"},{"applied_money":{"amount":100,"currency":"USD"},"discount_uid":"one-dollar-off","uid":"y7bVl4njrWAnfDwmz19izB"}],"applied_taxes":[{"applied_money":{"amount":374,"currency":"USD"},"tax_uid":"state-sales-tax","uid":"v1dAgrfUVUPTnVTf9sRPz"}],"base_price_money":{"amount":2200,"currency":"USD"},"catalog_object_id":"BEMYCSMIJL46OCDV4KYIKXIB","gross_sales_money":{"amount":4500,"currency":"USD"},"modifiers":[{"base_price_money":{"amount":50,"currency":"USD"},"catalog_object_id":"CHQX7Y4KY6N5KINJKZCFURPZ","name":"Well","total_price_money":{"amount":100,"currency":"USD"},"uid":"Lo3qMMckDluu9Qsb58d4CC"}],"name":"New York Steak","quantity":"2","total_discount_money":{"amount":346,"currency":"USD"},"total_money":{"amount":4528,"currency":"USD"},"total_service_charge_money":{"amount":0,"currency":"USD"},"total_tax_money":{"amount":374,"currency":"USD"},"uid":"v8ZuEXpOJpb0bazLuvrLDB","variation_name":"Larger","variation_total_price_money":{"amount":4400,"currency":"USD"}}],"location_id":"057P5VYJ4A5X1","net_amounts":{"discount_money":{"amount":433,"currency":"USD"},"service_charge_money":{"amount":0,"currency":"USD"},"tax_money":{"amount":510,"currency":"USD"},"tip_money":{"amount":0,"currency":"USD"},"total_money":{"amount":6176,"currency":"USD"}},"reference_id":"my-order-001","source":{"name":"My App"},"state":"DRAFT","taxes":[{"applied_money":{"amount":510,"currency":"USD"},"name":"State Sales Tax","percentage":"9","scope":"ORDER","type":"ADDITIVE","uid":"state-sales-tax"}],"total_discount_money":{"amount":433,"currency":"USD"},"total_money":{"amount":6176,"currency":"USD"},"total_service_charge_money":{"amount":0,"currency":"USD"},"total_tax_money":{"amount":510,"currency":"USD"},"total_tip_money":{"amount":0,"currency":"USD"},"updated_at":"2020-01-17T20:47:53.293Z","version":1}}},"CollectedData":{"type":"object","x-release-status":"BETA","properties":{"input_text":{"type":"string","description":"The buyer's input text.","readOnly":true}}},"CompletePaymentRequest":{"type":"object","description":"Describes a request to complete (capture) a payment using\n[CompletePayment](api-endpoint:Payments-CompletePayment).\n\nBy default, payments are set to `autocomplete` immediately after they are created.\nTo complete payments manually, set `autocomplete` to `false`.","x-release-status":"PUBLIC","properties":{"version_token":{"type":"string","description":"Used for optimistic concurrency. This opaque token identifies the current `Payment`\nversion that the caller expects. If the server has a different version of the Payment,\nthe update fails and a response with a VERSION_MISMATCH error is returned.","x-release-status":"BETA","nullable":true}},"example":{}},"CompletePaymentResponse":{"type":"object","description":"Defines the response returned by[CompletePayment](api-endpoint:Payments-CompletePayment).","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information about errors encountered during the request."},"payment":{"$ref":"#/components/schemas/Payment","description":"The successfully completed payment."}},"example":{"payment":{"amount_money":{"amount":555,"currency":"USD"},"application_details":{"application_id":"sq0ids-Pw67AZAlLVB7hsRmwlJPuA","square_product":"VIRTUAL_TERMINAL"},"approved_money":{"amount":555,"currency":"USD"},"card_details":{"auth_result_code":"2Nkw7q","avs_status":"AVS_ACCEPTED","card":{"bin":"411111","card_brand":"VISA","card_type":"DEBIT","exp_month":11,"exp_year":2022,"fingerprint":"sq-1-Hxim77tbdcbGejOejnoAklBVJed2YFLTmirfl8Q5XZzObTc8qY_U8RkwzoNL8dCEcQ","last_4":"1111","prepaid_type":"NOT_PREPAID"},"card_payment_timeline":{"authorized_at":"2021-10-13T19:34:33.680Z","captured_at":"2021-10-13T19:34:34.340Z"},"cvv_status":"CVV_ACCEPTED","entry_method":"KEYED","statement_description":"SQ *EXAMPLE TEST GOSQ.C","status":"CAPTURED"},"created_at":"2021-10-13T19:34:33.524Z","delay_action":"CANCEL","delay_duration":"PT168H","delayed_until":"2021-10-20T19:34:33.524Z","employee_id":"TMoK_ogh6rH1o4dV","id":"bP9mAsEMYPUGjjGNaNO5ZDVyLhSZY","location_id":"L88917AVBK2S5","note":"Test Note","order_id":"d7eKah653Z579f3gVtjlxpSlmUcZY","processing_fee":[{"amount_money":{"amount":34,"currency":"USD"},"effective_at":"2021-10-13T21:34:35.000Z","type":"INITIAL"}],"receipt_number":"bP9m","receipt_url":"https://squareup.com/receipt/preview/bP9mAsEMYPUGjjGNaNO5ZDVyLhSZY","source_type":"CARD","status":"COMPLETED","team_member_id":"TMoK_ogh6rH1o4dV","total_money":{"amount":555,"currency":"USD"},"updated_at":"2021-10-13T19:34:34.339Z","version_token":"56pRkL3slrzet2iQrTp9n0bdJVYTB9YEWdTNjQfZOPV6o"}}},"Component":{"type":"object","description":"The wrapper object for the component entries of a given component type.","x-release-status":"BETA","required":["type"],"properties":{"type":{"$ref":"#/components/schemas/ComponentComponentType","description":"The type of this component. Each component type has expected properties expressed\nin a structured format within its corresponding `*_details` field.\nSee [ComponentType](#type-componenttype) for possible values"},"application_details":{"$ref":"#/components/schemas/DeviceComponentDetailsApplicationDetails","description":"Structured data for an `Application`, set for Components of type `APPLICATION`.","nullable":true},"card_reader_details":{"$ref":"#/components/schemas/DeviceComponentDetailsCardReaderDetails","description":"Structured data for a `CardReader`, set for Components of type `CARD_READER`.","nullable":true},"battery_details":{"$ref":"#/components/schemas/DeviceComponentDetailsBatteryDetails","description":"Structured data for a `Battery`, set for Components of type `BATTERY`.","nullable":true},"wifi_details":{"$ref":"#/components/schemas/DeviceComponentDetailsWiFiDetails","description":"Structured data for a `WiFi` interface, set for Components of type `WIFI`.","nullable":true},"ethernet_details":{"$ref":"#/components/schemas/DeviceComponentDetailsEthernetDetails","description":"Structured data for an `Ethernet` interface, set for Components of type `ETHERNET`.","nullable":true}}},"ComponentComponentType":{"type":"string","enum":["APPLICATION","CARD_READER","BATTERY","WIFI","ETHERNET","PRINTER"],"x-enum-elements":[{"name":"APPLICATION","description":""},{"name":"CARD_READER","description":""},{"name":"BATTERY","description":""},{"name":"WIFI","description":""},{"name":"ETHERNET","description":""},{"name":"PRINTER","description":""}],"description":"An enum for ComponentType.","x-release-status":"BETA"},"ConfirmationDecision":{"type":"object","x-release-status":"BETA","properties":{"has_agreed":{"type":"boolean","description":"The buyer's decision to the displayed terms.","readOnly":true}}},"ConfirmationOptions":{"type":"object","x-release-status":"BETA","required":["title","body","agree_button_text"],"properties":{"title":{"type":"string","description":"The title text to display in the confirmation screen flow on the Terminal.","minLength":1,"maxLength":250},"body":{"type":"string","description":"The agreement details to display in the confirmation flow on the Terminal.","minLength":1,"maxLength":10000},"agree_button_text":{"type":"string","description":"The button text to display indicating the customer agrees to the displayed terms.","minLength":1,"maxLength":250},"disagree_button_text":{"type":"string","description":"The button text to display indicating the customer does not agree to the displayed terms.","minLength":1,"maxLength":250,"nullable":true},"decision":{"$ref":"#/components/schemas/ConfirmationDecision","description":"The result of the buyer’s actions when presented with the confirmation screen.","readOnly":true}}},"Coordinates":{"type":"object","description":"Latitude and longitude coordinates.","x-release-status":"PUBLIC","properties":{"latitude":{"type":"number","description":"The latitude of the coordinate expressed in degrees.","nullable":true},"longitude":{"type":"number","description":"The longitude of the coordinate expressed in degrees.","nullable":true}}},"Country":{"type":"string","enum":["ZZ","AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"],"x-enum-elements":[{"name":"ZZ","description":"Unknown"},{"name":"AD","description":"Andorra"},{"name":"AE","description":"United Arab Emirates"},{"name":"AF","description":"Afghanistan"},{"name":"AG","description":"Antigua and Barbuda"},{"name":"AI","description":"Anguilla"},{"name":"AL","description":"Albania"},{"name":"AM","description":"Armenia"},{"name":"AO","description":"Angola"},{"name":"AQ","description":"Antartica"},{"name":"AR","description":"Argentina"},{"name":"AS","description":"American Samoa"},{"name":"AT","description":"Austria"},{"name":"AU","description":"Australia"},{"name":"AW","description":"Aruba"},{"name":"AX","description":"Åland Islands"},{"name":"AZ","description":"Azerbaijan"},{"name":"BA","description":"Bosnia and Herzegovina"},{"name":"BB","description":"Barbados"},{"name":"BD","description":"Bangladesh"},{"name":"BE","description":"Belgium"},{"name":"BF","description":"Burkina Faso"},{"name":"BG","description":"Bulgaria"},{"name":"BH","description":"Bahrain"},{"name":"BI","description":"Burundi"},{"name":"BJ","description":"Benin"},{"name":"BL","description":"Saint Barthélemy"},{"name":"BM","description":"Bermuda"},{"name":"BN","description":"Brunei"},{"name":"BO","description":"Bolivia"},{"name":"BQ","description":"Bonaire"},{"name":"BR","description":"Brazil"},{"name":"BS","description":"Bahamas"},{"name":"BT","description":"Bhutan"},{"name":"BV","description":"Bouvet Island"},{"name":"BW","description":"Botswana"},{"name":"BY","description":"Belarus"},{"name":"BZ","description":"Belize"},{"name":"CA","description":"Canada"},{"name":"CC","description":"Cocos Islands"},{"name":"CD","description":"Democratic Republic of the Congo"},{"name":"CF","description":"Central African Republic"},{"name":"CG","description":"Congo"},{"name":"CH","description":"Switzerland"},{"name":"CI","description":"Ivory Coast"},{"name":"CK","description":"Cook Islands"},{"name":"CL","description":"Chile"},{"name":"CM","description":"Cameroon"},{"name":"CN","description":"China"},{"name":"CO","description":"Colombia"},{"name":"CR","description":"Costa Rica"},{"name":"CU","description":"Cuba"},{"name":"CV","description":"Cabo Verde"},{"name":"CW","description":"Curaçao"},{"name":"CX","description":"Christmas Island"},{"name":"CY","description":"Cyprus"},{"name":"CZ","description":"Czechia"},{"name":"DE","description":"Germany"},{"name":"DJ","description":"Djibouti"},{"name":"DK","description":"Denmark"},{"name":"DM","description":"Dominica"},{"name":"DO","description":"Dominican Republic"},{"name":"DZ","description":"Algeria"},{"name":"EC","description":"Ecuador"},{"name":"EE","description":"Estonia"},{"name":"EG","description":"Egypt"},{"name":"EH","description":"Western Sahara"},{"name":"ER","description":"Eritrea"},{"name":"ES","description":"Spain"},{"name":"ET","description":"Ethiopia"},{"name":"FI","description":"Finland"},{"name":"FJ","description":"Fiji"},{"name":"FK","description":"Falkland Islands"},{"name":"FM","description":"Federated States of Micronesia"},{"name":"FO","description":"Faroe Islands"},{"name":"FR","description":"France"},{"name":"GA","description":"Gabon"},{"name":"GB","description":"United Kingdom"},{"name":"GD","description":"Grenada"},{"name":"GE","description":"Georgia"},{"name":"GF","description":"French Guiana"},{"name":"GG","description":"Guernsey"},{"name":"GH","description":"Ghana"},{"name":"GI","description":"Gibraltar"},{"name":"GL","description":"Greenland"},{"name":"GM","description":"Gambia"},{"name":"GN","description":"Guinea"},{"name":"GP","description":"Guadeloupe"},{"name":"GQ","description":"Equatorial Guinea"},{"name":"GR","description":"Greece"},{"name":"GS","description":"South Georgia and the South Sandwich Islands"},{"name":"GT","description":"Guatemala"},{"name":"GU","description":"Guam"},{"name":"GW","description":"Guinea-Bissau"},{"name":"GY","description":"Guyana"},{"name":"HK","description":"Hong Kong"},{"name":"HM","description":"Heard Island and McDonald Islands"},{"name":"HN","description":"Honduras"},{"name":"HR","description":"Croatia"},{"name":"HT","description":"Haiti"},{"name":"HU","description":"Hungary"},{"name":"ID","description":"Indonesia"},{"name":"IE","description":"Ireland"},{"name":"IL","description":"Israel"},{"name":"IM","description":"Isle of Man"},{"name":"IN","description":"India"},{"name":"IO","description":"British Indian Ocean Territory"},{"name":"IQ","description":"Iraq"},{"name":"IR","description":"Iran"},{"name":"IS","description":"Iceland"},{"name":"IT","description":"Italy"},{"name":"JE","description":"Jersey"},{"name":"JM","description":"Jamaica"},{"name":"JO","description":"Jordan"},{"name":"JP","description":"Japan"},{"name":"KE","description":"Kenya"},{"name":"KG","description":"Kyrgyzstan"},{"name":"KH","description":"Cambodia"},{"name":"KI","description":"Kiribati"},{"name":"KM","description":"Comoros"},{"name":"KN","description":"Saint Kitts and Nevis"},{"name":"KP","description":"Democratic People's Republic of Korea"},{"name":"KR","description":"Republic of Korea"},{"name":"KW","description":"Kuwait"},{"name":"KY","description":"Cayman Islands"},{"name":"KZ","description":"Kazakhstan"},{"name":"LA","description":"Lao People's Democratic Republic"},{"name":"LB","description":"Lebanon"},{"name":"LC","description":"Saint Lucia"},{"name":"LI","description":"Liechtenstein"},{"name":"LK","description":"Sri Lanka"},{"name":"LR","description":"Liberia"},{"name":"LS","description":"Lesotho"},{"name":"LT","description":"Lithuania"},{"name":"LU","description":"Luxembourg"},{"name":"LV","description":"Latvia"},{"name":"LY","description":"Libya"},{"name":"MA","description":"Morocco"},{"name":"MC","description":"Monaco"},{"name":"MD","description":"Moldova"},{"name":"ME","description":"Montenegro"},{"name":"MF","description":"Saint Martin"},{"name":"MG","description":"Madagascar"},{"name":"MH","description":"Marshall Islands"},{"name":"MK","description":"North Macedonia"},{"name":"ML","description":"Mali"},{"name":"MM","description":"Myanmar"},{"name":"MN","description":"Mongolia"},{"name":"MO","description":"Macao"},{"name":"MP","description":"Northern Mariana Islands"},{"name":"MQ","description":"Martinique"},{"name":"MR","description":"Mauritania"},{"name":"MS","description":"Montserrat"},{"name":"MT","description":"Malta"},{"name":"MU","description":"Mauritius"},{"name":"MV","description":"Maldives"},{"name":"MW","description":"Malawi"},{"name":"MX","description":"Mexico"},{"name":"MY","description":"Malaysia"},{"name":"MZ","description":"Mozambique"},{"name":"NA","description":"Namibia"},{"name":"NC","description":"New Caledonia"},{"name":"NE","description":"Niger"},{"name":"NF","description":"Norfolk Island"},{"name":"NG","description":"Nigeria"},{"name":"NI","description":"Nicaragua"},{"name":"NL","description":"Netherlands"},{"name":"NO","description":"Norway"},{"name":"NP","description":"Nepal"},{"name":"NR","description":"Nauru"},{"name":"NU","description":"Niue"},{"name":"NZ","description":"New Zealand"},{"name":"OM","description":"Oman"},{"name":"PA","description":"Panama"},{"name":"PE","description":"Peru"},{"name":"PF","description":"French Polynesia"},{"name":"PG","description":"Papua New Guinea"},{"name":"PH","description":"Philippines"},{"name":"PK","description":"Pakistan"},{"name":"PL","description":"Poland"},{"name":"PM","description":"Saint Pierre and Miquelon"},{"name":"PN","description":"Pitcairn"},{"name":"PR","description":"Puerto Rico"},{"name":"PS","description":"Palestine"},{"name":"PT","description":"Portugal"},{"name":"PW","description":"Palau"},{"name":"PY","description":"Paraguay"},{"name":"QA","description":"Qatar"},{"name":"RE","description":"Réunion"},{"name":"RO","description":"Romania"},{"name":"RS","description":"Serbia"},{"name":"RU","description":"Russia"},{"name":"RW","description":"Rwanda"},{"name":"SA","description":"Saudi Arabia"},{"name":"SB","description":"Solomon Islands"},{"name":"SC","description":"Seychelles"},{"name":"SD","description":"Sudan"},{"name":"SE","description":"Sweden"},{"name":"SG","description":"Singapore"},{"name":"SH","description":"Saint Helena, Ascension and Tristan da Cunha"},{"name":"SI","description":"Slovenia"},{"name":"SJ","description":"Svalbard and Jan Mayen"},{"name":"SK","description":"Slovakia"},{"name":"SL","description":"Sierra Leone"},{"name":"SM","description":"San Marino"},{"name":"SN","description":"Senegal"},{"name":"SO","description":"Somalia"},{"name":"SR","description":"Suriname"},{"name":"SS","description":"South Sudan"},{"name":"ST","description":"Sao Tome and Principe"},{"name":"SV","description":"El Salvador"},{"name":"SX","description":"Sint Maarten"},{"name":"SY","description":"Syrian Arab Republic"},{"name":"SZ","description":"Eswatini"},{"name":"TC","description":"Turks and Caicos Islands"},{"name":"TD","description":"Chad"},{"name":"TF","description":"French Southern Territories"},{"name":"TG","description":"Togo"},{"name":"TH","description":"Thailand"},{"name":"TJ","description":"Tajikistan"},{"name":"TK","description":"Tokelau"},{"name":"TL","description":"Timor-Leste"},{"name":"TM","description":"Turkmenistan"},{"name":"TN","description":"Tunisia"},{"name":"TO","description":"Tonga"},{"name":"TR","description":"Turkey"},{"name":"TT","description":"Trinidad and Tobago"},{"name":"TV","description":"Tuvalu"},{"name":"TW","description":"Taiwan"},{"name":"TZ","description":"Tanzania"},{"name":"UA","description":"Ukraine"},{"name":"UG","description":"Uganda"},{"name":"UM","description":"United States Minor Outlying Islands"},{"name":"US","description":"United States of America"},{"name":"UY","description":"Uruguay"},{"name":"UZ","description":"Uzbekistan"},{"name":"VA","description":"Vatican City"},{"name":"VC","description":"Saint Vincent and the Grenadines"},{"name":"VE","description":"Venezuela"},{"name":"VG","description":"British Virgin Islands"},{"name":"VI","description":"U.S. Virgin Islands"},{"name":"VN","description":"Vietnam"},{"name":"VU","description":"Vanuatu"},{"name":"WF","description":"Wallis and Futuna"},{"name":"WS","description":"Samoa"},{"name":"YE","description":"Yemen"},{"name":"YT","description":"Mayotte"},{"name":"ZA","description":"South Africa"},{"name":"ZM","description":"Zambia"},{"name":"ZW","description":"Zimbabwe"}],"description":"Indicates the country associated with another entity, such as a business.\nValues are in [ISO 3166-1-alpha-2 format](http://www.iso.org/iso/home/standards/country_codes.htm).","x-release-status":"PUBLIC"},"CreateBankAccountRequest":{"type":"object","description":"Request object for linking a bank account to a Square account","x-release-status":"BETA","required":["idempotency_key","source_id"],"properties":{"idempotency_key":{"type":"string","description":"Unique ID. For more information, see the\n[Idempotency](https://developer.squareup.com/docs/working-with-apis/idempotency)."},"source_id":{"type":"string","description":"The ID of the source that represents the bank account information to be stored. This field\naccepts the payment token created by WebSDK"},"customer_id":{"type":"string","description":"The ID of the customer associated with the bank account to be stored."}},"example":{"customer_id":"HM3B2D5JKGZ69359BTEHXM2V8M","idempotency_key":"4e43559a-f0fd-47d3-9da2-7ea1f97d94be","source_id":"bnon:CA4SEHsQwr0rx6DbWLD5BQaqMnoYAQ"}},"CreateBankAccountResponse":{"type":"object","description":"Response object returned by CreateBankAccount.","x-release-status":"BETA","properties":{"bank_account":{"$ref":"#/components/schemas/BankAccount","description":"The 'BankAccount' that was created."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information on errors encountered during the request."}},"example":{"bank_account":{"account_number_suffix":"000","account_type":"CHECKING","bank_name":"Citizens Bank","country":"US","creditable":true,"currency":"USD","customer_id":"HM3B2D5JKGZ69359BTEHXM2V8M","debitable":true,"fingerprint":"sq-1-mO3XNctJpTLL8uYowOWpioS8nQyTc838gcBo90254XonoEJ_c7Uw6yqL6qihFNY8fA","holder_name":"Nicola Snow","id":"bact:OxfBTiXgByaXds1K4GB","primary_bank_identification_number":"011401533","status":"VERIFIED","version":2}}},"CreateBookingCustomAttributeDefinitionRequest":{"type":"object","description":"Represents a [CreateBookingCustomAttributeDefinition](api-endpoint:BookingCustomAttributes-CreateBookingCustomAttributeDefinition) request.","x-release-status":"PUBLIC","required":["custom_attribute_definition"],"properties":{"custom_attribute_definition":{"$ref":"#/components/schemas/CustomAttributeDefinition","description":"The custom attribute definition to create, with the following fields:\n\n- `key`\n\n- `name`. If provided, `name` must be unique (case-sensitive) across all visible booking-related custom attribute\ndefinitions for the seller.\n\n- `description`\n\n- `visibility`. Note that all custom attributes are visible in exported booking data, including those set to\n`VISIBILITY_HIDDEN`.\n\n- `schema`. With the exception of the `Selection` data type, the `schema` is specified as a\nsimple URL to the JSON schema definition hosted on the Square CDN. For more information, see\n[Specifying the schema](https://developer.squareup.com/docs/booking-custom-attributes-api/custom-attribute-definitions#specify-schema)."},"idempotency_key":{"type":"string","description":"A unique identifier for this request, used to ensure idempotency. For more information,\nsee [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).","maxLength":45}}},"CreateBookingCustomAttributeDefinitionResponse":{"type":"object","description":"Represents a [CreateBookingCustomAttributeDefinition](api-endpoint:BookingCustomAttributes-CreateBookingCustomAttributeDefinition) response.\nEither `custom_attribute_definition` or `errors` is present in the response.","x-release-status":"PUBLIC","properties":{"custom_attribute_definition":{"$ref":"#/components/schemas/CustomAttributeDefinition","description":"The newly created custom attribute definition."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{"custom_attribute_definition":{"created_at":"2022-11-16T15:27:30Z","description":"The favorite shampoo of the customer.","key":"favoriteShampoo","name":"Favorite Shampoo","schema":{"$ref":"https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String"},"updated_at":"2022-11-16T15:27:30Z","version":1,"visibility":"VISIBILITY_HIDDEN"},"errors":[]}},"CreateBookingRequest":{"type":"object","x-release-status":"PUBLIC","required":["booking"],"properties":{"idempotency_key":{"type":"string","description":"A unique key to make this request an idempotent operation.","maxLength":255},"booking":{"$ref":"#/components/schemas/Booking","description":"The details of the booking to be created."}}},"CreateBookingResponse":{"type":"object","x-release-status":"PUBLIC","properties":{"booking":{"$ref":"#/components/schemas/Booking","description":"The booking that was created."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Errors that occurred during the request."}},"example":{"booking":{"appointment_segments":[{"duration_minutes":60,"service_variation_id":"RU3PBTZTK7DXZDQFCJHOK2MC","service_variation_version":1599775456731,"team_member_id":"TMXUrsBWWcHTt79t"}],"created_at":"2020-10-28T15:47:41Z","customer_id":"EX2QSVGTZN4K1E5QE1CBFNVQ8M","customer_note":"","id":"zkras0xv0xwswx","location_id":"LEQHH0YY8B42M","seller_note":"","start_at":"2020-11-26T13:00:00Z","status":"ACCEPTED","updated_at":"2020-10-28T15:47:41Z","version":0},"errors":[]}},"CreateBreakTypeRequest":{"type":"object","description":"A request to create a new `BreakType`.","x-release-status":"PUBLIC","required":["break_type"],"properties":{"idempotency_key":{"type":"string","description":"A unique string value to ensure the idempotency of the operation.","maxLength":128},"break_type":{"$ref":"#/components/schemas/BreakType","description":"The `BreakType` to be created."}},"example":{"break_type":{"break_name":"Lunch Break","expected_duration":"PT30M","is_paid":true,"location_id":"CGJN03P1D08GF"},"idempotency_key":"PAD3NG5KSN2GL"}},"CreateBreakTypeResponse":{"type":"object","description":"The response to the request to create a `BreakType`. The response contains\nthe created `BreakType` object and might contain a set of `Error` objects if\nthe request resulted in errors.","x-release-status":"PUBLIC","properties":{"break_type":{"$ref":"#/components/schemas/BreakType","description":"The `BreakType` that was created by the request."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{"break_type":{"break_name":"Lunch Break","created_at":"2019-02-26T22:42:54Z","expected_duration":"PT30M","id":"49SSVDJG76WF3","is_paid":true,"location_id":"CGJN03P1D08GF","updated_at":"2019-02-26T22:42:54Z","version":1}}},"CreateCardRequest":{"type":"object","description":"Creates a card from the source (payment token or payment id). Accessible via\nHTTP requests at POST https://connect.squareup.com/v2/cards","x-release-status":"PUBLIC","required":["idempotency_key","source_id","card"],"properties":{"idempotency_key":{"type":"string","description":"A unique string that identifies this CreateCard request. Keys can be\nany valid string and must be unique for every request.\n\nMax: 45 characters\n\nSee [Idempotency keys](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency) for more information.","minLength":1},"source_id":{"type":"string","description":"The ID of the source which represents the card information to be stored. This can be a card nonce or a payment id.","minLength":1,"maxLength":16384},"verification_token":{"type":"string","description":"An identifying token generated by [Payments.verifyBuyer()](https://developer.squareup.com/reference/sdks/web/payments/objects/Payments#Payments.verifyBuyer).\nVerification tokens encapsulate customer device information and 3-D Secure\nchallenge results to indicate that Square has verified the buyer identity.\n\nSee the [SCA Overview](https://developer.squareup.com/docs/sca-overview)."},"card":{"$ref":"#/components/schemas/Card","description":"Payment details associated with the card to be stored."}},"example":{"card":{"billing_address":{"address_line_1":"500 Electric Ave","address_line_2":"Suite 600","administrative_district_level_1":"NY","country":"US","locality":"New York","postal_code":"10003"},"cardholder_name":"Amelia Earhart","customer_id":"VDKXEEKPJN48QDG3BGGFAK05P8","reference_id":"user-id-1"},"idempotency_key":"4935a656-a929-4792-b97c-8848be85c27c","source_id":"cnon:uIbfJXhXETSP197M3GB"}},"CreateCardResponse":{"type":"object","description":"Defines the fields that are included in the response body of\na request to the [CreateCard](api-endpoint:Cards-CreateCard) endpoint.\n\nNote: if there are errors processing the request, the card field will not be\npresent.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Errors resulting from the request."},"card":{"$ref":"#/components/schemas/Card","description":"The card created by the request."}},"example":{"card":{"billing_address":{"address_line_1":"500 Electric Ave","address_line_2":"Suite 600","administrative_district_level_1":"NY","country":"US","locality":"New York","postal_code":"10003"},"bin":"411111","card_brand":"VISA","card_type":"CREDIT","cardholder_name":"Amelia Earhart","customer_id":"VDKXEEKPJN48QDG3BGGFAK05P8","enabled":true,"exp_month":11,"exp_year":2022,"fingerprint":"ex-p-cs80EK9Flz7LsCMv-szbptQ_ssAGrhemzSTsPFgt9nzyE6t7okiLIQc-qw_quqKX4Q","hsa_fsa":false,"id":"ccof:uIbfJXhXETSP197M3GB","last_4":"1111","merchant_id":"6SSW7HV8K2ST5","prepaid_type":"NOT_PREPAID","reference_id":"user-id-1","version":1}}},"CreateCatalogImageRequest":{"type":"object","x-release-status":"PUBLIC","required":["idempotency_key","image"],"properties":{"idempotency_key":{"type":"string","description":"A unique string that identifies this CreateCatalogImage request.\nKeys can be any valid string but must be unique for every CreateCatalogImage request.\n\nSee [Idempotency keys](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency) for more information.","minLength":1,"maxLength":128},"object_id":{"type":"string","description":"Unique ID of the `CatalogObject` to attach this `CatalogImage` object to. Leave this\nfield empty to create unattached images, for example if you are building an integration\nwhere an image can be attached to catalog items at a later time."},"image":{"$ref":"#/components/schemas/CatalogObject","description":"The new `CatalogObject` of the `IMAGE` type, namely, a `CatalogImage` object, to encapsulate the specified image file."},"is_primary":{"type":"boolean","description":"If this is set to `true`, the image created will be the primary, or first image of the object referenced by `object_id`.\nIf the `CatalogObject` already has a primary `CatalogImage`, setting this field to `true` will replace the primary image.\nIf this is set to `false` and you use the Square API version 2021-12-15 or later, the image id will be appended to the list of `image_ids` on the object.\n\nWith Square API version 2021-12-15 or later, the default value is `false`. Otherwise, the effective default value is `true`.","x-release-status":"BETA"}},"example":{"idempotency_key":"528dea59-7bfb-43c1-bd48-4a6bba7dd61f86","image":{"id":"#TEMP_ID","image_data":{"caption":"A picture of a cup of coffee"},"type":"IMAGE"},"object_id":"ND6EA5AAJEO5WL3JNNIAQA32"}},"CreateCatalogImageResponse":{"type":"object","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."},"image":{"$ref":"#/components/schemas/CatalogObject","description":"The newly created `CatalogImage` including a Square-generated\nURL for the encapsulated image file."}},"example":{"image":{"id":"KQLFFHA6K6J3YQAQAWDQAL57","image_data":{"caption":"A picture of a cup of coffee","url":"https://..."},"type":"IMAGE"}}},"CreateCheckoutRequest":{"type":"object","description":"Defines the parameters that can be included in the body of\na request to the `CreateCheckout` endpoint.","x-release-status":"PUBLIC","required":["idempotency_key","order"],"properties":{"idempotency_key":{"type":"string","description":"A unique string that identifies this checkout among others you have created. It can be\nany valid string but must be unique for every order sent to Square Checkout for a given location ID.\n\nThe idempotency key is used to avoid processing the same order more than once. If you are \nunsure whether a particular checkout was created successfully, you can attempt it again with\nthe same idempotency key and all the same other parameters without worrying about creating duplicates.\n\nYou should use a random number/string generator native to the language\nyou are working in to generate strings for your idempotency keys.\n\nFor more information, see [Idempotency](https://developer.squareup.com/docs/working-with-apis/idempotency).","minLength":1,"maxLength":192},"order":{"$ref":"#/components/schemas/CreateOrderRequest","description":"The order including line items to be checked out."},"ask_for_shipping_address":{"type":"boolean","description":"If `true`, Square Checkout collects shipping information on your behalf and stores \nthat information with the transaction information in the Square Seller Dashboard.\n\nDefault: `false`."},"merchant_support_email":{"type":"string","description":"The email address to display on the Square Checkout confirmation page\nand confirmation email that the buyer can use to contact the seller.\n\nIf this value is not set, the confirmation page and email display the\nprimary email address associated with the seller's Square account.\n\nDefault: none; only exists if explicitly set.","maxLength":254},"pre_populate_buyer_email":{"type":"string","description":"If provided, the buyer's email is prepopulated on the checkout page\nas an editable text field.\n\nDefault: none; only exists if explicitly set.","maxLength":254},"pre_populate_shipping_address":{"$ref":"#/components/schemas/Address","description":"If provided, the buyer's shipping information is prepopulated on the\ncheckout page as editable text fields.\n\nDefault: none; only exists if explicitly set."},"redirect_url":{"type":"string","description":"The URL to redirect to after the checkout is completed with `checkoutId`,\n`transactionId`, and `referenceId` appended as URL parameters. For example,\nif the provided redirect URL is `http://www.example.com/order-complete`, a\nsuccessful transaction redirects the customer to:\n\n`http://www.example.com/order-complete?checkoutId=xxxxxx&referenceId=xxxxxx&transactionId=xxxxxx`\n\nIf you do not provide a redirect URL, Square Checkout displays an order\nconfirmation page on your behalf; however, it is strongly recommended that\nyou provide a redirect URL so you can verify the transaction results and\nfinalize the order through your existing/normal confirmation workflow.\n\nDefault: none; only exists if explicitly set.","maxLength":800},"additional_recipients":{"type":"array","items":{"$ref":"#/components/schemas/ChargeRequestAdditionalRecipient"},"description":"The basic primitive of a multi-party transaction. The value is optional.\nThe transaction facilitated by you can be split from here.\n\nIf you provide this value, the `amount_money` value in your `additional_recipients` field\ncannot be more than 90% of the `total_money` calculated by Square for your order.\nThe `location_id` must be a valid seller location where the checkout is occurring.\n\nThis field requires `PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS` OAuth permission.\n\nThis field is currently not supported in the Square Sandbox."},"note":{"type":"string","description":"An optional note to associate with the `checkout` object.\n\nThis value cannot exceed 60 characters.","maxLength":60}},"example":{"additional_recipients":[{"amount_money":{"amount":60,"currency":"USD"},"description":"Application fees","location_id":"057P5VYJ4A5X1"}],"ask_for_shipping_address":true,"idempotency_key":"86ae1696-b1e3-4328-af6d-f1e04d947ad6","merchant_support_email":"[email protected]","order":{"idempotency_key":"12ae1696-z1e3-4328-af6d-f1e04d947gd4","order":{"customer_id":"customer_id","discounts":[{"amount_money":{"amount":100,"currency":"USD"},"scope":"LINE_ITEM","type":"FIXED_AMOUNT","uid":"56ae1696-z1e3-9328-af6d-f1e04d947gd4"}],"line_items":[{"applied_discounts":[{"discount_uid":"56ae1696-z1e3-9328-af6d-f1e04d947gd4"}],"applied_taxes":[{"tax_uid":"38ze1696-z1e3-5628-af6d-f1e04d947fg3"}],"base_price_money":{"amount":1500,"currency":"USD"},"name":"Printed T Shirt","quantity":"2"},{"base_price_money":{"amount":2500,"currency":"USD"},"name":"Slim Jeans","quantity":"1"},{"base_price_money":{"amount":3500,"currency":"USD"},"name":"Woven Sweater","quantity":"3"}],"location_id":"location_id","reference_id":"reference_id","taxes":[{"percentage":"7.75","scope":"LINE_ITEM","type":"INCLUSIVE","uid":"38ze1696-z1e3-5628-af6d-f1e04d947fg3"}]}},"pre_populate_buyer_email":"[email protected]","pre_populate_shipping_address":{"address_line_1":"1455 Market St.","address_line_2":"Suite 600","administrative_district_level_1":"CA","country":"US","first_name":"Jane","last_name":"Doe","locality":"San Francisco","postal_code":"94103"},"redirect_url":"https://merchant.website.com/order-confirm"},"x-sq-sdk-sample-code":{"csharp":"/sdk_samples/CreateCheckout/CreateCheckoutRequest.csharp","java":"/sdk_samples/CreateCheckout/CreateCheckoutRequest.java","javascript":"/sdk_samples/CreateCheckout/CreateCheckoutRequest.javascript","php":"/sdk_samples/CreateCheckout/CreateCheckoutRequest.php","python":"/sdk_samples/CreateCheckout/CreateCheckoutRequest.python","ruby":"/sdk_samples/CreateCheckout/CreateCheckoutRequest.ruby"}},"CreateCheckoutResponse":{"type":"object","description":"Defines the fields that are included in the response body of\na request to the `CreateCheckout` endpoint.","x-release-status":"PUBLIC","properties":{"checkout":{"$ref":"#/components/schemas/Checkout","description":"The newly created `checkout` object associated with the provided idempotency key."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{"checkout":{"additional_recipients":[{"amount_money":{"amount":60,"currency":"USD"},"description":"Application fees","location_id":"057P5VYJ4A5X1"}],"ask_for_shipping_address":true,"checkout_page_url":"https://connect.squareup.com/v2/checkout?c=CAISEHGimXh-C3RIT4og1a6u1qw&l=CYTKRM7R7JMV8","created_at":"2017-06-16T22:25:35Z","id":"CAISEHGimXh-C3RIT4og1a6u1qw","merchant_support_email":"[email protected]","order":{"customer_id":"customer_id","discounts":[{"amount_money":{"amount":100,"currency":"USD"},"applied_money":{"amount":100,"currency":"USD"},"scope":"LINE_ITEM","type":"FIXED_AMOUNT","uid":"56ae1696-z1e3-9328-af6d-f1e04d947gd4"}],"line_items":[{"applied_discounts":[{"applied_money":{"amount":100,"currency":"USD"},"discount_uid":"56ae1696-z1e3-9328-af6d-f1e04d947gd4"}],"applied_taxes":[{"applied_money":{"amount":103,"currency":"USD"},"tax_uid":"38ze1696-z1e3-5628-af6d-f1e04d947fg3"}],"base_price_money":{"amount":1500,"currency":"USD"},"name":"Printed T Shirt","quantity":"2","total_discount_money":{"amount":100,"currency":"USD"},"total_money":{"amount":1503,"currency":"USD"},"total_tax_money":{"amount":103,"currency":"USD"}},{"base_price_money":{"amount":2500,"currency":"USD"},"name":"Slim Jeans","quantity":"1","total_money":{"amount":2500,"currency":"USD"}},{"base_price_money":{"amount":3500,"currency":"USD"},"name":"Woven Sweater","quantity":"3","total_money":{"amount":10500,"currency":"USD"}}],"location_id":"location_id","reference_id":"reference_id","taxes":[{"percentage":"7.75","scope":"LINE_ITEM","type":"INCLUSIVE","uid":"38ze1696-z1e3-5628-af6d-f1e04d947fg3"}],"total_discount_money":{"amount":100,"currency":"USD"},"total_money":{"amount":14503,"currency":"USD"},"total_tax_money":{"amount":103,"currency":"USD"}},"pre_populate_buyer_email":"[email protected]","pre_populate_shipping_address":{"address_line_1":"1455 Market St.","address_line_2":"Suite 600","administrative_district_level_1":"CA","country":"US","first_name":"Jane","last_name":"Doe","locality":"San Francisco","postal_code":"94103"},"redirect_url":"https://merchant.website.com/order-confirm","version":1}}},"CreateCustomerCardRequest":{"type":"object","description":"Defines the fields that are included in the request body of a request\nto the `CreateCustomerCard` endpoint.","x-release-status":"DEPRECATED","required":["card_nonce"],"properties":{"card_nonce":{"type":"string","description":"A card nonce representing the credit card to link to the customer.\n\nCard nonces are generated by the Square payment form when customers enter\ntheir card information. For more information, see\n[Walkthrough: Integrate Square Payments in a Website](https://developer.squareup.com/docs/web-payments/take-card-payment).\n\n__NOTE:__ Card nonces generated by digital wallets (such as Apple Pay)\ncannot be used to create a customer card."},"billing_address":{"$ref":"#/components/schemas/Address","description":"Address information for the card on file.\n\n__NOTE:__ If a billing address is provided in the request, the\n`CreateCustomerCardRequest.billing_address.postal_code` must match\nthe postal code encoded in the card nonce."},"cardholder_name":{"type":"string","description":"The full name printed on the credit card."},"verification_token":{"type":"string","description":"An identifying token generated by [Payments.verifyBuyer()](https://developer.squareup.com/reference/sdks/web/payments/objects/Payments#Payments.verifyBuyer).\nVerification tokens encapsulate customer device information and 3-D Secure\nchallenge results to indicate that Square has verified the buyer identity."}},"example":{"billing_address":{"address_line_1":"500 Electric Ave","address_line_2":"Suite 600","administrative_district_level_1":"NY","country":"US","locality":"New York","postal_code":"10003"},"card_nonce":"YOUR_CARD_NONCE","cardholder_name":"Amelia Earhart"},"x-sq-sdk-sample-code":{"csharp":"/sdk_samples/CreateCustomerCard/CreateCustomerCardRequest.csharp","java":"/sdk_samples/CreateCustomerCard/CreateCustomerCardRequest.java","javascript":"/sdk_samples/CreateCustomerCard/CreateCustomerCardRequest.javascript","php":"/sdk_samples/CreateCustomerCard/CreateCustomerCardRequest.php","python":"/sdk_samples/CreateCustomerCard/CreateCustomerCardRequest.python","ruby":"/sdk_samples/CreateCustomerCard/CreateCustomerCardRequest.ruby"}},"CreateCustomerCardResponse":{"type":"object","description":"Defines the fields that are included in the response body of\na request to the `CreateCustomerCard` endpoint.\n\nEither `errors` or `card` is present in a given response (never both).","x-release-status":"DEPRECATED","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."},"card":{"$ref":"#/components/schemas/Card","description":"The created card on file."}},"example":{"card":{"billing_address":{"address_line_1":"500 Electric Ave","address_line_2":"Suite 600","administrative_district_level_1":"NY","country":"US","locality":"New York","postal_code":"10003"},"card_brand":"VISA","cardholder_name":"Amelia Earhart","exp_month":11,"exp_year":2018,"id":"icard-card_id","last_4":"1111"}},"x-sq-sdk-sample-code":{"csharp":"/sdk_samples/CreateCustomerCard/CreateCustomerCardResponse.csharp","java":"/sdk_samples/CreateCustomerCard/CreateCustomerCardResponse.java","javascript":"/sdk_samples/CreateCustomerCard/CreateCustomerCardResponse.javascript","php":"/sdk_samples/CreateCustomerCard/CreateCustomerCardResponse.php","python":"/sdk_samples/CreateCustomerCard/CreateCustomerCardResponse.python","ruby":"/sdk_samples/CreateCustomerCard/CreateCustomerCardResponse.ruby"}},"CreateCustomerCustomAttributeDefinitionRequest":{"type":"object","description":"Represents a [CreateCustomerCustomAttributeDefinition](api-endpoint:CustomerCustomAttributes-CreateCustomerCustomAttributeDefinition) request.","x-release-status":"PUBLIC","required":["custom_attribute_definition"],"properties":{"custom_attribute_definition":{"$ref":"#/components/schemas/CustomAttributeDefinition","description":"The custom attribute definition to create. Note the following:\n- With the exception of the `Selection` data type, the `schema` is specified as a simple URL to the JSON schema\ndefinition hosted on the Square CDN. For more information, including supported values and constraints, see\n[Specifying the schema](https://developer.squareup.com/docs/customer-custom-attributes-api/custom-attribute-definitions#specify-schema).\n- If provided, `name` must be unique (case-sensitive) across all visible customer-related custom attribute definitions for the seller.\n- All custom attributes are visible in exported customer data, including those set to `VISIBILITY_HIDDEN`."},"idempotency_key":{"type":"string","description":"A unique identifier for this request, used to ensure idempotency. For more information,\nsee [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).","maxLength":45}},"example":{"custom_attribute_definition":{"description":"The favorite movie of the customer.","key":"favoritemovie","name":"Favorite Movie","schema":{"$ref":"https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String"},"visibility":"VISIBILITY_HIDDEN"}}},"CreateCustomerCustomAttributeDefinitionResponse":{"type":"object","description":"Represents a [CreateCustomerCustomAttributeDefinition](api-endpoint:CustomerCustomAttributes-CreateCustomerCustomAttributeDefinition) response.\nEither `custom_attribute_definition` or `errors` is present in the response.","x-release-status":"PUBLIC","properties":{"custom_attribute_definition":{"$ref":"#/components/schemas/CustomAttributeDefinition","description":"The new custom attribute definition."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{"custom_attribute_definition":{"created_at":"2022-04-26T15:27:30Z","description":"The favorite movie of the customer.","key":"favoritemovie","name":"Favorite Movie","schema":{"$ref":"https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String"},"updated_at":"2022-04-26T15:27:30Z","version":1,"visibility":"VISIBILITY_HIDDEN"}}},"CreateCustomerGroupRequest":{"type":"object","description":"Defines the body parameters that can be included in a request to the\n[CreateCustomerGroup](api-endpoint:CustomerGroups-CreateCustomerGroup) endpoint.","x-release-status":"PUBLIC","required":["group"],"properties":{"idempotency_key":{"type":"string","description":"The idempotency key for the request. For more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency)."},"group":{"$ref":"#/components/schemas/CustomerGroup","description":"The customer group to create."}},"example":{"group":{"name":"Loyal Customers"}}},"CreateCustomerGroupResponse":{"type":"object","description":"Defines the fields that are included in the response body of\na request to the [CreateCustomerGroup](api-endpoint:CustomerGroups-CreateCustomerGroup) endpoint.\n\nEither `errors` or `group` is present in a given response (never both).","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."},"group":{"$ref":"#/components/schemas/CustomerGroup","description":"The successfully created customer group."}},"example":{"group":{"created_at":"2020-04-13T21:54:57.863Z","id":"2TAT3CMH4Q0A9M87XJZED0WMR3","name":"Loyal Customers","updated_at":"2020-04-13T21:54:58Z"}}},"CreateCustomerRequest":{"type":"object","description":"Defines the body parameters that can be included in a request to the\n`CreateCustomer` endpoint.","x-release-status":"PUBLIC","properties":{"idempotency_key":{"type":"string","description":"The idempotency key for the request.\tFor more information, see\n[Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency)."},"given_name":{"type":"string","description":"The given name (that is, the first name) associated with the customer profile.\n\nThe maximum length for this value is 300 characters."},"family_name":{"type":"string","description":"The family name (that is, the last name) associated with the customer profile.\n\nThe maximum length for this value is 300 characters."},"company_name":{"type":"string","description":"A business name associated with the customer profile.\n\nThe maximum length for this value is 500 characters."},"nickname":{"type":"string","description":"A nickname for the customer profile.\n\nThe maximum length for this value is 100 characters."},"email_address":{"type":"string","description":"The email address associated with the customer profile.\n\nThe maximum length for this value is 254 characters."},"address":{"$ref":"#/components/schemas/Address","description":"The physical address associated with the customer profile. For maximum length constraints, see \n[Customer addresses](https://developer.squareup.com/docs/customers-api/use-the-api/keep-records#address).\nThe `first_name` and `last_name` fields are ignored if they are present in the request."},"phone_number":{"type":"string","description":"The phone number associated with the customer profile. The phone number must be valid and can contain\n9–16 digits, with an optional `+` prefix and country code. For more information, see\n[Customer phone numbers](https://developer.squareup.com/docs/customers-api/use-the-api/keep-records#phone-number)."},"reference_id":{"type":"string","description":"An optional second ID used to associate the customer profile with an\nentity in another system.\n\nThe maximum length for this value is 100 characters."},"note":{"type":"string","description":"A custom note associated with the customer profile."},"birthday":{"type":"string","description":"The birthday associated with the customer profile, in `YYYY-MM-DD` or `MM-DD` format. For example,\nspecify `1998-09-21` for September 21, 1998, or `09-21` for September 21. Birthdays are returned in `YYYY-MM-DD`\nformat, where `YYYY` is the specified birth year or `0000` if a birth year is not specified."},"tax_ids":{"$ref":"#/components/schemas/CustomerTaxIds","description":"The tax ID associated with the customer profile. This field is available only for customers of sellers\nin EU countries or the United Kingdom. For more information,\nsee [Customer tax IDs](https://developer.squareup.com/docs/customers-api/what-it-does#customer-tax-ids)."}},"example":{"address":{"address_line_1":"500 Electric Ave","address_line_2":"Suite 600","administrative_district_level_1":"NY","country":"US","locality":"New York","postal_code":"10003"},"email_address":"[email protected]","family_name":"Earhart","given_name":"Amelia","note":"a customer","phone_number":"+1-212-555-4240","reference_id":"YOUR_REFERENCE_ID"},"x-sq-sdk-sample-code":{"csharp":"/sdk_samples/CreateCustomer/CreateCustomerRequest.csharp","java":"/sdk_samples/CreateCustomer/CreateCustomerRequest.java","javascript":"/sdk_samples/CreateCustomer/CreateCustomerRequest.javascript","php":"/sdk_samples/CreateCustomer/CreateCustomerRequest.php","python":"/sdk_samples/CreateCustomer/CreateCustomerRequest.python","ruby":"/sdk_samples/CreateCustomer/CreateCustomerRequest.ruby"}},"CreateCustomerResponse":{"type":"object","description":"Defines the fields that are included in the response body of\na request to the [CreateCustomer](api-endpoint:Customers-CreateCustomer) or\n[BulkCreateCustomers](api-endpoint:Customers-BulkCreateCustomers) endpoint.\n\nEither `errors` or `customer` is present in a given response (never both).","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."},"customer":{"$ref":"#/components/schemas/Customer","description":"The created customer."}},"example":{"customer":{"address":{"address_line_1":"500 Electric Ave","address_line_2":"Suite 600","administrative_district_level_1":"NY","country":"US","locality":"New York","postal_code":"10003"},"created_at":"2016-03-23T20:21:54.859Z","creation_source":"THIRD_PARTY","email_address":"[email protected]","family_name":"Earhart","given_name":"Amelia","id":"JDKYHBWT1D4F8MFH63DBMEN8Y4","note":"a customer","phone_number":"+1-212-555-4240","preferences":{"email_unsubscribed":false},"reference_id":"YOUR_REFERENCE_ID","updated_at":"2016-03-23T20:21:54.859Z","version":0}},"x-sq-sdk-sample-code":{"csharp":"/sdk_samples/CreateCustomer/CreateCustomerResponse.csharp","java":"/sdk_samples/CreateCustomer/CreateCustomerResponse.java","javascript":"/sdk_samples/CreateCustomer/CreateCustomerResponse.javascript","php":"/sdk_samples/CreateCustomer/CreateCustomerResponse.php","python":"/sdk_samples/CreateCustomer/CreateCustomerResponse.python","ruby":"/sdk_samples/CreateCustomer/CreateCustomerResponse.ruby"}},"CreateDeviceCodeRequest":{"type":"object","x-release-status":"PUBLIC","required":["idempotency_key","device_code"],"properties":{"idempotency_key":{"type":"string","description":"A unique string that identifies this CreateDeviceCode request. Keys can\nbe any valid string but must be unique for every CreateDeviceCode request.\n\nSee [Idempotency keys](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency) for more information.","minLength":1,"maxLength":128},"device_code":{"$ref":"#/components/schemas/DeviceCode","description":"The device code to create."}},"example":{"device_code":{"location_id":"B5E4484SHHNYH","name":"Counter 1","product_type":"TERMINAL_API"},"idempotency_key":"01bb00a6-0c86-4770-94ed-f5fca973cd56"}},"CreateDeviceCodeResponse":{"type":"object","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."},"device_code":{"$ref":"#/components/schemas/DeviceCode","description":"The created DeviceCode object containing the device code string."}},"example":{"device_code":{"code":"EBCARJ","created_at":"2020-02-06T18:44:33.000Z","id":"B3Z6NAMYQSMTM","location_id":"B5E4484SHHNYH","name":"Counter 1","pair_by":"2020-02-06T18:49:33.000Z","product_type":"TERMINAL_API","status":"UNPAIRED","status_changed_at":"2020-02-06T18:44:33.000Z"}}},"CreateDisputeEvidenceFileRequest":{"type":"object","description":"Defines the parameters for a `CreateDisputeEvidenceFile` request.","x-release-status":"PUBLIC","required":["idempotency_key"],"properties":{"idempotency_key":{"type":"string","description":"A unique key identifying the request. For more information, see [Idempotency](https://developer.squareup.com/docs/working-with-apis/idempotency).","minLength":1,"maxLength":45},"evidence_type":{"$ref":"#/components/schemas/DisputeEvidenceType","description":"The type of evidence you are uploading.\nSee [DisputeEvidenceType](#type-disputeevidencetype) for possible values"},"content_type":{"type":"string","description":"The MIME type of the uploaded file.\nThe type can be image/heic, image/heif, image/jpeg, application/pdf, image/png, or image/tiff.","minLength":1,"maxLength":40}}},"CreateDisputeEvidenceFileResponse":{"type":"object","description":"Defines the fields in a `CreateDisputeEvidenceFile` response.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."},"evidence":{"$ref":"#/components/schemas/DisputeEvidence","description":"The metadata of the newly uploaded dispute evidence."}},"example":{"evidence":{"dispute_id":"bVTprrwk0gygTLZ96VX1oB","evidence_file":{"filename":"customer-interaction.jpg","filetype":"image/jpeg"},"id":"TOomLInj6iWmP3N8qfCXrB","uploaded_at":"2022-05-18T16:01:10.000Z"}}},"CreateDisputeEvidenceTextRequest":{"type":"object","description":"Defines the parameters for a `CreateDisputeEvidenceText` request.","x-release-status":"PUBLIC","required":["idempotency_key","evidence_text"],"properties":{"idempotency_key":{"type":"string","description":"A unique key identifying the request. For more information, see [Idempotency](https://developer.squareup.com/docs/working-with-apis/idempotency).","minLength":1,"maxLength":45},"evidence_type":{"$ref":"#/components/schemas/DisputeEvidenceType","description":"The type of evidence you are uploading.\nSee [DisputeEvidenceType](#type-disputeevidencetype) for possible values"},"evidence_text":{"type":"string","description":"The evidence string.","minLength":1,"maxLength":500}},"example":{"evidence_text":"1Z8888888888888888","evidence_type":"TRACKING_NUMBER","idempotency_key":"ed3ee3933d946f1514d505d173c82648"}},"CreateDisputeEvidenceTextResponse":{"type":"object","description":"Defines the fields in a `CreateDisputeEvidenceText` response.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."},"evidence":{"$ref":"#/components/schemas/DisputeEvidence","description":"The newly uploaded dispute evidence metadata."}},"example":{"evidence":{"dispute_id":"bVTprrwk0gygTLZ96VX1oB","evidence_text":"The customer purchased the item twice, on April 11 and April 28.","evidence_type":"REBUTTAL_EXPLANATION","id":"TOomLInj6iWmP3N8qfCXrB","uploaded_at":"2022-05-18T16:01:10.000Z"}}},"CreateGiftCardActivityRequest":{"type":"object","description":"A request to create a gift card activity.","x-release-status":"PUBLIC","required":["idempotency_key","gift_card_activity"],"properties":{"idempotency_key":{"type":"string","description":"A unique string that identifies the `CreateGiftCardActivity` request.","minLength":1,"maxLength":128},"gift_card_activity":{"$ref":"#/components/schemas/GiftCardActivity","description":"The activity to create for the gift card. This activity must specify `gift_card_id` or `gift_card_gan` for the target\ngift card, the `location_id` where the activity occurred, and the activity `type` along with the corresponding activity details."}},"example":{"gift_card_activity":{"activate_activity_details":{"line_item_uid":"eIWl7X0nMuO9Ewbh0ChIx","order_id":"jJNGHm4gLI6XkFbwtiSLqK72KkAZY"},"gift_card_id":"gftc:6d55a72470d940c6ba09c0ab8ad08d20","location_id":"81FN9BNFZTKS4","type":"ACTIVATE"},"idempotency_key":"U16kfr-kA70er-q4Rsym-7U7NnY"}},"CreateGiftCardActivityResponse":{"type":"object","description":"A response that contains a `GiftCardActivity` that was created.\nThe response might contain a set of `Error` objects if the request resulted in errors.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."},"gift_card_activity":{"$ref":"#/components/schemas/GiftCardActivity","description":"The gift card activity that was created."}},"example":{"gift_card_activity":{"activate_activity_details":{"amount_money":{"amount":1000,"currency":"USD"},"line_item_uid":"eIWl7X0nMuO9Ewbh0ChIx","order_id":"jJNGHm4gLI6XkFbwtiSLqK72KkAZY"},"created_at":"2021-05-20T22:26:54.000Z","gift_card_balance_money":{"amount":1000,"currency":"USD"},"gift_card_gan":"7783320002929081","gift_card_id":"gftc:6d55a72470d940c6ba09c0ab8ad08d20","id":"gcact_c8f8cbf1f24b448d8ecf39ed03f97864","location_id":"81FN9BNFZTKS4","type":"ACTIVATE"}}},"CreateGiftCardRequest":{"type":"object","description":"Represents a [CreateGiftCard](api-endpoint:GiftCards-CreateGiftCard) request.","x-release-status":"PUBLIC","required":["idempotency_key","location_id","gift_card"],"properties":{"idempotency_key":{"type":"string","description":"A unique identifier for this request, used to ensure idempotency. For more information, \nsee [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).","minLength":1,"maxLength":128},"location_id":{"type":"string","description":"The ID of the [location](entity:Location) where the gift card should be registered for \nreporting purposes. Gift cards can be redeemed at any of the seller's locations.","minLength":1},"gift_card":{"$ref":"#/components/schemas/GiftCard","description":"The gift card to create. The `type` field is required for this request. The `gan_source` \nand `gan` fields are included as follows: \n\nTo direct Square to generate a 16-digit GAN, omit `gan_source` and `gan`.\n\nTo provide a custom GAN, include `gan_source` and `gan`.\n- For `gan_source`, specify `OTHER`. \n- For `gan`, provide a custom GAN containing 8 to 20 alphanumeric characters. The GAN must be \nunique for the seller and cannot start with the same bank identification number (BIN) as major \ncredit cards. Do not use GANs that are easy to guess (such as 12345678) because they greatly \nincrease the risk of fraud. It is the responsibility of the developer to ensure the security \nof their custom GANs. For more information, see \n[Custom GANs](https://developer.squareup.com/docs/gift-cards/using-gift-cards-api#custom-gans). \n\nTo register an unused, physical gift card that the seller previously ordered from Square, \ninclude `gan` and provide the GAN that is printed on the gift card."}},"example":{"gift_card":{"type":"DIGITAL"},"idempotency_key":"NC9Tm69EjbjtConu","location_id":"81FN9BNFZTKS4"}},"CreateGiftCardResponse":{"type":"object","description":"A response that contains a `GiftCard`. The response might contain a set of `Error` objects if the request\nresulted in errors.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."},"gift_card":{"$ref":"#/components/schemas/GiftCard","description":"The new gift card."}},"example":{"gift_card":{"balance_money":{"amount":0,"currency":"USD"},"created_at":"2021-05-20T22:26:54.000Z","gan":"7783320006753271","gan_source":"SQUARE","id":"gftc:6cbacbb64cf54e2ca9f573d619038059","state":"PENDING","type":"DIGITAL"}}},"CreateInventoryAdjustmentReasonRequest":{"type":"object","description":"Represents an input to a call to [CreateInventoryAdjustmentReason](api-endpoint:Inventory-CreateInventoryAdjustmentReason).","x-release-status":"BETA","required":["idempotency_key","adjustment_reason"],"properties":{"idempotency_key":{"type":"string","description":"A client-supplied, universally unique identifier to make this\n[CreateInventoryAdjustmentReason](api-endpoint:Inventory-CreateInventoryAdjustmentReason)\nrequest idempotent.","minLength":1,"maxLength":128},"adjustment_reason":{"$ref":"#/components/schemas/InventoryAdjustmentReason","description":"The custom inventory adjustment reason to create. Only custom\nadjustment reasons can be created."}},"example":{"adjustment_reason":{"direction":"DECREASE","id":{"type":"CUSTOM"},"name":"Donated to charity"},"idempotency_key":"27b2f2b1-1c2a-4b9e-8f3a-0d9c3a1e5b47"}},"CreateInventoryAdjustmentReasonResponse":{"type":"object","description":"Represents an output from a call to [CreateInventoryAdjustmentReason](api-endpoint:Inventory-CreateInventoryAdjustmentReason).","x-release-status":"BETA","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Errors encountered when the request fails."},"adjustment_reason":{"$ref":"#/components/schemas/InventoryAdjustmentReason","description":"The successfully created inventory adjustment reason."}},"example":{"adjustment_reason":{"created_at":"2026-07-15T18:24:31.000Z","direction":"DECREASE","id":{"custom_reason_id":"R5BX3PDCZ6EXAMPLE","type":"CUSTOM"},"is_deleted":false,"name":"Donated to charity","updated_at":"2026-07-15T18:24:31.000Z"},"errors":[]}},"CreateInvoiceAttachmentRequest":{"type":"object","description":"Represents a [CreateInvoiceAttachment](api-endpoint:Invoices-CreateInvoiceAttachment) request.","x-release-status":"PUBLIC","properties":{"idempotency_key":{"type":"string","description":"A unique string that identifies the `CreateInvoiceAttachment` request.\nFor more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).","maxLength":128},"description":{"type":"string","description":"The description of the attachment to display on the invoice.","maxLength":128}},"example":{"description":"Service contract","idempotency_key":"ae5e84f9-4742-4fc1-ba12-a3ce3748f1c3"}},"CreateInvoiceAttachmentResponse":{"type":"object","description":"Represents a [CreateInvoiceAttachment](api-endpoint:Invoices-CreateInvoiceAttachment) response.","x-release-status":"PUBLIC","properties":{"attachment":{"$ref":"#/components/schemas/InvoiceAttachment","description":"Metadata about the attachment that was added to the invoice."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information about errors encountered during the request."}},"example":{"attachment":{"description":"Service contract","filename":"file.jpg","filesize":102705,"hash":"273ee02cb6f5f8a3a8ca23604930dd53","id":"inva:0-3bB9ZuDHiziThQhuC4fwWt","mime_type":"image/jpeg","uploaded_at":"2023-02-03T20:28:14Z"}}},"CreateInvoiceRequest":{"type":"object","description":"Describes a `CreateInvoice` request.","x-release-status":"PUBLIC","required":["invoice"],"properties":{"invoice":{"$ref":"#/components/schemas/Invoice","description":"The invoice to create."},"idempotency_key":{"type":"string","description":"A unique string that identifies the `CreateInvoice` request. If you do not \nprovide `idempotency_key` (or provide an empty string as the value), the endpoint \ntreats each request as independent.\n\nFor more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).","maxLength":128}},"example":{"idempotency_key":"ce3748f9-5fc1-4762-aa12-aae5e843f1f4","invoice":{"accepted_payment_methods":{"bank_account":false,"buy_now_pay_later":false,"card":true,"cash_app_pay":false,"square_gift_card":false},"custom_fields":[{"label":"Event Reference Number","placement":"ABOVE_LINE_ITEMS","value":"Ref. #1234"},{"label":"Terms of Service","placement":"BELOW_LINE_ITEMS","value":"The terms of service are..."}],"delivery_method":"EMAIL","description":"We appreciate your business!","invoice_number":"inv-100","location_id":"ES0RJRZYEC39A","order_id":"CAISENgvlJ6jLWAzERDzjyHVybY","payment_requests":[{"automatic_payment_source":"NONE","due_date":"2030-01-24","reminders":[{"message":"Your invoice is due tomorrow","relative_scheduled_days":-1}],"request_type":"BALANCE","tipping_enabled":true}],"primary_recipient":{"customer_id":"JDKYHBWT1D4F8MFH63DBMEN8Y4"},"sale_or_service_date":"2030-01-24","scheduled_at":"2030-01-13T10:00:00Z","store_payment_method_enabled":false,"title":"Event Planning Services"}}},"CreateInvoiceResponse":{"type":"object","description":"The response returned by the `CreateInvoice` request.","x-release-status":"PUBLIC","properties":{"invoice":{"$ref":"#/components/schemas/Invoice","description":"The newly created invoice."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information about errors encountered during the request."}},"example":{"invoice":{"accepted_payment_methods":{"bank_account":false,"buy_now_pay_later":false,"card":true,"cash_app_pay":false,"square_gift_card":false},"created_at":"2020-06-18T17:45:13Z","custom_fields":[{"label":"Event Reference Number","placement":"ABOVE_LINE_ITEMS","value":"Ref. #1234"},{"label":"Terms of Service","placement":"BELOW_LINE_ITEMS","value":"The terms of service are..."}],"delivery_method":"EMAIL","description":"We appreciate your business!","id":"inv:0-ChCHu2mZEabLeeHahQnXDjZQECY","invoice_number":"inv-100","location_id":"ES0RJRZYEC39A","order_id":"CAISENgvlJ6jLWAzERDzjyHVybY","payment_requests":[{"automatic_payment_source":"NONE","computed_amount_money":{"amount":10000,"currency":"USD"},"due_date":"2030-01-24","reminders":[{"message":"Your invoice is due tomorrow","relative_scheduled_days":-1,"status":"PENDING","uid":"beebd363-e47f-4075-8785-c235aaa7df11"}],"request_type":"BALANCE","tipping_enabled":true,"total_completed_amount_money":{"amount":0,"currency":"USD"},"uid":"2da7964f-f3d2-4f43-81e8-5aa220bf3355"}],"primary_recipient":{"customer_id":"JDKYHBWT1D4F8MFH63DBMEN8Y4","email_address":"[email protected]","family_name":"Earhart","given_name":"Amelia","phone_number":"1-212-555-4240"},"sale_or_service_date":"2030-01-24","scheduled_at":"2030-01-13T10:00:00Z","status":"DRAFT","store_payment_method_enabled":false,"timezone":"America/Los_Angeles","title":"Event Planning Services","updated_at":"2020-06-18T17:45:13Z","version":0}}},"CreateJobRequest":{"type":"object","description":"Represents a [CreateJob](api-endpoint:Team-CreateJob) request.","x-release-status":"BETA","required":["job","idempotency_key"],"properties":{"job":{"$ref":"#/components/schemas/Job","description":"The job to create. The `title` field is required and `is_tip_eligible` defaults to true."},"idempotency_key":{"type":"string","description":"A unique identifier for the `CreateJob` request. Keys can be any valid string,\nbut must be unique for each request. For more information, see\n[Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).","minLength":1,"maxLength":45}},"example":{"idempotency_key":"idempotency-key-0","job":{"is_tip_eligible":true,"title":"Cashier"}}},"CreateJobResponse":{"type":"object","description":"Represents a [CreateJob](api-endpoint:Team-CreateJob) response. Either `job` or `errors`\nis present in the response.","x-release-status":"BETA","properties":{"job":{"$ref":"#/components/schemas/Job","description":"The new job."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"The errors that occurred during the request."}},"example":{"job":{"created_at":"2021-06-11T22:55:45Z","id":"1yJlHapkseYnNPETIU1B","is_tip_eligible":true,"title":"Cashier","updated_at":"2021-06-11T22:55:45Z","version":1}}},"CreateLocationCustomAttributeDefinitionRequest":{"type":"object","description":"Represents a [CreateLocationCustomAttributeDefinition](api-endpoint:LocationCustomAttributes-CreateLocationCustomAttributeDefinition) request.","x-release-status":"BETA","required":["custom_attribute_definition"],"properties":{"custom_attribute_definition":{"$ref":"#/components/schemas/CustomAttributeDefinition","description":"The custom attribute definition to create. Note the following:\n- With the exception of the `Selection` data type, the `schema` is specified as a simple URL to the JSON schema\ndefinition hosted on the Square CDN. For more information, including supported values and constraints, see\n[Supported data types](https://developer.squareup.com/docs/devtools/customattributes/overview#supported-data-types).\n- `name` is required unless `visibility` is set to `VISIBILITY_HIDDEN`."},"idempotency_key":{"type":"string","description":"A unique identifier for this request, used to ensure idempotency. For more information,\nsee [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).","maxLength":45}},"example":{"custom_attribute_definition":{"description":"Bestselling item at location","key":"bestseller","name":"Bestseller","schema":{"$ref":"https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String"},"visibility":"VISIBILITY_READ_WRITE_VALUES"}}},"CreateLocationCustomAttributeDefinitionResponse":{"type":"object","description":"Represents a [CreateLocationCustomAttributeDefinition](api-endpoint:LocationCustomAttributes-CreateLocationCustomAttributeDefinition) response.\nEither `custom_attribute_definition` or `errors` is present in the response.","x-release-status":"BETA","properties":{"custom_attribute_definition":{"$ref":"#/components/schemas/CustomAttributeDefinition","description":"The new custom attribute definition."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{"custom_attribute_definition":{"created_at":"2022-12-02T19:06:36.559Z","description":"Bestselling item at location","key":"bestseller","name":"Bestseller","schema":{"$ref":"https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String"},"updated_at":"2022-12-02T19:06:36.559Z","version":1,"visibility":"VISIBILITY_READ_WRITE_VALUES"}}},"CreateLocationRequest":{"type":"object","description":"The request object for the [CreateLocation](api-endpoint:Locations-CreateLocation) endpoint.","x-release-status":"PUBLIC","properties":{"location":{"$ref":"#/components/schemas/Location","description":"The initial values of the location being created. The `name` field is required and must be unique within a seller account.\nAll other fields are optional, but any information you care about for the location should be included.\nThe remaining fields are automatically added based on the data from the [main location](https://developer.squareup.com/docs/locations-api#about-the-main-location)."}},"example":{"location":{"address":{"address_line_1":"1234 Peachtree St. NE","administrative_district_level_1":"GA","locality":"Atlanta","postal_code":"30309"},"description":"Midtown Atlanta store","name":"Midtown"}}},"CreateLocationResponse":{"type":"object","description":"The response object returned by the [CreateLocation](api-endpoint:Locations-CreateLocation) endpoint.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information about [errors](https://developer.squareup.com/docs/build-basics/handling-errors) encountered during the request."},"location":{"$ref":"#/components/schemas/Location","description":"The newly created `Location` object."}},"example":{"location":{"address":{"address_line_1":"1234 Peachtree St. NE","administrative_district_level_1":"GA","locality":"Atlanta","postal_code":"30309"},"business_name":"Jet Fuel Coffee","capabilities":["CREDIT_CARD_PROCESSING"],"coordinates":{"latitude":33.7889,"longitude":-84.3841},"country":"US","created_at":"2022-02-19T17:58:25Z","currency":"USD","description":"Midtown Atlanta store","id":"3Z4V4WHQK64X9","language_code":"en-US","mcc":"7299","merchant_id":"3MYCJG5GVYQ8Q","name":"Midtown","status":"ACTIVE","timezone":"America/New_York","type":"PHYSICAL"}}},"CreateLoyaltyAccountRequest":{"type":"object","description":"A request to create a new loyalty account.","x-release-status":"PUBLIC","required":["loyalty_account","idempotency_key"],"properties":{"loyalty_account":{"$ref":"#/components/schemas/LoyaltyAccount","description":"The loyalty account to create."},"idempotency_key":{"type":"string","description":"A unique string that identifies this `CreateLoyaltyAccount` request. \nKeys can be any valid string, but must be unique for every request.","minLength":1,"maxLength":128}},"example":{"idempotency_key":"ec78c477-b1c3-4899-a209-a4e71337c996","loyalty_account":{"mapping":{"phone_number":"+14155551234"},"program_id":"d619f755-2d17-41f3-990d-c04ecedd64dd"}}},"CreateLoyaltyAccountResponse":{"type":"object","description":"A response that includes loyalty account created.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."},"loyalty_account":{"$ref":"#/components/schemas/LoyaltyAccount","description":"The newly created loyalty account."}},"example":{"loyalty_account":{"balance":0,"created_at":"2020-05-08T21:44:32Z","customer_id":"QPTXM8PQNX3Q726ZYHPMNP46XC","id":"79b807d2-d786-46a9-933b-918028d7a8c5","lifetime_points":0,"mapping":{"created_at":"2020-05-08T21:44:32Z","id":"66aaab3f-da99-49ed-8b19-b87f851c844f","phone_number":"+14155551234"},"program_id":"d619f755-2d17-41f3-990d-c04ecedd64dd","updated_at":"2020-05-08T21:44:32Z"}}},"CreateLoyaltyPromotionRequest":{"type":"object","description":"Represents a [CreateLoyaltyPromotion](api-endpoint:Loyalty-CreateLoyaltyPromotion) request.","x-release-status":"PUBLIC","x-params-example":"?program_id=d619f755-2d17-41f3-990d-c04ecedd64dd","required":["loyalty_promotion","idempotency_key"],"properties":{"loyalty_promotion":{"$ref":"#/components/schemas/LoyaltyPromotion","description":"The loyalty promotion to create."},"idempotency_key":{"type":"string","description":"A unique identifier for this request, which is used to ensure idempotency. For more information,\nsee [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).","minLength":1,"maxLength":128}},"example":{"idempotency_key":"ec78c477-b1c3-4899-a209-a4e71337c996","loyalty_promotion":{"available_time":{"time_periods":["BEGIN:VEVENT\nDTSTART:20220816T160000\nDURATION:PT2H\nRRULE:FREQ=WEEKLY;BYDAY=TU\nEND:VEVENT"]},"incentive":{"points_multiplier_data":{"multiplier":"3.0"},"type":"POINTS_MULTIPLIER"},"minimum_spend_amount_money":{"amount":2000,"currency":"USD"},"name":"Tuesday Happy Hour Promo","qualifying_category_ids":["XTQPYLR3IIU9C44VRCB3XD12"],"trigger_limit":{"interval":"DAY","times":1}}}},"CreateLoyaltyPromotionResponse":{"type":"object","description":"Represents a [CreateLoyaltyPromotion](api-endpoint:Loyalty-CreateLoyaltyPromotion) response.\nEither `loyalty_promotion` or `errors` is present in the response.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."},"loyalty_promotion":{"$ref":"#/components/schemas/LoyaltyPromotion","description":"The new loyalty promotion."}},"example":{"loyalty_promotion":{"available_time":{"start_date":"2022-08-16","time_periods":["BEGIN:VEVENT\nDTSTART:20220816T160000\nDURATION:PT2H\nRRULE:FREQ=WEEKLY;BYDAY=TU\nEND:VEVENT"]},"created_at":"2022-08-16T08:38:54Z","id":"loypromo_f0f9b849-725e-378d-b810-511237e07b67","incentive":{"points_multiplier_data":{"multiplier":"3.000","points_multiplier":3},"type":"POINTS_MULTIPLIER"},"loyalty_program_id":"d619f755-2d17-41f3-990d-c04ecedd64dd","minimum_spend_amount_money":{"amount":2000,"currency":"USD"},"name":"Tuesday Happy Hour Promo","qualifying_category_ids":["XTQPYLR3IIU9C44VRCB3XD12"],"status":"ACTIVE","trigger_limit":{"interval":"DAY","times":1},"updated_at":"2022-08-16T08:38:54Z"}}},"CreateLoyaltyRewardRequest":{"type":"object","description":"A request to create a loyalty reward.","x-release-status":"PUBLIC","required":["reward","idempotency_key"],"properties":{"reward":{"$ref":"#/components/schemas/LoyaltyReward","description":"The reward to create."},"idempotency_key":{"type":"string","description":"A unique string that identifies this `CreateLoyaltyReward` request. \nKeys can be any valid string, but must be unique for every request.","minLength":1,"maxLength":128}},"example":{"idempotency_key":"18c2e5ea-a620-4b1f-ad60-7b167285e451","reward":{"loyalty_account_id":"5adcb100-07f1-4ee7-b8c6-6bb9ebc474bd","order_id":"RFZfrdtm3mhO1oGzf5Cx7fEMsmGZY","reward_tier_id":"e1b39225-9da5-43d1-a5db-782cdd8ad94f"}}},"CreateLoyaltyRewardResponse":{"type":"object","description":"A response that includes the loyalty reward created.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."},"reward":{"$ref":"#/components/schemas/LoyaltyReward","description":"The loyalty reward created."}},"example":{"reward":{"created_at":"2020-05-01T21:49:54Z","id":"a8f43ebe-2ad6-3001-bdd5-7d7c2da08943","loyalty_account_id":"5adcb100-07f1-4ee7-b8c6-6bb9ebc474bd","order_id":"RFZfrdtm3mhO1oGzf5Cx7fEMsmGZY","points":10,"reward_tier_id":"e1b39225-9da5-43d1-a5db-782cdd8ad94f","status":"ISSUED","updated_at":"2020-05-01T21:49:54Z"}}},"CreateMerchantCustomAttributeDefinitionRequest":{"type":"object","description":"Represents a [CreateMerchantCustomAttributeDefinition](api-endpoint:MerchantCustomAttributes-CreateMerchantCustomAttributeDefinition) request.","x-release-status":"BETA","required":["custom_attribute_definition"],"properties":{"custom_attribute_definition":{"$ref":"#/components/schemas/CustomAttributeDefinition","description":"The custom attribute definition to create. Note the following:\n- With the exception of the `Selection` data type, the `schema` is specified as a simple URL to the JSON schema\ndefinition hosted on the Square CDN. For more information, including supported values and constraints, see\n[Supported data types](https://developer.squareup.com/docs/devtools/customattributes/overview#supported-data-types).\n- `name` is required unless `visibility` is set to `VISIBILITY_HIDDEN`."},"idempotency_key":{"type":"string","description":"A unique identifier for this request, used to ensure idempotency. For more information,\nsee [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).","maxLength":45}},"example":{"custom_attribute_definition":{"description":"This is the other name this merchant goes by.","key":"alternative_seller_name","name":"Alternative Merchant Name","schema":{"$ref":"https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String"},"visibility":"VISIBILITY_READ_ONLY"}}},"CreateMerchantCustomAttributeDefinitionResponse":{"type":"object","description":"Represents a [CreateMerchantCustomAttributeDefinition](api-endpoint:MerchantCustomAttributes-CreateMerchantCustomAttributeDefinition) response.\nEither `custom_attribute_definition` or `errors` is present in the response.","x-release-status":"BETA","properties":{"custom_attribute_definition":{"$ref":"#/components/schemas/CustomAttributeDefinition","description":"The new custom attribute definition."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{"custom_attribute_definition":{"created_at":"2023-05-05T19:06:36.559Z","description":"This is the other name this merchant goes by.","key":"alternative_seller_name","name":"Alternative Merchant Name","schema":{"$ref":"https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String"},"updated_at":"2023-05-05T19:06:36.559Z","version":1,"visibility":"VISIBILITY_READ_ONLY"}}},"CreateOrderCustomAttributeDefinitionRequest":{"type":"object","description":"Represents a create request for an order custom attribute definition.","x-release-status":"BETA","required":["custom_attribute_definition"],"properties":{"custom_attribute_definition":{"$ref":"#/components/schemas/CustomAttributeDefinition","description":"The custom attribute definition to create. Note the following:\n- With the exception of the `Selection` data type, the `schema` is specified as a simple URL to the JSON schema\ndefinition hosted on the Square CDN. For more information, including supported values and constraints, see\n[Specifying the schema](https://developer.squareup.com/docs/customer-custom-attributes-api/custom-attribute-definitions#specify-schema).\n- If provided, `name` must be unique (case-sensitive) across all visible customer-related custom attribute definitions for the seller.\n- All custom attributes are visible in exported customer data, including those set to `VISIBILITY_HIDDEN`."},"idempotency_key":{"type":"string","description":"A unique identifier for this request, used to ensure idempotency. \nFor more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).","minLength":1,"maxLength":45}},"example":{"custom_attribute_definition":{"description":"The number of people seated at a table","key":"cover-count","name":"Cover count","schema":{"$ref":"https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.Number"},"visibility":"VISIBILITY_READ_WRITE_VALUES"},"idempotency_key":"IDEMPOTENCY_KEY"}},"CreateOrderCustomAttributeDefinitionResponse":{"type":"object","description":"Represents a response from creating an order custom attribute definition.","x-release-status":"BETA","properties":{"custom_attribute_definition":{"$ref":"#/components/schemas/CustomAttributeDefinition","description":"The new custom attribute definition."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{"custom_attribute_definition":{"created_at":"2022-10-06T16:53:23.141Z","description":"The number of people seated at a table","key":"cover-count","name":"Cover count","schema":{"$ref":"https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.Number"},"updated_at":"2022-10-06T16:53:23.141Z","version":1,"visibility":"VISIBILITY_READ_WRITE_VALUES"}}},"CreateOrderRequest":{"type":"object","x-release-status":"PUBLIC","properties":{"order":{"$ref":"#/components/schemas/Order","description":"The order to create. If this field is set, the only other top-level field that can be\nset is the `idempotency_key`."},"idempotency_key":{"type":"string","description":"A value you specify that uniquely identifies this\norder among orders you have created.\n\nIf you are unsure whether a particular order was created successfully,\nyou can try it again with the same idempotency key without\nworrying about creating duplicate orders.\n\nFor more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).","maxLength":192}},"example":{"idempotency_key":"8193148c-9586-11e6-99f9-28cfe92138cf","order":{"discounts":[{"name":"Labor Day Sale","percentage":"5","scope":"ORDER","uid":"labor-day-sale"},{"catalog_object_id":"DB7L55ZH2BGWI4H23ULIWOQ7","scope":"ORDER","uid":"membership-discount"},{"amount_money":{"amount":100,"currency":"USD"},"name":"Sale - $1.00 off","scope":"LINE_ITEM","uid":"one-dollar-off"}],"line_items":[{"base_price_money":{"amount":1599,"currency":"USD"},"name":"New York Strip Steak","quantity":"1"},{"applied_discounts":[{"discount_uid":"one-dollar-off"}],"catalog_object_id":"BEMYCSMIJL46OCDV4KYIKXIB","modifiers":[{"catalog_object_id":"CHQX7Y4KY6N5KINJKZCFURPZ"}],"quantity":"2"}],"location_id":"057P5VYJ4A5X1","reference_id":"my-order-001","taxes":[{"name":"State Sales Tax","percentage":"9","scope":"ORDER","uid":"state-sales-tax"}]}}},"CreateOrderResponse":{"type":"object","description":"Defines the fields that are included in the response body of\na request to the `CreateOrder` endpoint.\n\nEither `errors` or `order` is present in a given response, but never both.","x-release-status":"PUBLIC","properties":{"order":{"$ref":"#/components/schemas/Order","description":"The newly created order."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{"order":{"created_at":"2020-01-17T20:47:53.293Z","discounts":[{"applied_money":{"amount":30,"currency":"USD"},"catalog_object_id":"DB7L55ZH2BGWI4H23ULIWOQ7","name":"Membership Discount","percentage":"0.5","scope":"ORDER","type":"FIXED_PERCENTAGE","uid":"membership-discount"},{"applied_money":{"amount":303,"currency":"USD"},"name":"Labor Day Sale","percentage":"5","scope":"ORDER","type":"FIXED_PERCENTAGE","uid":"labor-day-sale"},{"amount_money":{"amount":100,"currency":"USD"},"applied_money":{"amount":100,"currency":"USD"},"name":"Sale - $1.00 off","scope":"LINE_ITEM","type":"FIXED_AMOUNT","uid":"one-dollar-off"}],"id":"CAISENgvlJ6jLWAzERDzjyHVybY","line_items":[{"applied_discounts":[{"applied_money":{"amount":8,"currency":"USD"},"discount_uid":"membership-discount","uid":"jWdgP1TpHPFBuVrz81mXVC"},{"applied_money":{"amount":79,"currency":"USD"},"discount_uid":"labor-day-sale","uid":"jnZOjjVY57eRcQAVgEwFuC"}],"applied_taxes":[{"applied_money":{"amount":136,"currency":"USD"},"tax_uid":"state-sales-tax","uid":"aKG87ArnDpvMLSZJHxWUl"}],"base_price_money":{"amount":1599,"currency":"USD"},"gross_sales_money":{"amount":1599,"currency":"USD"},"name":"New York Strip Steak","quantity":"1","total_discount_money":{"amount":87,"currency":"USD"},"total_money":{"amount":1648,"currency":"USD"},"total_service_charge_money":{"amount":0,"currency":"USD"},"total_tax_money":{"amount":136,"currency":"USD"},"uid":"8uSwfzvUImn3IRrvciqlXC","variation_total_price_money":{"amount":1599,"currency":"USD"}},{"applied_discounts":[{"applied_money":{"amount":22,"currency":"USD"},"discount_uid":"membership-discount","uid":"nUXvdsIItfKko0dbYtY58C"},{"applied_money":{"amount":224,"currency":"USD"},"discount_uid":"labor-day-sale","uid":"qSdkOOOernlVQqsJ94SPjB"},{"applied_money":{"amount":100,"currency":"USD"},"discount_uid":"one-dollar-off","uid":"y7bVl4njrWAnfDwmz19izB"}],"applied_taxes":[{"applied_money":{"amount":374,"currency":"USD"},"tax_uid":"state-sales-tax","uid":"v1dAgrfUVUPTnVTf9sRPz"}],"base_price_money":{"amount":2200,"currency":"USD"},"catalog_object_id":"BEMYCSMIJL46OCDV4KYIKXIB","gross_sales_money":{"amount":4500,"currency":"USD"},"modifiers":[{"base_price_money":{"amount":50,"currency":"USD"},"catalog_object_id":"CHQX7Y4KY6N5KINJKZCFURPZ","name":"Well","total_price_money":{"amount":100,"currency":"USD"},"uid":"Lo3qMMckDluu9Qsb58d4CC"}],"name":"New York Steak","quantity":"2","total_discount_money":{"amount":346,"currency":"USD"},"total_money":{"amount":4528,"currency":"USD"},"total_service_charge_money":{"amount":0,"currency":"USD"},"total_tax_money":{"amount":374,"currency":"USD"},"uid":"v8ZuEXpOJpb0bazLuvrLDB","variation_name":"Larger","variation_total_price_money":{"amount":4400,"currency":"USD"}}],"location_id":"057P5VYJ4A5X1","net_amounts":{"discount_money":{"amount":433,"currency":"USD"},"service_charge_money":{"amount":0,"currency":"USD"},"tax_money":{"amount":510,"currency":"USD"},"tip_money":{"amount":0,"currency":"USD"},"total_money":{"amount":6176,"currency":"USD"}},"reference_id":"my-order-001","source":{"name":"My App"},"state":"OPEN","taxes":[{"applied_money":{"amount":510,"currency":"USD"},"name":"State Sales Tax","percentage":"9","scope":"ORDER","type":"ADDITIVE","uid":"state-sales-tax"}],"total_discount_money":{"amount":433,"currency":"USD"},"total_money":{"amount":6176,"currency":"USD"},"total_service_charge_money":{"amount":0,"currency":"USD"},"total_tax_money":{"amount":510,"currency":"USD"},"total_tip_money":{"amount":0,"currency":"USD"},"updated_at":"2020-01-17T20:47:53.293Z","version":1}}},"CreatePaymentLinkRequest":{"type":"object","x-release-status":"PUBLIC","properties":{"idempotency_key":{"type":"string","description":"A unique string that identifies this `CreatePaymentLinkRequest` request.\nIf you do not provide a unique string (or provide an empty string as the value),\nthe endpoint treats each request as independent.\n\nFor more information, see [Idempotency](https://developer.squareup.com/docs/working-with-apis/idempotency).","maxLength":192},"description":{"type":"string","description":"A description of the payment link. You provide this optional description that is useful in your\napplication context. It is not used anywhere.","maxLength":4096},"quick_pay":{"$ref":"#/components/schemas/QuickPay","description":"Describes an ad hoc item and price for which to generate a quick pay checkout link.\nFor more information,\nsee [Quick Pay Checkout](https://developer.squareup.com/docs/checkout-api/quick-pay-checkout)."},"order":{"$ref":"#/components/schemas/Order","description":"Describes the `Order` for which to create a checkout link.\nFor more information,\nsee [Square Order Checkout](https://developer.squareup.com/docs/checkout-api/square-order-checkout)."},"checkout_options":{"$ref":"#/components/schemas/CheckoutOptions","description":"Describes optional fields to add to the resulting checkout page.\nFor more information,\nsee [Optional Checkout Configurations](https://developer.squareup.com/docs/checkout-api/optional-checkout-configurations)."},"pre_populated_data":{"$ref":"#/components/schemas/PrePopulatedData","description":"Describes fields to prepopulate in the resulting checkout page.\nFor more information, see [Prepopulate the shipping address](https://developer.squareup.com/docs/checkout-api/optional-checkout-configurations#prepopulate-the-shipping-address)."},"payment_note":{"type":"string","description":"A note for the payment. After processing the payment, Square adds this note to the resulting `Payment`.","maxLength":500}},"example":{"idempotency_key":"cd9e25dc-d9f2-4430-aedb-61605070e95f","quick_pay":{"location_id":"A9Y43N9ABXZBP","name":"Auto Detailing","price_money":{"amount":10000,"currency":"USD"}}}},"CreatePaymentLinkResponse":{"type":"object","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."},"payment_link":{"$ref":"#/components/schemas/PaymentLink","description":"The created payment link."},"related_resources":{"$ref":"#/components/schemas/PaymentLinkRelatedResources","description":"The list of related objects."}},"example":{"payment_link":{"created_at":"2022-04-25T23:58:01Z","id":"PKVT6XGJZXYUP3NZ","long_url":"https://checkout.square.site/EXAMPLE","order_id":"o4b7saqp4HzhNttf5AJxC0Srjd4F","url":"https://square.link/u/EXAMPLE","version":1},"related_resources":{"orders":[{"created_at":"2022-03-03T00:53:15.829Z","fulfillments":[{"state":"PROPOSED","type":"DIGITAL","uid":"bBpNrxjdQxGQP16sTmdzi"}],"id":"o4b7saqp4HzhNttf5AJxC0Srjd4F","line_items":[{"base_price_money":{"amount":12500,"currency":"USD"},"gross_sales_money":{"amount":12500,"currency":"USD"},"item_type":"ITEM","name":"Auto Detailing","quantity":"1","total_discount_money":{"amount":0,"currency":"USD"},"total_money":{"amount":12500,"currency":"USD"},"total_tax_money":{"amount":0,"currency":"USD"},"uid":"8YX13D1U3jO7czP8JVrAR","variation_total_price_money":{"amount":12500,"currency":"USD"}}],"location_id":"{LOCATION_ID}","net_amounts":{"discount_money":{"amount":0,"currency":"USD"},"service_charge_money":{"amount":0,"currency":"USD"},"tax_money":{"amount":0,"currency":"USD"},"tip_money":{"amount":0,"currency":"USD"},"total_money":{"amount":12500,"currency":"USD"}},"source":{"name":"Test Online Checkout Application"},"state":"DRAFT","total_discount_money":{"amount":0,"currency":"USD"},"total_money":{"amount":12500,"currency":"USD"},"total_service_charge_money":{"amount":0,"currency":"USD"},"total_tax_money":{"amount":0,"currency":"USD"},"total_tip_money":{"amount":0,"currency":"USD"},"updated_at":"2022-03-03T00:53:15.829Z","version":1}]}}},"CreatePaymentRequest":{"type":"object","description":"Describes a request to create a payment using\n[CreatePayment](api-endpoint:Payments-CreatePayment).","x-release-status":"PUBLIC","required":["source_id","idempotency_key"],"properties":{"source_id":{"type":"string","description":"The ID for the source of funds for this payment.\nThis could be a payment token generated by the Web Payments SDK for any of its\n[supported methods](https://developer.squareup.com/docs/web-payments/overview#explore-payment-methods),\nincluding cards, bank transfers, Afterpay or Cash App Pay. If recording a payment\nthat the seller received outside of Square, specify either \"CASH\" or \"EXTERNAL\".\nFor more information, see\n[Take Payments](https://developer.squareup.com/docs/payments-api/take-payments).","minLength":1},"idempotency_key":{"type":"string","description":"A unique string that identifies this `CreatePayment` request. Keys can be any valid string\nbut must be unique for every `CreatePayment` request.\n\nNote: The number of allowed characters might be less than the stated maximum, if multi-byte\ncharacters are used.\n\nFor more information, see [Idempotency](https://developer.squareup.com/docs/working-with-apis/idempotency).","minLength":1,"maxLength":45},"amount_money":{"$ref":"#/components/schemas/Money","description":"The amount of money to accept for this payment, not including `tip_money`.\n\nThe amount must be specified in the smallest denomination of the applicable currency\n(for example, US dollar amounts are specified in cents). For more information, see\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts).\n\nThe currency code must match the currency associated with the business\nthat is accepting the payment."},"tip_money":{"$ref":"#/components/schemas/Money","description":"The amount designated as a tip, in addition to `amount_money`.\n\nThe amount must be specified in the smallest denomination of the applicable currency\n(for example, US dollar amounts are specified in cents). For more information, see\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts).\n\nTips for external vendors such as a 3rd party delivery courier must be recorded using Order.service_charges.\n\nThe currency code must match the currency associated with the business\nthat is accepting the payment."},"app_fee_money":{"$ref":"#/components/schemas/Money","description":"The amount of money that the developer is taking as a fee\nfor facilitating the payment on behalf of the seller.\n\nThe amount cannot be more than 90% of the total amount of the payment.\n\nThe amount must be specified in the smallest denomination of the applicable currency\n(for example, US dollar amounts are specified in cents). For more information, see\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts).\n\nThe fee currency code must match the currency associated with the seller\nthat is accepting the payment. The application must be from a developer\naccount in the same country and using the same currency code as the seller.\n\nFor more information about the application fee scenario, see\n[Take Payments and Collect Fees](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees).\n\nTo set this field, `PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS` OAuth permission is required.\nFor more information, see [Permissions](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees#permissions)."},"app_fee_allocations":{"type":"array","items":{"$ref":"#/components/schemas/AppFeeAllocation"},"description":"Details pertaining to recipients of the application fee. The sum of the amounts in the\napp_fee_allocations must equal the app_fee_money amount, if present. If populated, an\nallocation must be present for every party that expects to receive a portion of the application\nfee, including the application developer."},"delay_duration":{"type":"string","description":"The duration of time after the payment's creation when Square automatically\neither completes or cancels the payment depending on the `delay_action` field value.\nFor more information, see\n[Time threshold](https://developer.squareup.com/docs/payments-api/take-payments/card-payments/delayed-capture#time-threshold).\n\nThis parameter should be specified as a time duration, in RFC 3339 format.\n\nNote: This feature is only supported for card payments. This parameter can only be set for a delayed\ncapture payment (`autocomplete=false`).\n\nDefault:\n\n- Card-present payments: \"PT36H\" (36 hours) from the creation time.\n- Card-not-present payments: \"P7D\" (7 days) from the creation time."},"delay_action":{"type":"string","description":"The action to be applied to the payment when the `delay_duration` has elapsed. The action must be\nCANCEL or COMPLETE. For more information, see\n[Time Threshold](https://developer.squareup.com/docs/payments-api/take-payments/card-payments/delayed-capture#time-threshold).\n\nDefault: CANCEL"},"autocomplete":{"type":"boolean","description":"If set to `true`, this payment will be completed when possible. If\nset to `false`, this payment is held in an approved state until either\nexplicitly completed (captured) or canceled (voided). For more information, see\n[Delayed capture](https://developer.squareup.com/docs/payments-api/take-payments/card-payments#delayed-capture-of-a-card-payment).\n\nDefault: true"},"order_id":{"type":"string","description":"Associates a previously created order with this payment."},"customer_id":{"type":"string","description":"The [Customer](entity:Customer) ID of the customer associated with the payment.\n\nThis is required if the `source_id` refers to a card on file created using the Cards API."},"location_id":{"type":"string","description":"The location ID to associate with the payment. If not specified, the [main location](https://developer.squareup.com/docs/locations-api#about-the-main-location) is\nused."},"team_member_id":{"type":"string","description":"An optional [TeamMember](entity:TeamMember) ID to associate with\nthis payment."},"reference_id":{"type":"string","description":"A user-defined ID to associate with the payment.\n\nYou can use this field to associate the payment to an entity in an external system\n(for example, you might specify an order ID that is generated by a third-party shopping cart).","maxLength":40},"verification_token":{"type":"string","description":"An identifying token generated by [payments.verifyBuyer()](https://developer.squareup.com/reference/sdks/web/payments/objects/Payments#Payments.verifyBuyer).\nVerification tokens encapsulate customer device information and 3-D Secure\nchallenge results to indicate that Square has verified the buyer identity.\n\nFor more information, see [SCA Overview](https://developer.squareup.com/docs/sca-overview)."},"accept_partial_authorization":{"type":"boolean","description":"If set to `true` and charging a Square Gift Card, a payment might be returned with\n`amount_money` equal to less than what was requested. For example, a request for $20 when charging\na Square Gift Card with a balance of $5 results in an APPROVED payment of $5. You might choose\nto prompt the buyer for an additional payment to cover the remainder or cancel the Gift Card\npayment. This field cannot be `true` when `autocomplete = true`.\n\nFor more information, see\n[Partial amount with Square Gift Cards](https://developer.squareup.com/docs/payments-api/take-payments#partial-payment-gift-card).\n\nDefault: false"},"buyer_email_address":{"type":"string","description":"The buyer's email address.","maxLength":255},"buyer_phone_number":{"type":"string","description":"The buyer's phone number.\nMust follow the following format:\n1. A leading + symbol (followed by a country code)\n2. The phone number can contain spaces and the special characters `(` , `)` , `-` , and `.`.\nAlphabetical characters aren't allowed.\n3. The phone number must contain between 9 and 16 digits."},"billing_address":{"$ref":"#/components/schemas/Address","description":"The buyer's billing address."},"shipping_address":{"$ref":"#/components/schemas/Address","description":"The buyer's shipping address."},"note":{"type":"string","description":"An optional note to be entered by the developer when creating a payment.","maxLength":500},"statement_description_identifier":{"type":"string","description":"Optional additional payment information to include on the customer's card statement\nas part of the statement description. This can be, for example, an invoice number, ticket number,\nor short description that uniquely identifies the purchase.\n\nNote that the `statement_description_identifier` might get truncated on the statement description\nto fit the required information including the Square identifier (SQ *) and name of the\nseller taking the payment.","maxLength":20},"cash_details":{"$ref":"#/components/schemas/CashPaymentDetails","description":"Additional details required when recording a cash payment (`source_id` is CASH)."},"external_details":{"$ref":"#/components/schemas/ExternalPaymentDetails","description":"Additional details required when recording an external payment (`source_id` is EXTERNAL)."},"customer_details":{"$ref":"#/components/schemas/CustomerDetails","description":"Details about the customer making the payment."},"offline_payment_details":{"$ref":"#/components/schemas/OfflinePaymentDetails","description":"An optional field for specifying the offline payment details. This is intended for\ninternal 1st-party callers only.","x-release-status":"DEPRECATED"}},"example":{"amount_money":{"amount":1000,"currency":"USD"},"app_fee_money":{"amount":10,"currency":"USD"},"autocomplete":true,"customer_id":"W92WH6P11H4Z77CTET0RNTGFW8","idempotency_key":"7b0f3ec5-086a-4871-8f13-3c81b3875218","location_id":"L88917AVBK2S5","note":"Brief description","reference_id":"123456","source_id":"ccof:GaJGNaZa8x4OgDJn4GB"}},"CreatePaymentResponse":{"type":"object","description":"Defines the response returned by [CreatePayment](api-endpoint:Payments-CreatePayment).\n\nIf there are errors processing the request, the `payment` field might not be\npresent, or it might be present with a status of `FAILED`.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information about errors encountered during the request."},"payment":{"$ref":"#/components/schemas/Payment","description":"The newly created payment."}},"example":{"payment":{"amount_money":{"amount":1000,"currency":"USD"},"app_fee_money":{"amount":10,"currency":"USD"},"application_details":{"application_id":"sq0ids-TcgftTEtKxJTRF1lCFJ9TA","square_product":"ECOMMERCE_API"},"approved_money":{"amount":1000,"currency":"USD"},"card_details":{"auth_result_code":"vNEn2f","avs_status":"AVS_ACCEPTED","card":{"bin":"411111","card_brand":"VISA","card_type":"DEBIT","exp_month":11,"exp_year":2022,"fingerprint":"sq-1-Hxim77tbdcbGejOejnoAklBVJed2YFLTmirfl8Q5XZzObTc8qY_U8RkwzoNL8dCEcQ","last_4":"1111","prepaid_type":"NOT_PREPAID"},"card_payment_timeline":{"authorized_at":"2021-10-13T21:14:29.732Z","captured_at":"2021-10-13T21:14:30.504Z"},"cvv_status":"CVV_ACCEPTED","entry_method":"ON_FILE","statement_description":"SQ *EXAMPLE TEST GOSQ.C","status":"CAPTURED"},"created_at":"2021-10-13T21:14:29.577Z","customer_id":"W92WH6P11H4Z77CTET0RNTGFW8","delay_action":"CANCEL","delay_duration":"PT168H","delayed_until":"2021-10-20T21:14:29.577Z","id":"R2B3Z8WMVt3EAmzYWLZvz7Y69EbZY","location_id":"L88917AVBK2S5","note":"Brief Description","order_id":"pRsjRTgFWATl7so6DxdKBJa7ssbZY","receipt_number":"R2B3","receipt_url":"https://squareup.com/receipt/preview/EXAMPLE_RECEIPT_ID","reference_id":"123456","risk_evaluation":{"created_at":"2021-10-13T21:14:30.423Z","risk_level":"NORMAL"},"source_type":"CARD","status":"COMPLETED","total_money":{"amount":1000,"currency":"USD"},"updated_at":"2021-10-13T21:14:30.504Z","version_token":"TPtNEOBOa6Qq6E3C3IjckSVOM6b3hMbfhjvTxHBQUsB6o"}}},"CreateScheduledShiftRequest":{"type":"object","description":"Represents a [CreateScheduledShift](api-endpoint:Labor-CreateScheduledShift) request.","x-release-status":"BETA","required":["scheduled_shift"],"properties":{"idempotency_key":{"type":"string","description":"A unique identifier for the `CreateScheduledShift` request, used to ensure the\n[idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency)\nof the operation.","maxLength":128},"scheduled_shift":{"$ref":"#/components/schemas/ScheduledShift","description":"The scheduled shift with `draft_shift_details`.\nIf needed, call [ListLocations](api-endpoint:Locations-ListLocations) to get location IDs,\n[ListJobs](api-endpoint:Team-ListJobs) to get job IDs, and [SearchTeamMembers](api-endpoint:Team-SearchTeamMembers)\nto get team member IDs and current job assignments.\n\nThe `start_at` and `end_at` timestamps must be provided in the time zone + offset of the\nshift location specified in `location_id`. Example for Pacific Standard Time: 2024-10-31T12:30:00-08:00"}},"example":{"idempotency_key":"HIDSNG5KS478L","scheduled_shift":{"draft_shift_details":{"end_at":"2019-01-25T13:11:00-05:00","is_deleted":false,"job_id":"FzbJAtt9qEWncK1BWgVCxQ6M","location_id":"PAA1RJZZKXBFG","notes":"Dont forget to prep the vegetables","start_at":"2019-01-25T03:11:00-05:00","team_member_id":"ormj0jJJZ5OZIzxrZYJI"}}}},"CreateScheduledShiftResponse":{"type":"object","description":"Represents a [CreateScheduledShift](api-endpoint:Labor-CreateScheduledShift) response.\nEither `scheduled_shift` or `errors` is present in the response.","x-release-status":"BETA","properties":{"scheduled_shift":{"$ref":"#/components/schemas/ScheduledShift","description":"The new scheduled shift. To make the shift public, call \n[PublishScheduledShift](api-endpoint:Labor-PublishScheduledShift) or\n[BulkPublishScheduledShifts](api-endpoint:Labor-BulkPublishScheduledShifts)."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{"scheduled_shift":{"created_at":"2019-02-25T03:11:00-05:00","draft_shift_details":{"end_at":"2019-01-25T13:11:00-05:00","is_deleted":false,"job_id":"FzbJAtt9qEWncK1BWgVCxQ6M","location_id":"PAA1RJZZKXBFG","notes":"Dont forget to prep the vegetables","start_at":"2019-01-25T03:11:00-05:00","team_member_id":"ormj0jJJZ5OZIzxrZYJI","timezone":"America/New_York"},"id":"K0YH4CV5462JB","updated_at":"2019-02-25T03:11:00-05:00","version":1}}},"CreateShiftRequest":{"type":"object","description":"Represents a request to create a `Shift`.","x-release-status":"DEPRECATED","required":["shift"],"properties":{"idempotency_key":{"type":"string","description":"A unique string value to ensure the idempotency of the operation.","maxLength":128},"shift":{"$ref":"#/components/schemas/Shift","description":"The `Shift` to be created."}},"example":{"idempotency_key":"HIDSNG5KS478L","shift":{"breaks":[{"break_type_id":"REGS1EQR1TPZ5","end_at":"2019-01-25T06:16:00-05:00","expected_duration":"PT5M","is_paid":true,"name":"Tea Break","start_at":"2019-01-25T06:11:00-05:00"}],"declared_cash_tip_money":{"amount":500,"currency":"USD"},"end_at":"2019-01-25T13:11:00-05:00","location_id":"PAA1RJZZKXBFG","start_at":"2019-01-25T03:11:00-05:00","team_member_id":"ormj0jJJZ5OZIzxrZYJI","wage":{"hourly_rate":{"amount":1100,"currency":"USD"},"tip_eligible":true,"title":"Barista"}}}},"CreateShiftResponse":{"type":"object","description":"The response to a request to create a `Shift`. The response contains\nthe created `Shift` object and might contain a set of `Error` objects if\nthe request resulted in errors.","x-release-status":"DEPRECATED","properties":{"shift":{"$ref":"#/components/schemas/Shift","description":"The `Shift` that was created on the request."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{"shift":{"breaks":[{"break_type_id":"REGS1EQR1TPZ5","end_at":"2019-01-25T06:16:00-05:00","expected_duration":"PT5M","id":"X7GAQYVVRRG6P","is_paid":true,"name":"Tea Break","start_at":"2019-01-25T06:11:00-05:00"}],"created_at":"2019-02-28T00:39:02Z","declared_cash_tip_money":{"amount":500,"currency":"USD"},"employee_id":"ormj0jJJZ5OZIzxrZYJI","end_at":"2019-01-25T13:11:00-05:00","id":"K0YH4CV5462JB","location_id":"PAA1RJZZKXBFG","start_at":"2019-01-25T03:11:00-05:00","status":"CLOSED","team_member_id":"ormj0jJJZ5OZIzxrZYJI","timezone":"America/New_York","updated_at":"2019-02-28T00:39:02Z","version":1,"wage":{"hourly_rate":{"amount":1100,"currency":"USD"},"job_id":"FzbJAtt9qEWncK1BWgVCxQ6M","tip_eligible":true,"title":"Barista"}}}},"CreateSubscriptionRequest":{"type":"object","description":"Defines input parameters in a request to the \n[CreateSubscription](api-endpoint:Subscriptions-CreateSubscription) endpoint.","x-release-status":"PUBLIC","required":["location_id","customer_id"],"properties":{"idempotency_key":{"type":"string","description":"A unique string that identifies this `CreateSubscription` request.\nIf you do not provide a unique string (or provide an empty string as the value),\nthe endpoint treats each request as independent.\n\nFor more information, see [Idempotency keys](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency)."},"location_id":{"type":"string","description":"The ID of the location the subscription is associated with.","minLength":1},"plan_variation_id":{"type":"string","description":"The ID of the [subscription plan variation](https://developer.squareup.com/docs/subscriptions-api/plans-and-variations#plan-variations) created using the Catalog API."},"customer_id":{"type":"string","description":"The ID of the [customer](entity:Customer) subscribing to the subscription plan variation.","minLength":1},"start_date":{"type":"string","description":"The `YYYY-MM-DD`-formatted date to start the subscription. \nIf it is unspecified, the subscription starts immediately."},"canceled_date":{"type":"string","description":"The `YYYY-MM-DD`-formatted date when the newly created subscription is scheduled for cancellation. \n\nThis date overrides the cancellation date set in the plan variation configuration.\nIf the cancellation date is earlier than the end date of a subscription cycle, the subscription stops\nat the canceled date and the subscriber is sent a prorated invoice at the beginning of the canceled cycle. \n\nWhen the subscription plan of the newly created subscription has a fixed number of cycles and the `canceled_date`\noccurs before the subscription plan completes, the specified `canceled_date` sets the date when the subscription\nstops through the end of the last cycle."},"tax_percentage":{"type":"string","description":"The tax to add when billing the subscription.\nThe percentage is expressed in decimal form, using a `'.'` as the decimal\nseparator and without a `'%'` sign. For example, a value of 7.5\ncorresponds to 7.5%.","maxLength":10},"price_override_money":{"$ref":"#/components/schemas/Money","description":"A custom price which overrides the cost of a subscription plan variation with `STATIC` pricing.\nThis field does not affect itemized subscriptions with `RELATIVE` pricing. Instead, \nyou should edit the Subscription's [order template](https://developer.squareup.com/docs/subscriptions-api/manage-subscriptions#phases-and-order-templates)."},"card_id":{"type":"string","description":"The ID of the [subscriber's](entity:Customer) [card](entity:Card) to charge.\nIf it is not specified, the subscriber receives an invoice via email with a link to pay for their subscription."},"timezone":{"type":"string","description":"The timezone that is used in date calculations for the subscription. If unset, defaults to\nthe location timezone. If a timezone is not configured for the location, defaults to \"America/New_York\".\nFormat: the IANA Timezone Database identifier for the location timezone. For\na list of time zones, see [List of tz database time zones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)."},"source":{"$ref":"#/components/schemas/SubscriptionSource","description":"The origination details of the subscription.","x-release-status":"BETA"},"monthly_billing_anchor_date":{"type":"integer","description":"The day-of-the-month to change the billing date to.","minimum":1,"maximum":31,"x-release-status":"BETA"},"phases":{"type":"array","items":{"$ref":"#/components/schemas/Phase"},"description":"array of phases for this subscription"}},"example":{"card_id":"ccof:qy5x8hHGYsgLrp4Q4GB","customer_id":"CHFGVKYY8RSV93M5KCYTG4PN0G","idempotency_key":"8193148c-9586-11e6-99f9-28cfe92138cf","location_id":"S8GWD5R9QB376","phases":[{"order_template_id":"U2NaowWxzXwpsZU697x7ZHOAnCNZY","ordinal":0}],"plan_variation_id":"6JHXF3B2CW3YKHDV4XEM674H","source":{"name":"My Application"},"start_date":"2023-06-20","timezone":"America/Los_Angeles"}},"CreateSubscriptionResponse":{"type":"object","description":"Defines output parameters in a response from the\n[CreateSubscription](api-endpoint:Subscriptions-CreateSubscription) endpoint.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Errors encountered during the request."},"subscription":{"$ref":"#/components/schemas/Subscription","description":"The newly created subscription.\n\nFor more information, see\n[Subscription object](https://developer.squareup.com/docs/subscriptions-api/manage-subscriptions#subscription-object)."}},"example":{"subscription":{"card_id":"ccof:qy5x8hHGYsgLrp4Q4GB","created_at":"2023-06-20T21:53:10Z","customer_id":"CHFGVKYY8RSV93M5KCYTG4PN0G","id":"56214fb2-cc85-47a1-93bc-44f3766bb56f","location_id":"S8GWD5R9QB376","phases":[{"order_template_id":"U2NaowWxzXwpsZU697x7ZHOAnCNZY","ordinal":0,"plan_phase_uid":"X2Q2AONPB3RB64Y27S25QCZP","uid":"873451e0-745b-4e87-ab0b-c574933fe616"}],"plan_variation_id":"6JHXF3B2CW3YKHDV4XEM674H","source":{"name":"My Application"},"start_date":"2023-06-20","status":"ACTIVE","timezone":"America/Los_Angeles","version":1}}},"CreateTeamMemberRequest":{"type":"object","description":"Represents a create request for a `TeamMember` object.","x-release-status":"PUBLIC","properties":{"idempotency_key":{"type":"string","description":"A unique string that identifies this `CreateTeamMember` request.\nKeys can be any valid string, but must be unique for every request.\nFor more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).\n\nThe minimum length is 1 and the maximum length is 45."},"team_member":{"$ref":"#/components/schemas/TeamMember","description":"**Required** The data used to create the `TeamMember` object. If you include `wage_setting`, you must provide\n`job_id` for each job assignment. To get job IDs, call [ListJobs](api-endpoint:Team-ListJobs)."}},"example":{"idempotency_key":"idempotency-key-0","team_member":{"assigned_locations":{"assignment_type":"EXPLICIT_LOCATIONS","location_ids":["YSGH2WBKG94QZ","GA2Y9HSJ8KRYT"]},"email_address":"[email protected]","family_name":"Doe","given_name":"Joe","phone_number":"+14159283333","reference_id":"reference_id_1","status":"ACTIVE","wage_setting":{"is_overtime_exempt":true,"job_assignments":[{"annual_rate":{"amount":3000000,"currency":"USD"},"job_id":"FjS8x95cqHiMenw4f1NAUH4P","pay_type":"SALARY","weekly_hours":40},{"hourly_rate":{"amount":2000,"currency":"USD"},"job_id":"VDNpRv8da51NU8qZFC5zDWpF","pay_type":"HOURLY"}]}}}},"CreateTeamMemberResponse":{"type":"object","description":"Represents a response from a create request containing the created `TeamMember` object or error messages.","x-release-status":"PUBLIC","properties":{"team_member":{"$ref":"#/components/schemas/TeamMember","description":"The successfully created `TeamMember` object."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"The errors that occurred during the request."}},"example":{"team_member":{"assigned_locations":{"assignment_type":"EXPLICIT_LOCATIONS","location_ids":["GA2Y9HSJ8KRYT","YSGH2WBKG94QZ"]},"created_at":"2021-06-11T22:55:45Z","email_address":"[email protected]","family_name":"Doe","given_name":"Joe","id":"1yJlHapkseYnNPETIU1B","is_owner":false,"phone_number":"+14159283333","reference_id":"reference_id_1","status":"ACTIVE","updated_at":"2021-06-11T22:55:45Z","wage_setting":{"created_at":"2021-06-11T22:55:45Z","is_overtime_exempt":true,"job_assignments":[{"annual_rate":{"amount":3000000,"currency":"USD"},"hourly_rate":{"amount":1443,"currency":"USD"},"job_id":"FjS8x95cqHiMenw4f1NAUH4P","job_title":"Manager","pay_type":"SALARY","weekly_hours":40},{"hourly_rate":{"amount":2000,"currency":"USD"},"job_id":"VDNpRv8da51NU8qZFC5zDWpF","job_title":"Cashier","pay_type":"HOURLY"}],"team_member_id":"1yJlHapkseYnNPETIU1B","updated_at":"2021-06-11T22:55:45Z","version":1}}}},"CreateTerminalActionRequest":{"type":"object","x-release-status":"BETA","required":["idempotency_key","action"],"properties":{"idempotency_key":{"type":"string","description":"A unique string that identifies this `CreateAction` request. Keys can be any valid string\nbut must be unique for every `CreateAction` request.\n\nSee [Idempotency keys](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency) for more\ninformation.","minLength":1,"maxLength":64},"action":{"$ref":"#/components/schemas/TerminalAction","description":"The Action to create."}},"example":{"action":{"deadline_duration":"PT5M","device_id":"{{DEVICE_ID}}","save_card_options":{"customer_id":"{{CUSTOMER_ID}}","reference_id":"user-id-1"},"type":"SAVE_CARD"},"idempotency_key":"thahn-70e75c10-47f7-4ab6-88cc-aaa4076d065e"}},"CreateTerminalActionResponse":{"type":"object","x-release-status":"BETA","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information on errors encountered during the request."},"action":{"$ref":"#/components/schemas/TerminalAction","description":"The created `TerminalAction`"}},"example":{"action":{"app_id":"APP_ID","created_at":"2021-07-28T23:22:07.476Z","deadline_duration":"PT5M","device_id":"DEVICE_ID","id":"termapia:jveJIAkkAjILHkdCE","location_id":"LOCATION_ID","save_card_options":{"customer_id":"CUSTOMER_ID","reference_id":"user-id-1"},"status":"PENDING","type":"SAVE_CARD","updated_at":"2021-07-28T23:22:07.476Z"}}},"CreateTerminalCheckoutRequest":{"type":"object","x-release-status":"PUBLIC","required":["idempotency_key","checkout"],"properties":{"idempotency_key":{"type":"string","description":"A unique string that identifies this `CreateCheckout` request. Keys can be any valid string but\nmust be unique for every `CreateCheckout` request.\n\nSee [Idempotency keys](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency) for more information.","minLength":1,"maxLength":64},"checkout":{"$ref":"#/components/schemas/TerminalCheckout","description":"The checkout to create."}},"example":{"checkout":{"amount_money":{"amount":2610,"currency":"USD"},"device_options":{"device_id":"dbb5d83a-7838-11ea-bc55-0242ac130003"},"note":"A brief note","reference_id":"id11572"},"idempotency_key":"28a0c3bc-7839-11ea-bc55-0242ac130003"}},"CreateTerminalCheckoutResponse":{"type":"object","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information about errors encountered during the request."},"checkout":{"$ref":"#/components/schemas/TerminalCheckout","description":"The created `TerminalCheckout`."}},"example":{"checkout":{"amount_money":{"amount":2610,"currency":"USD"},"app_id":"APP_ID","created_at":"2020-04-06T16:39:32.545Z","deadline_duration":"PT5M","device_options":{"device_id":"dbb5d83a-7838-11ea-bc55-0242ac130003","skip_receipt_screen":false,"tip_settings":{"allow_tipping":false}},"id":"08YceKh7B3ZqO","location_id":"LOCATION_ID","note":"A brief note","payment_type":"CARD_PRESENT","reference_id":"id11572","status":"PENDING","updated_at":"2020-04-06T16:39:32.545Z"}}},"CreateTerminalRefundRequest":{"type":"object","x-release-status":"PUBLIC","required":["idempotency_key"],"properties":{"idempotency_key":{"type":"string","description":"A unique string that identifies this `CreateRefund` request. Keys can be any valid string but\nmust be unique for every `CreateRefund` request.\n\nSee [Idempotency keys](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency) for more information.","minLength":1,"maxLength":64},"refund":{"$ref":"#/components/schemas/TerminalRefund","description":"The refund to create."}},"example":{"idempotency_key":"402a640b-b26f-401f-b406-46f839590c04","refund":{"amount_money":{"amount":111,"currency":"CAD"},"device_id":"f72dfb8e-4d65-4e56-aade-ec3fb8d33291","payment_id":"5O5OvgkcNUhl7JBuINflcjKqUzXZY","reason":"Returning items"}}},"CreateTerminalRefundResponse":{"type":"object","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information about errors encountered during the request."},"refund":{"$ref":"#/components/schemas/TerminalRefund","description":"The created `TerminalRefund`."}},"example":{"refund":{"amount_money":{"amount":111,"currency":"CAD"},"app_id":"sandbox-sq0idb-c2OuYt13YaCAeJq_2cd8OQ","card":{"bin":"411111","card_brand":"INTERAC","card_type":"CREDIT","exp_month":1,"exp_year":2022,"fingerprint":"sq-1-B1fP9MNNmZgVVaPKRND6oDKYbz25S2cTvg9Mzwg3RMTK1zT1PiGRT-AE3nTA8vSmmw","last_4":"1111"},"created_at":"2020-09-29T15:21:46.771Z","deadline_duration":"PT5M","device_id":"f72dfb8e-4d65-4e56-aade-ec3fb8d33291","id":"009DP5HD-5O5OvgkcNUhl7JBuINflcjKqUzXZY","location_id":"76C9W6K8CNNQ5","order_id":"kcuKDKreRaI4gF4TjmEgZjHk8Z7YY","payment_id":"5O5OvgkcNUhl7JBuINflcjKqUzXZY","reason":"Returning items","status":"PENDING","updated_at":"2020-09-29T15:21:46.771Z"}}},"CreateTimecardRequest":{"type":"object","description":"Represents a request to create a `Timecard`.","x-release-status":"PUBLIC","required":["timecard"],"properties":{"idempotency_key":{"type":"string","description":"A unique string value to ensure the idempotency of the operation.","maxLength":128},"timecard":{"$ref":"#/components/schemas/Timecard","description":"The `Timecard` to be created."}},"example":{"idempotency_key":"HIDSNG5KS478L","timecard":{"breaks":[{"break_type_id":"REGS1EQR1TPZ5","end_at":"2019-01-25T06:16:00-05:00","expected_duration":"PT5M","is_paid":true,"name":"Tea Break","start_at":"2019-01-25T06:11:00-05:00"}],"declared_cash_tip_money":{"amount":500,"currency":"USD"},"end_at":"2019-01-25T13:11:00-05:00","location_id":"PAA1RJZZKXBFG","start_at":"2019-01-25T03:11:00-05:00","team_member_id":"ormj0jJJZ5OZIzxrZYJI","wage":{"hourly_rate":{"amount":1100,"currency":"USD"},"tip_eligible":true,"title":"Barista"}}}},"CreateTimecardResponse":{"type":"object","description":"The response to a request to create a `Timecard`. The response contains\nthe created `Timecard` object and might contain a set of `Error` objects if\nthe request resulted in errors.","x-release-status":"PUBLIC","properties":{"timecard":{"$ref":"#/components/schemas/Timecard","description":"The `Timecard` that was created on the request."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{"timecard":{"breaks":[{"break_type_id":"REGS1EQR1TPZ5","end_at":"2019-01-25T06:16:00-05:00","expected_duration":"PT5M","id":"X7GAQYVVRRG6P","is_paid":true,"name":"Tea Break","start_at":"2019-01-25T06:11:00-05:00"}],"created_at":"2019-02-28T00:39:02Z","declared_cash_tip_money":{"amount":500,"currency":"USD"},"end_at":"2019-01-25T13:11:00-05:00","id":"K0YH4CV5462JB","location_id":"PAA1RJZZKXBFG","start_at":"2019-01-25T03:11:00-05:00","status":"CLOSED","team_member_id":"ormj0jJJZ5OZIzxrZYJI","timezone":"America/New_York","updated_at":"2019-02-28T00:39:02Z","version":1,"wage":{"hourly_rate":{"amount":1100,"currency":"USD"},"job_id":"FzbJAtt9qEWncK1BWgVCxQ6M","tip_eligible":true,"title":"Barista"}}}},"CreateTransferOrderData":{"type":"object","description":"Data for creating a new transfer order to move [CatalogItemVariation](entity:CatalogItemVariation)s\nbetween [Location](entity:Location)s. Used with the [CreateTransferOrder](api-endpoint:TransferOrders-CreateTransferOrder)\nendpoint.","x-release-status":"BETA","required":["source_location_id","destination_location_id"],"properties":{"source_location_id":{"type":"string","description":"The source [Location](entity:Location) that will send the items. Must be an active location\nin your Square account with sufficient inventory of the requested items.","minLength":1,"maxLength":64},"destination_location_id":{"type":"string","description":"The destination [Location](entity:Location) that will receive the items. Must be an active location\nin your Square account","minLength":1,"maxLength":64},"expected_at":{"type":"string","description":"Expected transfer date in RFC 3339 format (e.g. \"2023-10-01T12:00:00Z\").","nullable":true},"notes":{"type":"string","description":"Optional notes about the transfer","maxLength":4096,"nullable":true},"tracking_number":{"type":"string","description":"Optional shipment tracking number","maxLength":64,"nullable":true},"created_by_team_member_id":{"type":"string","description":"ID of the [TeamMember](entity:TeamMember) creating this transfer order. Used for tracking\nand auditing purposes.","maxLength":64,"nullable":true},"line_items":{"type":"array","items":{"$ref":"#/components/schemas/CreateTransferOrderLineData"},"description":"List of [CatalogItemVariation](entity:CatalogItemVariation)s to transfer, including quantities","nullable":true}}},"CreateTransferOrderLineData":{"type":"object","description":"Data for creating a new transfer order line item. Each line item specifies a \n[CatalogItemVariation](entity:CatalogItemVariation) and quantity to transfer.","x-release-status":"BETA","required":["item_variation_id","quantity_ordered"],"properties":{"item_variation_id":{"type":"string","description":"ID of the [CatalogItemVariation](entity:CatalogItemVariation) to transfer. Must reference a valid\nitem variation in the [Catalog](api:Catalog). The item variation must be:\n- Active and available for sale\n- Enabled for inventory tracking\n- Available at the source location","minLength":1,"maxLength":64},"quantity_ordered":{"type":"string","description":"Total quantity ordered","minLength":1,"maxLength":16,"pattern":"^(0|[1-9]\\d*)(\\.\\d{1,4})?$"}}},"CreateTransferOrderRequest":{"type":"object","description":"Request to create a new transfer order.","x-release-status":"BETA","required":["idempotency_key","transfer_order"],"properties":{"idempotency_key":{"type":"string","description":"A unique string that identifies this CreateTransferOrder request. Keys can be\nany valid string but must be unique for every CreateTransferOrder request.","minLength":1},"transfer_order":{"$ref":"#/components/schemas/CreateTransferOrderData","description":"The transfer order to create"}},"example":{"idempotency_key":"65cc0586-3e82-384s-b524-3885cffd52","transfer_order":{"created_by_team_member_id":"EXAMPLE_TEAM_MEMBER_ID_789","destination_location_id":"EXAMPLE_DEST_LOCATION_ID_456","expected_at":"2025-11-09T05:00:00Z","line_items":[{"item_variation_id":"EXAMPLE_ITEM_VARIATION_ID_001","quantity_ordered":"5"},{"item_variation_id":"EXAMPLE_ITEM_VARIATION_ID_002","quantity_ordered":"3"}],"notes":"Example transfer order for inventory redistribution between locations","source_location_id":"EXAMPLE_SOURCE_LOCATION_ID_123","tracking_number":"TRACK123456789"}}},"CreateTransferOrderResponse":{"type":"object","description":"Response for creating a transfer order.","x-release-status":"BETA","properties":{"transfer_order":{"$ref":"#/components/schemas/TransferOrder","description":"The created transfer order"},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request"}},"example":{"transfer_order":{"created_at":"2025-01-15T10:30:00Z","created_by_team_member_id":"EXAMPLE_TEAM_MEMBER_ID_789","destination_location_id":"EXAMPLE_DEST_LOCATION_ID_456","expected_at":"2025-11-09T05:00:00Z","id":"EXAMPLE_TRANSFER_ORDER_ID_123","line_items":[{"item_variation_id":"EXAMPLE_ITEM_VARIATION_ID_001","quantity_canceled":"0","quantity_damaged":"0","quantity_ordered":"5","quantity_pending":"5","quantity_received":"0","uid":"1"},{"item_variation_id":"EXAMPLE_ITEM_VARIATION_ID_002","quantity_canceled":"0","quantity_damaged":"0","quantity_ordered":"3","quantity_pending":"3","quantity_received":"0","uid":"2"}],"notes":"Example transfer order for inventory redistribution between locations","source_location_id":"EXAMPLE_SOURCE_LOCATION_ID_123","status":"DRAFT","tracking_number":"TRACK123456789","updated_at":"2025-01-15T10:30:00Z","version":1753109537351}}},"CreateVendorRequest":{"type":"object","description":"Represents an input to a call to [CreateVendor](api-endpoint:Vendors-CreateVendor).","x-release-status":"BETA","required":["idempotency_key"],"properties":{"idempotency_key":{"type":"string","description":"A client-supplied, universally unique identifier (UUID) to make this [CreateVendor](api-endpoint:Vendors-CreateVendor) call idempotent.\n\nSee [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency) in the\n[API Development 101](https://developer.squareup.com/docs/buildbasics) section for more\ninformation.","minLength":1,"maxLength":128},"vendor":{"$ref":"#/components/schemas/Vendor","description":"The requested [Vendor](entity:Vendor) to be created."}},"example":{"idempotency_key":"8fc6a5b0-9fe8-4b46-b46b-2ef95793abbe","vendor":{"account_number":"4025391","address":{"address_line_1":"505 Electric Ave","address_line_2":"Suite 600","administrative_district_level_1":"NY","country":"US","locality":"New York","postal_code":"10003"},"contacts":[{"email_address":"[email protected]","name":"Joe Burrow","phone_number":"1-212-555-4250"}],"name":"Joe's Fresh Seafood","note":"a vendor"}}},"CreateVendorResponse":{"type":"object","description":"Represents an output from a call to [CreateVendor](api-endpoint:Vendors-CreateVendor).","x-release-status":"BETA","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Errors encountered when the request fails."},"vendor":{"$ref":"#/components/schemas/Vendor","description":"The successfully created [Vendor](entity:Vendor) object."}},"example":{"vendor":{"account_number":"4025391","address":{"address_line_1":"505 Electric Ave","address_line_2":"Suite 600","administrative_district_level_1":"NY","country":"US","locality":"New York","postal_code":"10003"},"contacts":[{"email_address":"[email protected]","id":"INV_VC_FMCYHBWT1TPL8MFH52PBMEN92A","name":"Joe Burrow","phone_number":"1-212-555-4250"}],"created_at":"2022-03-16T10:21:54.859Z","id":"INV_V_JDKYHBWT1D4F8MFH63DBMEN8Y4","name":"Joe's Fresh Seafood","note":"a vendor","status":"ACTIVE","updated_at":"2022-03-16T10:21:54.859Z","version":1}}},"CreateWebhookSubscriptionRequest":{"type":"object","description":"Creates a [Subscription](entity:WebhookSubscription).","x-release-status":"PUBLIC","required":["subscription"],"properties":{"idempotency_key":{"type":"string","description":"A unique string that identifies the [CreateWebhookSubscription](api-endpoint:WebhookSubscriptions-CreateWebhookSubscription) request.","maxLength":45},"subscription":{"$ref":"#/components/schemas/WebhookSubscription","description":"The [Subscription](entity:WebhookSubscription) to create."}},"example":{"idempotency_key":"63f84c6c-2200-4c99-846c-2670a1311fbf","subscription":{"api_version":"2021-12-15","event_types":["payment.created","payment.updated"],"name":"Example Webhook Subscription","notification_url":"https://example-webhook-url.com"}}},"CreateWebhookSubscriptionResponse":{"type":"object","description":"Defines the fields that are included in the response body of\na request to the [CreateWebhookSubscription](api-endpoint:WebhookSubscriptions-CreateWebhookSubscription) endpoint.\n\nNote: if there are errors processing the request, the [Subscription](entity:WebhookSubscription) will not be\npresent.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information on errors encountered during the request."},"subscription":{"$ref":"#/components/schemas/WebhookSubscription","description":"The new [Subscription](entity:WebhookSubscription)."}},"example":{"subscription":{"api_version":"2021-12-15","created_at":"2022-01-10 23:29:48 +0000 UTC","enabled":true,"event_types":["payment.created","payment.updated"],"id":"wbhk_b35f6b3145074cf9ad513610786c19d5","name":"Example Webhook Subscription","notification_url":"https://example-webhook-url.com","signature_key":"1k9bIJKCeTmSQwyagtNRLg","updated_at":"2022-01-10 23:29:48 +0000 UTC"}}},"Currency":{"type":"string","enum":["UNKNOWN_CURRENCY","AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYR","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LTL","LVL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SLE","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","USS","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XTS","XXX","YER","ZAR","ZMK","ZMW","BTC","XUS"],"x-enum-elements":[{"name":"UNKNOWN_CURRENCY","description":"Unknown currency"},{"name":"AED","description":"United Arab Emirates dirham"},{"name":"AFN","description":"Afghan afghani"},{"name":"ALL","description":"Albanian lek"},{"name":"AMD","description":"Armenian dram"},{"name":"ANG","description":"Netherlands Antillean guilder"},{"name":"AOA","description":"Angolan kwanza"},{"name":"ARS","description":"Argentine peso"},{"name":"AUD","description":"Australian dollar"},{"name":"AWG","description":"Aruban florin"},{"name":"AZN","description":"Azerbaijani manat"},{"name":"BAM","description":"Bosnia and Herzegovina convertible mark"},{"name":"BBD","description":"Barbados dollar"},{"name":"BDT","description":"Bangladeshi taka"},{"name":"BGN","description":"Bulgarian lev"},{"name":"BHD","description":"Bahraini dinar"},{"name":"BIF","description":"Burundian franc"},{"name":"BMD","description":"Bermudian dollar"},{"name":"BND","description":"Brunei dollar"},{"name":"BOB","description":"Boliviano"},{"name":"BOV","description":"Bolivian Mvdol"},{"name":"BRL","description":"Brazilian real"},{"name":"BSD","description":"Bahamian dollar"},{"name":"BTN","description":"Bhutanese ngultrum"},{"name":"BWP","description":"Botswana pula"},{"name":"BYR","description":"Belarusian ruble"},{"name":"BZD","description":"Belize dollar"},{"name":"CAD","description":"Canadian dollar"},{"name":"CDF","description":"Congolese franc"},{"name":"CHE","description":"WIR Euro"},{"name":"CHF","description":"Swiss franc"},{"name":"CHW","description":"WIR Franc"},{"name":"CLF","description":"Unidad de Fomento"},{"name":"CLP","description":"Chilean peso"},{"name":"CNY","description":"Chinese yuan"},{"name":"COP","description":"Colombian peso"},{"name":"COU","description":"Unidad de Valor Real"},{"name":"CRC","description":"Costa Rican colon"},{"name":"CUC","description":"Cuban convertible peso"},{"name":"CUP","description":"Cuban peso"},{"name":"CVE","description":"Cape Verdean escudo"},{"name":"CZK","description":"Czech koruna"},{"name":"DJF","description":"Djiboutian franc"},{"name":"DKK","description":"Danish krone"},{"name":"DOP","description":"Dominican peso"},{"name":"DZD","description":"Algerian dinar"},{"name":"EGP","description":"Egyptian pound"},{"name":"ERN","description":"Eritrean nakfa"},{"name":"ETB","description":"Ethiopian birr"},{"name":"EUR","description":"Euro"},{"name":"FJD","description":"Fiji dollar"},{"name":"FKP","description":"Falkland Islands pound"},{"name":"GBP","description":"Pound sterling"},{"name":"GEL","description":"Georgian lari"},{"name":"GHS","description":"Ghanaian cedi"},{"name":"GIP","description":"Gibraltar pound"},{"name":"GMD","description":"Gambian dalasi"},{"name":"GNF","description":"Guinean franc"},{"name":"GTQ","description":"Guatemalan quetzal"},{"name":"GYD","description":"Guyanese dollar"},{"name":"HKD","description":"Hong Kong dollar"},{"name":"HNL","description":"Honduran lempira"},{"name":"HRK","description":"Croatian kuna"},{"name":"HTG","description":"Haitian gourde"},{"name":"HUF","description":"Hungarian forint"},{"name":"IDR","description":"Indonesian rupiah"},{"name":"ILS","description":"Israeli new shekel"},{"name":"INR","description":"Indian rupee"},{"name":"IQD","description":"Iraqi dinar"},{"name":"IRR","description":"Iranian rial"},{"name":"ISK","description":"Icelandic króna"},{"name":"JMD","description":"Jamaican dollar"},{"name":"JOD","description":"Jordanian dinar"},{"name":"JPY","description":"Japanese yen"},{"name":"KES","description":"Kenyan shilling"},{"name":"KGS","description":"Kyrgyzstani som"},{"name":"KHR","description":"Cambodian riel"},{"name":"KMF","description":"Comoro franc"},{"name":"KPW","description":"North Korean won"},{"name":"KRW","description":"South Korean won"},{"name":"KWD","description":"Kuwaiti dinar"},{"name":"KYD","description":"Cayman Islands dollar"},{"name":"KZT","description":"Kazakhstani tenge"},{"name":"LAK","description":"Lao kip"},{"name":"LBP","description":"Lebanese pound"},{"name":"LKR","description":"Sri Lankan rupee"},{"name":"LRD","description":"Liberian dollar"},{"name":"LSL","description":"Lesotho loti"},{"name":"LTL","description":"Lithuanian litas"},{"name":"LVL","description":"Latvian lats"},{"name":"LYD","description":"Libyan dinar"},{"name":"MAD","description":"Moroccan dirham"},{"name":"MDL","description":"Moldovan leu"},{"name":"MGA","description":"Malagasy ariary"},{"name":"MKD","description":"Macedonian denar"},{"name":"MMK","description":"Myanmar kyat"},{"name":"MNT","description":"Mongolian tögrög"},{"name":"MOP","description":"Macanese pataca"},{"name":"MRO","description":"Mauritanian ouguiya"},{"name":"MUR","description":"Mauritian rupee"},{"name":"MVR","description":"Maldivian rufiyaa"},{"name":"MWK","description":"Malawian kwacha"},{"name":"MXN","description":"Mexican peso"},{"name":"MXV","description":"Mexican Unidad de Inversion"},{"name":"MYR","description":"Malaysian ringgit"},{"name":"MZN","description":"Mozambican metical"},{"name":"NAD","description":"Namibian dollar"},{"name":"NGN","description":"Nigerian naira"},{"name":"NIO","description":"Nicaraguan córdoba"},{"name":"NOK","description":"Norwegian krone"},{"name":"NPR","description":"Nepalese rupee"},{"name":"NZD","description":"New Zealand dollar"},{"name":"OMR","description":"Omani rial"},{"name":"PAB","description":"Panamanian balboa"},{"name":"PEN","description":"Peruvian sol"},{"name":"PGK","description":"Papua New Guinean kina"},{"name":"PHP","description":"Philippine peso"},{"name":"PKR","description":"Pakistani rupee"},{"name":"PLN","description":"Polish złoty"},{"name":"PYG","description":"Paraguayan guaraní"},{"name":"QAR","description":"Qatari riyal"},{"name":"RON","description":"Romanian leu"},{"name":"RSD","description":"Serbian dinar"},{"name":"RUB","description":"Russian ruble"},{"name":"RWF","description":"Rwandan franc"},{"name":"SAR","description":"Saudi riyal"},{"name":"SBD","description":"Solomon Islands dollar"},{"name":"SCR","description":"Seychelles rupee"},{"name":"SDG","description":"Sudanese pound"},{"name":"SEK","description":"Swedish krona"},{"name":"SGD","description":"Singapore dollar"},{"name":"SHP","description":"Saint Helena pound"},{"name":"SLL","description":"Sierra Leonean first leone"},{"name":"SLE","description":"Sierra Leonean second leone"},{"name":"SOS","description":"Somali shilling"},{"name":"SRD","description":"Surinamese dollar"},{"name":"SSP","description":"South Sudanese pound"},{"name":"STD","description":"São Tomé and Príncipe dobra"},{"name":"SVC","description":"Salvadoran colón"},{"name":"SYP","description":"Syrian pound"},{"name":"SZL","description":"Swazi lilangeni"},{"name":"THB","description":"Thai baht"},{"name":"TJS","description":"Tajikstani somoni"},{"name":"TMT","description":"Turkmenistan manat"},{"name":"TND","description":"Tunisian dinar"},{"name":"TOP","description":"Tongan pa'anga"},{"name":"TRY","description":"Turkish lira"},{"name":"TTD","description":"Trinidad and Tobago dollar"},{"name":"TWD","description":"New Taiwan dollar"},{"name":"TZS","description":"Tanzanian shilling"},{"name":"UAH","description":"Ukrainian hryvnia"},{"name":"UGX","description":"Ugandan shilling"},{"name":"USD","description":"United States dollar"},{"name":"USN","description":"United States dollar (next day)"},{"name":"USS","description":"United States dollar (same day)"},{"name":"UYI","description":"Uruguay Peso en Unidedades Indexadas"},{"name":"UYU","description":"Uruguyan peso"},{"name":"UZS","description":"Uzbekistan som"},{"name":"VEF","description":"Venezuelan bolívar soberano"},{"name":"VND","description":"Vietnamese đồng"},{"name":"VUV","description":"Vanuatu vatu"},{"name":"WST","description":"Samoan tala"},{"name":"XAF","description":"CFA franc BEAC"},{"name":"XAG","description":"Silver"},{"name":"XAU","description":"Gold"},{"name":"XBA","description":"European Composite Unit"},{"name":"XBB","description":"European Monetary Unit"},{"name":"XBC","description":"European Unit of Account 9"},{"name":"XBD","description":"European Unit of Account 17"},{"name":"XCD","description":"East Caribbean dollar"},{"name":"XDR","description":"Special drawing rights (International Monetary Fund)"},{"name":"XOF","description":"CFA franc BCEAO"},{"name":"XPD","description":"Palladium"},{"name":"XPF","description":"CFP franc"},{"name":"XPT","description":"Platinum"},{"name":"XTS","description":"Code reserved for testing"},{"name":"XXX","description":"No currency"},{"name":"YER","description":"Yemeni rial"},{"name":"ZAR","description":"South African rand"},{"name":"ZMK","description":"Zambian kwacha"},{"name":"ZMW","description":"Zambian kwacha"},{"name":"BTC","description":"Bitcoin"},{"name":"XUS","description":"USD Coin"}],"description":"Indicates the associated currency for an amount of money. Values correspond\nto [ISO 4217](https://wikipedia.org/wiki/ISO_4217).","x-release-status":"PUBLIC"},"CustomAttribute":{"type":"object","description":"A custom attribute value. Each custom attribute value has a corresponding\n`CustomAttributeDefinition` object.","x-release-status":"PUBLIC","properties":{"key":{"type":"string","description":"The identifier\nof the custom attribute definition and its corresponding custom attributes. This value\ncan be a simple key, which is the key that is provided when the custom attribute definition\nis created, or a qualified key, if the requesting\napplication is not the definition owner. The qualified key consists of the application ID\nof the custom attribute definition owner\nfollowed by the simple key that was provided when the definition was created. It has the\nformat application_id:simple key.\n\nThe value for a simple key can contain up to 60 alphanumeric characters, periods (.),\nunderscores (_), and hyphens (-).","minLength":1,"pattern":"^([a-zA-Z0-9\\._-]+:)?[a-zA-Z0-9\\._-]{1,60}$","nullable":true},"value":{"description":"The value assigned to the custom attribute. It is validated against the custom\nattribute definition's schema on write operations. For more information about custom\nattribute values,\nsee [Custom Attributes Overview](https://developer.squareup.com/docs/devtools/customattributes/overview).","nullable":true},"version":{"type":"integer","description":"Read only. The current version of the custom attribute. This field is incremented when the custom attribute is changed.\nWhen updating an existing custom attribute value, you can provide this field\nand specify the current version of the custom attribute to enable\n[optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency).\nThis field can also be used to enforce strong consistency for reads. For more information about strong consistency for reads,\nsee [Custom Attributes Overview](https://developer.squareup.com/docs/devtools/customattributes/overview)."},"visibility":{"$ref":"#/components/schemas/CustomAttributeDefinitionVisibility","description":"A copy of the `visibility` field value for the associated custom attribute definition.\nSee [CustomAttributeDefinitionVisibility](#type-customattributedefinitionvisibility) for possible values","readOnly":true},"definition":{"$ref":"#/components/schemas/CustomAttributeDefinition","description":"A copy of the associated custom attribute definition object. This field is only set when\nthe optional field is specified on the request.","readOnly":true},"updated_at":{"type":"string","description":"The timestamp that indicates when the custom attribute was created or was most recently\nupdated, in RFC 3339 format.","readOnly":true},"created_at":{"type":"string","description":"The timestamp that indicates when the custom attribute was created, in RFC 3339 format.","readOnly":true}}},"CustomAttributeDefinition":{"type":"object","description":"Represents a definition for custom attribute values. A custom attribute definition\nspecifies the key, visibility, schema, and other properties for a custom attribute.","x-release-status":"PUBLIC","properties":{"key":{"type":"string","description":"The identifier\nof the custom attribute definition and its corresponding custom attributes. This value\ncan be a simple key, which is the key that is provided when the custom attribute definition\nis created, or a qualified key, if the requesting\napplication is not the definition owner. The qualified key consists of the application ID\nof the custom attribute definition owner\nfollowed by the simple key that was provided when the definition was created. It has the\nformat application_id:simple key.\n\nThe value for a simple key can contain up to 60 alphanumeric characters, periods (.),\nunderscores (_), and hyphens (-).\n\nThis field can not be changed\nafter the custom attribute definition is created. This field is required when creating\na definition and must be unique per application, seller, and resource type.","minLength":1,"pattern":"^([a-zA-Z0-9\\._-]+:)?[a-zA-Z0-9\\._-]{1,60}$","nullable":true},"schema":{"type":"object","description":"The JSON schema for the custom attribute definition, which determines the data type of the corresponding custom attributes. For more information,\nsee [Custom Attributes Overview](https://developer.squareup.com/docs/devtools/customattributes/overview). This field is required when creating a definition.","nullable":true},"name":{"type":"string","description":"The name of the custom attribute definition for API and seller-facing UI purposes. The name must\nbe unique within the seller and application pair. This field is required if the\n`visibility` field is `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.","maxLength":255,"nullable":true},"description":{"type":"string","description":"Seller-oriented description of the custom attribute definition, including any constraints\nthat the seller should observe. May be displayed as a tooltip in Square UIs. This field is\nrequired if the `visibility` field is `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.","maxLength":255,"nullable":true},"visibility":{"$ref":"#/components/schemas/CustomAttributeDefinitionVisibility","description":"Specifies how the custom attribute definition and its values should be shared with\nthe seller and other applications. If no value is specified, the value defaults to `VISIBILITY_HIDDEN`.\nSee [Visibility](#type-visibility) for possible values","nullable":true},"version":{"type":"integer","description":"Read only. The current version of the custom attribute definition.\nThe value is incremented each time the custom attribute definition is updated.\nWhen updating a custom attribute definition, you can provide this field\nand specify the current version of the custom attribute definition to enable\n[optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency).\n\nOn writes, this field must be set to the latest version. Stale writes are rejected.\n\nThis field can also be used to enforce strong consistency for reads. For more information about strong consistency for reads,\nsee [Custom Attributes Overview](https://developer.squareup.com/docs/devtools/customattributes/overview)."},"updated_at":{"type":"string","description":"The timestamp that indicates when the custom attribute definition was created or most recently updated,\nin RFC 3339 format.","readOnly":true},"created_at":{"type":"string","description":"The timestamp that indicates when the custom attribute definition was created, in RFC 3339 format.","readOnly":true}}},"CustomAttributeDefinitionEventData":{"type":"object","description":"Represents an object in the CustomAttributeDefinition event notification\npayload that contains the affected custom attribute definition.","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"The type of the event data object. The value is `\"custom_attribute_definition\"`.","maxLength":50,"nullable":true},"id":{"type":"string","description":"The ID of the event data object.","maxLength":192},"object":{"$ref":"#/components/schemas/CustomAttributeDefinitionEventDataObject","description":"An object containing the custom attribute definition.","nullable":true}}},"CustomAttributeDefinitionEventDataObject":{"type":"object","x-release-status":"PUBLIC","properties":{"custom_attribute_definition":{"$ref":"#/components/schemas/CustomAttributeDefinition","description":"The custom attribute definition.","nullable":true}}},"CustomAttributeDefinitionVisibility":{"type":"string","enum":["VISIBILITY_HIDDEN","VISIBILITY_READ_ONLY","VISIBILITY_READ_WRITE_VALUES"],"x-enum-elements":[{"name":"VISIBILITY_HIDDEN","description":"The custom attribute definition and values are hidden from the seller (except on export\nof all seller data) and other developers."},{"name":"VISIBILITY_READ_ONLY","description":"The seller and other developers can read the custom attribute definition and values\non resources."},{"name":"VISIBILITY_READ_WRITE_VALUES","description":"The seller and other developers can read the custom attribute definition,\nand can read and write values on resources. A custom attribute definition\ncan only be edited or deleted by the application that created it."}],"description":"The level of permission that a seller or other applications requires to\nview this custom attribute definition.\nThe `Visibility` field controls who can read and write the custom attribute values\nand custom attribute definition.","x-release-status":"PUBLIC"},"CustomAttributeEventData":{"type":"object","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"The type of the event data object. The value is `\"custom_attribute\"`.","maxLength":50,"nullable":true},"id":{"type":"string","description":"The ID of the event data object.","maxLength":192},"object":{"$ref":"#/components/schemas/CustomAttributeEventDataObject","description":"An object containing the custom attribute.","nullable":true}}},"CustomAttributeEventDataObject":{"type":"object","x-release-status":"PUBLIC","properties":{"custom_attribute":{"$ref":"#/components/schemas/CustomAttribute","description":"The custom attribute.","nullable":true}}},"CustomAttributeFilter":{"type":"object","description":"Supported custom attribute query expressions for calling the\n[SearchCatalogItems](api-endpoint:Catalog-SearchCatalogItems)\nendpoint to search for items or item variations.","x-release-status":"PUBLIC","properties":{"custom_attribute_definition_id":{"type":"string","description":"A query expression to filter items or item variations by matching their custom attributes'\n`custom_attribute_definition_id` property value against the the specified id.\nExactly one of `custom_attribute_definition_id` or `key` must be specified.","nullable":true},"key":{"type":"string","description":"A query expression to filter items or item variations by matching their custom attributes'\n`key` property value against the specified key.\nExactly one of `custom_attribute_definition_id` or `key` must be specified.","nullable":true},"string_filter":{"type":"string","description":"A query expression to filter items or item variations by matching their custom attributes'\n`string_value` property value against the specified text.\nExactly one of `string_filter`, `number_filter`, `selection_uids_filter`, or `bool_filter` must be specified.","nullable":true},"number_filter":{"$ref":"#/components/schemas/Range","description":"A query expression to filter items or item variations with their custom attributes\ncontaining a number value within the specified range.\nExactly one of `string_filter`, `number_filter`, `selection_uids_filter`, or `bool_filter` must be specified.","nullable":true},"selection_uids_filter":{"type":"array","items":{"type":"string"},"description":"A query expression to filter items or item variations by matching their custom attributes'\n`selection_uid_values` values against the specified selection uids.\nExactly one of `string_filter`, `number_filter`, `selection_uids_filter`, or `bool_filter` must be specified.","nullable":true},"bool_filter":{"type":"boolean","description":"A query expression to filter items or item variations by matching their custom attributes'\n`boolean_value` property values against the specified Boolean expression.\nExactly one of `string_filter`, `number_filter`, `selection_uids_filter`, or `bool_filter` must be specified.","nullable":true}}},"CustomField":{"type":"object","description":"Describes a custom form field to add to the checkout page to collect more information from buyers during checkout.\nFor more information,\nsee [Specify checkout options](https://developer.squareup.com/docs/checkout-api/optional-checkout-configurations#specify-checkout-options-1).","x-release-status":"PUBLIC","required":["title"],"properties":{"title":{"type":"string","description":"The title of the custom field.","minLength":1,"maxLength":50}}},"Customer":{"type":"object","description":"Represents a Square customer profile in the Customer Directory of a Square seller.","x-release-status":"PUBLIC","properties":{"id":{"type":"string","description":"A unique Square-assigned ID for the customer profile.\n\nIf you need this ID for an API request, use the ID returned when you created the customer profile or call the [SearchCustomers](api-endpoint:Customers-SearchCustomers) \nor [ListCustomers](api-endpoint:Customers-ListCustomers) endpoint."},"created_at":{"type":"string","description":"The timestamp when the customer profile was created, in RFC 3339 format.","readOnly":true},"updated_at":{"type":"string","description":"The timestamp when the customer profile was last updated, in RFC 3339 format.","readOnly":true},"given_name":{"type":"string","description":"The given name (that is, the first name) associated with the customer profile.","nullable":true},"family_name":{"type":"string","description":"The family name (that is, the last name) associated with the customer profile.","nullable":true},"nickname":{"type":"string","description":"A nickname for the customer profile.","nullable":true},"company_name":{"type":"string","description":"A business name associated with the customer profile.","nullable":true},"email_address":{"type":"string","description":"The email address associated with the customer profile.","nullable":true},"address":{"$ref":"#/components/schemas/Address","description":"The physical address associated with the customer profile.","nullable":true},"phone_number":{"type":"string","description":"The phone number associated with the customer profile.","nullable":true},"birthday":{"type":"string","description":"The birthday associated with the customer profile, in `YYYY-MM-DD` format. For example, `1998-09-21`\nrepresents September 21, 1998, and `0000-09-21` represents September 21 (without a birth year).","nullable":true},"reference_id":{"type":"string","description":"An optional second ID used to associate the customer profile with an\nentity in another system.","nullable":true},"note":{"type":"string","description":"A custom note associated with the customer profile.","nullable":true},"preferences":{"$ref":"#/components/schemas/CustomerPreferences","description":"Represents general customer preferences.","nullable":true},"creation_source":{"$ref":"#/components/schemas/CustomerCreationSource","description":"The method used to create the customer profile.\nSee [CustomerCreationSource](#type-customercreationsource) for possible values","nullable":true},"group_ids":{"type":"array","items":{"type":"string"},"description":"The IDs of [customer groups](entity:CustomerGroup) the customer belongs to.","nullable":true},"segment_ids":{"type":"array","items":{"type":"string"},"description":"The IDs of [customer segments](entity:CustomerSegment) the customer belongs to.","nullable":true},"version":{"type":"integer","description":"The Square-assigned version number of the customer profile. The version number is incremented each time an update is committed to the customer profile, except for changes to customer segment membership.","format":"int64"},"tax_ids":{"$ref":"#/components/schemas/CustomerTaxIds","description":"The tax ID associated with the customer profile. This field is present only for customers of sellers in EU countries or the United Kingdom. \nFor more information, see [Customer tax IDs](https://developer.squareup.com/docs/customers-api/what-it-does#customer-tax-ids).","nullable":true}}},"CustomerAddressFilter":{"type":"object","description":"The customer address filter. This filter is used in a [CustomerCustomAttributeFilterValue](entity:CustomerCustomAttributeFilterValue) filter when\nsearching by an `Address`-type custom attribute.","x-release-status":"PUBLIC","properties":{"postal_code":{"$ref":"#/components/schemas/CustomerTextFilter","description":"The postal code to search for. Only an `exact` match is supported.","nullable":true},"country":{"$ref":"#/components/schemas/Country","description":"The country code to search for.\nSee [Country](#type-country) for possible values","nullable":true}}},"CustomerCreatedEvent":{"type":"object","description":"Published when a [customer](entity:Customer) is created. Subscribe to this event to track customer profiles affected by a merge operation.\nFor more information, see [Use Customer Webhooks](https://developer.squareup.com/docs/customers-api/use-the-api/customer-webhooks).\n\nThe `customer` object in the event notification does not include the `segment_ids` field.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the seller associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event. For this object, the value is `customer.created`.","nullable":true},"event_id":{"type":"string","description":"The unique ID of the event, which is used for [idempotency support](https://developer.squareup.com/docs/webhooks/step4manage#webhooks-best-practices).","nullable":true},"created_at":{"type":"string","description":"The timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CustomerCreatedEventData","description":"The data associated with the event.","nullable":true}},"example":{"created_at":"2022-11-09T21:23:25Z","data":{"id":"QPTXM8PQNX3Q726ZYHPMNP46XC","object":{"customer":{"address":{"address_line_1":"1018 40th Street","administrative_district_level_1":"CA","locality":"Oakland","postal_code":"94608"},"birthday":"1962-03-04","created_at":"2022-11-09T21:23:25.519Z","creation_source":"DIRECTORY","email_address":"[email protected]","family_name":"Smorly","given_name":"Jenkins","group_ids":["JGJCW9S0G68NE.APPOINTMENTS"],"id":"QPTXM8PQNX3Q726ZYHPMNP46XC","phone_number":"+12126668929","preferences":{"email_unsubscribed":false},"updated_at":"2022-11-09T21:23:25Z","version":0}},"type":"customer"},"event_id":"e12b5591-e0b6-4967-810a-307c7efcb1a7","merchant_id":"G7MMEBVW021Q4","type":"customer.created"},"x-webhook":{"event":"customer.created","scopes":["CUSTOMERS_READ"]},"x-api":"#/components/x-apis/Customers","x-since":"2021-02-26"},"CustomerCreatedEventData":{"type":"object","description":"The data associated with the event.","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"The type of object affected by the event. For this event, the value is `customer`.","maxLength":50,"nullable":true},"id":{"type":"string","description":"The ID of the new customer.","maxLength":192},"object":{"$ref":"#/components/schemas/CustomerCreatedEventObject","description":"An object that contains the new customer.","nullable":true}}},"CustomerCreatedEventEventContext":{"type":"object","description":"Information about the change that triggered the event.","x-release-status":"PUBLIC","properties":{"merge":{"$ref":"#/components/schemas/CustomerCreatedEventEventContextMerge","description":"Information about the merge operation associated with the event.","nullable":true}}},"CustomerCreatedEventEventContextMerge":{"type":"object","description":"Information about a merge operation, which creates a new customer using aggregated properties from two or more existing customers.","x-release-status":"PUBLIC","properties":{"from_customer_ids":{"type":"array","items":{"type":"string"},"description":"The IDs of the existing customers that were merged and then deleted.","nullable":true},"to_customer_id":{"type":"string","description":"The ID of the new customer created by the merge.","nullable":true}}},"CustomerCreatedEventObject":{"type":"object","description":"An object that contains the customer associated with the event.","x-release-status":"PUBLIC","properties":{"customer":{"$ref":"#/components/schemas/Customer","description":"The new customer.","nullable":true},"event_context":{"$ref":"#/components/schemas/CustomerCreatedEventEventContext","description":"Information about the change that triggered the event. This field is returned only if the customer is created by a merge operation.","nullable":true}}},"CustomerCreationSource":{"type":"string","enum":["OTHER","APPOINTMENTS","COUPON","DELETION_RECOVERY","DIRECTORY","EGIFTING","EMAIL_COLLECTION","FEEDBACK","IMPORT","INVOICES","LOYALTY","MARKETING","MERGE","ONLINE_STORE","INSTANT_PROFILE","TERMINAL","THIRD_PARTY","THIRD_PARTY_IMPORT","UNMERGE_RECOVERY"],"x-enum-elements":[{"name":"OTHER","description":"The default creation source. This source is typically used for backward/future\ncompatibility when the original source of a customer profile is\nunrecognized. For example, when older clients do not support newer\nsource types."},{"name":"APPOINTMENTS","description":"The customer profile was created automatically when an appointment\nwas scheduled."},{"name":"COUPON","description":"The customer profile was created automatically when a coupon was issued\nusing Square Point of Sale."},{"name":"DELETION_RECOVERY","description":"The customer profile was restored through Square's deletion recovery\nprocess."},{"name":"DIRECTORY","description":"The customer profile was created manually through Square Seller Dashboard or the \nPoint of Sale application."},{"name":"EGIFTING","description":"The customer profile was created automatically when a gift card was\nissued using Square Point of Sale. Customer profiles are created for\nboth the buyer and the recipient of the gift card."},{"name":"EMAIL_COLLECTION","description":"The customer profile was created through Square Point of Sale when\nsigning up for marketing emails during checkout."},{"name":"FEEDBACK","description":"The customer profile was created automatically when providing feedback\nthrough a digital receipt."},{"name":"IMPORT","description":"The customer profile was created automatically when importing customer\ndata through Square Seller Dashboard."},{"name":"INVOICES","description":"The customer profile was created automatically during an invoice payment."},{"name":"LOYALTY","description":"The customer profile was created automatically when customers provide a\nphone number for loyalty reward programs during checkout."},{"name":"MARKETING","description":"The customer profile was created as the result of a campaign managed\nthrough Square’s Facebook integration."},{"name":"MERGE","description":"The customer profile was created as the result of explicitly merging\nmultiple customer profiles through the Square Seller Dashboard or the Point of\nSale application."},{"name":"ONLINE_STORE","description":"The customer profile was created through Square's Online Store solution\n(legacy service)."},{"name":"INSTANT_PROFILE","description":"The customer profile was created automatically as the result of a successful\ntransaction that did not explicitly link to an existing customer profile."},{"name":"TERMINAL","description":"The customer profile was created through Square's Virtual Terminal."},{"name":"THIRD_PARTY","description":"The customer profile was created through a Square API call."},{"name":"THIRD_PARTY_IMPORT","description":"The customer profile was created by a third-party product and imported\nthrough an official integration."},{"name":"UNMERGE_RECOVERY","description":"The customer profile was restored through Square's unmerge recovery\nprocess."}],"description":"Indicates the method used to create the customer profile.","x-release-status":"PUBLIC"},"CustomerCreationSourceFilter":{"type":"object","description":"The creation source filter.\n\nIf one or more creation sources are set, customer profiles are included in,\nor excluded from, the result if they match at least one of the filter criteria.","x-release-status":"PUBLIC","properties":{"values":{"type":"array","items":{"$ref":"#/components/schemas/CustomerCreationSource"},"description":"The list of creation sources used as filtering criteria.\nSee [CustomerCreationSource](#type-customercreationsource) for possible values","nullable":true},"rule":{"$ref":"#/components/schemas/CustomerInclusionExclusion","description":"Indicates whether a customer profile matching the filter criteria\nshould be included in the result or excluded from the result.\n\nDefault: `INCLUDE`.\nSee [CustomerInclusionExclusion](#type-customerinclusionexclusion) for possible values","nullable":true}}},"CustomerCustomAttributeDefinitionCreatedEvent":{"type":"object","description":"Published when a customer [custom attribute definition](entity:CustomAttributeDefinition) \nis created by the subscribing application.\n\nThis event is replaced by \n[customer.custom_attribute_definition.owned.created](webhook:customer.custom_attribute_definition.owned.created).","x-release-status":"DEPRECATED","properties":{"merchant_id":{"type":"string","description":"The ID of the seller associated with the event that triggered the event notification.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"customer.custom_attribute_definition.created\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event notification.","nullable":true},"created_at":{"type":"string","description":"The timestamp that indicates when the event notification was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CustomAttributeDefinitionEventData","description":"The data associated with the event that triggered the event notification.","nullable":true}},"example":{"created_at":"2022-04-21T21:40:49.943Z","data":{"id":"sq0idp-LJ1Kr4Iim0hGDvAwrv8HIB:favorite-drink","object":{"created_at":"2022-04-21T21:40:49Z","description":"The customer's favorite drink","key":"sq0idp-LJ1Kr4Iim0hGDvAwrv8HIB:favorite-drink","name":"Favorite Drink","schema":{"$ref":"https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String"},"updated_at":"2022-04-21T21:40:49Z","version":1,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"type":"custom_attribute_definition"},"event_id":"347ab320-c0ba-48f5-959a-4e147b9aefcf","merchant_id":"DM7VKY8Q63GNP","type":"customer.custom_attribute_definition.created"},"x-webhook":{"event":"customer.custom_attribute_definition.created","scopes":["CUSTOMERS_READ"]},"x-api":"#/components/x-apis/CustomerCustomAttributes","x-since":"2022-05-12"},"CustomerCustomAttributeDefinitionCreatedPublicEvent":{"type":"object","description":"Published when a customer [custom attribute definition](entity:CustomAttributeDefinition)\nthat is visible to all applications is created. A notification is sent when any application creates a custom\nattribute definition whose `visibility` is `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.\n\nThis event is replaced by \n[customer.custom_attribute_definition.visible.created](webhook:customer.custom_attribute_definition.visible.created),\nwhich applies to custom attribute definitions that are visible to the subscribing application.","x-release-status":"DEPRECATED","properties":{"merchant_id":{"type":"string","description":"The ID of the seller associated with the event that triggered the event notification.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"customer.custom_attribute_definition.public.created\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event notification.","nullable":true},"created_at":{"type":"string","description":"The timestamp that indicates when the event notification was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CustomAttributeDefinitionEventData","description":"The data associated with the event that triggered the event notification.","nullable":true}},"example":{"created_at":"2022-04-21T21:40:49.943Z","data":{"id":"sq0idp-BushoY39o1X-GPxRRUWc0A:shirt-size","object":{"created_at":"2022-04-21T21:40:49Z","description":"The customer's shirt size","key":"sq0idp-BushoY39o1X-GPxRRUWc0A:shirt-size","name":"Shirt Size","schema":{"items":{"enum":["9492bdda-ab4d-4eeb-8496-0986c8f78499","6b96fba7-d8a5-ae72-48f4-8c3ee875633f","4032c1a2-d749-4c75-9c30-be6472cd2e08"],"names":["Small","Medium","Large"]},"maxItems":1,"type":"array","uniqueItems":true},"updated_at":"2022-04-21T21:40:49Z","version":1,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"type":"custom_attribute_definition"},"event_id":"f679dc4f-3619-4764-a4de-94a54735cd32","merchant_id":"DM7VKY8Q63GNP","type":"customer.custom_attribute_definition.public.created"},"x-webhook":{"event":"customer.custom_attribute_definition.public.created","scopes":["CUSTOMERS_READ"]},"x-api":"#/components/x-apis/CustomerCustomAttributes","x-since":"2022-05-12"},"CustomerCustomAttributeDefinitionDeletedEvent":{"type":"object","description":"Published when a customer [custom attribute definition](entity:CustomAttributeDefinition)\ncreated by the subscribing application is deleted. A custom attribute definition can only be deleted by\nthe application that created it.\n\nThis event is replaced by \n[customer.custom_attribute_definition.owned.deleted](webhook:customer.custom_attribute_definition.owned.deleted).","x-release-status":"DEPRECATED","properties":{"merchant_id":{"type":"string","description":"The ID of the seller associated with the event that triggered the event notification.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"customer.custom_attribute_definition.deleted\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event notification.","nullable":true},"created_at":{"type":"string","description":"The timestamp that indicates when the event notification was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CustomAttributeDefinitionEventData","description":"The data associated with the event that triggered the event notification.","nullable":true}},"example":{"created_at":"2022-04-26T01:22:29Z","data":{"deleted":true,"id":"sq0idp-LJ1Kr4Iim0hGDvAwrv8HIB:favorite-drink","object":{"created_at":"2022-04-21T21:40:49Z","description":"The customer's favorite drink","key":"sq0idp-LJ1Kr4Iim0hGDvAwrv8HIB:favorite-drink","name":"Favorite Drink","schema":{"$ref":"https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String"},"updated_at":"2022-04-27T11:31:29Z","version":3,"visibility":"VISIBILITY_READ_ONLY"},"type":"custom_attribute_definition"},"event_id":"49363646-7ae7-49b5-aaa0-296610883c61","merchant_id":"DM7VKY8Q63GNP","type":"customer.custom_attribute_definition.deleted"},"x-webhook":{"event":"customer.custom_attribute_definition.deleted","scopes":["CUSTOMERS_READ"]},"x-api":"#/components/x-apis/CustomerCustomAttributes","x-since":"2022-05-12"},"CustomerCustomAttributeDefinitionDeletedPublicEvent":{"type":"object","description":"Published when a customer [custom attribute definition](entity:CustomAttributeDefinition)\nthat is visible to all applications is deleted. A notification is sent when any application deletes a custom\nattribute definition whose `visibility` is `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.\n\nThis event is replaced by \n[customer.custom_attribute_definition.visible.deleted](webhook:customer.custom_attribute_definition.visible.deleted),\nwhich applies to custom attribute definitions that are visible to the subscribing application.","x-release-status":"DEPRECATED","properties":{"merchant_id":{"type":"string","description":"The ID of the seller associated with the event that triggered the event notification.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"customer.custom_attribute_definition.public.deleted\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event notification.","nullable":true},"created_at":{"type":"string","description":"The timestamp that indicates when the event notification was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CustomAttributeDefinitionEventData","description":"The data associated with the event that triggered the event notification.","nullable":true}},"example":{"created_at":"2022-04-26T01:22:29Z","data":{"deleted":true,"id":"sq0idp-BushoY39o1X-GPxRRUWc0A:shirt-size","object":{"created_at":"2022-04-21T21:40:49Z","description":"The customer's t-shirt size","key":"sq0idp-BushoY39o1X-GPxRRUWc0A:shirt-size","name":"T-Shirt Size","schema":{"items":{"enum":["9492bdda-ab4d-4eeb-8496-0986c8f78499","6b96fba7-d8a5-ae72-48f4-8c3ee875633f","4032c1a2-d749-4c75-9c30-be6472cd2e08","89ca2c01-e4e3-43d6-b846-1495c4e8f97b","4f985a76-08fc-44b1-9ec4-b1904685c3a5"],"names":["Small","Medium","Large","Extra Large","Extra Small"]},"maxItems":1,"type":"array","uniqueItems":true},"updated_at":"2022-04-27T11:31:29Z","version":3,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"type":"custom_attribute_definition"},"event_id":"81c10a07-c329-4943-af20-7d70a300c7e6","merchant_id":"DM7VKY8Q63GNP","type":"customer.custom_attribute_definition.public.deleted"},"x-webhook":{"event":"customer.custom_attribute_definition.public.deleted","scopes":["CUSTOMERS_READ"]},"x-api":"#/components/x-apis/CustomerCustomAttributes","x-since":"2022-05-12"},"CustomerCustomAttributeDefinitionOwnedCreatedEvent":{"type":"object","description":"Published when a customer [custom attribute definition](entity:CustomAttributeDefinition) \nis created by the subscribing application.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the seller associated with the event that triggered the event notification.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"customer.custom_attribute_definition.owned.created\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event notification.","nullable":true},"created_at":{"type":"string","description":"The timestamp that indicates when the event notification was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CustomAttributeDefinitionEventData","description":"The data associated with the event that triggered the event notification.","nullable":true}},"example":{"created_at":"2022-04-21T21:40:49.943Z","data":{"id":"sq0idp-LJ1Kr4Iim0hGDvAwrv8HIB:favorite-drink","object":{"created_at":"2022-04-21T21:40:49Z","description":"The customer's favorite drink","key":"sq0idp-LJ1Kr4Iim0hGDvAwrv8HIB:favorite-drink","name":"Favorite Drink","schema":{"$ref":"https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String"},"updated_at":"2022-04-21T21:40:49Z","version":1,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"type":"custom_attribute_definition"},"event_id":"347ab320-c0ba-48f5-959a-4e147b9aefcf","merchant_id":"DM7VKY8Q63GNP","type":"customer.custom_attribute_definition.owned.created"},"x-webhook":{"event":"customer.custom_attribute_definition.owned.created","scopes":["CUSTOMERS_READ"]},"x-api":"#/components/x-apis/CustomerCustomAttributes","x-since":"2022-08-17"},"CustomerCustomAttributeDefinitionOwnedDeletedEvent":{"type":"object","description":"Published when a customer [custom attribute definition](entity:CustomAttributeDefinition)\ncreated by the subscribing application is deleted. A custom attribute definition can only be deleted by\nthe application that created it.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the seller associated with the event that triggered the event notification.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"customer.custom_attribute_definition.owned.deleted\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event notification.","nullable":true},"created_at":{"type":"string","description":"The timestamp that indicates when the event notification was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CustomAttributeDefinitionEventData","description":"The data associated with the event that triggered the event notification.","nullable":true}},"example":{"created_at":"2022-04-26T01:22:29Z","data":{"deleted":true,"id":"sq0idp-LJ1Kr4Iim0hGDvAwrv8HIB:favorite-drink","object":{"created_at":"2022-04-21T21:40:49Z","description":"The customer's favorite drink","key":"sq0idp-LJ1Kr4Iim0hGDvAwrv8HIB:favorite-drink","name":"Favorite Drink","schema":{"$ref":"https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String"},"updated_at":"2022-04-27T11:31:29Z","version":3,"visibility":"VISIBILITY_READ_ONLY"},"type":"custom_attribute_definition"},"event_id":"49363646-7ae7-49b5-aaa0-296610883c61","merchant_id":"DM7VKY8Q63GNP","type":"customer.custom_attribute_definition.owned.deleted"},"x-webhook":{"event":"customer.custom_attribute_definition.owned.deleted","scopes":["CUSTOMERS_READ"]},"x-api":"#/components/x-apis/CustomerCustomAttributes","x-since":"2022-08-17"},"CustomerCustomAttributeDefinitionOwnedUpdatedEvent":{"type":"object","description":"Published when a customer [custom attribute definition](entity:CustomAttributeDefinition)\ncreated by the subscribing application is updated. A custom attribute definition can only be updated by\nthe application that created it.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the seller associated with the event that triggered the event notification.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"customer.custom_attribute_definition.owned.updated\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event notification.","nullable":true},"created_at":{"type":"string","description":"The timestamp that indicates when the event notification was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CustomAttributeDefinitionEventData","description":"The data associated with the event that triggered the event notification.","nullable":true}},"example":{"created_at":"2022-04-26T01:22:29Z","data":{"id":"sq0idp-LJ1Kr4Iim0hGDvAwrv8HIB:favorite-drink","object":{"created_at":"2022-04-21T21:57:39Z","description":"The customer's favorite drink","key":"sq0idp-LJ1Kr4Iim0hGDvAwrv8HIB:favorite-drink","name":"Favorite Drink","schema":{"$ref":"https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String"},"updated_at":"2022-04-26T01:22:29Z","version":2,"visibility":"VISIBILITY_READ_ONLY"},"type":"custom_attribute_definition"},"event_id":"d914e6ef-9e37-4bca-a663-ecc55f5d98d3","merchant_id":"DM7VKY8Q63GNP","type":"customer.custom_attribute_definition.owned.updated"},"x-webhook":{"event":"customer.custom_attribute_definition.owned.updated","scopes":["CUSTOMERS_READ"]},"x-api":"#/components/x-apis/CustomerCustomAttributes","x-since":"2022-08-17"},"CustomerCustomAttributeDefinitionUpdatedEvent":{"type":"object","description":"Published when a customer [custom attribute definition](entity:CustomAttributeDefinition)\ncreated by the subscribing application is updated. A custom attribute definition can only be updated by\nthe application that created it.\n\nThis event is replaced by \n[customer.custom_attribute_definition.owned.updated](webhook:customer.custom_attribute_definition.owned.updated).","x-release-status":"DEPRECATED","properties":{"merchant_id":{"type":"string","description":"The ID of the seller associated with the event that triggered the event notification.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"customer.custom_attribute_definition.updated\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event notification.","nullable":true},"created_at":{"type":"string","description":"The timestamp that indicates when the event notification was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CustomAttributeDefinitionEventData","description":"The data associated with the event that triggered the event notification.","nullable":true}},"example":{"created_at":"2022-04-26T01:22:29Z","data":{"id":"sq0idp-LJ1Kr4Iim0hGDvAwrv8HIB:favorite-drink","object":{"created_at":"2022-04-21T21:57:39Z","description":"The customer's favorite drink","key":"sq0idp-LJ1Kr4Iim0hGDvAwrv8HIB:favorite-drink","name":"Favorite Drink","schema":{"$ref":"https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String"},"updated_at":"2022-04-26T01:22:29Z","version":2,"visibility":"VISIBILITY_READ_ONLY"},"type":"custom_attribute_definition"},"event_id":"d914e6ef-9e37-4bca-a663-ecc55f5d98d3","merchant_id":"DM7VKY8Q63GNP","type":"customer.custom_attribute_definition.updated"},"x-webhook":{"event":"customer.custom_attribute_definition.updated","scopes":["CUSTOMERS_READ"]},"x-api":"#/components/x-apis/CustomerCustomAttributes","x-since":"2022-05-12"},"CustomerCustomAttributeDefinitionUpdatedPublicEvent":{"type":"object","description":"Published when a customer [custom attribute definition](entity:CustomAttributeDefinition)\nthat is visible to all applications is updated. A notification is sent when any application updates a custom\nattribute definition whose `visibility` is `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.\n\nThis event is replaced by \n[customer.custom_attribute_definition.visible.updated](webhook:customer.custom_attribute_definition.visible.updated),\nwhich applies to custom attribute definitions that are visible to the subscribing application.","x-release-status":"DEPRECATED","properties":{"merchant_id":{"type":"string","description":"The ID of the seller associated with the event that triggered the event notification.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"customer.custom_attribute_definition.public.updated\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event notification.","nullable":true},"created_at":{"type":"string","description":"The timestamp that indicates when the event notification was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CustomAttributeDefinitionEventData","description":"The data associated with the event that triggered the event notification.","nullable":true}},"example":{"created_at":"2022-04-26T01:22:29Z","data":{"id":"sq0idp-BushoY39o1X-GPxRRUWc0A:shirt-size","object":{"created_at":"2022-04-21T21:57:39Z","description":"The customer's t-shirt size","key":"sq0idp-BushoY39o1X-GPxRRUWc0A:shirt-size","name":"T-Shirt Size","schema":{"items":{"enum":["9492bdda-ab4d-4eeb-8496-0986c8f78499","6b96fba7-d8a5-ae72-48f4-8c3ee875633f","4032c1a2-d749-4c75-9c30-be6472cd2e08","89ca2c01-e4e3-43d6-b846-1495c4e8f97b","4f985a76-08fc-44b1-9ec4-b1904685c3a5"],"names":["Small","Medium","Large","Extra Large","Extra Small"]},"maxItems":1,"type":"array","uniqueItems":true},"updated_at":"2022-04-26T01:22:29Z","version":2,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"type":"custom_attribute_definition"},"event_id":"ae376c21-d360-4694-96c7-1b27830f07d7","merchant_id":"DM7VKY8Q63GNP","type":"customer.custom_attribute_definition.public.updated"},"x-webhook":{"event":"customer.custom_attribute_definition.public.updated","scopes":["CUSTOMERS_READ"]},"x-api":"#/components/x-apis/CustomerCustomAttributes","x-since":"2022-05-12"},"CustomerCustomAttributeDefinitionVisibleCreatedEvent":{"type":"object","description":"Published when a customer [custom attribute definition](entity:CustomAttributeDefinition)\nthat is visible to the subscribing application is created. A notification is sent when your application\ncreates a custom attribute definition or another application creates a custom attribute definition whose\n`visibility` is `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the seller associated with the event that triggered the event notification.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"customer.custom_attribute_definition.visible.created\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event notification.","nullable":true},"created_at":{"type":"string","description":"The timestamp that indicates when the event notification was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CustomAttributeDefinitionEventData","description":"The data associated with the event that triggered the event notification.","nullable":true}},"example":{"created_at":"2022-04-21T21:40:49.943Z","data":{"id":"sq0idp-BushoY39o1X-GPxRRUWc0A:shirt-size","object":{"created_at":"2022-04-21T21:40:49Z","description":"The customer's shirt size","key":"sq0idp-BushoY39o1X-GPxRRUWc0A:shirt-size","name":"Shirt Size","schema":{"items":{"enum":["9492bdda-ab4d-4eeb-8496-0986c8f78499","6b96fba7-d8a5-ae72-48f4-8c3ee875633f","4032c1a2-d749-4c75-9c30-be6472cd2e08"],"names":["Small","Medium","Large"]},"maxItems":1,"type":"array","uniqueItems":true},"updated_at":"2022-04-21T21:40:49Z","version":1,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"type":"custom_attribute_definition"},"event_id":"f679dc4f-3619-4764-a4de-94a54735cd32","merchant_id":"DM7VKY8Q63GNP","type":"customer.custom_attribute_definition.visible.created"},"x-webhook":{"event":"customer.custom_attribute_definition.visible.created","scopes":["CUSTOMERS_READ"]},"x-api":"#/components/x-apis/CustomerCustomAttributes","x-since":"2022-08-17"},"CustomerCustomAttributeDefinitionVisibleDeletedEvent":{"type":"object","description":"Published when a customer [custom attribute definition](entity:CustomAttributeDefinition)\nthat is visible to the subscribing application is deleted. A custom attribute definition can only be deleted\nby the application that created it. A notification is sent when your application deletes a custom attribute\ndefinition or when another application deletes a custom attribute definition whose `visibility` is\n`VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the seller associated with the event that triggered the event notification.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"customer.custom_attribute_definition.visible.deleted\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event notification.","nullable":true},"created_at":{"type":"string","description":"The timestamp that indicates when the event notification was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CustomAttributeDefinitionEventData","description":"The data associated with the event that triggered the event notification.","nullable":true}},"example":{"created_at":"2022-04-26T01:22:29Z","data":{"deleted":true,"id":"sq0idp-BushoY39o1X-GPxRRUWc0A:shirt-size","object":{"created_at":"2022-04-21T21:40:49Z","description":"The customer's t-shirt size","key":"sq0idp-BushoY39o1X-GPxRRUWc0A:shirt-size","name":"T-Shirt Size","schema":{"items":{"enum":["9492bdda-ab4d-4eeb-8496-0986c8f78499","6b96fba7-d8a5-ae72-48f4-8c3ee875633f","4032c1a2-d749-4c75-9c30-be6472cd2e08","89ca2c01-e4e3-43d6-b846-1495c4e8f97b","4f985a76-08fc-44b1-9ec4-b1904685c3a5"],"names":["Small","Medium","Large","Extra Large","Extra Small"]},"maxItems":1,"type":"array","uniqueItems":true},"updated_at":"2022-04-27T11:31:29Z","version":3,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"type":"custom_attribute_definition"},"event_id":"81c10a07-c329-4943-af20-7d70a300c7e6","merchant_id":"DM7VKY8Q63GNP","type":"customer.custom_attribute_definition.visible.deleted"},"x-webhook":{"event":"customer.custom_attribute_definition.visible.deleted","scopes":["CUSTOMERS_READ"]},"x-api":"#/components/x-apis/CustomerCustomAttributes","x-since":"2022-08-17"},"CustomerCustomAttributeDefinitionVisibleUpdatedEvent":{"type":"object","description":"Published when a customer [custom attribute definition](entity:CustomAttributeDefinition)\nthat is visible to the subscribing application is updated. A custom attribute definition can only be updated\nby the application that created it. A notification is sent when your application updates a custom\nattribute definition or when another application updates a custom attribute definition whose `visibility` is\n`VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the seller associated with the event that triggered the event notification.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"customer.custom_attribute_definition.visible.updated\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event notification.","nullable":true},"created_at":{"type":"string","description":"The timestamp that indicates when the event notification was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CustomAttributeDefinitionEventData","description":"The data associated with the event that triggered the event notification.","nullable":true}},"example":{"created_at":"2022-04-26T01:22:29Z","data":{"id":"sq0idp-BushoY39o1X-GPxRRUWc0A:shirt-size","object":{"created_at":"2022-04-21T21:57:39Z","description":"The customer's t-shirt size","key":"sq0idp-BushoY39o1X-GPxRRUWc0A:shirt-size","name":"T-Shirt Size","schema":{"items":{"enum":["9492bdda-ab4d-4eeb-8496-0986c8f78499","6b96fba7-d8a5-ae72-48f4-8c3ee875633f","4032c1a2-d749-4c75-9c30-be6472cd2e08","89ca2c01-e4e3-43d6-b846-1495c4e8f97b","4f985a76-08fc-44b1-9ec4-b1904685c3a5"],"names":["Small","Medium","Large","Extra Large","Extra Small"]},"maxItems":1,"type":"array","uniqueItems":true},"updated_at":"2022-04-26T01:22:29Z","version":2,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"type":"custom_attribute_definition"},"event_id":"ae376c21-d360-4694-96c7-1b27830f07d7","merchant_id":"DM7VKY8Q63GNP","type":"customer.custom_attribute_definition.visible.updated"},"x-webhook":{"event":"customer.custom_attribute_definition.visible.updated","scopes":["CUSTOMERS_READ"]},"x-api":"#/components/x-apis/CustomerCustomAttributes","x-since":"2022-08-17"},"CustomerCustomAttributeDeletedEvent":{"type":"object","description":"Published when a customer [custom attribute](entity:CustomAttribute) owned by the\nsubscribing application is deleted. Custom attributes are owned by the application that created the\ncorresponding [custom attribute definition](entity:CustomAttributeDefinition). Custom attributes whose\n`visibility` is `VISIBILITY_READ_WRITE_VALUES` can be deleted by any application.\n\nThis event is replaced by \n[customer.custom_attribute.owned.deleted](webhook:customer.custom_attribute.owned.deleted).","x-release-status":"DEPRECATED","properties":{"merchant_id":{"type":"string","description":"The ID of the seller associated with the event that triggered the event notification.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"customer.custom_attribute.deleted\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event notification.","nullable":true},"created_at":{"type":"string","description":"The timestamp that indicates when the event notification was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CustomAttributeEventData","description":"The data associated with the event that triggered the event notification.","nullable":true}},"example":{"created_at":"2022-04-26T01:22:29Z","data":{"deleted":true,"id":"sq0idp-LJ1Kr4Iim0hGDvAwrv8HIB:favorite-drink:CUSTOMER:TNQC0TYTWMRSFFQ157KK4V7MVR","object":{"created_at":"2022-04-21T21:58:59Z","key":"sq0idp-LJ1Kr4Iim0hGDvAwrv8HIB:favorite-drink","updated_at":"2022-04-27T11:31:29Z","value":"Medium coffee, 2 sugars","version":3,"visibility":"VISIBILITY_READ_ONLY"},"type":"custom_attribute"},"event_id":"f57b27d4-a4d6-43de-9e58-bc6ff90525f1","merchant_id":"DM7VKY8Q63GNP","type":"customer.custom_attribute.deleted"},"x-webhook":{"event":"customer.custom_attribute.deleted","scopes":["CUSTOMERS_READ"]},"x-api":"#/components/x-apis/CustomerCustomAttributes","x-since":"2022-05-12"},"CustomerCustomAttributeDeletedPublicEvent":{"type":"object","description":"Published when a customer [custom attribute](entity:CustomAttribute) that is visible\nto all applications is deleted. A notification is sent when any application deletes a custom attribute\nwhose `visibility` is `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.\n\nThis event is replaced by \n[customer.custom_attribute.visible.deleted](webhook:customer.custom_attribute.visible.deleted),\nwhich applies to custom attributes that are visible to the subscribing application.","x-release-status":"DEPRECATED","properties":{"merchant_id":{"type":"string","description":"The ID of the seller associated with the event that triggered the event notification.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"customer.custom_attribute.public.deleted\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event notification.","nullable":true},"created_at":{"type":"string","description":"The timestamp that indicates when the event notification was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CustomAttributeEventData","description":"The data associated with the event that triggered the event notification.","nullable":true}},"example":{"created_at":"2022-04-26T01:22:29Z","data":{"deleted":true,"id":"sq0idp-BushoY39o1X-GPxRRUWc0A:shirt-size:CUSTOMER:TNQC0TYTWMRSFFQ157KK4V7MVR","object":{"created_at":"2022-04-21T21:58:59Z","key":"sq0idp-BushoY39o1X-GPxRRUWc0A:shirt-size","updated_at":"2022-04-27T11:31:29Z","value":["4032c1a2-d749-4c75-9c30-be6472cd2e08"],"version":3,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"type":"custom_attribute"},"event_id":"18ef5adc-2efc-4ad9-9b1a-b274a607da3e","merchant_id":"DM7VKY8Q63GNP","type":"customer.custom_attribute.public.deleted"},"x-webhook":{"event":"customer.custom_attribute.public.deleted","scopes":["CUSTOMERS_READ"]},"x-api":"#/components/x-apis/CustomerCustomAttributes","x-since":"2022-05-12"},"CustomerCustomAttributeFilter":{"type":"object","description":"The custom attribute filter. Use this filter in a set of [custom attribute filters](entity:CustomerCustomAttributeFilters) to search\nbased on the value or last updated date of a customer-related [custom attribute](entity:CustomAttribute).","x-release-status":"PUBLIC","required":["key"],"properties":{"key":{"type":"string","description":"The `key` of the [custom attribute](entity:CustomAttribute) to filter by. The key is the identifier of the custom attribute\n(and the corresponding custom attribute definition) and can be retrieved using the [Customer Custom Attributes API](api:CustomerCustomAttributes)."},"filter":{"$ref":"#/components/schemas/CustomerCustomAttributeFilterValue","description":"A filter that corresponds to the data type of the target custom attribute. For example, provide the `phone` filter to\nsearch based on the value of a `PhoneNumber`-type custom attribute. The data type is specified by the schema field of the custom attribute definition,\nwhich can be retrieved using the [Customer Custom Attributes API](api:CustomerCustomAttributes).\n\nYou must provide this `filter` field, the `updated_at` field, or both.","nullable":true},"updated_at":{"$ref":"#/components/schemas/TimeRange","description":"The date range for when the custom attribute was last updated. The date range can include `start_at`, `end_at`, or\nboth. Range boundaries are inclusive. Dates are specified as RFC 3339 timestamps.\n\nYou must provide this `updated_at` field, the `filter` field, or both."}}},"CustomerCustomAttributeFilterValue":{"type":"object","description":"A type-specific filter used in a [custom attribute filter](entity:CustomerCustomAttributeFilter) to search based on the value \nof a customer-related [custom attribute](entity:CustomAttribute).","x-release-status":"PUBLIC","properties":{"email":{"$ref":"#/components/schemas/CustomerTextFilter","description":"A filter for a query based on the value of an `Email`-type custom attribute. This filter is case-insensitive and can\ninclude `exact` or `fuzzy`, but not both.\n\nFor an `exact` match, provide the complete email address.\n\nFor a `fuzzy` match, provide a query expression containing one or more query tokens to match against the email address. Square removes\nany punctuation (including periods (.), underscores (_), and the @ symbol) and tokenizes the email addresses on spaces. A match is found\nif a tokenized email address contains all the tokens in the search query, irrespective of the token order. For example, `Steven gmail`\nmatches [email protected] and [email protected].","nullable":true},"phone":{"$ref":"#/components/schemas/CustomerTextFilter","description":"A filter for a query based on the value of a `PhoneNumber`-type custom attribute. This filter is case-insensitive and\ncan include `exact` or `fuzzy`, but not both.\n\nFor an `exact` match, provide the complete phone number. This is always an E.164-compliant phone number that starts\nwith the + sign followed by the country code and subscriber number. For example, the format for a US phone number is +12061112222.\n\nFor a `fuzzy` match, provide a query expression containing one or more query tokens to match against the phone number.\nSquare removes any punctuation and tokenizes the expression on spaces. A match is found if a tokenized phone number contains\nall the tokens in the search query, irrespective of the token order. For example, `415 123 45` is tokenized to `415`, `123`, and `45`,\nwhich matches +14151234567 and +12345674158, but does not match +1234156780. Similarly, the expression `415` matches\n+14151234567, +12345674158, and +1234156780.","nullable":true},"text":{"$ref":"#/components/schemas/CustomerTextFilter","description":"A filter for a query based on the value of a `String`-type custom attribute. This filter is case-insensitive and \ncan include `exact` or `fuzzy`, but not both.\n\nFor an `exact` match, provide the complete string.\n\nFor a `fuzzy` match, provide a query expression containing one or more query tokens in any order that contain complete words\nto match against the string. Square tokenizes the expression using a grammar-based tokenizer. For example, the expressions `quick brown`,\n`brown quick`, and `quick fox` match \"The quick brown fox jumps over the lazy dog\". However, `quick foxes` and `qui` do not match.","nullable":true},"selection":{"$ref":"#/components/schemas/FilterValue","description":"A filter for a query based on the display name for a `Selection`-type custom attribute value. This filter is case-sensitive\nand can contain `any`, `all`, or both. The `none` condition is not supported.\n\nProvide the display name of each item that you want to search for. To find the display names for the selection, use the \n[Customer Custom Attributes API](api:CustomerCustomAttributes) to retrieve the corresponding custom attribute definition\nand then check the `schema.items.names` field. For more information, see\n[Search based on selection](https://developer.squareup.com/docs/customers-api/use-the-api/search-customers#custom-attribute-value-filter-selection).\n\nNote that when a `Selection`-type custom attribute is assigned to a customer profile, the custom attribute value is a list of one\nor more UUIDs (sourced from the `schema.items.enum` field) that map to the item names. These UUIDs are unique per seller.","nullable":true},"date":{"$ref":"#/components/schemas/TimeRange","description":"A filter for a query based on the value of a `Date`-type custom attribute.\n\nProvide a date range for this filter using `start_at`, `end_at`, or both. Range boundaries are inclusive. Dates can be specified\nin `YYYY-MM-DD` format or as RFC 3339 timestamps.","nullable":true},"number":{"$ref":"#/components/schemas/FloatNumberRange","description":"A filter for a query based on the value of a `Number`-type custom attribute, which can be an integer or a decimal with up to\n5 digits of precision.\n\nProvide a numerical range for this filter using `start_at`, `end_at`, or both. Range boundaries are inclusive. Numbers are specified\nas decimals or integers. The absolute value of range boundaries must not exceed `(2^63-1)/10^5`, or 92233720368547.","nullable":true},"boolean":{"type":"boolean","description":"A filter for a query based on the value of a `Boolean`-type custom attribute.","nullable":true},"address":{"$ref":"#/components/schemas/CustomerAddressFilter","description":"A filter for a query based on the value of an `Address`-type custom attribute. The filter can include `postal_code`, `country`, or both.","nullable":true}}},"CustomerCustomAttributeFilters":{"type":"object","description":"The custom attribute filters in a set of [customer filters](entity:CustomerFilter) used in a search query. Use this filter\nto search based on [custom attributes](entity:CustomAttribute) that are assigned to customer profiles. For more information, see\n[Search by custom attribute](https://developer.squareup.com/docs/customers-api/use-the-api/search-customers#search-by-custom-attribute).","x-release-status":"PUBLIC","properties":{"filters":{"type":"array","items":{"$ref":"#/components/schemas/CustomerCustomAttributeFilter"},"description":"The custom attribute filters. Each filter must specify `key` and include the `filter` field with a type-specific filter,\nthe `updated_at` field, or both. The provided keys must be unique within the list of custom attribute filters.","nullable":true}}},"CustomerCustomAttributeOwnedDeletedEvent":{"type":"object","description":"Published when a customer [custom attribute](entity:CustomAttribute) owned by the\nsubscribing application is deleted. Custom attributes are owned by the application that created the\ncorresponding [custom attribute definition](entity:CustomAttributeDefinition). Custom attributes whose\n`visibility` is `VISIBILITY_READ_WRITE_VALUES` can be deleted by any application.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the seller associated with the event that triggered the event notification.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"customer.custom_attribute.owned.deleted\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event notification.","nullable":true},"created_at":{"type":"string","description":"The timestamp that indicates when the event notification was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CustomAttributeEventData","description":"The data associated with the event that triggered the event notification.","nullable":true}},"example":{"created_at":"2022-04-26T01:22:29Z","data":{"deleted":true,"id":"sq0idp-LJ1Kr4Iim0hGDvAwrv8HIB:favorite-drink:CUSTOMER:TNQC0TYTWMRSFFQ157KK4V7MVR","object":{"created_at":"2022-04-21T21:58:59Z","key":"sq0idp-LJ1Kr4Iim0hGDvAwrv8HIB:favorite-drink","updated_at":"2022-04-27T11:31:29Z","value":"Medium coffee, 2 sugars","version":3,"visibility":"VISIBILITY_READ_ONLY"},"type":"custom_attribute"},"event_id":"f57b27d4-a4d6-43de-9e58-bc6ff90525f1","merchant_id":"DM7VKY8Q63GNP","type":"customer.custom_attribute.owned.deleted"},"x-webhook":{"event":"customer.custom_attribute.owned.deleted","scopes":["CUSTOMERS_READ"]},"x-api":"#/components/x-apis/CustomerCustomAttributes","x-since":"2022-08-17"},"CustomerCustomAttributeOwnedUpdatedEvent":{"type":"object","description":"Published when a customer [custom attribute](entity:CustomAttribute) owned by the\nsubscribing application is created or updated. Custom attributes are owned by the application that created\nthe corresponding [custom attribute definition](entity:CustomAttributeDefinition). Custom attributes whose\n`visibility` is `VISIBILITY_READ_WRITE_VALUES` can be created or updated by any application.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the seller associated with the event that triggered the event notification.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"customer.custom_attribute.owned.updated\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event notification.","nullable":true},"created_at":{"type":"string","description":"The timestamp that indicates when the event notification was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CustomAttributeEventData","description":"The data associated with the event that triggered the event notification.","nullable":true}},"example":{"created_at":"2022-04-21T21:40:54Z","data":{"id":"sq0idp-LJ1Kr4Iim0hGDvAwrv8HIB:favorite-drink:CUSTOMER:TNQC0TYTWMRSFFQ157KK4V7MVR","object":{"created_at":"2022-04-21T21:40:54Z","key":"sq0idp-LJ1Kr4Iim0hGDvAwrv8HIB:favorite-drink","updated_at":"2022-04-21T21:40:54Z","value":"Double-shot breve","version":1,"visibility":"VISIBILITY_READ_ONLY"},"type":"custom_attribute"},"event_id":"e26ca6f2-97f8-426a-b4bf-873044617e94","merchant_id":"DM7VKY8Q63GNP","type":"customer.custom_attribute.owned.updated"},"x-webhook":{"event":"customer.custom_attribute.owned.updated","scopes":["CUSTOMERS_READ"]},"x-api":"#/components/x-apis/CustomerCustomAttributes","x-since":"2022-08-17"},"CustomerCustomAttributeUpdatedEvent":{"type":"object","description":"Published when a customer [custom attribute](entity:CustomAttribute) owned by the\nsubscribing application is created or updated. Custom attributes are owned by the application that created\nthe corresponding [custom attribute definition](entity:CustomAttributeDefinition). Custom attributes whose\n`visibility` is `VISIBILITY_READ_WRITE_VALUES` can be created or updated by any application.\n\nThis event is replaced by \n[customer.custom_attribute.owned.updated](webhook:customer.custom_attribute.owned.updated).","x-release-status":"DEPRECATED","properties":{"merchant_id":{"type":"string","description":"The ID of the seller associated with the event that triggered the event notification.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"customer.custom_attribute.updated\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event notification.","nullable":true},"created_at":{"type":"string","description":"The timestamp that indicates when the event notification was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CustomAttributeEventData","description":"The data associated with the event that triggered the event notification.","nullable":true}},"example":{"created_at":"2022-04-21T21:40:54Z","data":{"id":"sq0idp-LJ1Kr4Iim0hGDvAwrv8HIB:favorite-drink:CUSTOMER:TNQC0TYTWMRSFFQ157KK4V7MVR","object":{"created_at":"2022-04-21T21:40:54Z","key":"sq0idp-LJ1Kr4Iim0hGDvAwrv8HIB:favorite-drink","updated_at":"2022-04-21T21:40:54Z","value":"Double-shot breve","version":1,"visibility":"VISIBILITY_READ_ONLY"},"type":"custom_attribute"},"event_id":"e26ca6f2-97f8-426a-b4bf-873044617e94","merchant_id":"DM7VKY8Q63GNP","type":"customer.custom_attribute.updated"},"x-webhook":{"event":"customer.custom_attribute.updated","scopes":["CUSTOMERS_READ"]},"x-api":"#/components/x-apis/CustomerCustomAttributes","x-since":"2022-05-12"},"CustomerCustomAttributeUpdatedPublicEvent":{"type":"object","description":"Published when a customer [custom attribute](entity:CustomAttribute) that is visible\nto all applications is created or updated. A notification is sent when any application creates or updates\na custom attribute whose `visibility` is `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.\n\nThis event is replaced by \n[customer.custom_attribute.visible.updated](webhook:customer.custom_attribute.visible.updated),\nwhich applies to custom attributes that are visible to the subscribing application.","x-release-status":"DEPRECATED","properties":{"merchant_id":{"type":"string","description":"The ID of the seller associated with the event that triggered the event notification.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"customer.custom_attribute.public.updated\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event notification.","nullable":true},"created_at":{"type":"string","description":"The timestamp that indicates when the event notification was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CustomAttributeEventData","description":"The data associated with the event that triggered the event notification.","nullable":true}},"example":{"created_at":"2022-04-26T01:22:29Z","data":{"id":"sq0idp-BushoY39o1X-GPxRRUWc0A:shirt-size:CUSTOMER:TNQC0TYTWMRSFFQ157KK4V7MVR","object":{"created_at":"2022-04-21T21:40:54Z","key":"sq0idp-BushoY39o1X-GPxRRUWc0A:shirt-size","updated_at":"2022-04-26T01:22:29Z","value":["4032c1a2-d749-4c75-9c30-be6472cd2e08"],"version":2,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"type":"custom_attribute"},"event_id":"1cc2925c-f6e2-4fb6-a597-07c198de59e1","merchant_id":"DM7VKY8Q63GNP","type":"customer.custom_attribute.public.updated"},"x-webhook":{"event":"customer.custom_attribute.public.updated","scopes":["CUSTOMERS_READ"]},"x-api":"#/components/x-apis/CustomerCustomAttributes","x-since":"2022-05-12"},"CustomerCustomAttributeVisibleDeletedEvent":{"type":"object","description":"Published when a customer [custom attribute](entity:CustomAttribute) that is visible to the\nsubscribing application is deleted. A notification is sent when:\n- Your application deletes a custom attribute owned by your application, regardless of the `visibility` setting.\n- Any application deletes a custom attribute whose `visibility` is `VISIBILITY_READ_ONLY`\nor `VISIBILITY_READ_WRITE_VALUES`.\n\nCustom attributes set to `VISIBILITY_READ_WRITE_VALUES` can be deleted by any application, but those set to\n`VISIBILITY_READ_ONLY` or `VISIBILITY_HIDDEN` can only be deleted by the owner. Custom attributes are owned\nby the application that created the corresponding [custom attribute definition](entity:CustomAttributeDefinition).","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the seller associated with the event that triggered the event notification.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"customer.custom_attribute.visible.deleted\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event notification.","nullable":true},"created_at":{"type":"string","description":"The timestamp that indicates when the event notification was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CustomAttributeEventData","description":"The data associated with the event that triggered the event notification.","nullable":true}},"example":{"created_at":"2022-04-26T01:22:29Z","data":{"deleted":true,"id":"sq0idp-BushoY39o1X-GPxRRUWc0A:shirt-size:CUSTOMER:TNQC0TYTWMRSFFQ157KK4V7MVR","object":{"created_at":"2022-04-21T21:58:59Z","key":"sq0idp-BushoY39o1X-GPxRRUWc0A:shirt-size","updated_at":"2022-04-27T11:31:29Z","value":["4032c1a2-d749-4c75-9c30-be6472cd2e08"],"version":3,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"type":"custom_attribute"},"event_id":"18ef5adc-2efc-4ad9-9b1a-b274a607da3e","merchant_id":"DM7VKY8Q63GNP","type":"customer.custom_attribute.visible.deleted"},"x-webhook":{"event":"customer.custom_attribute.visible.deleted","scopes":["CUSTOMERS_READ"]},"x-api":"#/components/x-apis/CustomerCustomAttributes","x-since":"2022-08-17"},"CustomerCustomAttributeVisibleUpdatedEvent":{"type":"object","description":"Published when a customer [custom attribute](entity:CustomAttribute) that is visible to the\nsubscribing application is created or updated. A notification is sent when:\n- Your application creates or updates a custom attribute owned by your application, regardless of the `visibility` setting.\n- Any application creates or updates a custom attribute whose `visibility` is `VISIBILITY_READ_ONLY`\nor `VISIBILITY_READ_WRITE_VALUES`.\n\nCustom attributes set to `VISIBILITY_READ_WRITE_VALUES` can be created or updated by any application, but those set to\n`VISIBILITY_READ_ONLY` or `VISIBILITY_HIDDEN` can only be created or updated by the owner. Custom attributes are owned\nby the application that created the corresponding [custom attribute definition](entity:CustomAttributeDefinition).","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the seller associated with the event that triggered the event notification.","nullable":true},"type":{"type":"string","description":"The type of this event. The value is `\"customer.custom_attribute.visible.updated\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event notification.","nullable":true},"created_at":{"type":"string","description":"The timestamp that indicates when the event notification was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CustomAttributeEventData","description":"The data associated with the event that triggered the event notification.","nullable":true}},"example":{"created_at":"2022-04-26T01:22:29Z","data":{"id":"sq0idp-BushoY39o1X-GPxRRUWc0A:shirt-size:CUSTOMER:TNQC0TYTWMRSFFQ157KK4V7MVR","object":{"created_at":"2022-04-21T21:40:54Z","key":"sq0idp-BushoY39o1X-GPxRRUWc0A:shirt-size","updated_at":"2022-04-26T01:22:29Z","value":["4032c1a2-d749-4c75-9c30-be6472cd2e08"],"version":2,"visibility":"VISIBILITY_READ_WRITE_VALUES"},"type":"custom_attribute"},"event_id":"1cc2925c-f6e2-4fb6-a597-07c198de59e1","merchant_id":"DM7VKY8Q63GNP","type":"customer.custom_attribute.visible.updated"},"x-webhook":{"event":"customer.custom_attribute.visible.updated","scopes":["CUSTOMERS_READ"]},"x-api":"#/components/x-apis/CustomerCustomAttributes","x-since":"2022-08-17"},"CustomerDeletedEvent":{"type":"object","description":"Published when a [customer](entity:Customer) is deleted. For more information, see [Use Customer Webhooks](https://developer.squareup.com/docs/customers-api/use-the-api/customer-webhooks).\n\nThe `customer` object in the event notification does not include the following fields: `group_ids` and `segment_ids`.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the seller associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event. For this object, the value is `customer.deleted`.","nullable":true},"event_id":{"type":"string","description":"The unique ID of the event, which is used for [idempotency support](https://developer.squareup.com/docs/webhooks/step4manage#webhooks-best-practices).","nullable":true},"created_at":{"type":"string","description":"The timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CustomerDeletedEventData","description":"The data associated with the event.","nullable":true}},"example":{"created_at":"2022-11-09T21:26:50Z","data":{"deleted":true,"id":"QPTXM8PQNX3Q726ZYHPMNP46XC","object":{"customer":{"address":{"address_line_1":"1018 1st Street","administrative_district_level_1":"NY","locality":"Brooklyn","postal_code":"11215"},"birthday":"1962-03-04","creation_source":"IMPORT","email_address":"[email protected]","family_name":"Smiley","given_name":"Jenkins","id":"QPTXM8PQNX3Q726ZYHPMNP46XC","phone_number":"+12126668929","preferences":{"email_unsubscribed":false},"version":3}},"type":"customer"},"event_id":"8e84fec8-f04b-46f0-b66d-dbb8b59590fa","merchant_id":"G7MMEBVW021Q4","type":"customer.deleted"},"x-webhook":{"event":"customer.deleted","scopes":["CUSTOMERS_READ"]},"x-api":"#/components/x-apis/Customers","x-since":"2021-02-26"},"CustomerDeletedEventData":{"type":"object","description":"The data associated with the event.","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"The type of object affected by the event. For this event, the value is `customer`.","maxLength":50,"nullable":true},"id":{"type":"string","description":"The ID of the deleted customer.","maxLength":192},"object":{"$ref":"#/components/schemas/CustomerDeletedEventObject","description":"An object that contains the deleted customer.","nullable":true}}},"CustomerDeletedEventEventContext":{"type":"object","description":"Information about the change that triggered the event.","x-release-status":"PUBLIC","properties":{"merge":{"$ref":"#/components/schemas/CustomerDeletedEventEventContextMerge","description":"Information about the merge operation associated with the event.","nullable":true}}},"CustomerDeletedEventEventContextMerge":{"type":"object","description":"Information about a merge operation, which creates a new customer using aggregated properties from two or more existing customers.","x-release-status":"PUBLIC","properties":{"from_customer_ids":{"type":"array","items":{"type":"string"},"description":"The IDs of the existing customers that were merged and then deleted.","nullable":true},"to_customer_id":{"type":"string","description":"The ID of the new customer created by the merge.","nullable":true}}},"CustomerDeletedEventObject":{"type":"object","description":"An object that contains the customer associated with the event.","x-release-status":"PUBLIC","properties":{"customer":{"$ref":"#/components/schemas/Customer","description":"The deleted customer.","nullable":true},"event_context":{"$ref":"#/components/schemas/CustomerDeletedEventEventContext","description":"Information about the change that triggered the event. This field is returned only if the customer is deleted by a merge operation.","nullable":true}}},"CustomerDetails":{"type":"object","description":"Details about the customer making the payment.","x-release-status":"PUBLIC","properties":{"customer_initiated":{"type":"boolean","description":"Indicates whether the customer initiated the payment.","nullable":true},"seller_keyed_in":{"type":"boolean","description":"Indicates that the seller keyed in payment details on behalf of the customer.\nThis is used to flag a payment as Mail Order / Telephone Order (MOTO).","nullable":true}}},"CustomerFilter":{"type":"object","description":"Represents the filtering criteria in a [search query](entity:CustomerQuery) that defines how to filter\ncustomer profiles returned in [SearchCustomers](api-endpoint:Customers-SearchCustomers) results.","x-release-status":"PUBLIC","properties":{"creation_source":{"$ref":"#/components/schemas/CustomerCreationSourceFilter","description":"A filter to select customers based on their creation source.","nullable":true},"created_at":{"$ref":"#/components/schemas/TimeRange","description":"A filter to select customers based on when they were created."},"updated_at":{"$ref":"#/components/schemas/TimeRange","description":"A filter to select customers based on when they were last updated."},"email_address":{"$ref":"#/components/schemas/CustomerTextFilter","description":"A filter to [select customers by their email address](https://developer.squareup.com/docs/customers-api/use-the-api/search-customers#search-by-email-address) \nvisible to the seller. \nThis filter is case-insensitive.\n\nFor [exact matching](https://developer.squareup.com/docs/customers-api/use-the-api/search-customers#exact-search-by-email-address), this\nfilter causes the search to return customer profiles \nwhose `email_address` field value are identical to the email address provided\nin the query.\n\nFor [fuzzy matching](https://developer.squareup.com/docs/customers-api/use-the-api/search-customers#fuzzy-search-by-email-address), \nthis filter causes the search to return customer profiles \nwhose `email_address` field value has a token-wise partial match against the filtering \nexpression in the query. For example, with `Steven gmail` provided in a search\nquery, the search returns customers whose email address is `[email protected]` \nor `[email protected]`. Square removes any punctuation (including periods (.),\nunderscores (_), and the @ symbol) and tokenizes the email addresses on spaces. A match is\nfound if a tokenized email address contains all the tokens in the search query, \nirrespective of the token order.","nullable":true},"phone_number":{"$ref":"#/components/schemas/CustomerTextFilter","description":"A filter to [select customers by their phone numbers](https://developer.squareup.com/docs/customers-api/use-the-api/search-customers#search-by-phone-number)\nvisible to the seller.\n\nFor [exact matching](https://developer.squareup.com/docs/customers-api/use-the-api/search-customers#exact-search-by-phone-number),\nthis filter returns customers whose phone number matches the specified query expression. The number in the query must be of an\nE.164-compliant form. In particular, it must include the leading `+` sign followed by a country code and then a subscriber number.\nFor example, the standard E.164 form of a US phone number is `+12062223333` and an E.164-compliant variation is `+1 (206) 222-3333`.\nTo match the query expression, stored customer phone numbers are converted to the standard E.164 form.\n\nFor [fuzzy matching](https://developer.squareup.com/docs/customers-api/use-the-api/search-customers#fuzzy-search-by-phone-number),\nthis filter returns customers whose phone number matches the token or tokens provided in the query expression. For example, with `415`\nprovided in a search query, the search returns customers with the phone numbers `+1-415-212-1200`, `+1-212-415-1234`, and `+1 (551) 234-1567`.\nSimilarly, a search query of `415 123` returns customers with the phone numbers `+1-212-415-1234` and `+1 (551) 234-1567` but not\n`+1-212-415-1200`. A match is found if a tokenized phone number contains all the tokens in the search query, irrespective of the token order.","nullable":true},"reference_id":{"$ref":"#/components/schemas/CustomerTextFilter","description":"A filter to [select customers by their reference IDs](https://developer.squareup.com/docs/customers-api/use-the-api/search-customers#search-by-reference-id).\nThis filter is case-insensitive.\n\n[Exact matching](https://developer.squareup.com/docs/customers-api/use-the-api/search-customers#exact-search-by-reference-id) \nof a customer's reference ID against a query's reference ID is evaluated as an\nexact match between two strings, character by character in the given order.\n\n[Fuzzy matching](https://developer.squareup.com/docs/customers-api/use-the-api/search-customers#fuzzy-search-by-reference-id) \nof stored reference IDs against queried reference IDs works \nexactly the same as fuzzy matching on email addresses. Non-alphanumeric characters \nare replaced by spaces to tokenize stored and queried reference IDs. A match is found\nif a tokenized stored reference ID contains all tokens specified in any order in the query. For example,\na query of `NYC M` matches customer profiles with the `reference_id` value of `NYC_M_35_JOHNSON`\nand `NYC_27_MURRAY`.","nullable":true},"group_ids":{"$ref":"#/components/schemas/FilterValue","description":"A filter to select customers based on the [groups](entity:CustomerGroup) they belong to.\nGroup membership is controlled by sellers and developers.\n\nThe `group_ids` filter has the following syntax:\n```\n\"group_ids\": {\n\"any\": [\"{group_a_id}\", \"{group_b_id}\", ...],\n\"all\": [\"{group_1_id}\", \"{group_2_id}\", ...],\n\"none\": [\"{group_i_id}\", \"{group_ii_id}\", ...]\n}\n```\n\nYou can use any combination of the `any`, `all`, and `none` fields in the filter.\nWith `any`, the search returns customers in groups `a` or `b` or any other group specified in the list.\nWith `all`, the search returns customers in groups `1` and `2` and all other groups specified in the list.\nWith `none`, the search returns customers not in groups `i` or `ii` or any other group specified in the list.\n\nIf any of the search conditions are not met, including when an invalid or non-existent group ID is provided,\nthe result is an empty object (`{}`).","nullable":true},"custom_attribute":{"$ref":"#/components/schemas/CustomerCustomAttributeFilters","description":"A filter to select customers based on one or more custom attributes. \nThis filter can contain up to 10 custom attribute filters. Each custom attribute filter specifies filtering criteria for a target custom\nattribute. If multiple custom attribute filters are provided, they are combined as an `AND` operation.\n\nTo be valid for a search, the custom attributes must be visible to the requesting application. For more information, including example queries,\nsee [Search by custom attribute](https://developer.squareup.com/docs/customers-api/use-the-api/search-customers#search-by-custom-attribute).\n\nSquare returns matching customer profiles, which do not contain custom attributes. To retrieve customer-related custom attributes,\nuse the [Customer Custom Attributes API](api:CustomerCustomAttributes). For example, you can call\n[RetrieveCustomerCustomAttribute](api-endpoint:CustomerCustomAttributes-RetrieveCustomerCustomAttribute) using a customer ID from the result set.","nullable":true},"segment_ids":{"$ref":"#/components/schemas/FilterValue","description":" A filter to select customers based on the [segments](entity:CustomerSegment) they belong to.\nSegment membership is dynamic and adjusts automatically based on whether customers meet the segment criteria.\n\nYou can provide up to three segment IDs in the filter, using any combination of the `all`, `any`, and `none` fields.\nFor the following example, the results include customers who belong to both segment A and segment B but do not belong to segment C.\n\n```\n\"segment_ids\": {\n\"all\": [\"{segment_A_id}\", \"{segment_B_id}\"],\n\"none\": [\"{segment_C_id}\"]\n}\n```\n\nIf an invalid or non-existent segment ID is provided in the filter, Square stops processing the request\nand returns a `400 BAD_REQUEST` error that includes the segment ID.","nullable":true}}},"CustomerGroup":{"type":"object","description":"Represents a group of customer profiles. \n\nCustomer groups can be created, be modified, and have their membership defined using \nthe Customers API or within the Customer Directory in the Square Seller Dashboard or Point of Sale.","x-release-status":"PUBLIC","required":["name"],"properties":{"id":{"type":"string","description":"A unique Square-generated ID for the customer group.","maxLength":255,"readOnly":true},"name":{"type":"string","description":"The name of the customer group."},"created_at":{"type":"string","description":"The timestamp when the customer group was created, in RFC 3339 format.","readOnly":true},"updated_at":{"type":"string","description":"The timestamp when the customer group was last updated, in RFC 3339 format.","readOnly":true}}},"CustomerInclusionExclusion":{"type":"string","enum":["INCLUDE","EXCLUDE"],"x-enum-elements":[{"name":"INCLUDE","description":"Customers should be included in the result set when they match the\nfiltering criteria."},{"name":"EXCLUDE","description":"Customers should be excluded from the result set when they match\nthe filtering criteria."}],"description":"Indicates whether customers should be included in, or excluded from,\nthe result set when they match the filtering criteria.","x-release-status":"PUBLIC"},"CustomerPreferences":{"type":"object","description":"Represents communication preferences for the customer profile.","x-release-status":"PUBLIC","properties":{"email_unsubscribed":{"type":"boolean","description":"Indicates whether the customer has unsubscribed from marketing campaign emails. A value of `true` means that the customer chose to opt out of email marketing from the current Square seller or from all Square sellers. This value is read-only from the Customers API.","nullable":true}}},"CustomerQuery":{"type":"object","description":"Represents filtering and sorting criteria for a [SearchCustomers](api-endpoint:Customers-SearchCustomers) request.","x-release-status":"PUBLIC","properties":{"filter":{"$ref":"#/components/schemas/CustomerFilter","description":"The filtering criteria for the search query. A query can contain multiple filters in any combination.\nMultiple filters are combined as `AND` statements.\n\n__Note:__ Combining multiple filters as `OR` statements is not supported. Instead, send multiple single-filter\nsearches and join the result sets.","nullable":true},"sort":{"$ref":"#/components/schemas/CustomerSort","description":"Sorting criteria for query results. The default behavior is to sort \ncustomers alphabetically by `given_name` and `family_name`.","nullable":true}}},"CustomerSegment":{"type":"object","description":"Represents a group of customer profiles that match one or more predefined filter criteria. \n\nSegments (also known as Smart Groups) are defined and created within the Customer Directory in the\nSquare Seller Dashboard or Point of Sale.","x-release-status":"PUBLIC","required":["name"],"properties":{"id":{"type":"string","description":"A unique Square-generated ID for the segment.","maxLength":255,"readOnly":true},"name":{"type":"string","description":"The name of the segment.","readOnly":true},"created_at":{"type":"string","description":"The timestamp when the segment was created, in RFC 3339 format.","readOnly":true},"updated_at":{"type":"string","description":"The timestamp when the segment was last updated, in RFC 3339 format.","readOnly":true}}},"CustomerSort":{"type":"object","description":"Represents the sorting criteria in a [search query](entity:CustomerQuery) that defines how to sort\ncustomer profiles returned in [SearchCustomers](api-endpoint:Customers-SearchCustomers) results.","x-release-status":"PUBLIC","properties":{"field":{"$ref":"#/components/schemas/CustomerSortField","description":"Indicates the fields to use as the sort key, which is either the default set of fields or `created_at`.\n\nThe default value is `DEFAULT`.\nSee [CustomerSortField](#type-customersortfield) for possible values","nullable":true},"order":{"$ref":"#/components/schemas/SortOrder","description":"Indicates the order in which results should be sorted based on the\nsort field value. Strings use standard alphabetic comparison\nto determine order. Strings representing numbers are sorted as strings.\n\nThe default value is `ASC`.\nSee [SortOrder](#type-sortorder) for possible values","nullable":true}}},"CustomerSortField":{"type":"string","enum":["DEFAULT","CREATED_AT"],"x-enum-elements":[{"name":"DEFAULT","description":"Use the default sort key. By default, customers are sorted\nalphanumerically by concatenating their `given_name` and `family_name`. If\nneither name field is set, string comparison is performed using one of the\nremaining fields in the following order: `company_name`, `email`,\n`phone_number`."},{"name":"CREATED_AT","description":"Use the creation date attribute (`created_at`) of customer profiles as the sort key."}],"description":"Specifies customer attributes as the sort key to customer profiles returned from a search.","x-release-status":"PUBLIC"},"CustomerTaxIds":{"type":"object","description":"Represents the tax ID associated with a [customer profile](entity:Customer). The corresponding `tax_ids` field is available only for customers of sellers in EU countries or the United Kingdom. \nFor more information, see [Customer tax IDs](https://developer.squareup.com/docs/customers-api/what-it-does#customer-tax-ids).","x-release-status":"PUBLIC","properties":{"eu_vat":{"type":"string","description":"The EU VAT identification number for the customer. For example, `IE3426675K`. The ID can contain alphanumeric characters only.","maxLength":20,"nullable":true}}},"CustomerTextFilter":{"type":"object","description":"A filter to select customers based on exact or fuzzy matching of\ncustomer attributes against a specified query. Depending on the customer attributes, \nthe filter can be case-sensitive. This filter can be exact or fuzzy, but it cannot be both.","x-release-status":"PUBLIC","properties":{"exact":{"type":"string","description":"Use the exact filter to select customers whose attributes match exactly the specified query.","nullable":true},"fuzzy":{"type":"string","description":"Use the fuzzy filter to select customers whose attributes match the specified query \nin a fuzzy manner. When the fuzzy option is used, search queries are tokenized, and then \neach query token must be matched somewhere in the searched attribute. For single token queries, \nthis is effectively the same behavior as a partial match operation.","nullable":true}}},"CustomerUpdatedEvent":{"type":"object","description":"Published when a [customer](entity:Customer) is updated. For more information, see [Use Customer Webhooks](https://developer.squareup.com/docs/customers-api/use-the-api/customer-webhooks).\n\nUpdates to the 'segment_ids' customer field does not invoke a `customer.updated` event. In addition, the `customer` object in the event notification does not include this field.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the seller associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event. For this object, the value is `customer.updated`.","nullable":true},"event_id":{"type":"string","description":"The unique ID of the event, which is used for [idempotency support](https://developer.squareup.com/docs/webhooks/step4manage#webhooks-best-practices).","nullable":true},"created_at":{"type":"string","description":"The timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/CustomerUpdatedEventData","description":"The data associated with the event.","nullable":true}},"example":{"created_at":"2022-11-09T21:38:29Z","data":{"id":"A0AP25A6SCVTH8JES9BX01GXM4","object":{"customer":{"created_at":"2022-07-09T18:23:01.795Z","creation_source":"THIRD_PARTY","email_address":"[email protected]","family_name":"Smorly","given_name":"Jenkins","id":"A0AP25A6SCVTH8JES9BX01GXM4","phone_number":"+13477947111","preferences":{"email_unsubscribed":false},"updated_at":"2022-11-09T21:38:30Z","version":1}},"type":"customer"},"event_id":"b4ce4698-00de-4b5d-a771-4941b3913b34","merchant_id":"G7MMEBVW021Q4","type":"customer.updated"},"x-webhook":{"event":"customer.updated","scopes":["CUSTOMERS_READ"]},"x-api":"#/components/x-apis/Customers","x-since":"2021-02-26"},"CustomerUpdatedEventData":{"type":"object","description":"The data associated with the event.","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"The type of object affected by the event. For this event, the value is `customer`.","maxLength":50,"nullable":true},"id":{"type":"string","description":"The ID of the updated customer.","maxLength":192},"object":{"$ref":"#/components/schemas/CustomerUpdatedEventObject","description":"An object that contains the updated customer.","nullable":true}}},"CustomerUpdatedEventObject":{"type":"object","description":"An object that contains the customer associated with the event.","x-release-status":"PUBLIC","properties":{"customer":{"$ref":"#/components/schemas/Customer","description":"The updated customer.","nullable":true}}},"DataCollectionOptions":{"type":"object","x-release-status":"BETA","required":["title","body","input_type"],"properties":{"title":{"type":"string","description":"The title text to display in the data collection flow on the Terminal.","minLength":1,"maxLength":250},"body":{"type":"string","description":"The body text to display under the title in the data collection screen flow on the\nTerminal.","minLength":1,"maxLength":10000},"input_type":{"$ref":"#/components/schemas/DataCollectionOptionsInputType","description":"Represents the type of the input text.\nSee [InputType](#type-inputtype) for possible values"},"collected_data":{"$ref":"#/components/schemas/CollectedData","description":"The buyer’s input text from the data collection screen.","readOnly":true}}},"DataCollectionOptionsInputType":{"type":"string","enum":["EMAIL","PHONE_NUMBER"],"x-enum-elements":[{"name":"EMAIL","description":"This value is used to represent an input text that contains a email validation on the\nclient."},{"name":"PHONE_NUMBER","description":"This value is used to represent an input text that contains a phone number validation on\nthe client."}],"description":"Describes the input type of the data.","x-release-status":"BETA"},"DateRange":{"type":"object","description":"A range defined by two dates. Used for filtering a query for Connect v2\nobjects that have date properties.","x-release-status":"PUBLIC","properties":{"start_date":{"type":"string","description":"A string in `YYYY-MM-DD` format, such as `2017-10-31`, per the ISO 8601\nextended format for calendar dates.\nThe beginning of a date range (inclusive).","nullable":true},"end_date":{"type":"string","description":"A string in `YYYY-MM-DD` format, such as `2017-10-31`, per the ISO 8601\nextended format for calendar dates.\nThe end of a date range (inclusive).","nullable":true}}},"DayOfWeek":{"type":"string","enum":["SUN","MON","TUE","WED","THU","FRI","SAT"],"x-enum-elements":[{"name":"SUN","description":"Sunday"},{"name":"MON","description":"Monday"},{"name":"TUE","description":"Tuesday"},{"name":"WED","description":"Wednesday"},{"name":"THU","description":"Thursday"},{"name":"FRI","description":"Friday"},{"name":"SAT","description":"Saturday"}],"description":"Indicates the specific day of the week.","x-release-status":"PUBLIC"},"DeleteBookingCustomAttributeDefinitionResponse":{"type":"object","description":"Represents a [DeleteBookingCustomAttributeDefinition](api-endpoint:BookingCustomAttributes-DeleteBookingCustomAttributeDefinition) response\ncontaining error messages when errors occurred during the request. The successful response does not contain any payload.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{"errors":[]}},"DeleteBookingCustomAttributeResponse":{"type":"object","description":"Represents a [DeleteBookingCustomAttribute](api-endpoint:BookingCustomAttributes-DeleteBookingCustomAttribute) response.\nEither an empty object `{}` (for a successful deletion) or `errors` is present in the response.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{"errors":[]}},"DeleteBreakTypeResponse":{"type":"object","description":"The response to a request to delete a `BreakType`. The response might contain a set \nof `Error` objects if the request resulted in errors.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{}},"DeleteCatalogObjectResponse":{"type":"object","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."},"deleted_object_ids":{"type":"array","items":{"type":"string"},"description":"The IDs of all catalog objects deleted by this request.\nMultiple IDs may be returned when associated objects are also deleted, for example\na catalog item variation will be deleted (and its ID included in this field)\nwhen its parent catalog item is deleted."},"deleted_at":{"type":"string","description":"The database [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates)\nof this deletion in RFC 3339 format, e.g., `2016-09-04T23:59:33.123Z`."}},"example":{"deleted_at":"2016-11-16T22:25:24.878Z","deleted_object_ids":["7SB3ZQYJ5GDMVFL7JK46JCHT","KQLFFHA6K6J3YQAQAWDQAL57"]},"x-sq-sdk-sample-code":{"csharp":"/sdk_samples/Catalog/DeleteCatalogObject/DeleteCatalogObjectResponse.csharp","java":"/sdk_samples/Catalog/DeleteCatalogObject/DeleteCatalogObjectResponse.java","javascript":"/sdk_samples/Catalog/DeleteCatalogObject/DeleteCatalogObjectResponse.javascript","php":"/sdk_samples/Catalog/DeleteCatalogObject/DeleteCatalogObjectResponse.php","python":"/sdk_samples/Catalog/DeleteCatalogObject/DeleteCatalogObjectResponse.python","ruby":"/sdk_samples/Catalog/DeleteCatalogObject/DeleteCatalogObjectResponse.ruby"}},"DeleteCustomerCardResponse":{"type":"object","description":"Defines the fields that are included in the response body of\na request to the `DeleteCustomerCard` endpoint.","x-release-status":"DEPRECATED","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{},"x-sq-sdk-sample-code":{"csharp":"/sdk_samples/DeleteCustomerCard/DeleteCustomerCardResponse.csharp","java":"/sdk_samples/DeleteCustomerCard/DeleteCustomerCardResponse.java","javascript":"/sdk_samples/DeleteCustomerCard/DeleteCustomerCardResponse.javascript","php":"/sdk_samples/DeleteCustomerCard/DeleteCustomerCardResponse.php","python":"/sdk_samples/DeleteCustomerCard/DeleteCustomerCardResponse.python","ruby":"/sdk_samples/DeleteCustomerCard/DeleteCustomerCardResponse.ruby"}},"DeleteCustomerCustomAttributeDefinitionResponse":{"type":"object","description":"Represents a response from a delete request containing error messages if there are any.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{}},"DeleteCustomerCustomAttributeResponse":{"type":"object","description":"Represents a [DeleteCustomerCustomAttribute](api-endpoint:CustomerCustomAttributes-DeleteCustomerCustomAttribute) response.\nEither an empty object `{}` (for a successful deletion) or `errors` is present in the response.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{}},"DeleteCustomerGroupResponse":{"type":"object","description":"Defines the fields that are included in the response body of\na request to the [DeleteCustomerGroup](api-endpoint:CustomerGroups-DeleteCustomerGroup) endpoint.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{}},"DeleteCustomerResponse":{"type":"object","description":"Defines the fields that are included in the response body of\na request to the `DeleteCustomer` endpoint.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{},"x-sq-sdk-sample-code":{"csharp":"/sdk_samples/DeleteCustomer/DeleteCustomerResponse.csharp","java":"/sdk_samples/DeleteCustomer/DeleteCustomerResponse.java","javascript":"/sdk_samples/DeleteCustomer/DeleteCustomerResponse.javascript","php":"/sdk_samples/DeleteCustomer/DeleteCustomerResponse.php","python":"/sdk_samples/DeleteCustomer/DeleteCustomerResponse.python","ruby":"/sdk_samples/DeleteCustomer/DeleteCustomerResponse.ruby"}},"DeleteDisputeEvidenceResponse":{"type":"object","description":"Defines the fields in a `DeleteDisputeEvidence` response.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information about errors encountered during the request."}},"example":{}},"DeleteInventoryAdjustmentReasonRequest":{"type":"object","description":"Represents an input to a call to [DeleteInventoryAdjustmentReason](api-endpoint:Inventory-DeleteInventoryAdjustmentReason).","x-release-status":"BETA","required":["reason_id"],"properties":{"reason_id":{"$ref":"#/components/schemas/InventoryAdjustmentReasonId","description":"The identifier of the custom inventory adjustment reason to soft delete."}},"example":{"reason_id":{"custom_reason_id":"R5BX3PDCZ6EXAMPLE","type":"CUSTOM"}}},"DeleteInventoryAdjustmentReasonResponse":{"type":"object","description":"Represents an output from a call to [DeleteInventoryAdjustmentReason](api-endpoint:Inventory-DeleteInventoryAdjustmentReason).","x-release-status":"BETA","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Errors encountered when the request fails."},"adjustment_reason":{"$ref":"#/components/schemas/InventoryAdjustmentReason","description":"The successfully soft-deleted inventory adjustment reason."}},"example":{"adjustment_reason":{"created_at":"2026-07-15T18:24:31.000Z","direction":"DECREASE","id":{"custom_reason_id":"R5BX3PDCZ6EXAMPLE","type":"CUSTOM"},"is_deleted":true,"name":"Charitable donation","updated_at":"2026-07-15T19:05:44.000Z"},"errors":[]}},"DeleteInvoiceAttachmentResponse":{"type":"object","description":"Represents a [DeleteInvoiceAttachment](api-endpoint:Invoices-DeleteInvoiceAttachment) response.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information about errors encountered during the request."}},"example":{}},"DeleteInvoiceResponse":{"type":"object","description":"Describes a `DeleteInvoice` response.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information about errors encountered during the request."}},"example":{}},"DeleteLocationCustomAttributeDefinitionResponse":{"type":"object","description":"Represents a response from a delete request containing error messages if there are any.","x-release-status":"BETA","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{}},"DeleteLocationCustomAttributeResponse":{"type":"object","description":"Represents a [DeleteLocationCustomAttribute](api-endpoint:LocationCustomAttributes-DeleteLocationCustomAttribute) response.\nEither an empty object `{}` (for a successful deletion) or `errors` is present in the response.","x-release-status":"BETA","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{}},"DeleteLoyaltyRewardResponse":{"type":"object","description":"A response returned by the API call.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{}},"DeleteMerchantCustomAttributeDefinitionResponse":{"type":"object","description":"Represents a response from a delete request containing error messages if there are any.","x-release-status":"BETA","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{}},"DeleteMerchantCustomAttributeResponse":{"type":"object","description":"Represents a [DeleteMerchantCustomAttribute](api-endpoint:MerchantCustomAttributes-DeleteMerchantCustomAttribute) response.\nEither an empty object `{}` (for a successful deletion) or `errors` is present in the response.","x-release-status":"BETA","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{}},"DeleteOrderCustomAttributeDefinitionResponse":{"type":"object","description":"Represents a response from deleting an order custom attribute definition.","x-release-status":"BETA","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{}},"DeleteOrderCustomAttributeResponse":{"type":"object","description":"Represents a response from deleting an order custom attribute.","x-release-status":"BETA","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{}},"DeletePaymentLinkResponse":{"type":"object","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"}},"id":{"type":"string","description":"The ID of the link that is deleted."},"cancelled_order_id":{"type":"string","description":"The ID of the order that is canceled. When a payment link is deleted, Square updates the\nthe `state` (of the order that the checkout link created) to CANCELED."}},"example":{"cancelled_order_id":"asx8LgZ6MRzD0fObfkJ6obBmSh4F","id":"MQASNYL6QB6DFCJ3"}},"DeleteShiftResponse":{"type":"object","description":"The response to a request to delete a `Shift`. The response might contain a set of \n`Error` objects if the request resulted in errors.","x-release-status":"DEPRECATED","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{}},"DeleteSnippetResponse":{"type":"object","description":"Represents a `DeleteSnippet` response.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{}},"DeleteSubscriptionActionResponse":{"type":"object","description":"Defines output parameters in a response of the [DeleteSubscriptionAction](api-endpoint:Subscriptions-DeleteSubscriptionAction)\nendpoint.","x-release-status":"BETA","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Errors encountered during the request."},"subscription":{"$ref":"#/components/schemas/Subscription","description":"The subscription that has the specified action deleted."}},"example":{"subscription":{"card_id":"ccof:IkWfpLj4tNHMyFii3GB","charged_through_date":"2023-11-20","created_at":"2022-07-27T21:53:10Z","customer_id":"JDKYHBWT1D4F8MFH63DBMEN8Y4","id":"8151fc89-da15-4eb9-a685-1a70883cebfc","invoice_ids":["inv:0-ChCHu2mZEabLeeHahQnXDjZQECY","inv:0-ChrcX_i3sNmfsHTGKhI4Wg2mceA"],"location_id":"S8GWD5R9QB376","paid_until_date":"2024-08-01","plan_variation_id":"6JHXF3B2CW3YKHDV4XEM674H","price_override_money":{"amount":25000,"currency":"USD"},"source":{"name":"My Application"},"start_date":"2022-07-27","status":"ACTIVE","timezone":"America/Los_Angeles"}}},"DeleteTimecardResponse":{"type":"object","description":"The response to a request to delete a `Timecard`. The response might contain a set of \n`Error` objects if the request resulted in errors.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{}},"DeleteTransferOrderResponse":{"type":"object","description":"Response for deleting a transfer order","x-release-status":"BETA","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request"}},"example":{}},"DeleteWebhookSubscriptionResponse":{"type":"object","description":"Defines the fields that are included in the response body of\na request to the [DeleteWebhookSubscription](api-endpoint:WebhookSubscriptions-DeleteWebhookSubscription) endpoint.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information on errors encountered during the request."}},"example":{}},"Destination":{"type":"object","description":"Information about the destination against which the payout was made.","x-release-status":"PUBLIC","properties":{"type":{"$ref":"#/components/schemas/DestinationType","description":"Type of the destination such as a bank account or debit card.\nSee [DestinationType](#type-destinationtype) for possible values","nullable":true},"id":{"type":"string","description":"Square issued unique ID (also known as the instrument ID) associated with this destination."}}},"DestinationDetails":{"type":"object","description":"Details about a refund's destination.","x-release-status":"PUBLIC","properties":{"card_details":{"$ref":"#/components/schemas/DestinationDetailsCardRefundDetails","description":"Details about a card refund. Only populated if the destination_type is `CARD`.","nullable":true},"cash_details":{"$ref":"#/components/schemas/DestinationDetailsCashRefundDetails","description":"Details about a cash refund. Only populated if the destination_type is `CASH`.","nullable":true},"external_details":{"$ref":"#/components/schemas/DestinationDetailsExternalRefundDetails","description":"Details about an external refund. Only populated if the destination_type is `EXTERNAL`.","nullable":true}}},"DestinationDetailsCardRefundDetails":{"type":"object","x-release-status":"PUBLIC","properties":{"card":{"$ref":"#/components/schemas/Card","description":"The card's non-confidential details.","nullable":true},"entry_method":{"type":"string","description":"The method used to enter the card's details for the refund. The method can be\n`KEYED`, `SWIPED`, `EMV`, `ON_FILE`, or `CONTACTLESS`.","maxLength":50,"nullable":true},"auth_result_code":{"type":"string","description":"The authorization code provided by the issuer when a refund is approved.","maxLength":10,"nullable":true}}},"DestinationDetailsCashRefundDetails":{"type":"object","description":"Stores details about a cash refund. Contains only non-confidential information.","x-release-status":"PUBLIC","required":["seller_supplied_money"],"properties":{"seller_supplied_money":{"$ref":"#/components/schemas/Money","description":"The amount and currency of the money supplied by the seller."},"change_back_money":{"$ref":"#/components/schemas/Money","description":"The amount of change due back to the seller.\nThis read-only field is calculated\nfrom the `amount_money` and `seller_supplied_money` fields.","readOnly":true}}},"DestinationDetailsExternalRefundDetails":{"type":"object","description":"Stores details about an external refund. Contains only non-confidential information.","x-release-status":"PUBLIC","required":["type","source"],"properties":{"type":{"type":"string","description":"The type of external refund the seller paid to the buyer. It can be one of the\nfollowing:\n- CHECK - Refunded using a physical check.\n- BANK_TRANSFER - Refunded using external bank transfer.\n- OTHER\\_GIFT\\_CARD - Refunded using a non-Square gift card.\n- CRYPTO - Refunded using a crypto currency.\n- SQUARE_CASH - Refunded using Square Cash App.\n- SOCIAL - Refunded using peer-to-peer payment applications.\n- EXTERNAL - A third-party application gathered this refund outside of Square.\n- EMONEY - Refunded using an E-money provider.\n- CARD - A credit or debit card that Square does not support.\n- STORED_BALANCE - Use for house accounts, store credit, and so forth.\n- FOOD_VOUCHER - Restaurant voucher provided by employers to employees to pay for meals\n- OTHER - A type not listed here.","maxLength":50},"source":{"type":"string","description":"A description of the external refund source. For example,\n\"Food Delivery Service\".","maxLength":255},"source_id":{"type":"string","description":"An ID to associate the refund to its originating source.","maxLength":255,"nullable":true}}},"DestinationType":{"type":"string","enum":["BANK_ACCOUNT","CARD","SQUARE_BALANCE","SQUARE_STORED_BALANCE"],"x-enum-elements":[{"name":"BANK_ACCOUNT","description":"An external bank account outside of Square."},{"name":"CARD","description":"An external card outside of Square used for the transfer."},{"name":"SQUARE_BALANCE","description":""},{"name":"SQUARE_STORED_BALANCE","description":"Square Checking or Savings account (US), Square Card (CA)"}],"description":"List of possible destinations against which a payout can be made.","x-release-status":"PUBLIC"},"Device":{"type":"object","x-release-status":"BETA","required":["attributes"],"properties":{"id":{"type":"string","description":"A synthetic identifier for the device. The identifier includes a standardized prefix and\nis otherwise an opaque id generated from key device fields.","readOnly":true},"attributes":{"$ref":"#/components/schemas/DeviceAttributes","description":"A collection of DeviceAttributes representing the device."},"components":{"type":"array","items":{"$ref":"#/components/schemas/Component"},"description":"A list of components applicable to the device.","nullable":true},"status":{"$ref":"#/components/schemas/DeviceStatus","description":"The current status of the device.","readOnly":true}}},"DeviceAttributes":{"type":"object","x-release-status":"BETA","required":["type","manufacturer"],"properties":{"type":{"$ref":"#/components/schemas/DeviceAttributesDeviceType","description":"The device type.\nSee [DeviceType](#type-devicetype) for possible values"},"manufacturer":{"type":"string","description":"The maker of the device."},"model":{"type":"string","description":"The specific model of the device.","nullable":true},"name":{"type":"string","description":"A seller-specified name for the device.","nullable":true},"manufacturers_id":{"type":"string","description":"The manufacturer-supplied identifier for the device (where available). In many cases,\nthis identifier will be a serial number.","nullable":true},"updated_at":{"type":"string","description":"The RFC 3339-formatted value of the most recent update to the device information.\n(Could represent any field update on the device.)","readOnly":true},"version":{"type":"string","description":"The current version of software installed on the device."},"merchant_token":{"type":"string","description":"The merchant_token identifying the merchant controlling the device.","nullable":true}}},"DeviceAttributesDeviceType":{"type":"string","enum":["TERMINAL","HANDHELD"],"x-enum-elements":[{"name":"TERMINAL","description":""},{"name":"HANDHELD","description":""}],"description":"An enum identifier of the device type.","x-release-status":"BETA"},"DeviceCheckoutOptions":{"type":"object","x-release-status":"PUBLIC","required":["device_id"],"properties":{"device_id":{"type":"string","description":"The unique ID of the device intended for this `TerminalCheckout`.\nA list of `DeviceCode` objects can be retrieved from the /v2/devices/codes endpoint.\nMatch a `DeviceCode.device_id` value with `device_id` to get the associated device code."},"skip_receipt_screen":{"type":"boolean","description":"Instructs the device to skip the receipt screen. Defaults to false.","nullable":true},"collect_signature":{"type":"boolean","description":"Indicates that signature collection is desired during checkout. Defaults to false.","nullable":true},"tip_settings":{"$ref":"#/components/schemas/TipSettings","description":"Tip-specific settings.","nullable":true},"show_itemized_cart":{"type":"boolean","description":"Show the itemization screen prior to taking a payment. This field is only meaningful when the\ncheckout includes an order ID. Defaults to true.","nullable":true},"allow_auto_card_surcharge":{"type":"boolean","description":"Controls whether the mobile client applies Auto Card Surcharge (ACS) during checkout.\nIf true, ACS is applied based on Dashboard configuration.\nIf false, ACS is not applied regardless of that configuration.\nFor more information, see [Add a Card Surcharge](https://developer.squareup.com/docs/terminal-api/additional-payment-checkout-features#add-a-card-surcharge).","x-release-status":"BETA","nullable":true}}},"DeviceCode":{"type":"object","x-release-status":"PUBLIC","required":["product_type"],"properties":{"id":{"type":"string","description":"The unique id for this device code.","readOnly":true},"name":{"type":"string","description":"An optional user-defined name for the device code.","maxLength":128,"nullable":true},"code":{"type":"string","description":"The unique code that can be used to login.","readOnly":true},"device_id":{"type":"string","description":"The unique id of the device that used this code. Populated when the device is paired up.","readOnly":true},"product_type":{"$ref":"#/components/schemas/ProductType","description":"The targeting product type of the device code."},"location_id":{"type":"string","description":"The location assigned to this code.","maxLength":50,"nullable":true},"status":{"$ref":"#/components/schemas/DeviceCodeStatus","description":"The pairing status of the device code.\nSee [DeviceCodeStatus](#type-devicecodestatus) for possible values","readOnly":true},"pair_by":{"type":"string","description":"When this DeviceCode will expire and no longer login. Timestamp in RFC 3339 format.","readOnly":true},"created_at":{"type":"string","description":"When this DeviceCode was created. Timestamp in RFC 3339 format.","readOnly":true},"status_changed_at":{"type":"string","description":"When this DeviceCode's status was last changed. Timestamp in RFC 3339 format.","readOnly":true},"paired_at":{"type":"string","description":"When this DeviceCode was paired. Timestamp in RFC 3339 format.","readOnly":true}}},"DeviceCodePairedEvent":{"type":"object","description":"Published when a Square Terminal has been paired with a\nTerminal API client and the device_id of the paired Square Terminal is\navailable.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the target merchant associated with the event.","nullable":true},"location_id":{"type":"string","description":"The ID of the target location associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event this represents, `\"device.code.paired\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"RFC 3339 timestamp of when the event was created.","readOnly":true},"data":{"$ref":"#/components/schemas/DeviceCodePairedEventData","description":"Data associated with the event.","nullable":true}},"example":{"created_at":"2020-04-10T14:41:58.036Z","data":{"id":"05NK80TRSC2ZF","object":{"device_code":{"code":"ABCDEF","created_at":"2020-04-10T14:41:20.000Z","device_id":"907CS13101300122","id":"05NK80TRSC2ZF","location_id":"AR63EC48VXVBN","name":"Terminal API Device created on Apr 10, 2020","paired_at":"2020-04-10T14:41:50.000Z","product_type":"TERMINAL_API","status":"PAIRED","status_changed_at":"2020-04-10T14:41:50.000Z"}},"type":"device_code"},"event_id":"84ccdb8a-da90-4b14-b6b0-c5a5abbccfe6","location_id":"AR63EC48VXVBN","merchant_id":"7NZR58EPNGNPC","type":"device.code.paired"},"x-webhook":{"event":"device.code.paired","scopes":["DEVICE_CREDENTIAL_MANAGEMENT"]},"x-api":"#/components/x-apis/Devices","x-since":"2020-04-22"},"DeviceCodePairedEventData":{"type":"object","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"Name of the paired object’s type, `\"device_code\"`.","nullable":true},"id":{"type":"string","description":"ID of the paired device code."},"object":{"$ref":"#/components/schemas/DeviceCodePairedEventObject","description":"An object containing the paired device code.","nullable":true}}},"DeviceCodePairedEventObject":{"type":"object","x-release-status":"PUBLIC","properties":{"device_code":{"$ref":"#/components/schemas/DeviceCode","description":"The created terminal checkout","nullable":true}}},"DeviceCodeStatus":{"type":"string","enum":["UNKNOWN","UNPAIRED","PAIRED","EXPIRED"],"x-enum-elements":[{"name":"UNKNOWN","description":"The status cannot be determined or does not exist."},{"name":"UNPAIRED","description":"The device code is just created and unpaired."},{"name":"PAIRED","description":"The device code has been signed in and paired to a device."},{"name":"EXPIRED","description":"The device code was unpaired and expired before it was paired."}],"description":"DeviceCode.Status enum.","x-release-status":"PUBLIC"},"DeviceComponentDetailsApplicationDetails":{"type":"object","x-release-status":"BETA","properties":{"application_type":{"$ref":"#/components/schemas/ApplicationType","description":"The type of application.\nSee [ApplicationType](#type-applicationtype) for possible values","nullable":true},"version":{"type":"string","description":"The version of the application."},"session_location":{"type":"string","description":"The location_id of the session for the application.","nullable":true},"device_code_id":{"type":"string","description":"The id of the device code that was used to log in to the device.","nullable":true}}},"DeviceComponentDetailsBatteryDetails":{"type":"object","x-release-status":"BETA","properties":{"visible_percent":{"type":"integer","description":"The battery charge percentage as displayed on the device.","nullable":true},"external_power":{"$ref":"#/components/schemas/DeviceComponentDetailsExternalPower","description":"The status of external_power.\nSee [ExternalPower](#type-externalpower) for possible values","nullable":true}}},"DeviceComponentDetailsCardReaderDetails":{"type":"object","x-release-status":"BETA","properties":{"version":{"type":"string","description":"The version of the card reader."}}},"DeviceComponentDetailsEthernetDetails":{"type":"object","x-release-status":"BETA","properties":{"active":{"type":"boolean","description":"A boolean to represent whether the Ethernet interface is currently active.","nullable":true},"ip_address_v4":{"type":"string","description":"The string representation of the device’s IPv4 address.","nullable":true},"mac_address":{"type":"string","description":"The mac address of the device in this network.","nullable":true}}},"DeviceComponentDetailsExternalPower":{"type":"string","enum":["AVAILABLE_CHARGING","AVAILABLE_NOT_IN_USE","UNAVAILABLE","AVAILABLE_INSUFFICIENT"],"x-enum-elements":[{"name":"AVAILABLE_CHARGING","description":"Plugged in and charging."},{"name":"AVAILABLE_NOT_IN_USE","description":"Fully charged."},{"name":"UNAVAILABLE","description":"On battery power."},{"name":"AVAILABLE_INSUFFICIENT","description":"Not providing enough power for the device."}],"description":"An enum for ExternalPower.","x-release-status":"BETA"},"DeviceComponentDetailsMeasurement":{"type":"object","description":"A value qualified by unit of measure.","x-release-status":"BETA","properties":{"value":{"type":"integer","description":"Value of measure.","nullable":true}}},"DeviceComponentDetailsWiFiDetails":{"type":"object","x-release-status":"BETA","properties":{"active":{"type":"boolean","description":"A boolean to represent whether the WiFI interface is currently active.","nullable":true},"ssid":{"type":"string","description":"The name of the connected WIFI network.","nullable":true},"ip_address_v4":{"type":"string","description":"The string representation of the device’s IPv4 address.","nullable":true},"secure_connection":{"type":"string","description":"The security protocol for a secure connection (e.g. WPA2). None provided if the connection\nis unsecured.","nullable":true},"signal_strength":{"$ref":"#/components/schemas/DeviceComponentDetailsMeasurement","description":"A representation of signal strength of the WIFI network connection.","nullable":true},"mac_address":{"type":"string","description":"The mac address of the device in this network.","nullable":true}}},"DeviceCreatedEvent":{"type":"object","description":"Published when a Device is created.","x-release-status":"BETA","properties":{"merchant_id":{"type":"string","description":"The merchant the newly created device belongs to.","nullable":true},"type":{"type":"string","description":"The type of event this represents. The value is `\"device.created\"`.","nullable":true},"event_id":{"type":"string","description":"A UUID that uniquely identifies this device creation event.","nullable":true},"created_at":{"type":"string","description":"The time when the device creation event was first created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/DeviceCreatedEventData","description":"The metadata associated with the device creation event.","nullable":true}},"example":{"created_at":"2023-08-08T16:49:54.990909221Z","data":{"id":"device:3136f66b-f4b0-3846-8722-7fcc55270e50","object":{"device":{"attributes":{"manufacturer":"SQUARE","manufacturers_id":"3136f66b-f4b0-3846-8722-7fcc55270e50","merchant_token":"MLF2HW14529P1","model":"T2","name":"San Francisco Store - Device 901","type":"TERMINAL","updated_at":"2023-08-08T16:49:54.990909221Z","version":"9.9.3"},"components":[{"battery_details":{"external_power":"AVAILABLE_INSUFFICIENT","visible_percent":11},"type":"BATTERY"},{"card_reader_details":{"version":"8.5.6"},"type":"CARD_READER"},{"ethernet_details":{"active":false,"ip_address_v4":"109.208.212.40"},"type":"ETHERNET"},{"type":"WIFI","wifi_details":{"active":true,"ip_address_v4":"187.180.54.247","secure_connection":"WPA/WPA2 PSK","signal_strength":{"value":3},"ssid":"San Francisco Store Wifi"}},{"application_details":{"application_type":"TERMINAL_API","device_code_id":"G5D3VSVAFYTPB","session_location":"LN6WR64FV0VEP","version":"8.6.1"},"type":"APPLICATION"},{"type":"PRINTER"}],"id":"device:3136f66b-f4b0-3846-8722-7fcc55270e50","status":"AVAILABLE"}},"type":"device"},"event_id":"e2744346-e23d-31e8-9f52-660116750760","merchant_id":"MLF2HW14529P1","type":"device.created"},"x-webhook":{"event":"device.created","scopes":["DEVICES_READ"]},"x-api":"#/components/x-apis/Devices","x-since":"2023-09-25"},"DeviceCreatedEventData":{"type":"object","x-release-status":"BETA","properties":{"type":{"type":"string","description":"The type of the event data object. The value is `\"device\"`.","nullable":true},"id":{"type":"string","description":"The ID of the device."},"object":{"$ref":"#/components/schemas/DeviceCreatedEventObject","description":"An object containing the created device.","nullable":true}}},"DeviceCreatedEventObject":{"type":"object","x-release-status":"BETA","properties":{"device":{"$ref":"#/components/schemas/Device","description":"The created device.","nullable":true}}},"DeviceDetails":{"type":"object","description":"Details about the device that took the payment.","x-release-status":"PUBLIC","properties":{"device_id":{"type":"string","description":"The Square-issued ID of the device.","maxLength":255,"nullable":true},"device_installation_id":{"type":"string","description":"The Square-issued installation ID for the device.","maxLength":255,"nullable":true},"device_name":{"type":"string","description":"The name of the device set by the seller.","maxLength":255,"nullable":true}}},"DeviceMetadata":{"type":"object","x-release-status":"BETA","properties":{"battery_percentage":{"type":"string","description":"The Terminal’s remaining battery percentage, between 1-100.","nullable":true},"charging_state":{"type":"string","description":"The current charging state of the Terminal.\nOptions: `CHARGING`, `NOT_CHARGING`","nullable":true},"location_id":{"type":"string","description":"The ID of the Square seller business location associated with the Terminal.","nullable":true},"merchant_id":{"type":"string","description":"The ID of the Square merchant account that is currently signed-in to the Terminal.","nullable":true},"network_connection_type":{"type":"string","description":"The Terminal’s current network connection type.\nOptions: `WIFI`, `ETHERNET`","nullable":true},"payment_region":{"type":"string","description":"The country in which the Terminal is authorized to take payments.","nullable":true},"serial_number":{"type":"string","description":"The unique identifier assigned to the Terminal, which can be found on the lower back\nof the device.","nullable":true},"os_version":{"type":"string","description":"The current version of the Terminal’s operating system.","nullable":true},"app_version":{"type":"string","description":"The current version of the application running on the Terminal.","nullable":true},"wifi_network_name":{"type":"string","description":"The name of the Wi-Fi network to which the Terminal is connected.","nullable":true},"wifi_network_strength":{"type":"string","description":"The signal strength of the Wi-FI network connection.\nOptions: `POOR`, `FAIR`, `GOOD`, `EXCELLENT`","nullable":true},"ip_address":{"type":"string","description":"The IP address of the Terminal.","nullable":true}}},"DeviceStatus":{"type":"object","x-release-status":"BETA","properties":{"category":{"$ref":"#/components/schemas/DeviceStatusCategory","description":"Category of the device status.\nSee [Category](#type-category) for possible values","nullable":true}}},"DeviceStatusCategory":{"type":"string","enum":["AVAILABLE","NEEDS_ATTENTION","OFFLINE"],"x-enum-elements":[{"name":"AVAILABLE","description":""},{"name":"NEEDS_ATTENTION","description":""},{"name":"OFFLINE","description":""}],"x-release-status":"BETA"},"DigitalWalletDetails":{"type":"object","description":"Additional details about `WALLET` type payments. Contains only non-confidential information.","x-release-status":"PUBLIC","properties":{"status":{"type":"string","description":"The status of the `WALLET` payment. The status can be `AUTHORIZED`, `CAPTURED`, `VOIDED`, or\n`FAILED`.","maxLength":50,"nullable":true},"brand":{"type":"string","description":"The brand used for the `WALLET` payment. The brand can be `CASH_APP`, `PAYPAY`, `ALIPAY`,\n`RAKUTEN_PAY`, `AU_PAY`, `D_BARAI`, `MERPAY`, `WECHAT_PAY`, `LIGHTNING` or `UNKNOWN`.","maxLength":50,"nullable":true},"cash_app_details":{"$ref":"#/components/schemas/CashAppDetails","description":"Brand-specific details for payments with the `brand` of `CASH_APP`.","nullable":true},"lightning_details":{"$ref":"#/components/schemas/LightningDetails","description":"Brand-specific details for payments with the `brand` of `LIGHTNING`.","nullable":true},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information about errors encountered during the payment.","readOnly":true}}},"DisableBankAccountResponse":{"type":"object","description":"Response object returned by `DisableBankAccount`.","x-release-status":"BETA","properties":{"bank_account":{"$ref":"#/components/schemas/BankAccount","description":"The disabled 'BankAccount'"},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information on errors encountered during the request."}},"example":{"bank_account":{"account_number_suffix":"000","account_type":"CHECKING","bank_name":"Citizens Bank","country":"US","creditable":true,"currency":"USD","customer_id":"HM3B2D5JKGZ69359BTEHXM2V8M","debitable":true,"fingerprint":"sq-1-mO3XNctJpTLL8uYowOWpioS8nQyTc838gcBo90254XonoEJ_c7Uw6yqL6qihFNY8fA","holder_name":"Nicola Snow","id":"bact:OxfBTiXgByaXds1K4GB","primary_bank_identification_number":"011401533","status":"DISABLED","version":3}}},"DisableCardResponse":{"type":"object","description":"Defines the fields that are included in the response body of\na request to the [DisableCard](api-endpoint:Cards-DisableCard) endpoint.\n\nNote: if there are errors processing the request, the card field will not be\npresent.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information on errors encountered during the request."},"card":{"$ref":"#/components/schemas/Card","description":"The retrieved card."}},"example":{"card":{"billing_address":{"address_line_1":"500 Electric Ave","address_line_2":"Suite 600","administrative_district_level_1":"NY","country":"US","locality":"New York","postal_code":"10003"},"bin":"411111","card_brand":"VISA","card_type":"CREDIT","cardholder_name":"Amelia Earhart","customer_id":"VDKXEEKPJN48QDG3BGGFAK05P8","enabled":false,"exp_month":11,"exp_year":2022,"fingerprint":"ex-p-cs80EK9Flz7LsCMv-szbptQ_ssAGrhemzSTsPFgt9nzyE6t7okiLIQc-qw_quqKX4Q","hsa_fsa":false,"id":"ccof:uIbfJXhXETSP197M3GB","last_4":"1111","merchant_id":"6SSW7HV8K2ST5","prepaid_type":"NOT_PREPAID","reference_id":"user-id-1","version":2}}},"DisableEventsResponse":{"type":"object","description":"Defines the fields that are included in the response body of\na request to the [DisableEvents](api-endpoint:Events-DisableEvents) endpoint.\n\nNote: if there are errors processing the request, the events field will not be\npresent.","x-release-status":"BETA","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information on errors encountered during the request."}},"example":{}},"DismissTerminalActionResponse":{"type":"object","x-release-status":"BETA","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information on errors encountered during the request."},"action":{"$ref":"#/components/schemas/TerminalAction","description":"Current state of the action to be dismissed."}},"example":{"action":{"app_id":"APP_ID","await_next_action":true,"await_next_action_duration":"PT5M","confirmation_options":{"agree_button_text":"Agree","body":"I agree to receive promotional emails about future events and activities.","decision":{"has_agreed":true},"disagree_button_text":"Decline","title":"Marketing communications"},"created_at":"2021-07-28T23:22:07.476Z","deadline_duration":"PT5M","device_id":"DEVICE_ID","id":"termapia:abcdefg1234567","status":"COMPLETED","type":"CONFIRMATION","updated_at":"2021-07-28T23:22:29.511Z"}}},"DismissTerminalCheckoutResponse":{"type":"object","x-release-status":"BETA","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information on errors encountered during the request."},"checkout":{"$ref":"#/components/schemas/TerminalCheckout","description":"Current state of the checkout to be dismissed."}},"example":{"checkout":{"amount_money":{"amount":2610,"currency":"USD"},"app_id":"APP_ID","created_at":"2023-11-29T14:59:50.682Z","deadline_duration":"PT5M","device_options":{"collect_signature":true,"device_id":"dbb5d83a-7838-11ea-bc55-0242ac130003","loyalty_settings":{"loyalty_screen_max_display_duration":"PT60S","show_card_linked_reward_redemption_screen":false,"show_loyalty_screen":false,"show_non_qualifying_loyalty_screen":false},"skip_receipt_screen":false,"tip_settings":{"allow_tipping":true,"custom_tip_field":false,"separate_tip_screen":true}},"id":"LmZEKbo3SBfqO","location_id":"LOCATION_ID","payment_ids":["D7vLJqMkvSoAlX4yyFzUitOy4EPZY"],"payment_options":{"autocomplete":true},"payment_type":"CARD_PRESENT","status":"COMPLETED","updated_at":"2023-11-29T15:00:18.936Z"}}},"DismissTerminalRefundResponse":{"type":"object","x-release-status":"BETA","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information on errors encountered during the request."},"refund":{"$ref":"#/components/schemas/TerminalRefund","description":"Current state of the refund to be dismissed."}},"example":{"refund":{"amount_money":{"amount":111,"currency":"CAD"},"app_id":"APP_ID","card":{"bin":"411111","card_brand":"VISA","card_type":"DEBIT","exp_month":12,"exp_year":2024,"fingerprint":"sq-1-ElNeDpZZqUBNDI7yNghyKO-o0yLXASp4qQDGIPtxnFvTTWoqdfdP6TV8gLsSxoztXA","last_4":"1111","prepaid_type":"NOT_PREPAID"},"card_details":{"auth_result_code":"RNy6Lf","avs_status":"AVS_ACCEPTED","card":{"bin":"411111","card_brand":"VISA","card_type":"DEBIT","exp_month":12,"exp_year":2024,"fingerprint":"sq-1-ElNeDpZZqUBNDI7yNghyKO-o0yLXASp3qQDGIPtxnFvTTWoqdfdP6TV9gLsSxoztXA","last_4":"1111","prepaid_type":"NOT_PREPAID"},"card_payment_timeline":{"authorized_at":"2023-11-30T16:15:06.645Z","captured_at":"2023-11-30T16:15:13.272Z"},"cvv_status":"CVV_ACCEPTED","device_details":{"device_credential":{"name":"Terminal API Device created on Nov 2, 2023","token":"9BFDXEYKB7H8Y"},"device_id":"f72dfb8e-4d65-4e56-aade-ec3fb8d33291","device_installation_id":"0ef67d8e-61a3-4418-a0be-c143bfe6108d"},"entry_method":"SWIPED","statement_description":"SQ TREATS","status":"CAPTURED"},"created_at":"2023-11-30T16:16:39.299Z","deadline_duration":"PT5M","device_id":"47776348fd8b32b9","id":"vjkNb2HD-xq5kiWWiJ7RhwrQnkxIn2N0l1nPZY","order_id":"s8OMhQcpEp1b61YywlccSHWqUaQZY","payment_id":"xq5kiWWiJ7RhwrQnkxIn2N0l1nPZY","reason":"Returning item","status":"IN_PROGRESS","updated_at":"2023-11-30T16:16:57.863Z"}}},"Dispute":{"type":"object","description":"Represents a [dispute](https://developer.squareup.com/docs/disputes-api/overview) a cardholder initiated with their bank.","x-release-status":"PUBLIC","properties":{"dispute_id":{"type":"string","description":"The unique ID for this `Dispute`, generated by Square.","minLength":1,"maxLength":40,"x-release-status":"DEPRECATED","nullable":true},"id":{"type":"string","description":"The unique ID for this `Dispute`, generated by Square.","minLength":1,"maxLength":40},"amount_money":{"$ref":"#/components/schemas/Money","description":"The disputed amount, which can be less than the total transaction amount.\nFor instance, if multiple items were purchased but the cardholder only initiates a dispute over some of the items.","nullable":true},"reason":{"$ref":"#/components/schemas/DisputeReason","description":"The reason why the cardholder initiated the dispute.\nSee [DisputeReason](#type-disputereason) for possible values","nullable":true},"state":{"$ref":"#/components/schemas/DisputeState","description":"The current state of this dispute.\nSee [DisputeState](#type-disputestate) for possible values","nullable":true},"due_at":{"type":"string","description":"The deadline by which the seller must respond to the dispute, in [RFC 3339 format](https://developer.squareup.com/docs/build-basics/common-data-types/working-with-dates).","minLength":1,"maxLength":40,"nullable":true},"disputed_payment":{"$ref":"#/components/schemas/DisputedPayment","description":"The payment challenged in this dispute.","nullable":true},"evidence_ids":{"type":"array","items":{"type":"string"},"description":"The IDs of the evidence associated with the dispute.","x-release-status":"DEPRECATED","nullable":true},"card_brand":{"$ref":"#/components/schemas/CardBrand","description":"The card brand used in the disputed payment.\nSee [CardBrand](#type-cardbrand) for possible values","nullable":true},"created_at":{"type":"string","description":"The timestamp when the dispute was created, in RFC 3339 format.","minLength":1,"maxLength":40,"readOnly":true},"updated_at":{"type":"string","description":"The timestamp when the dispute was last updated, in RFC 3339 format.","minLength":1,"maxLength":40,"readOnly":true},"brand_dispute_id":{"type":"string","description":"The ID of the dispute in the card brand system, generated by the card brand.","minLength":1,"maxLength":40,"nullable":true},"reported_date":{"type":"string","description":"The timestamp when the dispute was reported, in RFC 3339 format.","minLength":1,"maxLength":40,"x-release-status":"DEPRECATED","nullable":true},"reported_at":{"type":"string","description":"The timestamp when the dispute was reported, in RFC 3339 format.","minLength":1,"maxLength":40,"nullable":true},"version":{"type":"integer","description":"The current version of the `Dispute`."},"location_id":{"type":"string","description":"The ID of the location where the dispute originated.","minLength":1,"maxLength":40,"nullable":true}}},"DisputeCreatedEvent":{"type":"object","description":"Published when a [Dispute](entity:Dispute) is created.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the target merchant associated with the event.","nullable":true},"location_id":{"type":"string","description":"The ID of the target location associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event this represents.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"Timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/DisputeCreatedEventData","description":"Data associated with the event.","nullable":true}},"example":{"created_at":"2020-02-19T21:24:53.258Z","data":{"id":"ORSEVtZAJxb37RA1EiGw","object":{"dispute":{"amount_money":{"amount":8801,"currency":"USD"},"brand_dispute_id":"r9rKGSBBQbywBNnWWIiGFg","card_brand":"VISA","created_at":"2020-02-19T21:24:53.258Z","disputed_payment":{"payment_id":"fbmsaEOpoARDKxiSGH1fqPuqoqFZY"},"due_at":"2020-03-04T00:00:00.000Z","id":"ORSEVtZAJxb37RA1EiGw","location_id":"VJDQQP3CG14EY","reason":"AMOUNT_DIFFERS","reported_at":"2020-02-19T00:00:00.000Z","state":"EVIDENCE_REQUIRED","updated_at":"2020-02-19T21:24:53.258Z","version":1}},"type":"dispute"},"event_id":"ce8464b5-6628-4ac2-9264-e06c34df3e82","location_id":"VJDQQP3CG14EY","merchant_id":"0HPGX5JYE6EE1","type":"dispute.created"},"x-webhook":{"event":"dispute.created","scopes":["DISPUTES_READ"]},"x-api":"#/components/x-apis/Disputes","x-since":"2020-02-26"},"DisputeCreatedEventData":{"type":"object","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"Name of the affected dispute's type.","nullable":true},"id":{"type":"string","description":"ID of the affected dispute."},"object":{"$ref":"#/components/schemas/DisputeCreatedEventObject","description":"An object containing fields and values relevant to the event.","nullable":true}}},"DisputeCreatedEventObject":{"type":"object","x-release-status":"PUBLIC","properties":{"object":{"$ref":"#/components/schemas/Dispute","description":"The dispute object.","nullable":true}}},"DisputeEvidence":{"type":"object","x-release-status":"PUBLIC","properties":{"evidence_id":{"type":"string","description":"The Square-generated ID of the evidence.","minLength":1,"maxLength":40,"x-release-status":"DEPRECATED","nullable":true},"id":{"type":"string","description":"The Square-generated ID of the evidence.","minLength":1,"maxLength":40},"dispute_id":{"type":"string","description":"The ID of the dispute the evidence is associated with.","minLength":1,"maxLength":40,"nullable":true},"evidence_file":{"$ref":"#/components/schemas/DisputeEvidenceFile","description":"Image, PDF, TXT","nullable":true},"evidence_text":{"type":"string","description":"Raw text","minLength":1,"maxLength":500,"nullable":true},"uploaded_at":{"type":"string","description":"The time when the evidence was uploaded, in RFC 3339 format.","minLength":1,"maxLength":40,"nullable":true},"evidence_type":{"$ref":"#/components/schemas/DisputeEvidenceType","description":"The type of the evidence.\nSee [DisputeEvidenceType](#type-disputeevidencetype) for possible values","nullable":true}}},"DisputeEvidenceAddedEvent":{"type":"object","description":"Published when evidence is added to a [Dispute](entity:Dispute)\nfrom the Disputes Dashboard in the Seller Dashboard, the Square Point of Sale app,\nor by calling either [CreateDisputeEvidenceFile](api-endpoint:Disputes-CreateDisputeEvidenceFile) or [CreateDisputeEvidenceText](api-endpoint:Disputes-CreateDisputeEvidenceText).","x-release-status":"DEPRECATED","properties":{"merchant_id":{"type":"string","description":"The ID of the target merchant associated with the event.","nullable":true},"location_id":{"type":"string","description":"The ID of the target location associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event this represents.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"Timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/DisputeEvidenceAddedEventData","description":"Data associated with the event.","nullable":true}},"example":{"created_at":"2020-02-19T21:27:28.851Z","data":{"id":"ORSEVtZAJxb37RA1EiGw","object":{"dispute":{"amount_money":{"amount":8801,"currency":"USD"},"brand_dispute_id":"r9rKGSBBQbywBNnWWIiGFg","card_brand":"VISA","created_at":"2020-02-19T21:24:53.258Z","dispute_id":"ORSEVtZAJxb37RA1EiGw","disputed_payment":{"payment_id":"fbmsaEOpoARDKxiSGH1fqPuqoqFZY"},"due_at":"2020-03-04T00:00:00.000Z","evidence_ids":["oThqMsDS9bM0LdjZzVB4qB"],"location_id":"VJDQQP3CG14EY","reason":"AMOUNT_DIFFERS","reported_date":"2020-02-19T00:00:00.000Z","state":"EVIDENCE_REQUIRED","updated_at":"2020-02-19T21:27:28.851Z","version":2}},"type":"dispute"},"event_id":"6f606f30-53d0-495a-87f0-958576fc954f","location_id":"VJDQQP3CG14EY","merchant_id":"0HPGX5JYE6EE1","type":"dispute.evidence.added"},"x-webhook":{"event":"dispute.evidence.added","scopes":["PAYMENTS_READ"]},"x-api":"#/components/x-apis/Disputes","x-since":"2020-02-26"},"DisputeEvidenceAddedEventData":{"type":"object","x-release-status":"DEPRECATED","properties":{"type":{"type":"string","description":"Name of the affected dispute's type.","nullable":true},"id":{"type":"string","description":"ID of the affected dispute."},"object":{"$ref":"#/components/schemas/DisputeEvidenceAddedEventObject","description":"An object containing fields and values relevant to the event.","nullable":true}}},"DisputeEvidenceAddedEventObject":{"type":"object","x-release-status":"DEPRECATED","properties":{"object":{"$ref":"#/components/schemas/Dispute","description":"The dispute object.","nullable":true}}},"DisputeEvidenceCreatedEvent":{"type":"object","description":"Published when evidence is added to a [Dispute](entity:Dispute)\nfrom the Disputes Dashboard in the Seller Dashboard, the Square Point of Sale app,\nor by calling either [CreateDisputeEvidenceFile](api-endpoint:Disputes-CreateDisputeEvidenceFile) or [CreateDisputeEvidenceText](api-endpoint:Disputes-CreateDisputeEvidenceText).","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the target merchant associated with the event.","nullable":true},"location_id":{"type":"string","description":"The ID of the target location associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event this represents.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"Timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/DisputeEvidenceCreatedEventData","description":"Data associated with the event.","nullable":true}},"example":{"created_at":"2020-02-19T21:27:28.851Z","data":{"id":"ORSEVtZAJxb37RA1EiGw","object":{"dispute":{"amount_money":{"amount":8801,"currency":"USD"},"brand_dispute_id":"r9rKGSBBQbywBNnWWIiGFg","card_brand":"VISA","created_at":"2020-02-19T21:24:53.258Z","disputed_payment":{"payment_id":"fbmsaEOpoARDKxiSGH1fqPuqoqFZY"},"due_at":"2020-03-04T00:00:00.000Z","id":"ORSEVtZAJxb37RA1EiGw","location_id":"VJDQQP3CG14EY","reason":"AMOUNT_DIFFERS","reported_at":"2020-02-19T00:00:00.000Z","state":"EVIDENCE_REQUIRED","updated_at":"2020-02-19T21:27:28.851Z","version":2}},"type":"dispute"},"event_id":"6f606f30-53d0-495a-87f0-958576fc954f","location_id":"VJDQQP3CG14EY","merchant_id":"0HPGX5JYE6EE1","type":"dispute.evidence.created"},"x-webhook":{"event":"dispute.evidence.created","scopes":["DISPUTES_READ"]},"x-api":"#/components/x-apis/Disputes","x-since":"2021-06-16"},"DisputeEvidenceCreatedEventData":{"type":"object","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"Name of the affected dispute's type.","nullable":true},"id":{"type":"string","description":"ID of the affected dispute."},"object":{"$ref":"#/components/schemas/DisputeEvidenceCreatedEventObject","description":"An object containing fields and values relevant to the event.","nullable":true}}},"DisputeEvidenceCreatedEventObject":{"type":"object","x-release-status":"PUBLIC","properties":{"object":{"$ref":"#/components/schemas/Dispute","description":"The dispute object.","nullable":true}}},"DisputeEvidenceDeletedEvent":{"type":"object","description":"Published when evidence is removed from a [Dispute](entity:Dispute)\nfrom the Disputes Dashboard in the Seller Dashboard, the Square Point of Sale app,\nor by calling [DeleteDisputeEvidence](api-endpoint:Disputes-DeleteDisputeEvidence).","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the target merchant associated with the event.","nullable":true},"location_id":{"type":"string","description":"The ID of the target location associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event this represents.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"Timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/DisputeEvidenceDeletedEventData","description":"Data associated with the event.","nullable":true}},"example":{"created_at":"2020-02-19T21:31:55.186Z","data":{"id":"ORSEVtZAJxb37RA1EiGw","object":{"dispute":{"amount_money":{"amount":8801,"currency":"USD"},"brand_dispute_id":"r9rKGSBBQbywBNnWWIiGFg","card_brand":"VISA","created_at":"2020-02-19T21:24:53.258Z","disputed_payment":{"payment_id":"fbmsaEOpoARDKxiSGH1fqPuqoqFZY"},"due_at":"2020-03-04T00:00:00.000Z","id":"ORSEVtZAJxb37RA1EiGw","location_id":"VJDQQP3CG14EY","reason":"AMOUNT_DIFFERS","reported_at":"2020-02-19T00:00:00.000Z","state":"EVIDENCE_REQUIRED","updated_at":"2020-02-19T21:31:55.186Z","version":3}},"type":"dispute"},"event_id":"e3fd10cc-953b-4f97-83cd-d5b7fa799a8c","location_id":"VJDQQP3CG14EY","merchant_id":"0HPGX5JYE6EE1","type":"dispute.evidence.deleted"},"x-webhook":{"event":"dispute.evidence.deleted","scopes":["DISPUTES_READ"]},"x-api":"#/components/x-apis/Disputes","x-since":"2021-06-16"},"DisputeEvidenceDeletedEventData":{"type":"object","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"Name of the affected dispute's type.","nullable":true},"id":{"type":"string","description":"ID of the affected dispute."},"object":{"$ref":"#/components/schemas/DisputeEvidenceDeletedEventObject","description":"An object containing fields and values relevant to the event.","nullable":true}}},"DisputeEvidenceDeletedEventObject":{"type":"object","x-release-status":"PUBLIC","properties":{"object":{"$ref":"#/components/schemas/Dispute","description":"The dispute object.","nullable":true}}},"DisputeEvidenceFile":{"type":"object","description":"A file to be uploaded as dispute evidence.","x-release-status":"PUBLIC","properties":{"filename":{"type":"string","description":"The file name including the file extension. For example: \"receipt.tiff\".","minLength":1,"maxLength":40,"nullable":true},"filetype":{"type":"string","description":"Dispute evidence files must be application/pdf, image/heic, image/heif, image/jpeg, image/png, or image/tiff formats.","minLength":1,"maxLength":40,"nullable":true}}},"DisputeEvidenceRemovedEvent":{"type":"object","description":"Published when evidence is removed from a [Dispute](entity:Dispute)\nfrom the Disputes Dashboard in the Seller Dashboard, the Square Point of Sale app,\nor by calling [DeleteDisputeEvidence](api-endpoint:Disputes-DeleteDisputeEvidence).","x-release-status":"DEPRECATED","properties":{"merchant_id":{"type":"string","description":"The ID of the target merchant associated with the event.","nullable":true},"location_id":{"type":"string","description":"The ID of the target location associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event this represents.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"Timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/DisputeEvidenceRemovedEventData","description":"Data associated with the event.","nullable":true}},"example":{"created_at":"2020-02-19T21:31:55.186Z","data":{"id":"ORSEVtZAJxb37RA1EiGw","object":{"dispute":{"amount_money":{"amount":8801,"currency":"USD"},"brand_dispute_id":"r9rKGSBBQbywBNnWWIiGFg","card_brand":"VISA","created_at":"2020-02-19T21:24:53.258Z","dispute_id":"ORSEVtZAJxb37RA1EiGw","disputed_payment":{"payment_id":"fbmsaEOpoARDKxiSGH1fqPuqoqFZY"},"due_at":"2020-03-04T00:00:00.000Z","location_id":"VJDQQP3CG14EY","reason":"AMOUNT_DIFFERS","reported_date":"2020-02-19T00:00:00.000Z","state":"EVIDENCE_REQUIRED","updated_at":"2020-02-19T21:31:55.186Z","version":3}},"type":"dispute"},"event_id":"e3fd10cc-953b-4f97-83cd-d5b7fa799a8c","location_id":"VJDQQP3CG14EY","merchant_id":"0HPGX5JYE6EE1","type":"dispute.evidence.removed"},"x-webhook":{"event":"dispute.evidence.removed","scopes":["PAYMENTS_READ"]},"x-api":"#/components/x-apis/Disputes","x-since":"2020-02-26"},"DisputeEvidenceRemovedEventData":{"type":"object","x-release-status":"DEPRECATED","properties":{"type":{"type":"string","description":"Name of the affected dispute's type.","nullable":true},"id":{"type":"string","description":"ID of the affected dispute."},"object":{"$ref":"#/components/schemas/DisputeEvidenceRemovedEventObject","description":"An object containing fields and values relevant to the event.","nullable":true}}},"DisputeEvidenceRemovedEventObject":{"type":"object","x-release-status":"DEPRECATED","properties":{"object":{"$ref":"#/components/schemas/Dispute","description":"The dispute object.","nullable":true}}},"DisputeEvidenceType":{"type":"string","enum":["GENERIC_EVIDENCE","ONLINE_OR_APP_ACCESS_LOG","AUTHORIZATION_DOCUMENTATION","CANCELLATION_OR_REFUND_DOCUMENTATION","CARDHOLDER_COMMUNICATION","CARDHOLDER_INFORMATION","PURCHASE_ACKNOWLEDGEMENT","DUPLICATE_CHARGE_DOCUMENTATION","PRODUCT_OR_SERVICE_DESCRIPTION","RECEIPT","SERVICE_RECEIVED_DOCUMENTATION","PROOF_OF_DELIVERY_DOCUMENTATION","RELATED_TRANSACTION_DOCUMENTATION","REBUTTAL_EXPLANATION","TRACKING_NUMBER"],"x-enum-elements":[{"name":"GENERIC_EVIDENCE","description":"Square assumes this evidence type if you do not provide a type when uploading evidence.\n\nUse when uploading evidence as a file or string."},{"name":"ONLINE_OR_APP_ACCESS_LOG","description":"Server or activity logs that show proof of the cardholder’s identity and that the\ncardholder successfully ordered and received the goods (digitally or otherwise).\nExample evidence includes IP addresses, corresponding timestamps/dates, cardholder’s name and email\naddress linked to a cardholder profile held by the seller, proof the same device and card (used\nin dispute) were previously used in prior undisputed transaction, and any related detailed activity.\n\nUse when uploading evidence as a file or string."},{"name":"AUTHORIZATION_DOCUMENTATION","description":"Evidence that the cardholder did provide authorization for the charge.\nExample evidence includes a signed credit card authorization.\n\nUse when uploading evidence as a file."},{"name":"CANCELLATION_OR_REFUND_DOCUMENTATION","description":"Evidence that the cardholder acknowledged your refund or cancellation policy.\nExample evidence includes a signature or checkbox showing the cardholder’s acknowledgement of your\nrefund or cancellation policy.\n\nUse when uploading evidence as a file or string."},{"name":"CARDHOLDER_COMMUNICATION","description":"Evidence that shows relevant communication with the cardholder.\nExample evidence includes emails or texts that show the cardholder received goods/services or\ndemonstrate cardholder satisfaction.\n\nUse when uploading evidence as a file."},{"name":"CARDHOLDER_INFORMATION","description":"Evidence that validates the customer's identity.\nExample evidence includes personally identifiable details such as name, email address, purchaser IP\naddress, and a copy of the cardholder ID.\n\nUse when uploading evidence as a file or string."},{"name":"PURCHASE_ACKNOWLEDGEMENT","description":"Evidence that shows proof of the sale/transaction.\nExample evidence includes an invoice, contract, or other item showing the customer’s acknowledgement\nof the purchase and your terms.\n\nUse when uploading evidence as a file or string."},{"name":"DUPLICATE_CHARGE_DOCUMENTATION","description":"Evidence that shows the charges in question are valid and distinct from one another.\nExample evidence includes receipts, shipping labels, and invoices along with their distinct payment IDs.\n\nUse when uploading evidence as a file."},{"name":"PRODUCT_OR_SERVICE_DESCRIPTION","description":"A description of the product or service sold.\n\nUse when uploading evidence as a file or string."},{"name":"RECEIPT","description":"A receipt or message sent to the cardholder detailing the charge.\nNote: You do not need to upload the Square receipt; Square submits the receipt on your behalf.\n\nUse when uploading evidence as a file or string."},{"name":"SERVICE_RECEIVED_DOCUMENTATION","description":"Evidence that the service was provided to the cardholder or the expected date that services will be rendered.\nExample evidence includes a signed delivery form, work order, expected delivery date, or other written agreements.\n\nUse when uploading evidence as a file or string."},{"name":"PROOF_OF_DELIVERY_DOCUMENTATION","description":"Evidence that shows the product was provided to the cardholder or the expected date of delivery.\nExample evidence includes a signed delivery form or written agreement acknowledging receipt of the goods or services.\n\nUse when uploading evidence as a file or string."},{"name":"RELATED_TRANSACTION_DOCUMENTATION","description":"Evidence that shows the cardholder previously processed transactions on the same card and did not dispute them.\nNote: Square automatically provides up to five distinct Square receipts for related transactions, when available.\n\nUse when uploading evidence as a file or string."},{"name":"REBUTTAL_EXPLANATION","description":"An explanation of why the cardholder’s claim is invalid.\nExample evidence includes an explanation of why each distinct charge is a legitimate purchase, why the cardholder’s claim\nfor credit owed due to their attempt to cancel, return, or refund is invalid per your stated policy and cardholder\nagreement, or an explanation of how the cardholder did not attempt to remedy the issue with you first to receive credit.\n\nUse when uploading evidence as a file or string."},{"name":"TRACKING_NUMBER","description":"The tracking number for the order provided by the shipping carrier. If you have multiple numbers, they need to be\nsubmitted individually as separate pieces of evidence.\n\nUse when uploading evidence as a string."}],"description":"The type of the dispute evidence.","x-release-status":"PUBLIC"},"DisputeReason":{"type":"string","enum":["AMOUNT_DIFFERS","CANCELLED","DUPLICATE","NO_KNOWLEDGE","NOT_AS_DESCRIBED","NOT_RECEIVED","PAID_BY_OTHER_MEANS","CUSTOMER_REQUESTS_CREDIT","EMV_LIABILITY_SHIFT"],"x-enum-elements":[{"name":"AMOUNT_DIFFERS","description":"The cardholder claims that they were charged the wrong amount for the purchase.\nTo challenge this dispute, provide specific and concrete evidence that the cardholder agreed\nto the amount charged."},{"name":"CANCELLED","description":"The cardholder claims that they attempted to return the goods or cancel the service.\nTo challenge this dispute, provide specific and concrete evidence to prove that the cardholder\nis not due a refund and that the cardholder acknowledged your cancellation policy."},{"name":"DUPLICATE","description":"The cardholder claims that they were charged twice for the same purchase.\nTo challenge this dispute, provide specific and concrete evidence that shows both charges are\nlegitimate and independent of one another."},{"name":"NO_KNOWLEDGE","description":"The cardholder claims that they did not make this purchase nor authorized the charge.\nTo challenge this dispute, provide specific and concrete evidence that proves that the cardholder\nidentity was verified at the time of purchase and that the purchase was authorized."},{"name":"NOT_AS_DESCRIBED","description":"The cardholder claims the product or service was provided, but the quality of the deliverable\ndid not align with the expectations of the cardholder based on the description.\nTo challenge this dispute, provide specific and concrete evidence that shows the cardholder is in\npossession of the product as described or received the service as described and agreed on."},{"name":"NOT_RECEIVED","description":"The cardholder claims the product or service was not received by the cardholder within the\nstated time frame.\nTo challenge this dispute, provide specific and concrete evidence to prove that the cardholder is\nin possession of or received the product or service sold."},{"name":"PAID_BY_OTHER_MEANS","description":"The cardholder claims that they previously paid for this purchase.\nTo challenge this dispute, provide specific and concrete evidence that shows both charges are\nlegitimate and independent of one another or proof that you already provided a credit for the charge."},{"name":"CUSTOMER_REQUESTS_CREDIT","description":"The cardholder claims that the purchase was canceled or returned, but they have not yet received\nthe credit.\nTo challenge this dispute, provide specific and concrete evidence to prove that the cardholder is not\ndue a refund and that they acknowledged your cancellation and/or refund policy."},{"name":"EMV_LIABILITY_SHIFT","description":"A chip-enabled card was not processed through a compliant chip-card reader (for example, it was swiped\ninstead of dipped into a chip-card reader).\nYou cannot challenge this dispute because the payment did not comply with EMV security requirements.\nFor more information, see [What Is EMV?](https://squareup.com/emv)"}],"description":"The list of possible reasons why a cardholder might initiate a\ndispute with their bank.","x-release-status":"PUBLIC"},"DisputeState":{"type":"string","enum":["INQUIRY_EVIDENCE_REQUIRED","INQUIRY_PROCESSING","INQUIRY_CLOSED","EVIDENCE_REQUIRED","PROCESSING","WON","LOST","ACCEPTED"],"x-enum-elements":[{"name":"INQUIRY_EVIDENCE_REQUIRED","description":"The initial state of an inquiry with evidence required"},{"name":"INQUIRY_PROCESSING","description":"Inquiry evidence has been submitted and the bank is processing the inquiry"},{"name":"INQUIRY_CLOSED","description":"The inquiry is complete"},{"name":"EVIDENCE_REQUIRED","description":"The initial state of a dispute with evidence required"},{"name":"PROCESSING","description":"Dispute evidence has been submitted and the bank is processing the dispute"},{"name":"WON","description":"The bank has completed processing the dispute and the seller has won"},{"name":"LOST","description":"The bank has completed processing the dispute and the seller has lost"},{"name":"ACCEPTED","description":"The seller has accepted the dispute"}],"description":"The list of possible dispute states.","x-release-status":"PUBLIC"},"DisputeStateChangedEvent":{"type":"object","description":"Published when the state of a [Dispute](entity:Dispute) changes.\nThis includes the dispute resolution (WON, LOST) reported by the bank. The event\ndata includes details of what changed.","x-release-status":"DEPRECATED","properties":{"merchant_id":{"type":"string","description":"The ID of the target merchant associated with the event.","nullable":true},"location_id":{"type":"string","description":"The ID of the target location associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event this represents.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"Timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/DisputeStateChangedEventData","description":"Data associated with the event.","nullable":true}},"example":{"created_at":"2020-02-19T21:34:41.851Z","data":{"id":"ORSEVtZAJxb37RA1EiGw","object":{"dispute":{"amount_money":{"amount":8801,"currency":"USD"},"brand_dispute_id":"r9rKGSBBQbywBNnWWIiGFg","card_brand":"VISA","created_at":"2020-02-19T21:24:53.258Z","dispute_id":"ORSEVtZAJxb37RA1EiGw","disputed_payment":{"payment_id":"fbmsaEOpoARDKxiSGH1fqPuqoqFZY"},"due_at":"2020-03-04T00:00:00.000Z","evidence_ids":["Vjq6LG8b95cnnq1AoG5bP"],"location_id":"VJDQQP3CG14EY","reason":"AMOUNT_DIFFERS","reported_date":"2020-02-19T00:00:00.000Z","state":"WON","updated_at":"2020-02-19T21:34:41.851Z","version":6}},"type":"dispute"},"event_id":"e89ff114-1972-4be0-9481-a621f2385fff","location_id":"VJDQQP3CG14EY","merchant_id":"0HPGX5JYE6EE1","type":"dispute.state.changed"},"x-webhook":{"event":"dispute.state.changed","scopes":["PAYMENTS_READ"]},"x-api":"#/components/x-apis/Disputes","x-since":"2020-02-26"},"DisputeStateChangedEventData":{"type":"object","x-release-status":"DEPRECATED","properties":{"type":{"type":"string","description":"Name of the affected dispute's type.","nullable":true},"id":{"type":"string","description":"ID of the affected dispute."},"object":{"$ref":"#/components/schemas/DisputeStateChangedEventObject","description":"An object containing fields and values relevant to the event.","nullable":true}}},"DisputeStateChangedEventObject":{"type":"object","x-release-status":"DEPRECATED","properties":{"object":{"$ref":"#/components/schemas/Dispute","description":"The dispute object.","nullable":true}}},"DisputeStateUpdatedEvent":{"type":"object","description":"Published when the state of a [Dispute](entity:Dispute) changes.\nThis includes the dispute resolution (WON, LOST) reported by the bank. The event\ndata includes details of what changed.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the target merchant associated with the event.","nullable":true},"location_id":{"type":"string","description":"The ID of the target location associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event this represents.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"Timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/DisputeStateUpdatedEventData","description":"Data associated with the event.","nullable":true}},"example":{"created_at":"2020-02-19T21:34:41.851Z","data":{"id":"ORSEVtZAJxb37RA1EiGw","object":{"dispute":{"amount_money":{"amount":8801,"currency":"USD"},"brand_dispute_id":"r9rKGSBBQbywBNnWWIiGFg","card_brand":"VISA","created_at":"2020-02-19T21:24:53.258Z","disputed_payment":{"payment_id":"fbmsaEOpoARDKxiSGH1fqPuqoqFZY"},"due_at":"2020-03-04T00:00:00.000Z","id":"ORSEVtZAJxb37RA1EiGw","location_id":"VJDQQP3CG14EY","reason":"AMOUNT_DIFFERS","reported_at":"2020-02-19T00:00:00.000Z","state":"WON","updated_at":"2020-02-19T21:34:41.851Z","version":6}},"type":"dispute"},"event_id":"e89ff114-1972-4be0-9481-a621f2385fff","location_id":"VJDQQP3CG14EY","merchant_id":"0HPGX5JYE6EE1","type":"dispute.state.updated"},"x-webhook":{"event":"dispute.state.updated","scopes":["DISPUTES_READ"]},"x-api":"#/components/x-apis/Disputes","x-since":"2021-06-16"},"DisputeStateUpdatedEventData":{"type":"object","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"Name of the affected dispute's type.","nullable":true},"id":{"type":"string","description":"ID of the affected dispute."},"object":{"$ref":"#/components/schemas/DisputeStateUpdatedEventObject","description":"An object containing fields and values relevant to the event.","nullable":true}}},"DisputeStateUpdatedEventObject":{"type":"object","x-release-status":"PUBLIC","properties":{"object":{"$ref":"#/components/schemas/Dispute","description":"The dispute object.","nullable":true}}},"DisputedPayment":{"type":"object","description":"The payment the cardholder disputed.","x-release-status":"PUBLIC","properties":{"payment_id":{"type":"string","description":"Square-generated unique ID of the payment being disputed.","minLength":1,"maxLength":192,"nullable":true}}},"EcomVisibility":{"type":"string","enum":["UNINDEXED","UNAVAILABLE","HIDDEN","VISIBLE"],"x-enum-elements":[{"name":"UNINDEXED","description":"Item is not synced with Ecom (Weebly). This is the default state"},{"name":"UNAVAILABLE","description":"Item is synced but is unavailable within Ecom (Weebly) and Online Checkout"},{"name":"HIDDEN","description":"Option for seller to choose manually created Quick Amounts."},{"name":"VISIBLE","description":"Item is synced but available within Ecom (Weebly) and Online Checkout but is hidden from Ecom Store."}],"description":"Determines item visibility in Ecom (Online Store) and Online Checkout.","x-release-status":"PUBLIC"},"ElectronicMoneyDetails":{"type":"object","description":"Details specific to electronic money payments.","x-release-status":"BETA","properties":{"felica_details":{"$ref":"#/components/schemas/FelicaDetails","description":"Details specific to FeliCa payments.","nullable":true}}},"Employee":{"type":"object","description":"An employee object that is used by the external API.\n\nDEPRECATED at version 2020-08-26. Replaced by [TeamMember](entity:TeamMember).","x-release-status":"DEPRECATED","properties":{"id":{"type":"string","description":"UUID for this object."},"first_name":{"type":"string","description":"The employee's first name.","nullable":true},"last_name":{"type":"string","description":"The employee's last name.","nullable":true},"email":{"type":"string","description":"The employee's email address","nullable":true},"phone_number":{"type":"string","description":"The employee's phone number in E.164 format, i.e. \"+12125554250\"","nullable":true},"location_ids":{"type":"array","items":{"type":"string"},"description":"A list of location IDs where this employee has access to.","nullable":true},"status":{"$ref":"#/components/schemas/EmployeeStatus","description":"Specifies the status of the employees being fetched.\nSee [EmployeeStatus](#type-employeestatus) for possible values","nullable":true},"is_owner":{"type":"boolean","description":"Whether this employee is the owner of the merchant. Each merchant\nhas one owner employee, and that employee has full authority over\nthe account.","nullable":true},"created_at":{"type":"string","description":"A read-only timestamp in RFC 3339 format.","readOnly":true},"updated_at":{"type":"string","description":"A read-only timestamp in RFC 3339 format.","readOnly":true}}},"EmployeeStatus":{"type":"string","enum":["ACTIVE","INACTIVE"],"x-enum-elements":[{"name":"ACTIVE","description":"Specifies that the employee is in the Active state."},{"name":"INACTIVE","description":"Specifies that the employee is in the Inactive state."}],"description":"The status of the Employee being retrieved.\n\nDEPRECATED at version 2020-08-26. Replaced by [TeamMemberStatus](entity:TeamMemberStatus).","x-release-status":"DEPRECATED"},"EmployeeWage":{"type":"object","description":"The hourly wage rate that an employee earns on a `Shift` for doing the job specified by the `title` property of this object. Deprecated at version 2020-08-26. Use [TeamMemberWage](entity:TeamMemberWage).","x-release-status":"DEPRECATED","properties":{"id":{"type":"string","description":"The UUID for this object."},"employee_id":{"type":"string","description":"The `Employee` that this wage is assigned to.","nullable":true},"title":{"type":"string","description":"The job title that this wage relates to.","nullable":true},"hourly_rate":{"$ref":"#/components/schemas/Money","description":"Can be a custom-set hourly wage or the calculated effective hourly\nwage based on the annual wage and hours worked per week.","nullable":true}}},"EnableEventsResponse":{"type":"object","description":"Defines the fields that are included in the response body of\na request to the [EnableEvents](api-endpoint:Events-EnableEvents) endpoint.\n\nNote: if there are errors processing the request, the events field will not be\npresent.","x-release-status":"BETA","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information on errors encountered during the request."}},"example":{}},"Error":{"type":"object","description":"Represents an error encountered during a request to the Connect API.\n\nSee [Handling errors](https://developer.squareup.com/docs/build-basics/handling-errors) for more information.","x-release-status":"PUBLIC","required":["category","code"],"properties":{"category":{"$ref":"#/components/schemas/ErrorCategory","description":"The high-level category for the error.\nSee [ErrorCategory](#type-errorcategory) for possible values"},"code":{"$ref":"#/components/schemas/ErrorCode","description":"The specific code of the error.\nSee [ErrorCode](#type-errorcode) for possible values"},"detail":{"type":"string","description":"A human-readable description of the error for debugging purposes."},"field":{"type":"string","description":"The name of the field provided in the original request (if any) that\nthe error pertains to."}}},"ErrorCategory":{"type":"string","enum":["API_ERROR","AUTHENTICATION_ERROR","INVALID_REQUEST_ERROR","RATE_LIMIT_ERROR","PAYMENT_METHOD_ERROR","REFUND_ERROR","MERCHANT_SUBSCRIPTION_ERROR","EXTERNAL_VENDOR_ERROR"],"x-enum-elements":[{"name":"API_ERROR","description":"An error occurred with the Connect API itself."},{"name":"AUTHENTICATION_ERROR","description":"An authentication error occurred. Most commonly, the request had\na missing, malformed, or otherwise invalid `Authorization` header."},{"name":"INVALID_REQUEST_ERROR","description":"The request was invalid. Most commonly, a required parameter was\nmissing, or a provided parameter had an invalid value."},{"name":"RATE_LIMIT_ERROR","description":"Your application reached the Square API rate limit. You might receive this error if your application sends a high number of requests\nto Square APIs in a short period of time.\n\nYour application should monitor responses for `429 RATE_LIMITED` errors and use a retry mechanism with an [exponential backoff](https://en.wikipedia.org/wiki/Exponential_backoff)\nschedule to resend the requests at an increasingly slower rate. It is also a good practice to use a randomized delay (jitter) in your retry schedule."},{"name":"PAYMENT_METHOD_ERROR","description":"An error occurred while processing a payment method. Most commonly,\nthe details of the payment method were invalid (such as a card's CVV\nor expiration date)."},{"name":"REFUND_ERROR","description":"An error occurred while attempting to process a refund."},{"name":"MERCHANT_SUBSCRIPTION_ERROR","description":"An error occurred when checking a merchant subscription status"},{"name":"EXTERNAL_VENDOR_ERROR","description":"An error that is returned from an external vendor's API"}],"description":"Indicates which high-level category of error has occurred during a\nrequest to the Connect API.","x-release-status":"PUBLIC"},"ErrorCode":{"type":"string","enum":["INTERNAL_SERVER_ERROR","UNAUTHORIZED","ACCESS_TOKEN_EXPIRED","ACCESS_TOKEN_REVOKED","CLIENT_DISABLED","FORBIDDEN","INSUFFICIENT_SCOPES","APPLICATION_DISABLED","V1_APPLICATION","V1_ACCESS_TOKEN","CARD_PROCESSING_NOT_ENABLED","MERCHANT_SUBSCRIPTION_NOT_FOUND","BAD_REQUEST","MISSING_REQUIRED_PARAMETER","INCORRECT_TYPE","INVALID_TIME","INVALID_TIME_RANGE","INVALID_VALUE","INVALID_CURSOR","UNKNOWN_QUERY_PARAMETER","CONFLICTING_PARAMETERS","EXPECTED_JSON_BODY","INVALID_SORT_ORDER","VALUE_REGEX_MISMATCH","VALUE_TOO_SHORT","VALUE_TOO_LONG","VALUE_TOO_LOW","VALUE_TOO_HIGH","VALUE_EMPTY","ARRAY_LENGTH_TOO_LONG","ARRAY_LENGTH_TOO_SHORT","ARRAY_EMPTY","EXPECTED_BOOLEAN","EXPECTED_INTEGER","EXPECTED_FLOAT","EXPECTED_STRING","EXPECTED_OBJECT","EXPECTED_ARRAY","EXPECTED_MAP","EXPECTED_BASE64_ENCODED_BYTE_ARRAY","INVALID_ARRAY_VALUE","INVALID_ENUM_VALUE","INVALID_CONTENT_TYPE","INVALID_FORM_VALUE","CUSTOMER_NOT_FOUND","ONE_INSTRUMENT_EXPECTED","NO_FIELDS_SET","TOO_MANY_MAP_ENTRIES","MAP_KEY_LENGTH_TOO_SHORT","MAP_KEY_LENGTH_TOO_LONG","CUSTOMER_MISSING_NAME","CUSTOMER_MISSING_EMAIL","INVALID_PAUSE_LENGTH","INVALID_DATE","UNSUPPORTED_COUNTRY","UNSUPPORTED_CURRENCY","APPLE_TTP_PIN_TOKEN","CARD_EXPIRED","INVALID_EXPIRATION","INVALID_EXPIRATION_YEAR","INVALID_EXPIRATION_DATE","UNSUPPORTED_CARD_BRAND","UNSUPPORTED_ENTRY_METHOD","INVALID_ENCRYPTED_CARD","INVALID_CARD","PAYMENT_AMOUNT_MISMATCH","GENERIC_DECLINE","CVV_FAILURE","ADDRESS_VERIFICATION_FAILURE","INVALID_ACCOUNT","CURRENCY_MISMATCH","INSUFFICIENT_FUNDS","INSUFFICIENT_PERMISSIONS","CARDHOLDER_INSUFFICIENT_PERMISSIONS","INVALID_LOCATION","TRANSACTION_LIMIT","VOICE_FAILURE","PAN_FAILURE","EXPIRATION_FAILURE","CARD_NOT_SUPPORTED","READER_DECLINED","INVALID_PIN","MISSING_PIN","MISSING_ACCOUNT_TYPE","INVALID_POSTAL_CODE","INVALID_FEES","MANUALLY_ENTERED_PAYMENT_NOT_SUPPORTED","PAYMENT_LIMIT_EXCEEDED","GIFT_CARD_AVAILABLE_AMOUNT","ACCOUNT_UNUSABLE","BUYER_REFUSED_PAYMENT","DELAYED_TRANSACTION_EXPIRED","DELAYED_TRANSACTION_CANCELED","DELAYED_TRANSACTION_CAPTURED","DELAYED_TRANSACTION_FAILED","CARD_TOKEN_EXPIRED","CARD_TOKEN_USED","AMOUNT_TOO_HIGH","AMOUNT_TOO_LOW","UNSUPPORTED_INSTRUMENT_TYPE","REFUND_AMOUNT_INVALID","REFUND_ALREADY_PENDING","PAYMENT_NOT_REFUNDABLE","PAYMENT_NOT_REFUNDABLE_DUE_TO_DISPUTE","REFUND_ERROR_PAYMENT_NEEDS_COMPLETION","REFUND_DECLINED","INSUFFICIENT_PERMISSIONS_FOR_REFUND","INVALID_CARD_DATA","SOURCE_USED","SOURCE_EXPIRED","UNSUPPORTED_LOYALTY_REWARD_TIER","LOCATION_MISMATCH","ORDER_UNPAID_NOT_RETURNABLE","PARTIAL_PAYMENT_DELAY_CAPTURE_NOT_SUPPORTED","IDEMPOTENCY_KEY_REUSED","UNEXPECTED_VALUE","SANDBOX_NOT_SUPPORTED","INVALID_EMAIL_ADDRESS","INVALID_PHONE_NUMBER","CHECKOUT_EXPIRED","BAD_CERTIFICATE","INVALID_SQUARE_VERSION_FORMAT","API_VERSION_INCOMPATIBLE","CARD_PRESENCE_REQUIRED","UNSUPPORTED_SOURCE_TYPE","CARD_MISMATCH","PLAID_ERROR","PLAID_ERROR_ITEM_LOGIN_REQUIRED","PLAID_ERROR_RATE_LIMIT","PLAID_ERROR_INVALID_ACCESS_TOKEN","PLAID_ERROR_INVALID_ACCOUNT_ID","PLAID_ERROR_NO_ACCOUNTS","PLAID_ERROR_ITEM_NOT_FOUND","PLAID_ERROR_INSUFFICIENT_CREDENTIALS","PLAID_ERROR_ITEM_NOT_SUPPORTED","PLAID_ERROR_PRODUCT_NOT_READY","PAYMENT_SOURCE_NOT_ENABLED_FOR_TARGET","CARD_DECLINED","VERIFY_CVV_FAILURE","VERIFY_AVS_FAILURE","CARD_DECLINED_CALL_ISSUER","CARD_DECLINED_VERIFICATION_REQUIRED","BAD_EXPIRATION","CHIP_INSERTION_REQUIRED","ALLOWABLE_PIN_TRIES_EXCEEDED","RESERVATION_DECLINED","UNKNOWN_BODY_PARAMETER","CART_INELIGIBLE_FOR_EBT","NOT_FOUND","APPLE_PAYMENT_PROCESSING_CERTIFICATE_HASH_NOT_FOUND","METHOD_NOT_ALLOWED","NOT_ACCEPTABLE","REQUEST_TIMEOUT","CONFLICT","GONE","REQUEST_ENTITY_TOO_LARGE","UNSUPPORTED_MEDIA_TYPE","UNPROCESSABLE_ENTITY","RATE_LIMITED","NOT_IMPLEMENTED","BAD_GATEWAY","SERVICE_UNAVAILABLE","TEMPORARY_ERROR","GATEWAY_TIMEOUT"],"x-enum-elements":[{"name":"INTERNAL_SERVER_ERROR","description":"A general server error occurred.","error-category":"API_ERROR"},{"name":"UNAUTHORIZED","description":"A general authorization error occurred.","error-category":"AUTHENTICATION_ERROR"},{"name":"ACCESS_TOKEN_EXPIRED","description":"The provided access token has expired.","error-category":"AUTHENTICATION_ERROR"},{"name":"ACCESS_TOKEN_REVOKED","description":"The provided access token has been revoked.","error-category":"AUTHENTICATION_ERROR"},{"name":"CLIENT_DISABLED","description":"The provided client has been disabled.","error-category":"AUTHENTICATION_ERROR"},{"name":"FORBIDDEN","description":"A general access error occurred.","error-category":"AUTHENTICATION_ERROR"},{"name":"INSUFFICIENT_SCOPES","description":"The provided access token does not have permission\nto execute the requested action.","error-category":"AUTHENTICATION_ERROR"},{"name":"APPLICATION_DISABLED","description":"The calling application was disabled.","error-category":"INVALID_REQUEST_ERROR"},{"name":"V1_APPLICATION","description":"The calling application was created prior to\n2016-03-30 and is not compatible with v2 Square API calls.","error-category":"INVALID_REQUEST_ERROR"},{"name":"V1_ACCESS_TOKEN","description":"The calling application is using an access token\ncreated prior to 2016-03-30 and is not compatible with v2 Square API\ncalls.","error-category":"INVALID_REQUEST_ERROR"},{"name":"CARD_PROCESSING_NOT_ENABLED","description":"The location provided in the API call is not\nenabled for credit card processing.","error-category":"INVALID_REQUEST_ERROR"},{"name":"MERCHANT_SUBSCRIPTION_NOT_FOUND","description":"A required subscription was not found for the merchant","error-category":"MERCHANT_SUBSCRIPTION_ERROR"},{"name":"BAD_REQUEST","description":"A general error occurred with the request.","error-category":"INVALID_REQUEST_ERROR"},{"name":"MISSING_REQUIRED_PARAMETER","description":"The request is missing a required path, query, or\nbody parameter.","error-category":"INVALID_REQUEST_ERROR"},{"name":"INCORRECT_TYPE","description":"The value provided in the request is the wrong\ntype. For example, a string instead of an integer.","error-category":"INVALID_REQUEST_ERROR"},{"name":"INVALID_TIME","description":"Formatting for the provided time value is\nincorrect.","error-category":"INVALID_REQUEST_ERROR"},{"name":"INVALID_TIME_RANGE","description":"The time range provided in the request is invalid.\nFor example, the end time is before the start time.","error-category":"INVALID_REQUEST_ERROR"},{"name":"INVALID_VALUE","description":"The provided value is invalid. For example,\nincluding `%` in a phone number.","error-category":"INVALID_REQUEST_ERROR"},{"name":"INVALID_CURSOR","description":"The pagination cursor included in the request is\ninvalid.","error-category":"INVALID_REQUEST_ERROR"},{"name":"UNKNOWN_QUERY_PARAMETER","description":"The query parameters provided is invalid for the\nrequested endpoint.","error-category":"INVALID_REQUEST_ERROR"},{"name":"CONFLICTING_PARAMETERS","description":"One or more of the request parameters conflict with\neach other.","error-category":"INVALID_REQUEST_ERROR"},{"name":"EXPECTED_JSON_BODY","description":"The request body is not a JSON object.","error-category":"INVALID_REQUEST_ERROR"},{"name":"INVALID_SORT_ORDER","description":"The provided sort order is not a valid key.\nCurrently, sort order must be `ASC` or `DESC`.","error-category":"INVALID_REQUEST_ERROR"},{"name":"VALUE_REGEX_MISMATCH","description":"The provided value does not match an expected\nregular expression.","error-category":"INVALID_REQUEST_ERROR"},{"name":"VALUE_TOO_SHORT","description":"The provided string value is shorter than the\nminimum length allowed.","error-category":"INVALID_REQUEST_ERROR"},{"name":"VALUE_TOO_LONG","description":"The provided string value is longer than the\nmaximum length allowed.","error-category":"INVALID_REQUEST_ERROR"},{"name":"VALUE_TOO_LOW","description":"The provided value is less than the supported\nminimum.","error-category":"INVALID_REQUEST_ERROR"},{"name":"VALUE_TOO_HIGH","description":"The provided value is greater than the supported\nmaximum.","error-category":"INVALID_REQUEST_ERROR"},{"name":"VALUE_EMPTY","description":"The provided value has a default (empty) value\nsuch as a blank string.","error-category":"INVALID_REQUEST_ERROR"},{"name":"ARRAY_LENGTH_TOO_LONG","description":"The provided array has too many elements.","error-category":"INVALID_REQUEST_ERROR"},{"name":"ARRAY_LENGTH_TOO_SHORT","description":"The provided array has too few elements.","error-category":"INVALID_REQUEST_ERROR"},{"name":"ARRAY_EMPTY","description":"The provided array is empty.","error-category":"INVALID_REQUEST_ERROR"},{"name":"EXPECTED_BOOLEAN","description":"The endpoint expected the provided value to be a\nboolean.","error-category":"INVALID_REQUEST_ERROR"},{"name":"EXPECTED_INTEGER","description":"The endpoint expected the provided value to be an\ninteger.","error-category":"INVALID_REQUEST_ERROR"},{"name":"EXPECTED_FLOAT","description":"The endpoint expected the provided value to be a\nfloat.","error-category":"INVALID_REQUEST_ERROR"},{"name":"EXPECTED_STRING","description":"The endpoint expected the provided value to be a\nstring.","error-category":"INVALID_REQUEST_ERROR"},{"name":"EXPECTED_OBJECT","description":"The endpoint expected the provided value to be a\nJSON object.","error-category":"INVALID_REQUEST_ERROR"},{"name":"EXPECTED_ARRAY","description":"The endpoint expected the provided value to be an\narray or list.","error-category":"INVALID_REQUEST_ERROR"},{"name":"EXPECTED_MAP","description":"The endpoint expected the provided value to be a\nmap or associative array.","error-category":"INVALID_REQUEST_ERROR"},{"name":"EXPECTED_BASE64_ENCODED_BYTE_ARRAY","description":"The endpoint expected the provided value to be an\narray encoded in base64.","error-category":"INVALID_REQUEST_ERROR"},{"name":"INVALID_ARRAY_VALUE","description":"One or more objects in the array does not match the\narray type.","error-category":"INVALID_REQUEST_ERROR"},{"name":"INVALID_ENUM_VALUE","description":"The provided static string is not valid for the\nfield.","error-category":"INVALID_REQUEST_ERROR"},{"name":"INVALID_CONTENT_TYPE","description":"Invalid content type header.","error-category":"INVALID_REQUEST_ERROR"},{"name":"INVALID_FORM_VALUE","description":"Only relevant for applications created prior to\n2016-03-30. Indicates there was an error while parsing form values.","error-category":"INVALID_REQUEST_ERROR"},{"name":"CUSTOMER_NOT_FOUND","description":"The provided customer id can't be found in the merchant's customers list.","error-category":"INVALID_REQUEST_ERROR"},{"name":"ONE_INSTRUMENT_EXPECTED","description":"A general error occurred.","error-category":"INVALID_REQUEST_ERROR"},{"name":"NO_FIELDS_SET","description":"A general error occurred.","error-category":"INVALID_REQUEST_ERROR"},{"name":"TOO_MANY_MAP_ENTRIES","description":"Too many entries in the map field.","error-category":"INVALID_REQUEST_ERROR"},{"name":"MAP_KEY_LENGTH_TOO_SHORT","description":"The length of one of the provided keys in the map is too short.","error-category":"INVALID_REQUEST_ERROR"},{"name":"MAP_KEY_LENGTH_TOO_LONG","description":"The length of one of the provided keys in the map is too long.","error-category":"INVALID_REQUEST_ERROR"},{"name":"CUSTOMER_MISSING_NAME","description":"The provided customer does not have a recorded name.","error-category":"INVALID_REQUEST_ERROR"},{"name":"CUSTOMER_MISSING_EMAIL","description":"The provided customer does not have a recorded email.","error-category":"INVALID_REQUEST_ERROR"},{"name":"INVALID_PAUSE_LENGTH","description":"The subscription cannot be paused longer than the duration of the current phase.","error-category":"INVALID_REQUEST_ERROR"},{"name":"INVALID_DATE","description":"The subscription cannot be paused/resumed on the given date.","error-category":"INVALID_REQUEST_ERROR"},{"name":"UNSUPPORTED_COUNTRY","description":"The API request references an unsupported country.","error-category":"INVALID_REQUEST_ERROR"},{"name":"UNSUPPORTED_CURRENCY","description":"The API request references an unsupported currency.","error-category":"INVALID_REQUEST_ERROR"},{"name":"APPLE_TTP_PIN_TOKEN","description":"The payment was declined by the card issuer during an Apple Tap to Pay (TTP)\ntransaction with a request for the card's PIN. This code will be returned alongside\n`CARD_DECLINED_VERIFICATION_REQUIRED` as a supplemental error, and will include an\nissuer-provided token in the `details` field that is needed to initiate the PIN\ncollection flow on the iOS device.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"CARD_EXPIRED","description":"The card issuer declined the request because the card is expired.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"INVALID_EXPIRATION","description":"The expiration date for the payment card is invalid. For example,\nit indicates a date in the past.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"INVALID_EXPIRATION_YEAR","description":"The expiration year for the payment card is invalid. For example,\nit indicates a year in the past or contains invalid characters.","error-category":"INVALID_REQUEST_ERROR"},{"name":"INVALID_EXPIRATION_DATE","description":"The expiration date for the payment card is invalid. For example,\nit contains invalid characters.","error-category":"INVALID_REQUEST_ERROR"},{"name":"UNSUPPORTED_CARD_BRAND","description":"The credit card provided is not from a supported issuer.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"UNSUPPORTED_ENTRY_METHOD","description":"The entry method for the credit card (swipe, dip, tap) is not supported.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"INVALID_ENCRYPTED_CARD","description":"The encrypted card information is invalid.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"INVALID_CARD","description":"The credit card cannot be validated based on the provided details.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"PAYMENT_AMOUNT_MISMATCH","description":"The payment was declined because there was a payment amount mismatch.\nThe money amount Square was expecting does not match the amount provided.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"GENERIC_DECLINE","description":"Square received a decline without any additional information.\nIf the payment information seems correct, the buyer can contact their\nissuer to ask for more information.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"CVV_FAILURE","description":"The card issuer declined the request because the CVV value is invalid.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"ADDRESS_VERIFICATION_FAILURE","description":"The card issuer declined the request because the postal code is invalid.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"INVALID_ACCOUNT","description":"The issuer was not able to locate the account on record.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"CURRENCY_MISMATCH","description":"The currency associated with the payment is not valid for the provided\nfunding source. For example, a gift card funded in USD cannot be used to process\npayments in GBP.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"INSUFFICIENT_FUNDS","description":"The funding source has insufficient funds to cover the payment.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"INSUFFICIENT_PERMISSIONS","description":"The Square account does not have the permissions to accept\nthis payment. For example, Square may limit which merchants are\nallowed to receive gift card payments.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"CARDHOLDER_INSUFFICIENT_PERMISSIONS","description":"The card issuer has declined the transaction due to restrictions on where the card can be used.\nFor example, a gift card is limited to a single merchant.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"INVALID_LOCATION","description":"The Square account cannot take payments in the specified region.\nA Square account can take payments only from the region where the account was created.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"TRANSACTION_LIMIT","description":"The card issuer has determined the payment amount is either too high or too low.\nThe API returns the error code mostly for credit cards (for example, the card reached\nthe credit limit). However, sometimes the issuer bank can indicate the error for debit\nor prepaid cards (for example, card has insufficient funds).","error-category":"PAYMENT_METHOD_ERROR"},{"name":"VOICE_FAILURE","description":"The card issuer declined the request because the issuer requires voice authorization from the cardholder. The seller should ask the customer to contact the card issuing bank to authorize the payment.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"PAN_FAILURE","description":"The specified card number is invalid. For example, it is of\nincorrect length or is incorrectly formatted.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"EXPIRATION_FAILURE","description":"The card expiration date is either invalid or indicates that the\ncard is expired.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"CARD_NOT_SUPPORTED","description":"The card is not supported either in the geographic region or by\nthe [merchant category code](https://developer.squareup.com/docs/locations-api#initialize-a-merchant-category-code) (MCC).","error-category":"PAYMENT_METHOD_ERROR"},{"name":"READER_DECLINED","description":"The Square Card Reader declined the payment for an unknown reason.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"INVALID_PIN","description":"The card issuer declined the request because the PIN is invalid.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"MISSING_PIN","description":"The payment is missing a required PIN.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"MISSING_ACCOUNT_TYPE","description":"The payment is missing a required ACCOUNT_TYPE parameter.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"INVALID_POSTAL_CODE","description":"The postal code is incorrectly formatted.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"INVALID_FEES","description":"The app_fee_money on a payment is too high.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"MANUALLY_ENTERED_PAYMENT_NOT_SUPPORTED","description":"The card must be swiped, tapped, or dipped. Payments attempted by manually entering the card number are declined.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"PAYMENT_LIMIT_EXCEEDED","description":"Square declined the request because the payment amount exceeded the processing limit for this merchant.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"GIFT_CARD_AVAILABLE_AMOUNT","description":"Provides the available balance on a Square gift card when a gift card payment fails due to insufficient funds.\nThis error is returned with an `INSUFFICIENT_FUNDS` error and contains the balance in the smallest denomination\nof the applicable currency. [Learn more](https://developer.squareup.com/docs/payments-api/error-codes#gift_card_available_amount)\nabout this error code.\n\nYou can use the `accept_partial_authorization` field in a `CreatePayment` request to configure a payment flow that uses\nthe available balance and allows collecting additional payments.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"ACCOUNT_UNUSABLE","description":"The account provided cannot carry out transactions.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"BUYER_REFUSED_PAYMENT","description":"Bank account rejected or was not authorized for the payment.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"DELAYED_TRANSACTION_EXPIRED","description":"The application tried to update a delayed-capture payment that has expired.","error-category":"INVALID_REQUEST_ERROR"},{"name":"DELAYED_TRANSACTION_CANCELED","description":"The application tried to cancel a delayed-capture payment that was already cancelled.","error-category":"INVALID_REQUEST_ERROR"},{"name":"DELAYED_TRANSACTION_CAPTURED","description":"The application tried to capture a delayed-capture payment that was already captured.","error-category":"INVALID_REQUEST_ERROR"},{"name":"DELAYED_TRANSACTION_FAILED","description":"The application tried to update a delayed-capture payment that failed.","error-category":"INVALID_REQUEST_ERROR"},{"name":"CARD_TOKEN_EXPIRED","description":"The provided card token (nonce) has expired.","error-category":"INVALID_REQUEST_ERROR"},{"name":"CARD_TOKEN_USED","description":"The provided card token (nonce) was already used to process the payment or refund.","error-category":"INVALID_REQUEST_ERROR"},{"name":"AMOUNT_TOO_HIGH","description":"The requested payment amount is too high for the provided payment source.","error-category":"INVALID_REQUEST_ERROR"},{"name":"AMOUNT_TOO_LOW","description":"The requested payment amount is too low for the provided payment source.","error-category":"INVALID_REQUEST_ERROR"},{"name":"UNSUPPORTED_INSTRUMENT_TYPE","description":"The API request references an unsupported instrument type.","error-category":"INVALID_REQUEST_ERROR"},{"name":"REFUND_AMOUNT_INVALID","description":"The requested refund amount exceeds the amount available to refund.","error-category":"REFUND_ERROR"},{"name":"REFUND_ALREADY_PENDING","description":"The payment already has a pending refund.","error-category":"REFUND_ERROR"},{"name":"PAYMENT_NOT_REFUNDABLE","description":"The payment is not refundable. For example, the payment is too old to be refunded.","error-category":"REFUND_ERROR"},{"name":"PAYMENT_NOT_REFUNDABLE_DUE_TO_DISPUTE","description":"The payment is not refundable because it has been disputed.","error-category":"REFUND_ERROR"},{"name":"REFUND_ERROR_PAYMENT_NEEDS_COMPLETION","description":"The payment is not refundable because the payment is approved and needs to be completed first before the refund is issued.","error-category":"REFUND_ERROR"},{"name":"REFUND_DECLINED","description":"Request failed - The card issuer declined the refund.","error-category":"REFUND_ERROR"},{"name":"INSUFFICIENT_PERMISSIONS_FOR_REFUND","description":"The Square account does not have the permissions to process this refund.","error-category":"REFUND_ERROR"},{"name":"INVALID_CARD_DATA","description":"Generic error - the provided card data is invalid.","error-category":"INVALID_REQUEST_ERROR"},{"name":"SOURCE_USED","description":"The provided source id was already used to create a card.","error-category":"INVALID_REQUEST_ERROR"},{"name":"SOURCE_EXPIRED","description":"The provided source id has expired.","error-category":"INVALID_REQUEST_ERROR"},{"name":"UNSUPPORTED_LOYALTY_REWARD_TIER","description":"The referenced loyalty program reward tier is not supported.\nThis could happen if the reward tier created in a first party\napplication is incompatible with the Loyalty API.","error-category":"INVALID_REQUEST_ERROR"},{"name":"LOCATION_MISMATCH","description":"Generic error - the given location does not matching what is expected.","error-category":"INVALID_REQUEST_ERROR"},{"name":"ORDER_UNPAID_NOT_RETURNABLE","description":"The order attempting to be returned is not yet paid and cannot be returned.","error-category":"INVALID_REQUEST_ERROR"},{"name":"PARTIAL_PAYMENT_DELAY_CAPTURE_NOT_SUPPORTED","description":"Delay capture of a partial payment is not supported.","error-category":"INVALID_REQUEST_ERROR"},{"name":"IDEMPOTENCY_KEY_REUSED","description":"The provided idempotency key has already been used.","error-category":"INVALID_REQUEST_ERROR"},{"name":"UNEXPECTED_VALUE","description":"General error - the value provided was unexpected.","error-category":"INVALID_REQUEST_ERROR"},{"name":"SANDBOX_NOT_SUPPORTED","description":"The API request is not supported in sandbox.","error-category":"INVALID_REQUEST_ERROR"},{"name":"INVALID_EMAIL_ADDRESS","description":"The provided email address is invalid.","error-category":"INVALID_REQUEST_ERROR"},{"name":"INVALID_PHONE_NUMBER","description":"The provided phone number is invalid.","error-category":"INVALID_REQUEST_ERROR"},{"name":"CHECKOUT_EXPIRED","description":"The provided checkout URL has expired.","error-category":"INVALID_REQUEST_ERROR"},{"name":"BAD_CERTIFICATE","description":"Bad certificate.","error-category":"INVALID_REQUEST_ERROR"},{"name":"INVALID_SQUARE_VERSION_FORMAT","description":"The provided Square-Version is incorrectly formatted.","error-category":"INVALID_REQUEST_ERROR"},{"name":"API_VERSION_INCOMPATIBLE","description":"The provided Square-Version is incompatible with the requested action.","error-category":"INVALID_REQUEST_ERROR"},{"name":"CARD_PRESENCE_REQUIRED","description":"The transaction requires that a card be present.","error-category":"INVALID_REQUEST_ERROR"},{"name":"UNSUPPORTED_SOURCE_TYPE","description":"The API request references an unsupported source type.","error-category":"INVALID_REQUEST_ERROR"},{"name":"CARD_MISMATCH","description":"The provided card does not match what is expected.","error-category":"REFUND_ERROR"},{"name":"PLAID_ERROR","description":"Generic plaid error","error-category":"EXTERNAL_VENDOR_ERROR"},{"name":"PLAID_ERROR_ITEM_LOGIN_REQUIRED","description":"Plaid error - ITEM_LOGIN_REQUIRED: Additional input from the user is required to continue getting data for\nthis Item.","error-category":"EXTERNAL_VENDOR_ERROR"},{"name":"PLAID_ERROR_RATE_LIMIT","description":"Plaid error - RATE_LIMIT","error-category":"EXTERNAL_VENDOR_ERROR"},{"name":"PLAID_ERROR_INVALID_ACCESS_TOKEN","description":"Plaid error - INVALID_ACCESS_TOKEN: The supplied access token is invalid, expired, or has been revoked by\nthe user.","error-category":"EXTERNAL_VENDOR_ERROR"},{"name":"PLAID_ERROR_INVALID_ACCOUNT_ID","description":"Plaid error - INVALID_ACCOUNT_ID: The supplied account_id is not valid, underlying account might have been\nclosed by the Bank or User might have revoked Oauth tokens.","error-category":"EXTERNAL_VENDOR_ERROR"},{"name":"PLAID_ERROR_NO_ACCOUNTS","description":"Plaid error - NO_ACCOUNTS: No open accounts associated with the Item, user may have closed or revoked access\nto their account.","error-category":"EXTERNAL_VENDOR_ERROR"},{"name":"PLAID_ERROR_ITEM_NOT_FOUND","description":"Plaid error - ITEM_NOT_FOUND: Item requested cannot be found. User may have removed account, had access\nremoved, or Plaid deleted in response to a data deletion request from user.","error-category":"EXTERNAL_VENDOR_ERROR"},{"name":"PLAID_ERROR_INSUFFICIENT_CREDENTIALS","description":"Plaid error - INSUFFICIENT_CREDENTIALS: User abandoned the bank OAuth flow without completing it.","error-category":"EXTERNAL_VENDOR_ERROR"},{"name":"PLAID_ERROR_ITEM_NOT_SUPPORTED","description":"Plaid error - ITEM_NOT_SUPPORTED: Plaid is unable to support this user's accounts due to restrictions in place at\nthe financial institution.","error-category":"EXTERNAL_VENDOR_ERROR"},{"name":"PLAID_ERROR_PRODUCT_NOT_READY","description":"Plaid error - PRODUCT_NOT_READY: Plaid hasn't finished obtaining the data needed to fulfill your request","error-category":"EXTERNAL_VENDOR_ERROR"},{"name":"PAYMENT_SOURCE_NOT_ENABLED_FOR_TARGET","description":"The provided merchant or location is not enabled to accept\nthe requested payment source.","error-category":"INVALID_REQUEST_ERROR"},{"name":"CARD_DECLINED","description":"The card was declined.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"VERIFY_CVV_FAILURE","description":"The CVV could not be verified.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"VERIFY_AVS_FAILURE","description":"The AVS could not be verified.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"CARD_DECLINED_CALL_ISSUER","description":"The payment card was declined with a request\nfor the card holder to call the issuer.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"CARD_DECLINED_VERIFICATION_REQUIRED","description":"The payment card was declined with a request\nfor additional verification.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"BAD_EXPIRATION","description":"The card expiration date is either missing or\nincorrectly formatted.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"CHIP_INSERTION_REQUIRED","description":"The card issuer requires that the card be read\nusing a chip reader.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"ALLOWABLE_PIN_TRIES_EXCEEDED","description":"The card has exhausted its available pin entry\nretries set by the card issuer. Resolving the error typically requires the\ncard holder to contact the card issuer.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"RESERVATION_DECLINED","description":"The card issuer declined the refund.","error-category":"REFUND_ERROR"},{"name":"UNKNOWN_BODY_PARAMETER","description":"The body parameter is not recognized by the requested endpoint.","error-category":"INVALID_REQUEST_ERROR"},{"name":"CART_INELIGIBLE_FOR_EBT","description":"The cart is not eligible for EBT payment.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"NOT_FOUND","description":"Not Found - a general error occurred.","error-category":"INVALID_REQUEST_ERROR"},{"name":"APPLE_PAYMENT_PROCESSING_CERTIFICATE_HASH_NOT_FOUND","description":"Square could not find the associated Apple Pay certificate.","error-category":"INVALID_REQUEST_ERROR"},{"name":"METHOD_NOT_ALLOWED","description":"Method Not Allowed - a general error occurred.","error-category":"INVALID_REQUEST_ERROR"},{"name":"NOT_ACCEPTABLE","description":"Not Acceptable - a general error occurred.","error-category":"INVALID_REQUEST_ERROR"},{"name":"REQUEST_TIMEOUT","description":"Request Timeout - a general error occurred.","error-category":"INVALID_REQUEST_ERROR"},{"name":"CONFLICT","description":"Conflict - a general error occurred.","error-category":"INVALID_REQUEST_ERROR"},{"name":"GONE","description":"The target resource is no longer available and this\ncondition is likely to be permanent.","error-category":"INVALID_REQUEST_ERROR"},{"name":"REQUEST_ENTITY_TOO_LARGE","description":"Request Entity Too Large - a general error occurred.","error-category":"INVALID_REQUEST_ERROR"},{"name":"UNSUPPORTED_MEDIA_TYPE","description":"Unsupported Media Type - a general error occurred.","error-category":"INVALID_REQUEST_ERROR"},{"name":"UNPROCESSABLE_ENTITY","description":"Unprocessable Entity - a general error occurred.","error-category":"INVALID_REQUEST_ERROR"},{"name":"RATE_LIMITED","description":"Rate Limited - a general error occurred.","error-category":"RATE_LIMIT_ERROR"},{"name":"NOT_IMPLEMENTED","description":"Not Implemented - a general error occurred.","error-category":"API_ERROR"},{"name":"BAD_GATEWAY","description":"Bad Gateway - a general error occurred.","error-category":"API_ERROR"},{"name":"SERVICE_UNAVAILABLE","description":"Service Unavailable - a general error occurred.","error-category":"API_ERROR"},{"name":"TEMPORARY_ERROR","description":"A temporary internal error occurred. You can safely retry your call\nusing the same idempotency key.","error-category":"PAYMENT_METHOD_ERROR"},{"name":"GATEWAY_TIMEOUT","description":"Gateway Timeout - a general error occurred.","error-category":"API_ERROR"}],"description":"Indicates the specific error that occurred during a request to a\nSquare API.","x-release-status":"PUBLIC"},"Event":{"type":"object","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the target merchant associated with the event.","nullable":true},"location_id":{"type":"string","description":"The ID of the target location associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event this represents.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"Timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/EventData","description":"The data associated with the event.","nullable":true}}},"EventData":{"type":"object","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"The name of the affected object’s type.","nullable":true},"id":{"type":"string","description":"The ID of the affected object."},"deleted":{"type":"boolean","description":"This is true if the affected object has been deleted; otherwise, it's absent.","nullable":true},"object":{"type":"object","description":"An object containing fields and values relevant to the event. It is absent if the affected object has been deleted.","nullable":true}}},"EventMetadata":{"type":"object","description":"Contains metadata about a particular [Event](entity:Event).","x-release-status":"BETA","properties":{"event_id":{"type":"string","description":"A unique ID for the event.","nullable":true},"api_version":{"type":"string","description":"The API version of the event. This corresponds to the default API version of the developer application at the time when the event was created.","nullable":true}}},"EventTypeMetadata":{"type":"object","description":"Contains the metadata of a webhook event type.","x-release-status":"PUBLIC","properties":{"event_type":{"type":"string","description":"The event type.","readOnly":true},"api_version_introduced":{"type":"string","description":"The API version at which the event type was introduced.","readOnly":true},"release_status":{"type":"string","description":"The release status of the event type.","readOnly":true}}},"ExcludeStrategy":{"type":"string","enum":["LEAST_EXPENSIVE","MOST_EXPENSIVE","MOST_EXPENSIVE_LOWEST_VALUE"],"x-enum-elements":[{"name":"LEAST_EXPENSIVE","description":"The least expensive matched products are excluded from the pricing. If\nthe pricing rule is set to exclude one product and multiple products in the\nmatch set qualify as least expensive, then one will be excluded at random.\n\nExcluding the least expensive product gives the best discount value to the buyer."},{"name":"MOST_EXPENSIVE","description":"The most expensive matched product is excluded from the pricing rule.\nIf multiple products have the same price and all qualify as least expensive,\none will be excluded at random.\n\nThis guarantees that the most expensive product is purchased at full price."},{"name":"MOST_EXPENSIVE_LOWEST_VALUE","description":"Like MOST_EXPENSIVE, the most expensive matched product is excluded and\npurchased at full price. However, instead of maximizing the discount value on\nthe remaining products (standard BOGO), the discount is applied to the CHEAPEST\nremaining eligible product.\n\nUsed by the \"lowest-value free item\" coupon shape where the intent is to make\nthe least expensive item free, not the most valuable one."}],"description":"Indicates which products matched by a CatalogPricingRule\nwill be excluded if the pricing rule uses an exclude set.","x-release-status":"BETA"},"ExternalPaymentDetails":{"type":"object","description":"Stores details about an external payment. Contains only non-confidential information.\nFor more information, see \n[Take External Payments](https://developer.squareup.com/docs/payments-api/take-payments/external-payments).","x-release-status":"PUBLIC","required":["type","source"],"properties":{"type":{"type":"string","description":"The type of external payment the seller received. It can be one of the following:\n- CHECK - Paid using a physical check.\n- BANK_TRANSFER - Paid using external bank transfer.\n- OTHER\\_GIFT\\_CARD - Paid using a non-Square gift card.\n- CRYPTO - Paid using a crypto currency.\n- SQUARE_CASH - Paid using Square Cash App.\n- SOCIAL - Paid using peer-to-peer payment applications.\n- EXTERNAL - A third-party application gathered this payment outside of Square.\n- EMONEY - Paid using an E-money provider.\n- CARD - A credit or debit card that Square does not support.\n- STORED_BALANCE - Use for house accounts, store credit, and so forth.\n- FOOD_VOUCHER - Restaurant voucher provided by employers to employees to pay for meals\n- OTHER - A type not listed here.","maxLength":50},"source":{"type":"string","description":"A description of the external payment source. For example, \n\"Food Delivery Service\".","maxLength":255},"source_id":{"type":"string","description":"An ID to associate the payment to its originating source.","maxLength":255,"nullable":true},"source_fee_money":{"$ref":"#/components/schemas/Money","description":"The fees paid to the source. The `amount_money` minus this field is \nthe net amount seller receives.","nullable":true}}},"FelicaDetails":{"type":"object","description":"Details for Felica payments.","x-release-status":"BETA","properties":{"terminal_id":{"type":"string","description":"The terminal id for a Felica payment.","maxLength":255,"nullable":true},"felica_masked_card_number":{"type":"string","description":"The masked card number for a Felica payment.","nullable":true},"felica_brand":{"$ref":"#/components/schemas/FelicaDetailsFelicaBrand","description":"The Felica sub-brand of the payment.\nSee [FelicaBrand](#type-felicabrand) for possible values","nullable":true}}},"FelicaDetailsFelicaBrand":{"type":"string","enum":["UNKNOWN","FELICA_ID","FELICA_TRANSPORTATION","FELICA_QP"],"x-enum-elements":[{"name":"UNKNOWN","description":""},{"name":"FELICA_ID","description":""},{"name":"FELICA_TRANSPORTATION","description":""},{"name":"FELICA_QP","description":""}],"description":"A Felica card's \"sub-brand\"--the actual brand on the Felica card","x-release-status":"BETA"},"FilterValue":{"type":"object","description":"A filter to select resources based on an exact field value. For any given\nvalue, the value can only be in one property. Depending on the field, either\nall properties can be set or only a subset will be available.\n\nRefer to the documentation of the field.","x-release-status":"BETA","properties":{"all":{"type":"array","items":{"type":"string"},"description":"A list of terms that must be present on the field of the resource.","nullable":true},"any":{"type":"array","items":{"type":"string"},"description":"A list of terms where at least one of them must be present on the\nfield of the resource.","nullable":true},"none":{"type":"array","items":{"type":"string"},"description":"A list of terms that must not be present on the field the resource","nullable":true}}},"FloatNumberRange":{"type":"object","description":"Specifies a decimal number range.","x-release-status":"PUBLIC","properties":{"start_at":{"type":"string","description":"A decimal value indicating where the range starts.","nullable":true},"end_at":{"type":"string","description":"A decimal value indicating where the range ends.","nullable":true}}},"Fulfillment":{"type":"object","description":"Contains details about how to fulfill this order.\nOrders can only be created with at most one fulfillment using the API.\nHowever, orders returned by the Orders API might contain multiple fulfillments because sellers can create multiple fulfillments using Square products such as Square Online.","x-release-status":"PUBLIC","properties":{"uid":{"type":"string","description":"A unique ID that identifies the fulfillment only within this order.","maxLength":60,"x-release-status":"BETA","nullable":true},"type":{"$ref":"#/components/schemas/FulfillmentType","description":"The type of the fulfillment.\nSee [FulfillmentType](#type-fulfillmenttype) for possible values","nullable":true},"state":{"$ref":"#/components/schemas/FulfillmentState","description":"The state of the fulfillment.\nSee [FulfillmentState](#type-fulfillmentstate) for possible values","nullable":true},"line_item_application":{"$ref":"#/components/schemas/FulfillmentFulfillmentLineItemApplication","description":"Describes what order line items this fulfillment applies to.\nIt can be `ALL` or `ENTRY_LIST` with a supplied list of fulfillment entries.\nSee [FulfillmentFulfillmentLineItemApplication](#type-fulfillmentfulfillmentlineitemapplication) for possible values","readOnly":true,"x-release-status":"BETA"},"entries":{"type":"array","items":{"$ref":"#/components/schemas/FulfillmentFulfillmentEntry"},"description":"A list of entries pertaining to the fulfillment of an order. Each entry must reference\na valid `uid` for an order line item in the `line_item_uid` field, as well as a `quantity` to\nfulfill.\n\nMultiple entries can reference the same line item `uid`, as long as the total quantity among\nall fulfillment entries referencing a single line item does not exceed the quantity of the\norder's line item itself.\n\nAn order cannot be marked as `COMPLETED` before all fulfillments are `COMPLETED`,\n`CANCELED`, or `FAILED`. Fulfillments can be created and completed independently\nbefore order completion.","readOnly":true,"x-release-status":"BETA"},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Application-defined data attached to this fulfillment. Metadata fields are intended\nto store descriptive references or associations with an entity in another system or store brief\ninformation about the object. Square does not process this field; it only stores and returns it\nin relevant API calls. Do not use metadata to store any sensitive information (such as personally\nidentifiable information or card details).\n\nKeys written by applications must be 60 characters or less and must be in the character set\n`[a-zA-Z0-9_-]`. Entries can also include metadata generated by Square. These keys are prefixed\nwith a namespace, separated from the key with a ':' character.\n\nValues have a maximum length of 255 characters.\n\nAn application can have up to 10 entries per metadata field.\n\nEntries written by applications are private and can only be read or modified by the same\napplication.\n\nFor more information, see [Metadata](https://developer.squareup.com/docs/build-basics/metadata).","x-release-status":"BETA","nullable":true},"pickup_details":{"$ref":"#/components/schemas/FulfillmentPickupDetails","description":"Contains details for a pickup fulfillment. These details are required when the fulfillment\ntype is `PICKUP`.","nullable":true},"shipment_details":{"$ref":"#/components/schemas/FulfillmentShipmentDetails","description":"Contains details for a shipment fulfillment. These details are required when the fulfillment type\nis `SHIPMENT`.\n\nA shipment fulfillment's relationship to fulfillment `state`:\n`PROPOSED`: A shipment is requested.\n`RESERVED`: Fulfillment in progress. Shipment processing.\n`PREPARED`: Shipment packaged. Shipping label created.\n`COMPLETED`: Package has been shipped.\n`CANCELED`: Shipment has been canceled.\n`FAILED`: Shipment has failed.","x-release-status":"BETA","nullable":true},"delivery_details":{"$ref":"#/components/schemas/FulfillmentDeliveryDetails","description":"Describes delivery details of an order fulfillment.","x-release-status":"BETA","nullable":true},"in_store_details":{"$ref":"#/components/schemas/FulfillmentInStoreDetails","description":"Contains details for an in-store fulfillment. These details are required when the fulfillment\ntype is `IN_STORE`.","x-release-status":"BETA","nullable":true}}},"FulfillmentDeliveryDetails":{"type":"object","description":"Describes delivery details of an order fulfillment.","x-release-status":"BETA","properties":{"recipient":{"$ref":"#/components/schemas/FulfillmentRecipient","description":"The contact information for the person to receive the fulfillment.","nullable":true},"schedule_type":{"$ref":"#/components/schemas/FulfillmentDeliveryDetailsOrderFulfillmentDeliveryDetailsScheduleType","description":"Indicates the fulfillment delivery schedule type. If `SCHEDULED`, then\n`deliver_at` is required. The default is `SCHEDULED`.\nSee [OrderFulfillmentDeliveryDetailsScheduleType](#type-orderfulfillmentdeliverydetailsscheduletype) for possible values","nullable":true},"placed_at":{"type":"string","description":"The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates)\nindicating when the fulfillment was placed.\nThe timestamp must be in RFC 3339 format (for example, \"2016-09-04T23:59:33.123Z\").\n\nMust be in RFC 3339 timestamp format, e.g., \"2016-09-04T23:59:33.123Z\".","readOnly":true},"deliver_at":{"type":"string","description":"The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates)\nthat represents the start of the delivery period.\nThe application can set this field while the fulfillment `state` is\n`PROPOSED`, `RESERVED`, or `PREPARED` (any time before the\nterminal state such as `COMPLETED`, `CANCELED`, and `FAILED`).\n\nThe timestamp must be in RFC 3339 format\n(for example, \"2016-09-04T23:59:33.123Z\").\n\nFor fulfillments with the schedule type `ASAP`, this is automatically set\nto the current time plus `prep_time_duration`, if available.","nullable":true},"prep_time_duration":{"type":"string","description":"The [duration](https://developer.squareup.com/docs/build-basics/working-with-dates)\nneeded to prepare and deliver this fulfillment.\nThe duration must be in RFC 3339 format (for example, \"PT30M\" for 30 minutes). Don't confuse\n\"M\" for months with \"M\" for minutes. \"P5M\" means 5 months, while \"PT5M\" means 5 minutes.","nullable":true},"delivery_window_duration":{"type":"string","description":"The [duration](https://developer.squareup.com/docs/build-basics/working-with-dates)\nafter `deliver_at` in which to deliver the order.\nApplications can set this field when the fulfillment `state` is\n`PROPOSED`, `RESERVED`, or `PREPARED` (any time before the terminal state\nsuch as `COMPLETED`, `CANCELED`, and `FAILED`).\n\nThe duration must be in RFC 3339 format (for example, \"PT30M\" for 30 minutes). Don't confuse\n\"M\" for months with \"M\" for minutes. \"P5M\" means 5 months, while \"PT5M\" means 5 minutes.","nullable":true},"note":{"type":"string","description":"Provides additional instructions about the delivery fulfillment.\nIt is displayed in the Square Point of Sale application and set by the API.","maxLength":550,"nullable":true},"completed_at":{"type":"string","description":"The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates)\nindicates when the seller completed the fulfillment.\nThis field is automatically set when fulfillment `state` changes to `COMPLETED`.\nThe timestamp must be in RFC 3339 format (for example, \"2016-09-04T23:59:33.123Z\").","nullable":true},"in_progress_at":{"type":"string","description":"The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates)\nindicates when the seller started processing the fulfillment.\nThis field is automatically set when the fulfillment `state` changes to `RESERVED`.\nThe timestamp must be in RFC 3339 format (for example, \"2016-09-04T23:59:33.123Z\").","readOnly":true},"rejected_at":{"type":"string","description":"The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates)\nindicating when the fulfillment was rejected. This field is\nautomatically set when the fulfillment `state` changes to `FAILED`.\nThe timestamp must be in RFC 3339 format (for example, \"2016-09-04T23:59:33.123Z\").","readOnly":true},"ready_at":{"type":"string","description":"The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates)\nindicating when the seller marked the fulfillment as ready for\ncourier pickup. This field is automatically set when the fulfillment `state` changes\nto PREPARED.\nThe timestamp must be in RFC 3339 format (for example, \"2016-09-04T23:59:33.123Z\").","readOnly":true},"delivered_at":{"type":"string","description":"The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates)\nindicating when the fulfillment was delivered to the recipient.\nThe timestamp must be in RFC 3339 format (for example, \"2016-09-04T23:59:33.123Z\").","readOnly":true},"canceled_at":{"type":"string","description":"The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates)\nindicating when the fulfillment was canceled. This field is automatically\nset when the fulfillment `state` changes to `CANCELED`.\n\nThe timestamp must be in RFC 3339 format (for example, \"2016-09-04T23:59:33.123Z\").","readOnly":true},"cancel_reason":{"type":"string","description":"The delivery cancellation reason. Max length: 100 characters.","maxLength":100,"nullable":true},"courier_pickup_at":{"type":"string","description":"The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates)\nindicating when an order can be picked up by the courier for delivery.\nThe timestamp must be in RFC 3339 format (for example, \"2016-09-04T23:59:33.123Z\").","nullable":true},"courier_pickup_window_duration":{"type":"string","description":"The [duration](https://developer.squareup.com/docs/build-basics/working-with-dates)\nafter `courier_pickup_at` in which the courier should pick up the order.\nThe duration must be in RFC 3339 format (for example, \"PT30M\" for 30 minutes). Don't confuse\n\"M\" for months with \"M\" for minutes. \"P5M\" means 5 months, while \"PT5M\" means 5 minutes.","nullable":true},"is_no_contact_delivery":{"type":"boolean","description":"Whether the delivery is preferred to be no contact.","nullable":true},"dropoff_notes":{"type":"string","description":"A note to provide additional instructions about how to deliver the order.","maxLength":550,"nullable":true},"courier_provider_name":{"type":"string","description":"The name of the courier provider.","maxLength":255,"nullable":true},"courier_support_phone_number":{"type":"string","description":"The support phone number of the courier.","maxLength":17,"nullable":true},"square_delivery_id":{"type":"string","description":"The identifier for the delivery created by Square.","maxLength":50,"nullable":true},"external_delivery_id":{"type":"string","description":"The identifier for the delivery created by the third-party courier service.","maxLength":50,"nullable":true},"managed_delivery":{"type":"boolean","description":"The flag to indicate the delivery is managed by a third party (ie DoorDash), which means\nwe may not receive all recipient information for PII purposes.","nullable":true}}},"FulfillmentDeliveryDetailsOrderFulfillmentDeliveryDetailsScheduleType":{"type":"string","enum":["SCHEDULED","ASAP"],"x-enum-elements":[{"name":"SCHEDULED","description":"Indicates the fulfillment to deliver at a scheduled deliver time."},{"name":"ASAP","description":"Indicates that the fulfillment to deliver as soon as possible and should be prepared\nimmediately."}],"description":"The schedule type of the delivery fulfillment.","x-release-status":"BETA"},"FulfillmentFulfillmentEntry":{"type":"object","description":"Links an order line item to a fulfillment. Each entry must reference\na valid `uid` for an order line item in the `line_item_uid` field, as well as a `quantity` to\nfulfill.","x-release-status":"BETA","required":["line_item_uid","quantity"],"properties":{"uid":{"type":"string","description":"A unique ID that identifies the fulfillment entry only within this order.","maxLength":60,"nullable":true},"line_item_uid":{"type":"string","description":"The `uid` from the order line item.","minLength":1},"quantity":{"type":"string","description":"The quantity of the line item being fulfilled, formatted as a decimal number.\nFor example, `\"3\"`.\n\nFulfillments for line items with a `quantity_unit` can have non-integer quantities.\nFor example, `\"1.70000\"`.","minLength":1,"maxLength":12},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Application-defined data attached to this fulfillment entry. Metadata fields are intended\nto store descriptive references or associations with an entity in another system or store brief\ninformation about the object. Square does not process this field; it only stores and returns it\nin relevant API calls. Do not use metadata to store any sensitive information (such as personally\nidentifiable information or card details).\n\nKeys written by applications must be 60 characters or less and must be in the character set\n`[a-zA-Z0-9_-]`. Entries can also include metadata generated by Square. These keys are prefixed\nwith a namespace, separated from the key with a ':' character.\n\nValues have a maximum length of 255 characters.\n\nAn application can have up to 10 entries per metadata field.\n\nEntries written by applications are private and can only be read or modified by the same\napplication.\n\nFor more information, see [Metadata](https://developer.squareup.com/docs/build-basics/metadata).","nullable":true}}},"FulfillmentFulfillmentLineItemApplication":{"type":"string","enum":["ALL","ENTRY_LIST"],"x-enum-elements":[{"name":"ALL","description":"If `ALL`, `entries` must be unset."},{"name":"ENTRY_LIST","description":"If `ENTRY_LIST`, supply a list of `entries`."}],"description":"The `line_item_application` describes what order line items this fulfillment applies\nto. It can be `ALL` or `ENTRY_LIST` with a supplied list of fulfillment entries.","x-release-status":"BETA"},"FulfillmentInStoreDetails":{"type":"object","description":"Contains the details necessary to fulfill an in-store order.","x-release-status":"BETA","properties":{"note":{"type":"string","description":"A note to provide additional instructions about the in-store fulfillment\ndisplayed in the Square Point of Sale application and set by the API.","maxLength":550,"nullable":true},"recipient":{"$ref":"#/components/schemas/FulfillmentRecipient","description":"Information about the person to receive this in-store fulfillment.","nullable":true},"placed_at":{"type":"string","description":"The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates)\nindicating when the fulfillment was placed. The timestamp must be in RFC 3339 format\n(for example, \"2016-09-04T23:59:33.123Z\").","nullable":true},"completed_at":{"type":"string","description":"The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates)\nindicating when the fulfillment was completed. This field is automatically set when the\nfulfillment `state` changes to `COMPLETED`. The timestamp must be in RFC 3339 format\n(for example, \"2016-09-04T23:59:33.123Z\").","readOnly":true},"in_progress_at":{"type":"string","description":"The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates)\nindicates when the seller started processing the fulfillment.\nThis field is automatically set when the fulfillment `state` changes to `RESERVED`.\nThe timestamp must be in RFC 3339 format (for example, \"2016-09-04T23:59:33.123Z\").","readOnly":true},"prepared_at":{"type":"string","description":"The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates)\nindicating when the fulfillment was moved to the `PREPARED` state, which indicates that the\nfulfillment is ready. The timestamp must be in RFC 3339 format (for example, \"2016-09-04T23:59:33.123Z\").","readOnly":true},"canceled_at":{"type":"string","description":"The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates)\nindicating when the fulfillment was canceled. This field is automatically set when the\nfulfillment `state` changes to `CANCELED`. The timestamp must be in RFC 3339 format\n(for example, \"2016-09-04T23:59:33.123Z\").","readOnly":true}}},"FulfillmentPickupDetails":{"type":"object","description":"Contains details necessary to fulfill a pickup order.","x-release-status":"PUBLIC","properties":{"recipient":{"$ref":"#/components/schemas/FulfillmentRecipient","description":"Information about the person to pick up this fulfillment from a physical\nlocation.","nullable":true},"expires_at":{"type":"string","description":"The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates)\nindicating when this fulfillment expires if it is not marked in progress. The timestamp must be\nin RFC 3339 format (for example, \"2016-09-04T23:59:33.123Z\"). The expiration time can only be set\nup to 7 days in the future. If `expires_at` is not set, any new payments attached to the order\nare automatically completed.","nullable":true},"auto_complete_duration":{"type":"string","description":"The [duration](https://developer.squareup.com/docs/build-basics/working-with-dates)\nafter which an in-progress pickup fulfillment is automatically moved\nto the `COMPLETED` state. The duration must be in RFC 3339 format (for example, \"PT4H\" for 4 hours).\n\nIf not set, this pickup fulfillment remains in progress until it is canceled or completed.","nullable":true},"schedule_type":{"$ref":"#/components/schemas/FulfillmentPickupDetailsScheduleType","description":"The schedule type of the pickup fulfillment. Defaults to `SCHEDULED`.\nSee [FulfillmentPickupDetailsScheduleType](#type-fulfillmentpickupdetailsscheduletype) for possible values","nullable":true},"pickup_at":{"type":"string","description":"The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates)\nthat represents the start of the pickup window. Must be in RFC 3339 timestamp format, e.g.,\n\"2016-09-04T23:59:33.123Z\".\n\nFor fulfillments with the schedule type `ASAP`, this is automatically set\nto the current time plus `prep_time_duration`, if available.","nullable":true},"pickup_window_duration":{"type":"string","description":"The [duration](https://developer.squareup.com/docs/build-basics/working-with-dates)\nin which the order should be picked up after the `pickup_at` timestamp.\nThe duration must be in RFC 3339 format (for example, \"PT30M\" for 30 minutes). Don't confuse\n\"M\" for months with \"M\" for minutes. \"P5M\" means 5 months, while \"PT5M\" means 5 minutes.\n\nCan be used as an informational guideline for merchants.","nullable":true},"prep_time_duration":{"type":"string","description":"The [duration](https://developer.squareup.com/docs/build-basics/working-with-dates)\nneeded to prepare this fulfillment.\nThe duration must be in RFC 3339 format (for example, \"PT30M\" for 30 minutes). Don't confuse\n\"M\" for months with \"M\" for minutes. \"P5M\" means 5 months, while \"PT5M\" means 5 minutes.","nullable":true},"note":{"type":"string","description":"A note to provide additional instructions about the pickup\nfulfillment displayed in the Square Point of Sale application and set by the API.","maxLength":500,"nullable":true},"placed_at":{"type":"string","description":"The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates)\nindicating when the fulfillment was placed. The timestamp must be in RFC 3339 format\n(for example, \"2016-09-04T23:59:33.123Z\").","readOnly":true},"accepted_at":{"type":"string","description":"The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates)\nindicating when the fulfillment was marked in progress. The timestamp must be in RFC 3339 format\n(for example, \"2016-09-04T23:59:33.123Z\").","readOnly":true},"rejected_at":{"type":"string","description":"The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates)\nindicating when the fulfillment was rejected. The timestamp must be in RFC 3339 format\n(for example, \"2016-09-04T23:59:33.123Z\").","readOnly":true},"ready_at":{"type":"string","description":"The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates)\nindicating when the fulfillment is marked as ready for pickup. The timestamp must be in RFC 3339 format\n(for example, \"2016-09-04T23:59:33.123Z\").","readOnly":true},"expired_at":{"type":"string","description":"The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates)\nindicating when the fulfillment expired. The timestamp must be in RFC 3339 format\n(for example, \"2016-09-04T23:59:33.123Z\").","readOnly":true},"picked_up_at":{"type":"string","description":"The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates)\nindicating when the fulfillment was picked up by the recipient. The timestamp must be in RFC 3339 format\n(for example, \"2016-09-04T23:59:33.123Z\").","readOnly":true},"canceled_at":{"type":"string","description":"The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates)\nindicating when the fulfillment was canceled. The timestamp must be in RFC 3339 format\n(for example, \"2016-09-04T23:59:33.123Z\").","readOnly":true},"cancel_reason":{"type":"string","description":"A description of why the pickup was canceled. The maximum length: 100 characters.","maxLength":100,"nullable":true},"is_curbside_pickup":{"type":"boolean","description":"If set to `true`, indicates that this pickup order is for curbside pickup, not in-store pickup.","x-release-status":"BETA","nullable":true},"curbside_pickup_details":{"$ref":"#/components/schemas/FulfillmentPickupDetailsCurbsidePickupDetails","description":"Specific details for curbside pickup. These details can only be populated if `is_curbside_pickup` is set to `true`.","x-release-status":"BETA","nullable":true}}},"FulfillmentPickupDetailsCurbsidePickupDetails":{"type":"object","description":"Specific details for curbside pickup.","x-release-status":"BETA","properties":{"curbside_details":{"type":"string","description":"Specific details for curbside pickup, such as parking number and vehicle model.","maxLength":250,"nullable":true},"buyer_arrived_at":{"type":"string","description":"The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates)\nindicating when the buyer arrived and is waiting for pickup. The timestamp must be in RFC 3339 format\n(for example, \"2016-09-04T23:59:33.123Z\").","nullable":true}}},"FulfillmentPickupDetailsScheduleType":{"type":"string","enum":["SCHEDULED","ASAP"],"x-enum-elements":[{"name":"SCHEDULED","description":"Indicates that the fulfillment will be picked up at a scheduled pickup time."},{"name":"ASAP","description":"Indicates that the fulfillment will be picked up as soon as possible and\nshould be prepared immediately."}],"description":"The schedule type of the pickup fulfillment.","x-release-status":"PUBLIC"},"FulfillmentRecipient":{"type":"object","description":"Information about the fulfillment recipient.","x-release-status":"PUBLIC","properties":{"customer_id":{"type":"string","description":"The ID of the customer associated with the fulfillment.\n\nIf `customer_id` is provided, the fulfillment recipient's `display_name`,\n`email_address`, and `phone_number` are automatically populated from the\ntargeted customer profile. If these fields are set in the request, the request\nvalues override the information from the customer profile. If the\ntargeted customer profile does not contain the necessary information and\nthese fields are left unset, the request results in an error.","maxLength":191,"nullable":true},"display_name":{"type":"string","description":"The display name of the fulfillment recipient. This field is required.\n\nIf provided, the display name overrides the corresponding customer profile value\nindicated by `customer_id`.","maxLength":255,"nullable":true},"email_address":{"type":"string","description":"The email address of the fulfillment recipient.\n\nIf provided, the email address overrides the corresponding customer profile value\nindicated by `customer_id`.","maxLength":255,"nullable":true},"phone_number":{"type":"string","description":"The phone number of the fulfillment recipient. This field is required.\n\nIf provided, the phone number overrides the corresponding customer profile value\nindicated by `customer_id`.","maxLength":18,"nullable":true},"address":{"$ref":"#/components/schemas/Address","description":"The address of the fulfillment recipient. This field is required.\n\nIf provided, the address overrides the corresponding customer profile value\nindicated by `customer_id`.","x-release-status":"BETA","nullable":true}}},"FulfillmentShipmentDetails":{"type":"object","description":"Contains the details necessary to fulfill a shipment order.","x-release-status":"BETA","properties":{"recipient":{"$ref":"#/components/schemas/FulfillmentRecipient","description":"Information about the person to receive this shipment fulfillment.","nullable":true},"carrier":{"type":"string","description":"The shipping carrier being used to ship this fulfillment (such as UPS, FedEx, or USPS).","maxLength":50,"nullable":true},"shipping_note":{"type":"string","description":"A note with additional information for the shipping carrier.","maxLength":500,"nullable":true},"shipping_type":{"type":"string","description":"A description of the type of shipping product purchased from the carrier\n(such as First Class, Priority, or Express).","maxLength":255,"nullable":true},"tracking_number":{"type":"string","description":"The reference number provided by the carrier to track the shipment's progress.","maxLength":100,"nullable":true},"tracking_url":{"type":"string","description":"A link to the tracking webpage on the carrier's website.","maxLength":2000,"nullable":true},"placed_at":{"type":"string","description":"The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates)\nindicating when the shipment was requested. The timestamp must be in RFC 3339 format\n(for example, \"2016-09-04T23:59:33.123Z\").","readOnly":true},"in_progress_at":{"type":"string","description":"The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates)\nindicating when this fulfillment was moved to the `RESERVED` state, which indicates that preparation\nof this shipment has begun. The timestamp must be in RFC 3339 format (for example, \"2016-09-04T23:59:33.123Z\").","readOnly":true},"packaged_at":{"type":"string","description":"The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates)\nindicating when this fulfillment was moved to the `PREPARED` state, which indicates that the\nfulfillment is packaged. The timestamp must be in RFC 3339 format (for example, \"2016-09-04T23:59:33.123Z\").","readOnly":true},"expected_shipped_at":{"type":"string","description":"The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates)\nindicating when the shipment is expected to be delivered to the shipping carrier.\nThe timestamp must be in RFC 3339 format (for example, \"2016-09-04T23:59:33.123Z\").","nullable":true},"shipped_at":{"type":"string","description":"The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates)\nindicating when this fulfillment was moved to the `COMPLETED` state, which indicates that\nthe fulfillment has been given to the shipping carrier. The timestamp must be in RFC 3339 format\n(for example, \"2016-09-04T23:59:33.123Z\").","readOnly":true},"canceled_at":{"type":"string","description":"The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates)\nindicating the shipment was canceled.\nThe timestamp must be in RFC 3339 format (for example, \"2016-09-04T23:59:33.123Z\").","nullable":true},"cancel_reason":{"type":"string","description":"A description of why the shipment was canceled.","maxLength":100,"nullable":true},"failed_at":{"type":"string","description":"The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates)\nindicating when the shipment failed to be completed. The timestamp must be in RFC 3339 format\n(for example, \"2016-09-04T23:59:33.123Z\").","readOnly":true},"failure_reason":{"type":"string","description":"A description of why the shipment failed to be completed.","maxLength":100,"nullable":true}}},"FulfillmentState":{"type":"string","enum":["PROPOSED","RESERVED","PREPARED","COMPLETED","CANCELED","FAILED"],"x-enum-elements":[{"name":"PROPOSED","description":"Indicates that the fulfillment has been proposed."},{"name":"RESERVED","description":"Indicates that the fulfillment has been reserved."},{"name":"PREPARED","description":"Indicates that the fulfillment has been prepared."},{"name":"COMPLETED","description":"Indicates that the fulfillment was successfully completed."},{"name":"CANCELED","description":"Indicates that the fulfillment was canceled."},{"name":"FAILED","description":"Indicates that the fulfillment failed to be completed, but was not explicitly\ncanceled."}],"description":"The current state of this fulfillment.","x-release-status":"PUBLIC"},"FulfillmentType":{"type":"string","enum":["PICKUP","SHIPMENT","DELIVERY","IN_STORE"],"x-enum-elements":[{"name":"PICKUP","description":"A recipient to pick up the fulfillment from a physical [location](entity:Location)."},{"name":"SHIPMENT","description":"A shipping carrier to ship the fulfillment."},{"name":"DELIVERY","description":"A courier to deliver the fulfillment."},{"name":"IN_STORE","description":"A customer to receive the fulfillment within the seller's physical [location](entity:Location)."}],"description":"The type of fulfillment.","x-release-status":"PUBLIC"},"GetBankAccountByV1IdResponse":{"type":"object","description":"Response object returned by GetBankAccountByV1Id.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information on errors encountered during the request."},"bank_account":{"$ref":"#/components/schemas/BankAccount","description":"The requested `BankAccount` object."}},"example":{"bank_account":{"account_number_suffix":"971","account_type":"CHECKING","bank_name":"Bank Name","country":"US","creditable":false,"currency":"USD","debitable":false,"holder_name":"Jane Doe","id":"w3yRgCGYQnwmdl0R3GB","location_id":"S8GWD5example","primary_bank_identification_number":"112200303","status":"VERIFICATION_IN_PROGRESS","version":5}}},"GetBankAccountResponse":{"type":"object","description":"Response object returned by `GetBankAccount`.","x-release-status":"PUBLIC","properties":{"bank_account":{"$ref":"#/components/schemas/BankAccount","description":"The requested `BankAccount` object."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information on errors encountered during the request."}},"example":{"bank_account":{"account_number_suffix":"000","account_type":"CHECKING","bank_name":"Citizens Bank","country":"US","creditable":true,"currency":"USD","customer_id":"HM3B2D5JKGZ69359BTEHXM2V8M","debitable":true,"fingerprint":"sq-1-mO3XNctJpTLL8uYowOWpioS8nQyTc838gcBo90254XonoEJ_c7Uw6yqL6qihFNY8fA","holder_name":"Nicola Snow","id":"bact:OxfBTiXgByaXds1K4GB","primary_bank_identification_number":"011401533","status":"VERIFIED","version":2}}},"GetBreakTypeResponse":{"type":"object","description":"The response to a request to get a `BreakType`. The response contains\nthe requested `BreakType` objects and might contain a set of `Error` objects if\nthe request resulted in errors.","x-release-status":"PUBLIC","properties":{"break_type":{"$ref":"#/components/schemas/BreakType","description":"The response object."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{"break_type":{"break_name":"Lunch Break","created_at":"2019-02-21T17:50:00Z","expected_duration":"PT30M","id":"lA0mj_RSOprNPwMUXdYp","is_paid":true,"location_id":"059SB0E0WCNWS","updated_at":"2019-02-21T17:50:00Z","version":1}}},"GetDeviceCodeResponse":{"type":"object","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."},"device_code":{"$ref":"#/components/schemas/DeviceCode","description":"The queried DeviceCode."}},"example":{"device_code":{"code":"EBCARJ","created_at":"2020-02-06T18:44:33.000Z","device_id":"907CS13101300122","id":"B3Z6NAMYQSMTM","location_id":"B5E4484SHHNYH","name":"Counter 1","pair_by":"2020-02-06T18:49:33.000Z","product_type":"TERMINAL_API","status":"PAIRED","status_changed_at":"2020-02-06T18:47:28.000Z"}}},"GetDeviceResponse":{"type":"object","x-release-status":"BETA","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information about errors encountered during the request."},"device":{"$ref":"#/components/schemas/Device","description":"The requested `Device`."}},"example":{"device":{"attributes":{"manufacturer":"Square","manufacturers_id":"995CS397A6475287","merchant_token":"MLCHXZCBWFGDW","model":"T2","name":"Square Terminal 995","type":"TERMINAL","updated_at":"2023-09-29T13:12:22.365049321Z","version":"5.41.0085"},"components":[{"application_details":{"application_type":"TERMINAL_API","session_location":"LMN2K7S3RTOU3","version":"6.25"},"type":"APPLICATION"},{"card_reader_details":{"version":"3.53.70"},"type":"CARD_READER"},{"battery_details":{"external_power":"AVAILABLE_CHARGING","visible_percent":5},"type":"BATTERY"},{"type":"WIFI","wifi_details":{"active":true,"ip_address_v4":"10.0.0.7","secure_connection":"WPA/WPA2 PSK","signal_strength":{"value":2},"ssid":"Staff Network"}},{"ethernet_details":{"active":false},"type":"ETHERNET"}],"id":"device:995CS397A6475287","status":{"category":"AVAILABLE"}}}},"GetEmployeeWageResponse":{"type":"object","description":"A response to a request to get an `EmployeeWage`. The response contains\nthe requested `EmployeeWage` objects and might contain a set of `Error` objects if\nthe request resulted in errors.","x-release-status":"DEPRECATED","properties":{"employee_wage":{"$ref":"#/components/schemas/EmployeeWage","description":"The requested `EmployeeWage` object."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{"employee_wage":{"employee_id":"33fJchumvVdJwxV0H6L9","hourly_rate":{"amount":2000,"currency":"USD"},"id":"pXS3qCv7BERPnEGedM4S8mhm","title":"Manager"}}},"GetInvoiceResponse":{"type":"object","description":"Describes a `GetInvoice` response.","x-release-status":"PUBLIC","properties":{"invoice":{"$ref":"#/components/schemas/Invoice","description":"The invoice requested."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information about errors encountered during the request."}},"example":{"invoice":{"accepted_payment_methods":{"bank_account":false,"buy_now_pay_later":false,"card":true,"cash_app_pay":false,"square_gift_card":false},"created_at":"2020-06-18T17:45:13Z","custom_fields":[{"label":"Event Reference Number","placement":"ABOVE_LINE_ITEMS","value":"Ref. #1234"},{"label":"Terms of Service","placement":"BELOW_LINE_ITEMS","value":"The terms of service are..."}],"delivery_method":"EMAIL","description":"We appreciate your business!","id":"inv:0-ChCHu2mZEabLeeHahQnXDjZQECY","invoice_number":"inv-100","location_id":"ES0RJRZYEC39A","order_id":"CAISENgvlJ6jLWAzERDzjyHVybY","payment_requests":[{"automatic_payment_source":"NONE","computed_amount_money":{"amount":10000,"currency":"USD"},"due_date":"2030-01-24","reminders":[{"message":"Your invoice is due tomorrow","relative_scheduled_days":-1,"status":"PENDING","uid":"beebd363-e47f-4075-8785-c235aaa7df11"}],"request_type":"BALANCE","tipping_enabled":true,"total_completed_amount_money":{"amount":0,"currency":"USD"},"uid":"2da7964f-f3d2-4f43-81e8-5aa220bf3355"}],"primary_recipient":{"customer_id":"JDKYHBWT1D4F8MFH63DBMEN8Y4","email_address":"[email protected]","family_name":"Earhart","given_name":"Amelia","phone_number":"1-212-555-4240"},"sale_or_service_date":"2030-01-24","scheduled_at":"2030-01-13T10:00:00Z","status":"DRAFT","store_payment_method_enabled":false,"timezone":"America/Los_Angeles","title":"Event Planning Services","updated_at":"2020-06-18T17:45:13Z","version":0}}},"GetPaymentRefundResponse":{"type":"object","description":"Defines the response returned by [GetRefund](api-endpoint:Refunds-GetPaymentRefund).\n\nNote: If there are errors processing the request, the refund field might not be\npresent or it might be present in a FAILED state.","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information about errors encountered during the request."},"refund":{"$ref":"#/components/schemas/PaymentRefund","description":"The requested `PaymentRefund`."}},"example":{"refund":{"amount_money":{"amount":555,"currency":"USD"},"created_at":"2021-10-13T19:59:05.073Z","id":"bP9mAsEMYPUGjjGNaNO5ZDVyLhSZY_69MmgHubkLqx9wGhnmenRUHOaKitE6llfZuxcWYjGxd","location_id":"L88917AVBK2S5","order_id":"9ltv0bx5PuvGXUYHYHxYSKEqC3IZY","payment_id":"bP9mAsEMYPUGjjGNaNO5ZDVyLhSZY","processing_fee":[{"amount_money":{"amount":-34,"currency":"USD"},"effective_at":"2021-10-13T21:34:35.000Z","type":"INITIAL"}],"reason":"Example Refund","status":"COMPLETED","updated_at":"2021-10-13T20:00:02.442Z"}}},"GetPaymentResponse":{"type":"object","description":"Defines the response returned by [GetPayment](api-endpoint:Payments-GetPayment).","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information about errors encountered during the request."},"payment":{"$ref":"#/components/schemas/Payment","description":"The requested `Payment`."}},"example":{"payment":{"amount_money":{"amount":555,"currency":"USD"},"application_details":{"application_id":"sq0ids-Pw67AZAlLVB7hsRmwlJPuA","square_product":"VIRTUAL_TERMINAL"},"approved_money":{"amount":555,"currency":"USD"},"card_details":{"auth_result_code":"2Nkw7q","avs_status":"AVS_ACCEPTED","card":{"bin":"411111","card_brand":"VISA","card_type":"DEBIT","exp_month":11,"exp_year":2022,"fingerprint":"sq-1-Hxim77tbdcbGejOejnoAklBVJed2YFLTmirfl8Q5XZzObTc8qY_U8RkwzoNL8dCEcQ","last_4":"1111","prepaid_type":"NOT_PREPAID"},"card_payment_timeline":{"authorized_at":"2021-10-13T19:34:33.680Z","captured_at":"2021-10-13T19:34:34.340Z"},"cvv_status":"CVV_ACCEPTED","entry_method":"KEYED","statement_description":"SQ *EXAMPLE TEST GOSQ.C","status":"CAPTURED"},"created_at":"2021-10-13T19:34:33.524Z","delay_action":"CANCEL","delay_duration":"PT168H","delayed_until":"2021-10-20T19:34:33.524Z","employee_id":"TMoK_ogh6rH1o4dV","id":"bP9mAsEMYPUGjjGNaNO5ZDVyLhSZY","location_id":"L88917AVBK2S5","note":"Test Note","order_id":"d7eKah653Z579f3gVtjlxpSlmUcZY","processing_fee":[{"amount_money":{"amount":34,"currency":"USD"},"effective_at":"2021-10-13T21:34:35.000Z","type":"INITIAL"}],"receipt_number":"bP9m","receipt_url":"https://squareup.com/receipt/preview/bP9mAsEMYPUGjjGNaNO5ZDVyLhSZY","source_type":"CARD","status":"COMPLETED","team_member_id":"TMoK_ogh6rH1o4dV","total_money":{"amount":555,"currency":"USD"},"updated_at":"2021-10-13T19:34:34.339Z","version_token":"56pRkL3slrzet2iQrTp9n0bdJVYTB9YEWdTNjQfZOPV6o"}}},"GetPayoutResponse":{"type":"object","x-release-status":"PUBLIC","properties":{"payout":{"$ref":"#/components/schemas/Payout","description":"The requested payout."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information about errors encountered during the request."}},"example":{"payout":{"amount_money":{"amount":-103,"currency_code":"USD"},"arrival_date":"2022-03-24","created_at":"2022-03-24T03:07:09Z","destination":{"id":"bact:ZPp3oedR3AeEUNd3z7","type":"BANK_ACCOUNT"},"id":"po_f3c0fb38-a5ce-427d-b858-52b925b72e45","location_id":"L88917AVBK2S5","status":"PAID","type":"BATCH","updated_at":"2022-03-24T03:07:09Z","version":1}}},"GetShiftResponse":{"type":"object","description":"A response to a request to get a `Shift`. The response contains\nthe requested `Shift` object and might contain a set of `Error` objects if\nthe request resulted in errors.","x-release-status":"DEPRECATED","properties":{"shift":{"$ref":"#/components/schemas/Shift","description":"The requested `Shift`."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{"shift":{"breaks":[{"break_type_id":"92EPDRQKJ5088","end_at":"2019-02-23T20:00:00-05:00","expected_duration":"PT1H","id":"M9BBKEPQAQD2T","is_paid":true,"name":"Lunch Break","start_at":"2019-02-23T19:00:00-05:00"}],"created_at":"2019-02-27T00:12:12Z","declared_cash_tip_money":{"amount":500,"currency":"USD"},"employee_id":"D71KRMQof6cXGUW0aAv7","end_at":"2019-02-23T21:00:00-05:00","id":"T35HMQSN89SV4","location_id":"PAA1RJZZKXBFG","start_at":"2019-02-23T18:00:00-05:00","status":"CLOSED","team_member_id":"D71KRMQof6cXGUW0aAv7","timezone":"America/New_York","updated_at":"2019-02-27T00:12:12Z","version":1,"wage":{"hourly_rate":{"amount":1457,"currency":"USD"},"job_id":"N4YKVLzFj3oGtNocqoYHYpW3","tip_eligible":true,"title":"Cashier"}}}},"GetTeamMemberWageResponse":{"type":"object","description":"A response to a request to get a `TeamMemberWage`. The response contains\nthe requested `TeamMemberWage` objects and might contain a set of `Error` objects if\nthe request resulted in errors.","x-release-status":"PUBLIC","properties":{"team_member_wage":{"$ref":"#/components/schemas/TeamMemberWage","description":"The requested `TeamMemberWage` object."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Any errors that occurred during the request."}},"example":{"team_member_wage":{"hourly_rate":{"amount":2000,"currency":"USD"},"id":"pXS3qCv7BERPnEGedM4S8mhm","job_id":"jxJNN6eCJsLrhg5UFJrDWDGE","team_member_id":"33fJchumvVdJwxV0H6L9","tip_eligible":false,"title":"Manager"}}},"GetTerminalActionResponse":{"type":"object","x-release-status":"BETA","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information on errors encountered during the request."},"action":{"$ref":"#/components/schemas/TerminalAction","description":"The requested `TerminalAction`"}},"example":{"action":{"app_id":"APP_ID","created_at":"2021-07-28T23:22:07.476Z","deadline_duration":"PT5M","device_id":"DEVICE_ID","id":"termapia:jveJIAkkAjILHkdCE","location_id":"LOCATION_ID","save_card_options":{"customer_id":"CUSTOMER_ID","reference_id":"user-id-1"},"status":"IN_PROGRESS","type":"SAVE_CARD","updated_at":"2021-07-28T23:22:08.301Z"}}},"GetTerminalCheckoutResponse":{"type":"object","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information about errors encountered during the request."},"checkout":{"$ref":"#/components/schemas/TerminalCheckout","description":"The requested `TerminalCheckout`."}},"example":{"checkout":{"amount_money":{"amount":2610,"currency":"USD"},"app_id":"APP_ID","created_at":"2020-04-06T16:39:32.545Z","deadline_duration":"PT5M","device_options":{"device_id":"dbb5d83a-7838-11ea-bc55-0242ac130003","skip_receipt_screen":false,"tip_settings":{"allow_tipping":false}},"id":"08YceKh7B3ZqO","location_id":"LOCATION_ID","note":"A brief note","reference_id":"id11572","status":"IN_PROGRESS","updated_at":"2020-04-06T16:39:323.001Z"}}},"GetTerminalRefundResponse":{"type":"object","x-release-status":"PUBLIC","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Information about errors encountered during the request."},"refund":{"$ref":"#/components/schemas/TerminalRefund","description":"The requested `Refund`."}},"example":{"refund":{"amount_money":{"amount":111,"currency":"CAD"},"app_id":"sandbox-sq0idb-c2OuYt13YaCAeJq_2cd8OQ","card":{"bin":"411111","card_brand":"INTERAC","card_type":"CREDIT","exp_month":1,"exp_year":2022,"fingerprint":"sq-1-B1fP9MNNmZgVVaPKRND6oDKYbz25S2cTvg9Mzwg3RMTK1zT1PiGRT-AE3nTA8vSmmw","last_4":"1111"},"created_at":"2020-09-29T15:21:46.771Z","deadline_duration":"PT5M","device_id":"f72dfb8e-4d65-4e56-aade-ec3fb8d33291","id":"009DP5HD-5O5OvgkcNUhl7JBuINflcjKqUzXZY","location_id":"76C9W6K8CNNQ5","order_id":"kcuKDKreRaI4gF4TjmEgZjHk8Z7YY","payment_id":"5O5OvgkcNUhl7JBuINflcjKqUzXZY","reason":"Returning item","refund_id":"5O5OvgkcNUhl7JBuINflcjKqUzXZY_43Q4iGp7sNeATiWrUruA1EYeMRUXaddXXlDDJ1EQLvb","status":"COMPLETED","updated_at":"2020-09-29T15:21:48.675Z"}}},"GiftCard":{"type":"object","description":"Represents a Square gift card.","x-release-status":"PUBLIC","required":["type"],"properties":{"id":{"type":"string","description":"The Square-assigned ID of the gift card.","readOnly":true},"type":{"$ref":"#/components/schemas/GiftCardType","description":"The gift card type.\nSee [Type](#type-type) for possible values"},"gan_source":{"$ref":"#/components/schemas/GiftCardGANSource","description":"The source that generated the gift card account number (GAN). The default value is `SQUARE`.\nSee [GANSource](#type-gansource) for possible values","nullable":true},"state":{"$ref":"#/components/schemas/GiftCardStatus","description":"The current gift card state.\nSee [Status](#type-status) for possible values","readOnly":true},"balance_money":{"$ref":"#/components/schemas/Money","description":"The current gift card balance. This balance is always greater than or equal to zero.","readOnly":true},"gan":{"type":"string","description":"The gift card account number (GAN). Buyers can use the GAN to make purchases or check \nthe gift card balance.","nullable":true},"created_at":{"type":"string","description":"The timestamp when the gift card was created, in RFC 3339 format. \nIn the case of a digital gift card, it is the time when you create a card \n(using the Square Point of Sale application, Seller Dashboard, or Gift Cards API). \nIn the case of a plastic gift card, it is the time when Square associates the card with the \nseller at the time of activation.","readOnly":true},"customer_ids":{"type":"array","items":{"type":"string"},"description":"The IDs of the [customer profiles](entity:Customer) to whom this gift card is linked.","readOnly":true}}},"GiftCardActivity":{"type":"object","description":"Represents an action performed on a [gift card](entity:GiftCard) that affects its state or balance. \nA gift card activity contains information about a specific activity type. For example, a `REDEEM` activity\nincludes a `redeem_activity_details` field that contains information about the redemption.","x-release-status":"PUBLIC","required":["type","location_id"],"properties":{"id":{"type":"string","description":"The Square-assigned ID of the gift card activity.","readOnly":true},"type":{"$ref":"#/components/schemas/GiftCardActivityType","description":"The type of gift card activity.\nSee [Type](#type-type) for possible values"},"location_id":{"type":"string","description":"The ID of the [business location](entity:Location) where the activity occurred."},"created_at":{"type":"string","description":"The timestamp when the gift card activity was created, in RFC 3339 format.","readOnly":true},"gift_card_id":{"type":"string","description":"The gift card ID. When creating a gift card activity, `gift_card_id` is not required if \n`gift_card_gan` is specified.","nullable":true},"gift_card_gan":{"type":"string","description":"The gift card account number (GAN). When creating a gift card activity, `gift_card_gan` \nis not required if `gift_card_id` is specified.","nullable":true},"gift_card_balance_money":{"$ref":"#/components/schemas/Money","description":"The final balance on the gift card after the action is completed.","readOnly":true},"load_activity_details":{"$ref":"#/components/schemas/GiftCardActivityLoad","description":"Additional details about a `LOAD` activity, which is used to reload money onto a gift card.","nullable":true},"activate_activity_details":{"$ref":"#/components/schemas/GiftCardActivityActivate","description":"Additional details about an `ACTIVATE` activity, which is used to activate a gift card with \nan initial balance.","nullable":true},"redeem_activity_details":{"$ref":"#/components/schemas/GiftCardActivityRedeem","description":"Additional details about a `REDEEM` activity, which is used to redeem a gift card for a purchase.\n\nFor applications that process payments using the Square Payments API, Square creates a `REDEEM` activity that \nupdates the gift card balance after the corresponding [CreatePayment](api-endpoint:Payments-CreatePayment) \nrequest is completed. Applications that use a custom payment processing system must call \n[CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) to create the `REDEEM` activity.","nullable":true},"clear_balance_activity_details":{"$ref":"#/components/schemas/GiftCardActivityClearBalance","description":"Additional details about a `CLEAR_BALANCE` activity, which is used to set the balance of a gift card to zero.","nullable":true},"deactivate_activity_details":{"$ref":"#/components/schemas/GiftCardActivityDeactivate","description":"Additional details about a `DEACTIVATE` activity, which is used to deactivate a gift card.","nullable":true},"adjust_increment_activity_details":{"$ref":"#/components/schemas/GiftCardActivityAdjustIncrement","description":"Additional details about an `ADJUST_INCREMENT` activity, which is used to add money to a gift card \noutside of a typical `ACTIVATE`, `LOAD`, or `REFUND` activity flow.","nullable":true},"adjust_decrement_activity_details":{"$ref":"#/components/schemas/GiftCardActivityAdjustDecrement","description":"Additional details about an `ADJUST_DECREMENT` activity, which is used to deduct money from a gift \ncard outside of a typical `REDEEM` activity flow.","nullable":true},"refund_activity_details":{"$ref":"#/components/schemas/GiftCardActivityRefund","description":"Additional details about a `REFUND` activity, which is used to add money to a gift card when \nrefunding a payment.\n\nFor applications that refund payments to a gift card using the Square Refunds API, Square automatically\ncreates a `REFUND` activity that updates the gift card balance after a [RefundPayment](api-endpoint:Refunds-RefundPayment)\nrequest is completed. Applications that use a custom processing system must call\n[CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) to create the `REFUND` activity.","nullable":true},"unlinked_activity_refund_activity_details":{"$ref":"#/components/schemas/GiftCardActivityUnlinkedActivityRefund","description":"Additional details about an `UNLINKED_ACTIVITY_REFUND` activity. This activity is used to add money \nto a gift card when refunding a payment that was processed using a custom payment processing system\nand not linked to the gift card.","nullable":true},"import_activity_details":{"$ref":"#/components/schemas/GiftCardActivityImport","description":"Additional details about an `IMPORT` activity, which Square uses to import a third-party \ngift card with a balance.","readOnly":true},"block_activity_details":{"$ref":"#/components/schemas/GiftCardActivityBlock","description":"Additional details about a `BLOCK` activity, which Square uses to temporarily block a gift card.","readOnly":true},"unblock_activity_details":{"$ref":"#/components/schemas/GiftCardActivityUnblock","description":"Additional details about an `UNBLOCK` activity, which Square uses to unblock a gift card.","readOnly":true},"import_reversal_activity_details":{"$ref":"#/components/schemas/GiftCardActivityImportReversal","description":"Additional details about an `IMPORT_REVERSAL` activity, which Square uses to reverse the \nimport of a third-party gift card.","readOnly":true},"transfer_balance_to_activity_details":{"$ref":"#/components/schemas/GiftCardActivityTransferBalanceTo","description":"Additional details about a `TRANSFER_BALANCE_TO` activity, which Square uses to add money to\na gift card as the result of a transfer from another gift card.","readOnly":true},"transfer_balance_from_activity_details":{"$ref":"#/components/schemas/GiftCardActivityTransferBalanceFrom","description":"Additional details about a `TRANSFER_BALANCE_FROM` activity, which Square uses to deduct money from\na gift as the result of a transfer to another gift card.","readOnly":true}}},"GiftCardActivityActivate":{"type":"object","description":"Represents details about an `ACTIVATE` [gift card activity type](entity:GiftCardActivityType).","x-release-status":"PUBLIC","properties":{"amount_money":{"$ref":"#/components/schemas/Money","description":"The amount added to the gift card. This value is a positive integer.\n\nApplications that use a custom order processing system must specify this amount in the \n[CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) request.","nullable":true},"order_id":{"type":"string","description":"The ID of the [order](entity:Order) that contains the `GIFT_CARD` line item.\n\nApplications that use the Square Orders API to process orders must specify the order ID\n[CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) request.","nullable":true},"line_item_uid":{"type":"string","description":"The UID of the `GIFT_CARD` line item in the order that represents the gift card purchase.\n\nApplications that use the Square Orders API to process orders must specify the line item UID\nin the [CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) request.","nullable":true},"reference_id":{"type":"string","description":"A client-specified ID that associates the gift card activity with an entity in another system. \n\nApplications that use a custom order processing system can use this field to track information \nrelated to an order or payment.","nullable":true},"buyer_payment_instrument_ids":{"type":"array","items":{"type":"string"},"description":"The payment instrument IDs used to process the gift card purchase, such as a credit card ID \nor bank account ID. \n\nApplications that use a custom order processing system must specify payment instrument IDs in \nthe [CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) request.\nSquare uses this information to perform compliance checks. \n\nFor applications that use the Square Orders API to process payments, Square has the necessary \ninstrument IDs to perform compliance checks.\n\nEach buyer payment instrument ID can contain a maximum of 255 characters.","nullable":true}}},"GiftCardActivityAdjustDecrement":{"type":"object","description":"Represents details about an `ADJUST_DECREMENT` [gift card activity type](entity:GiftCardActivityType).","x-release-status":"PUBLIC","required":["amount_money","reason"],"properties":{"amount_money":{"$ref":"#/components/schemas/Money","description":"The amount deducted from the gift card balance. This value is a positive integer."},"reason":{"$ref":"#/components/schemas/GiftCardActivityAdjustDecrementReason","description":"The reason the gift card balance was adjusted.\nSee [Reason](#type-reason) for possible values"}}},"GiftCardActivityAdjustDecrementReason":{"type":"string","enum":["SUSPICIOUS_ACTIVITY","BALANCE_ACCIDENTALLY_INCREASED","SUPPORT_ISSUE","PURCHASE_WAS_REFUNDED"],"x-enum-elements":[{"name":"SUSPICIOUS_ACTIVITY","description":"The balance was decreased because the seller detected suspicious or fraudulent activity\non the gift card."},{"name":"BALANCE_ACCIDENTALLY_INCREASED","description":"The balance was decreased to reverse an unintentional balance increase."},{"name":"SUPPORT_ISSUE","description":"The balance was decreased to accommodate support issues."},{"name":"PURCHASE_WAS_REFUNDED","description":"The balance was decreased because the order used to purchase or reload the\ngift card was refunded."}],"description":"Indicates the reason for deducting money from a [gift card](entity:GiftCard).","x-release-status":"PUBLIC"},"GiftCardActivityAdjustIncrement":{"type":"object","description":"Represents details about an `ADJUST_INCREMENT` [gift card activity type](entity:GiftCardActivityType).","x-release-status":"PUBLIC","required":["amount_money","reason"],"properties":{"amount_money":{"$ref":"#/components/schemas/Money","description":"The amount added to the gift card balance. This value is a positive integer."},"reason":{"$ref":"#/components/schemas/GiftCardActivityAdjustIncrementReason","description":"The reason the gift card balance was adjusted.\nSee [Reason](#type-reason) for possible values"}}},"GiftCardActivityAdjustIncrementReason":{"type":"string","enum":["COMPLIMENTARY","SUPPORT_ISSUE","TRANSACTION_VOIDED"],"x-enum-elements":[{"name":"COMPLIMENTARY","description":"The seller gifted a complimentary gift card balance increase."},{"name":"SUPPORT_ISSUE","description":"The seller increased the gift card balance \nto accommodate support issues."},{"name":"TRANSACTION_VOIDED","description":"The transaction is voided."}],"description":"Indicates the reason for adding money to a [gift card](entity:GiftCard).","x-release-status":"PUBLIC"},"GiftCardActivityBlock":{"type":"object","description":"Represents details about a `BLOCK` [gift card activity type](entity:GiftCardActivityType).","x-release-status":"PUBLIC","required":["reason"],"properties":{"reason":{"$ref":"#/components/schemas/GiftCardActivityBlockReason","description":"The reason the gift card was blocked.\nSee [Reason](#type-reason) for possible values"}}},"GiftCardActivityBlockReason":{"type":"string","enum":["CHARGEBACK_BLOCK"],"x-enum-elements":[{"name":"CHARGEBACK_BLOCK","description":"The gift card is blocked because the buyer initiated a chargeback on the gift card purchase."}],"description":"Indicates the reason for blocking a [gift card](entity:GiftCard).","x-release-status":"PUBLIC"},"GiftCardActivityClearBalance":{"type":"object","description":"Represents details about a `CLEAR_BALANCE` [gift card activity type](entity:GiftCardActivityType).","x-release-status":"PUBLIC","required":["reason"],"properties":{"reason":{"$ref":"#/components/schemas/GiftCardActivityClearBalanceReason","description":"The reason the gift card balance was cleared.\nSee [Reason](#type-reason) for possible values"}}},"GiftCardActivityClearBalanceReason":{"type":"string","enum":["SUSPICIOUS_ACTIVITY","REUSE_GIFTCARD","UNKNOWN_REASON"],"x-enum-elements":[{"name":"SUSPICIOUS_ACTIVITY","description":"The seller suspects suspicious activity."},{"name":"REUSE_GIFTCARD","description":"The seller cleared the balance to reuse the gift card."},{"name":"UNKNOWN_REASON","description":"The gift card balance was cleared for an unknown reason.\n\nThis reason is read-only and cannot be used to create a `CLEAR_BALANCE` activity using the Gift Card Activities API."}],"description":"Indicates the reason for clearing the balance of a [gift card](entity:GiftCard).","x-release-status":"PUBLIC"},"GiftCardActivityCreatedEvent":{"type":"object","description":"Published when a [gift card activity](entity:GiftCardActivity) is created.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the Square seller associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event. For this event, the value is `gift_card.activity.created`.","nullable":true},"event_id":{"type":"string","description":"The unique ID of the event, which is used for \n[idempotency support](https://developer.squareup.com/docs/webhooks/step4manage#webhooks-best-practices).","nullable":true},"created_at":{"type":"string","description":"The timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/GiftCardActivityCreatedEventData","description":"The data associated with the event.","nullable":true}},"example":{"created_at":"2020-12-17T03:41:35.157Z","data":{"id":"gcact_c8f8cbf1f24b448d8ecf39ed03f97864","object":{"gift_card_activity":{"activate_activity_details":{"amount_money":{"amount":1000,"currency":"USD"},"line_item_uid":"eIWl7X0nMuO9Ewbh0ChIx","order_id":"jJNGHm4gLI6XkFbwtiSLqK72KkAZY"},"created_at":"2020-12-17T01:41:35.157Z","gift_card_balance_money":{"amount":1000,"currency":"USD"},"gift_card_gan":"7783320007480908","gift_card_id":"gftc:00113070ba5745f0b2377c1b9570cb03","id":"gcact_c8f8cbf1f24b448d8ecf39ed03f97864","location_id":"81FN9BNFZTKS4","type":"ACTIVATE"}},"type":"gift_card_activity"},"event_id":"875f2038-6015-492e-9f29-d040b3809e49","merchant_id":"C337NFWQT2A6W","type":"gift_card.activity.created"},"x-webhook":{"event":"gift_card.activity.created","scopes":["GIFTCARDS_READ"]},"x-api":"#/components/x-apis/GiftCardActivities","x-since":"2021-06-16"},"GiftCardActivityCreatedEventData":{"type":"object","description":"Represents the data associated with a `gift_card.activity.created` event.","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"The type of object affected by the event. For this event, the value is `gift_card_activity`.","nullable":true},"id":{"type":"string","description":"The ID of the new gift card activity."},"object":{"$ref":"#/components/schemas/GiftCardActivityCreatedEventObject","description":"An object that contains the new gift card activity.","nullable":true}}},"GiftCardActivityCreatedEventObject":{"type":"object","description":"An object that contains the gift card activity associated with a \n`gift_card.activity.created` event.","x-release-status":"PUBLIC","properties":{"gift_card_activity":{"$ref":"#/components/schemas/GiftCardActivity","description":"The new gift card activity.","nullable":true}}},"GiftCardActivityDeactivate":{"type":"object","description":"Represents details about a `DEACTIVATE` [gift card activity type](entity:GiftCardActivityType).","x-release-status":"PUBLIC","required":["reason"],"properties":{"reason":{"$ref":"#/components/schemas/GiftCardActivityDeactivateReason","description":"The reason the gift card was deactivated.\nSee [Reason](#type-reason) for possible values"}}},"GiftCardActivityDeactivateReason":{"type":"string","enum":["SUSPICIOUS_ACTIVITY","UNKNOWN_REASON","CHARGEBACK_DEACTIVATE"],"x-enum-elements":[{"name":"SUSPICIOUS_ACTIVITY","description":"The seller suspects suspicious activity."},{"name":"UNKNOWN_REASON","description":"The gift card was deactivated for an unknown reason.\n\nThis reason is read-only and cannot be used to create a `DEACTIVATE` activity using the Gift Card Activities API."},{"name":"CHARGEBACK_DEACTIVATE","description":"A chargeback on the gift card purchase (or the gift card load) was ruled in favor of the buyer.\n\nThis reason is read-only and cannot be used to create a `DEACTIVATE` activity using the Gift Card Activities API."}],"description":"Indicates the reason for deactivating a [gift card](entity:GiftCard).","x-release-status":"PUBLIC"},"GiftCardActivityImport":{"type":"object","description":"Represents details about an `IMPORT` [gift card activity type](entity:GiftCardActivityType).\nThis activity type is used when Square imports a third-party gift card, in which case the \n`gan_source` of the gift card is set to `OTHER`.","x-release-status":"PUBLIC","required":["amount_money"],"properties":{"amount_money":{"$ref":"#/components/schemas/Money","description":"The balance amount on the imported gift card."}}},"GiftCardActivityImportReversal":{"type":"object","description":"Represents details about an `IMPORT_REVERSAL` [gift card activity type](entity:GiftCardActivityType).","x-release-status":"PUBLIC","required":["amount_money"],"properties":{"amount_money":{"$ref":"#/components/schemas/Money","description":"The amount of money cleared from the third-party gift card when \nthe import was reversed."}}},"GiftCardActivityLoad":{"type":"object","description":"Represents details about a `LOAD` [gift card activity type](entity:GiftCardActivityType).","x-release-status":"PUBLIC","properties":{"amount_money":{"$ref":"#/components/schemas/Money","description":"The amount added to the gift card. This value is a positive integer.\n\nApplications that use a custom order processing system must specify this amount in the \n[CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) request.","nullable":true},"order_id":{"type":"string","description":"The ID of the [order](entity:Order) that contains the `GIFT_CARD` line item.\n\nApplications that use the Square Orders API to process orders must specify the order ID in the \n[CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) request.","nullable":true},"line_item_uid":{"type":"string","description":"The UID of the `GIFT_CARD` line item in the order that represents the additional funds for the gift card.\n\nApplications that use the Square Orders API to process orders must specify the line item UID\nin the [CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) request.","nullable":true},"reference_id":{"type":"string","description":"A client-specified ID that associates the gift card activity with an entity in another system. \n\nApplications that use a custom order processing system can use this field to track information related to \nan order or payment.","nullable":true},"buyer_payment_instrument_ids":{"type":"array","items":{"type":"string"},"description":"The payment instrument IDs used to process the order for the additional funds, such as a credit card ID \nor bank account ID. \n\nApplications that use a custom order processing system must specify payment instrument IDs in \nthe [CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) request.\nSquare uses this information to perform compliance checks. \n\nFor applications that use the Square Orders API to process payments, Square has the necessary \ninstrument IDs to perform compliance checks.\n\nEach buyer payment instrument ID can contain a maximum of 255 characters.","nullable":true}}},"GiftCardActivityRedeem":{"type":"object","description":"Represents details about a `REDEEM` [gift card activity type](entity:GiftCardActivityType).","x-release-status":"PUBLIC","required":["amount_money"],"properties":{"amount_money":{"$ref":"#/components/schemas/Money","description":"The amount deducted from the gift card for the redemption. This value is a positive integer.\n\nApplications that use a custom payment processing system must specify this amount in the \n[CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) request."},"payment_id":{"type":"string","description":"The ID of the payment that represents the gift card redemption. Square populates this field \nif the payment was processed by Square.","readOnly":true},"reference_id":{"type":"string","description":"A client-specified ID that associates the gift card activity with an entity in another system. \n\nApplications that use a custom payment processing system can use this field to track information\nrelated to an order or payment.","nullable":true},"status":{"$ref":"#/components/schemas/GiftCardActivityRedeemStatus","description":"The status of the gift card redemption. Gift cards redeemed from Square Point of Sale or the \nSquare Seller Dashboard use a two-state process: `PENDING` \nto `COMPLETED` or `PENDING` to `CANCELED`. Gift cards redeemed using the Gift Card Activities API \nalways have a `COMPLETED` status.\nSee [Status](#type-status) for possible values","readOnly":true}}},"GiftCardActivityRedeemStatus":{"type":"string","enum":["PENDING","COMPLETED","CANCELED"],"x-enum-elements":[{"name":"PENDING","description":"The gift card redemption is pending. `PENDING` is a temporary status that applies when a \ngift card is redeemed from Square Point of Sale or another Square product. A `PENDING` status is updated to \n`COMPLETED` if the payment is captured or `CANCELED` if the authorization is voided."},{"name":"COMPLETED","description":"The gift card redemption is completed."},{"name":"CANCELED","description":"The gift card redemption is canceled. A redemption is canceled if the authorization \non the gift card is voided."}],"description":"Indicates the status of a [gift card](entity:GiftCard) redemption. This status is relevant only for\nredemptions made from Square products (such as Square Point of Sale) because Square products use a \ntwo-state process. Gift cards redeemed using the Gift Card Activities API always have a `COMPLETED` status.","x-release-status":"PUBLIC"},"GiftCardActivityRefund":{"type":"object","description":"Represents details about a `REFUND` [gift card activity type](entity:GiftCardActivityType).","x-release-status":"PUBLIC","properties":{"redeem_activity_id":{"type":"string","description":"The ID of the refunded `REDEEM` gift card activity. Square populates this field if the \n`payment_id` in the corresponding [RefundPayment](api-endpoint:Refunds-RefundPayment) request \nrepresents a gift card redemption.\n\nFor applications that use a custom payment processing system, this field is required when creating\na `REFUND` activity. The provided `REDEEM` activity ID must be linked to the same gift card.","nullable":true},"amount_money":{"$ref":"#/components/schemas/Money","description":"The amount added to the gift card for the refund. This value is a positive integer.\n\nThis field is required when creating a `REFUND` activity. The amount can represent a full or partial refund.","nullable":true},"reference_id":{"type":"string","description":"A client-specified ID that associates the gift card activity with an entity in another system.","nullable":true},"payment_id":{"type":"string","description":"The ID of the refunded payment. Square populates this field if the refund is for a \npayment processed by Square. This field matches the `payment_id` in the corresponding\n[RefundPayment](api-endpoint:Refunds-RefundPayment) request.","readOnly":true}}},"GiftCardActivityTransferBalanceFrom":{"type":"object","description":"Represents details about a `TRANSFER_BALANCE_FROM` [gift card activity type](entity:GiftCardActivityType).","x-release-status":"PUBLIC","required":["transfer_to_gift_card_id","amount_money"],"properties":{"transfer_to_gift_card_id":{"type":"string","description":"The ID of the gift card to which the specified amount was transferred."},"amount_money":{"$ref":"#/components/schemas/Money","description":"The amount deducted from the gift card for the transfer. This value is a positive integer."}}},"GiftCardActivityTransferBalanceTo":{"type":"object","description":"Represents details about a `TRANSFER_BALANCE_TO` [gift card activity type](entity:GiftCardActivityType).","x-release-status":"PUBLIC","required":["transfer_from_gift_card_id","amount_money"],"properties":{"transfer_from_gift_card_id":{"type":"string","description":"The ID of the gift card from which the specified amount was transferred."},"amount_money":{"$ref":"#/components/schemas/Money","description":"The amount added to the gift card balance for the transfer. This value is a positive integer."}}},"GiftCardActivityType":{"type":"string","enum":["ACTIVATE","LOAD","REDEEM","CLEAR_BALANCE","DEACTIVATE","ADJUST_INCREMENT","ADJUST_DECREMENT","REFUND","UNLINKED_ACTIVITY_REFUND","IMPORT","BLOCK","UNBLOCK","IMPORT_REVERSAL","TRANSFER_BALANCE_FROM","TRANSFER_BALANCE_TO"],"x-enum-elements":[{"name":"ACTIVATE","description":"Activated a gift card with a balance. When a gift card is activated, Square changes \nthe gift card state from `PENDING` to `ACTIVE`. A gift card must be in the `ACTIVE` state \nto be used for other balance-changing activities."},{"name":"LOAD","description":"Loaded a gift card with additional funds."},{"name":"REDEEM","description":"Redeemed a gift card for a purchase."},{"name":"CLEAR_BALANCE","description":"Set the balance of a gift card to zero."},{"name":"DEACTIVATE","description":"Permanently blocked a gift card from balance-changing activities."},{"name":"ADJUST_INCREMENT","description":"Added money to a gift card outside of a typical `ACTIVATE`, `LOAD`, or `REFUND` activity flow."},{"name":"ADJUST_DECREMENT","description":"Deducted money from a gift card outside of a typical `REDEEM` activity flow."},{"name":"REFUND","description":"Added money to a gift card from a refunded transaction. A `REFUND` activity might be linked to \na Square payment, depending on how the payment and refund are processed. For example:\n- A payment processed by Square can be refunded to a `PENDING` or `ACTIVE` gift card using the Square\nSeller Dashboard, Square Point of Sale, or Refunds API.\n- A payment processed using a custom processing system can be refunded to the same gift card."},{"name":"UNLINKED_ACTIVITY_REFUND","description":"Added money to a gift card from a refunded transaction that was processed using a custom payment\nprocessing system and not linked to the gift card."},{"name":"IMPORT","description":"Imported a third-party gift card with a balance. `IMPORT` activities are managed \nby Square and cannot be created using the Gift Card Activities API."},{"name":"BLOCK","description":"Temporarily blocked a gift card from balance-changing activities. `BLOCK` activities \nare managed by Square and cannot be created using the Gift Card Activities API."},{"name":"UNBLOCK","description":"Unblocked a gift card, which enables it to resume balance-changing activities. `UNBLOCK` \nactivities are managed by Square and cannot be created using the Gift Card Activities API."},{"name":"IMPORT_REVERSAL","description":"Reversed the import of a third-party gift card, which sets the gift card state to \n`PENDING` and clears the balance. `IMPORT_REVERSAL` activities are managed by Square and \ncannot be created using the Gift Card Activities API."},{"name":"TRANSFER_BALANCE_FROM","description":"Deducted money from a gift card as the result of a transfer to the balance of another gift card.\n`TRANSFER_BALANCE_FROM` activities are managed by Square and cannot be created using the Gift Card Activities API."},{"name":"TRANSFER_BALANCE_TO","description":"Added money to a gift card as the result of a transfer from the balance of another gift card.\n`TRANSFER_BALANCE_TO` activities are managed by Square and cannot be created using the Gift Card Activities API."}],"description":"Indicates the type of [gift card activity](entity:GiftCardActivity).","x-release-status":"PUBLIC"},"GiftCardActivityUnblock":{"type":"object","description":"Represents details about an `UNBLOCK` [gift card activity type](entity:GiftCardActivityType).","x-release-status":"PUBLIC","required":["reason"],"properties":{"reason":{"$ref":"#/components/schemas/GiftCardActivityUnblockReason","description":"The reason the gift card was unblocked.\nSee [Reason](#type-reason) for possible values"}}},"GiftCardActivityUnblockReason":{"type":"string","enum":["CHARGEBACK_UNBLOCK"],"x-enum-elements":[{"name":"CHARGEBACK_UNBLOCK","description":"The gift card is unblocked because a chargeback was ruled in favor of the seller."}],"description":"Indicates the reason for unblocking a [gift card](entity:GiftCard).","x-release-status":"PUBLIC"},"GiftCardActivityUnlinkedActivityRefund":{"type":"object","description":"Represents details about an `UNLINKED_ACTIVITY_REFUND` [gift card activity type](entity:GiftCardActivityType).","x-release-status":"PUBLIC","required":["amount_money"],"properties":{"amount_money":{"$ref":"#/components/schemas/Money","description":"The amount added to the gift card for the refund. This value is a positive integer."},"reference_id":{"type":"string","description":"A client-specified ID that associates the gift card activity with an entity in another system.","nullable":true},"payment_id":{"type":"string","description":"The ID of the refunded payment. This field is not used starting in Square version 2022-06-16.","readOnly":true}}},"GiftCardActivityUpdatedEvent":{"type":"object","description":"Published when a [gift card activity](entity:GiftCardActivity) is updated. \nSubscribe to this event to be notified about the following changes:\n- An update to the `REDEEM` activity for a gift card redemption made from a Square product (such as Square Point of Sale). \nThese redemptions are initially assigned a `PENDING` state, but then change to a `COMPLETED` or `CANCELED` state.\n- An update to the `IMPORT` activity for an imported gift card when the balance is later adjusted by Square.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the Square seller associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event. For this event, the value is `gift_card.activity.updated`.","nullable":true},"event_id":{"type":"string","description":"The unique ID of the event, which is used for \n[idempotency support](https://developer.squareup.com/docs/webhooks/step4manage#webhooks-best-practices).","nullable":true},"created_at":{"type":"string","description":"The timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/GiftCardActivityUpdatedEventData","description":"The data associated with the event.","nullable":true}},"example":{"created_at":"2020-12-17T03:41:35.157Z","data":{"id":"gcact_c8f8cbf1f24b448d8ecf39ed03f97864","object":{"gift_card_activity":{"created_at":"2020-12-17T01:41:35.157Z","gift_card_balance_money":{"amount":1500,"currency":"USD"},"gift_card_gan":"7783320007480908","gift_card_id":"gftc:00113070ba5745f0b2377c1b9570cb03","id":"gcact_c8f8cbf1f24b448d8ecf39ed03f97864","import_activity_details":{"amount_money":{"amount":1500,"currency":"USD"}},"location_id":"81FN9BNFZTKS4","type":"IMPORT"}},"type":"gift_card_activity"},"event_id":"875f2038-6015-492e-9f29-d040b3809e49","merchant_id":"C337NFWQT2A6W","type":"gift_card.activity.updated"},"x-webhook":{"event":"gift_card.activity.updated","scopes":["GIFTCARDS_READ"]},"x-api":"#/components/x-apis/GiftCardActivities","x-since":"2022-06-16"},"GiftCardActivityUpdatedEventData":{"type":"object","description":"The data associated with a `gift_card.activity.updated` event.","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"The type of object affected by the event. For this event, the value is `gift_card_activity`.","nullable":true},"id":{"type":"string","description":"The ID of the updated gift card activity."},"object":{"$ref":"#/components/schemas/GiftCardActivityUpdatedEventObject","description":"An object that contains the updated gift card activity.","nullable":true}}},"GiftCardActivityUpdatedEventObject":{"type":"object","description":"An object that contains the gift card activity associated with a \n`gift_card.activity.updated` event.","x-release-status":"PUBLIC","properties":{"gift_card_activity":{"$ref":"#/components/schemas/GiftCardActivity","description":"The updated gift card activity.","nullable":true}}},"GiftCardCreatedEvent":{"type":"object","description":"Published when a [gift card](entity:GiftCard) is created.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the Square seller associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event. For this event, the value is `gift_card.created`.","nullable":true},"event_id":{"type":"string","description":"The unique ID of the event, which is used for \n[idempotency support](https://developer.squareup.com/docs/webhooks/step4manage#webhooks-best-practices).","nullable":true},"created_at":{"type":"string","description":"The timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/GiftCardCreatedEventData","description":"The data associated with the event.","nullable":true}},"example":{"created_at":"2020-12-17T01:41:35.157Z","data":{"id":"gftc:00113070ba5745f0b2377c1b9570cb03","object":{"gift_card":{"balance_money":{"amount":0,"currency":"USD"},"created_at":"2020-12-17T01:41:35.157Z","gan":"7783320007480908","gan_source":"SQUARE","id":"gftc:00113070ba5745f0b2377c1b9570cb03","state":"NOT_ACTIVE","type":"DIGITAL"}},"type":"gift_card"},"event_id":"875f2038-6015-492e-9f29-d040b3809e49","merchant_id":"C337NFWQT2A6W","type":"gift_card.created"},"x-webhook":{"event":"gift_card.created","scopes":["GIFTCARDS_READ"]},"x-api":"#/components/x-apis/GiftCards","x-since":"2021-06-16"},"GiftCardCreatedEventData":{"type":"object","description":"The data associated with a `gift_card.created` event.","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"The type of object affected by the event. For this event, the value is `gift_card`.","nullable":true},"id":{"type":"string","description":"The ID of the new gift card."},"object":{"$ref":"#/components/schemas/GiftCardCreatedEventObject","description":"An object that contains the new gift card.","nullable":true}}},"GiftCardCreatedEventObject":{"type":"object","description":"An object that contains the gift card associated with a `gift_card.created` event.","x-release-status":"PUBLIC","properties":{"gift_card":{"$ref":"#/components/schemas/GiftCard","description":"The new gift card.","nullable":true}}},"GiftCardCustomerLinkedEvent":{"type":"object","description":"Published when a [customer](entity:Customer) is linked to a [gift card](entity:GiftCard).","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the Square seller associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event. For this event, the value is `gift_card.customer_linked`.","nullable":true},"event_id":{"type":"string","description":"The unique ID of the event, which is used for \n[idempotency support](https://developer.squareup.com/docs/webhooks/step4manage#webhooks-best-practices).","nullable":true},"created_at":{"type":"string","description":"The timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/GiftCardCustomerLinkedEventData","description":"The data associated with the event.","nullable":true}},"example":{"created_at":"2020-12-17T03:41:35.157Z","data":{"id":"gftc:00113070ba5745f0b2377c1b9570cb03","object":{"gift_card":{"balance_money":{"amount":1500,"currency":"USD"},"created_at":"2020-12-17T01:41:35.157Z","customer_ids":["QPTXM8PQNX3Q726ZYHPMNP46XC"],"gan":"7783320007480908","gan_source":"SQUARE","id":"gftc:00113070ba5745f0b2377c1b9570cb03","state":"ACTIVE","type":"DIGITAL"},"linked_customer_id":"QPTXM8PQNX3Q726ZYHPMNP46XC"},"type":"gift_card"},"event_id":"875f2038-6015-492e-9f29-d040b3809e49","merchant_id":"C337NFWQT2A6W","type":"gift_card.customer_linked"},"x-webhook":{"event":"gift_card.customer_linked","scopes":["GIFTCARDS_READ"]},"x-api":"#/components/x-apis/GiftCards","x-since":"2021-06-16"},"GiftCardCustomerLinkedEventData":{"type":"object","description":"The data associated with a `gift_card.customer_linked` event.","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"The type of object affected by the event. For this event, the value is `gift_card`.","nullable":true},"id":{"type":"string","description":"The ID of the updated gift card."},"object":{"$ref":"#/components/schemas/GiftCardCustomerLinkedEventObject","description":"An object that contains the updated gift card and the ID of the linked customer.","nullable":true}}},"GiftCardCustomerLinkedEventObject":{"type":"object","description":"An object that contains the gift card and customer ID associated with a \n`gift_card.customer_linked` event.","x-release-status":"PUBLIC","properties":{"gift_card":{"$ref":"#/components/schemas/GiftCard","description":"The gift card with the updated `customer_ids` field.","nullable":true},"linked_customer_id":{"type":"string","description":"The ID of the linked [customer](entity:Customer).","nullable":true}}},"GiftCardCustomerUnlinkedEvent":{"type":"object","description":"Published when a [customer](entity:Customer) is unlinked from a [gift card](entity:GiftCard).","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the Square seller associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event. For this event, the value is `gift_card.customer_unlinked`.","nullable":true},"event_id":{"type":"string","description":"The unique ID of the event, which is used for \n[idempotency support](https://developer.squareup.com/docs/webhooks/step4manage#webhooks-best-practices).","nullable":true},"created_at":{"type":"string","description":"The timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/GiftCardCustomerUnlinkedEventData","description":"The data associated with the event.","nullable":true}},"example":{"created_at":"2020-12-17T03:41:35.157Z","data":{"id":"gftc:00113070ba5745f0b2377c1b9570cb03","object":{"gift_card":{"balance_money":{"amount":1500,"currency":"USD"},"created_at":"2020-12-17T01:41:35.157Z","gan":"7783320007480908","gan_source":"SQUARE","id":"gftc:00113070ba5745f0b2377c1b9570cb03","state":"ACTIVE","type":"DIGITAL"},"unlinked_customer_id":"QPTXM8PQNX3Q726ZYHPMNP46XC"},"type":"gift_card"},"event_id":"875f2038-6015-492e-9f29-d040b3809e49","merchant_id":"C337NFWQT2A6W","type":"gift_card.customer_unlinked"},"x-webhook":{"event":"gift_card.customer_unlinked","scopes":["GIFTCARDS_READ"]},"x-api":"#/components/x-apis/GiftCards","x-since":"2021-06-16"},"GiftCardCustomerUnlinkedEventData":{"type":"object","description":"The data associated with a `gift_card.customer_unlinked` event.","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"The type of object affected by the event. For this event, the value is `gift_card`.","nullable":true},"id":{"type":"string","description":"The ID of the updated gift card."},"object":{"$ref":"#/components/schemas/GiftCardCustomerUnlinkedEventObject","description":"An object that contains the updated gift card and the ID of the unlinked customer.","nullable":true}}},"GiftCardCustomerUnlinkedEventObject":{"type":"object","description":"An object that contains the gift card and the customer ID associated with a \n`gift_card.customer_linked` event.","x-release-status":"PUBLIC","properties":{"gift_card":{"$ref":"#/components/schemas/GiftCard","description":"The gift card with the updated `customer_ids` field. \nThe field is removed if the gift card is not linked to any customers.","nullable":true},"unlinked_customer_id":{"type":"string","description":"The ID of the unlinked [customer](entity:Customer).","nullable":true}}},"GiftCardGANSource":{"type":"string","enum":["SQUARE","OTHER"],"x-enum-elements":[{"name":"SQUARE","description":"The GAN is generated by Square."},{"name":"OTHER","description":"The GAN is provided by a non-Square system. For more information, see \n[Custom GANs](https://developer.squareup.com/docs/gift-cards/using-gift-cards-api#custom-gans) or \n[Third-party gift cards](https://developer.squareup.com/docs/gift-cards/using-gift-cards-api#third-party-gift-cards)."}],"description":"Indicates the source that generated the gift card \naccount number (GAN).","x-release-status":"PUBLIC"},"GiftCardStatus":{"type":"string","enum":["ACTIVE","DEACTIVATED","BLOCKED","PENDING"],"x-enum-elements":[{"name":"ACTIVE","description":"The gift card is active and can be used as a payment source."},{"name":"DEACTIVATED","description":"Any activity that changes the gift card balance is permanently forbidden."},{"name":"BLOCKED","description":"Any activity that changes the gift card balance is temporarily forbidden."},{"name":"PENDING","description":"The gift card is pending activation.\nThis is the initial state when a gift card is created. Typically, you'll call\n[CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) to create an\n`ACTIVATE` activity that activates the gift card with an initial balance before first use."}],"description":"Indicates the gift card state.","x-release-status":"PUBLIC"},"GiftCardType":{"type":"string","enum":["PHYSICAL","DIGITAL"],"x-enum-elements":[{"name":"PHYSICAL","description":"A plastic gift card."},{"name":"DIGITAL","description":"A digital gift card."}],"description":"Indicates the gift card type.","x-release-status":"PUBLIC"},"GiftCardUpdatedEvent":{"type":"object","description":"Published when a [gift card](entity:GiftCard) is updated. This includes\nchanges to the state, balance, and customer association.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the Square seller associated with the event.","nullable":true},"type":{"type":"string","description":"The type of this event. For this event, the value is `gift_card.updated`.","nullable":true},"event_id":{"type":"string","description":"The unique ID of the event, which is used for \n[idempotency support](https://developer.squareup.com/docs/webhooks/step4manage#webhooks-best-practices).","nullable":true},"created_at":{"type":"string","description":"The timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/GiftCardUpdatedEventData","description":"The data associated with the event.","nullable":true}},"example":{"created_at":"2020-12-17T02:41:35.157Z","data":{"id":"gftc:00113070ba5745f0b2377c1b9570cb03","object":{"gift_card":{"balance_money":{"amount":3000,"currency":"USD"},"created_at":"2020-12-17T01:41:35.157Z","gan":"7783320007480908","gan_source":"SQUARE","id":"gftc:00113070ba5745f0b2377c1b9570cb03","state":"ACTIVE","type":"DIGITAL"}},"type":"gift_card"},"event_id":"875f2038-6015-492e-9f29-d040b3809e49","merchant_id":"C337NFWQT2A6W","type":"gift_card.updated"},"x-webhook":{"event":"gift_card.updated","scopes":["GIFTCARDS_READ"]},"x-api":"#/components/x-apis/GiftCards","x-since":"2021-06-16"},"GiftCardUpdatedEventData":{"type":"object","description":"The data associated with a `gift_card.updated` event.","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"The type of object affected by the event. For this event, the value is `gift_card`.","nullable":true},"id":{"type":"string","description":"The ID of the updated gift card."},"object":{"$ref":"#/components/schemas/GiftCardUpdatedEventObject","description":"An object that contains the updated gift card.","nullable":true}}},"GiftCardUpdatedEventObject":{"type":"object","description":"An object that contains the gift card associated with a `gift_card.updated` event.","x-release-status":"PUBLIC","properties":{"gift_card":{"$ref":"#/components/schemas/GiftCard","description":"The gift card with the updated `balance_money`, `state`, or `customer_ids` field. \nSome events can affect both `balance_money` and `state`.","nullable":true}}},"IncludeOptions":{"type":"object","description":"Options to include related resources of the requested `CatalogObject`s. Related resources will be included in\n`IncludedResources` in the response.","x-release-status":"BETA","properties":{"include":{"type":"array","items":{"$ref":"#/components/schemas/IncludeType"},"description":"Resources to include in the response.\nSee [IncludeType](#type-includetype) for possible values","nullable":true}}},"IncludeType":{"type":"string","enum":["INCLUDE_NESTED_MODIFIERS","INCLUDE_ANCESTOR_MODIFIERS"],"x-enum-elements":[{"name":"INCLUDE_NESTED_MODIFIERS","description":"Return all nested `CatalogModifierList`s for `CatalogItem`, `CatalogModifier` and `CatalogModifierList` objects."},{"name":"INCLUDE_ANCESTOR_MODIFIERS","description":"Return all ancestor `CatalogModifierList`s for nested `CatalogModifierList`s objects."}],"description":"Related resources of requested `CatalogObject`s to include as part of the response.","x-release-status":"BETA"},"IncludedResources":{"type":"object","description":"Related resources of the response `CatalogObject`s requested using `IncludeOptions`","x-release-status":"BETA","properties":{"nested_modifiers":{"type":"array","items":{"$ref":"#/components/schemas/CatalogObject"},"description":"Nested `CatalogModifierList`s as requested via `INCLUDE_NESTED_MODIFIERS`.","nullable":true},"ancestor_modifiers":{"type":"array","items":{"$ref":"#/components/schemas/CatalogObject"},"description":"Ancestor `CatalogModifierList`s as requested via INCLUDE_ANCESTOR_MODIFIERS","nullable":true}}},"InventoryAdjustment":{"type":"object","description":"Represents a change in state or quantity of product inventory at a\nparticular time and location.","x-release-status":"PUBLIC","properties":{"id":{"type":"string","description":"A unique ID generated by Square for the\n`InventoryAdjustment`.","maxLength":100},"reference_id":{"type":"string","description":"An optional ID provided by the application to tie the\n`InventoryAdjustment` to an external\nsystem.","maxLength":255,"nullable":true},"from_state":{"$ref":"#/components/schemas/InventoryState","description":"The [inventory state](entity:InventoryState) of the related quantity\nof items before the adjustment.\nSee [InventoryState](#type-inventorystate) for possible values","nullable":true},"to_state":{"$ref":"#/components/schemas/InventoryState","description":"The [inventory state](entity:InventoryState) of the related quantity\nof items after the adjustment.\nSee [InventoryState](#type-inventorystate) for possible values","nullable":true},"from_location_id":{"type":"string","description":"The Square-generated ID of the [Location](entity:Location) where the related\nquantity of items is being tracked before the adjustment.","maxLength":100,"nullable":true},"to_location_id":{"type":"string","description":"The Square-generated ID of the [Location](entity:Location) where the related\nquantity of items is being tracked after the adjustment.","maxLength":100,"nullable":true},"catalog_object_id":{"type":"string","description":"The Square-generated ID of the\n[CatalogObject](entity:CatalogObject) being tracked.","maxLength":100,"nullable":true},"catalog_object_type":{"type":"string","description":"The [type](entity:CatalogObjectType) of the [CatalogObject](entity:CatalogObject) being tracked. \n\nThe Inventory API supports setting and reading the `\"catalog_object_type\": \"ITEM_VARIATION\"` field value. \nIn addition, it can also read the `\"catalog_object_type\": \"ITEM\"` field value that is set by the Square Restaurants app.","maxLength":14,"nullable":true},"quantity":{"type":"string","description":"The number of items affected by the adjustment as a decimal string.\nCan support up to 5 digits after the decimal point.","maxLength":26,"nullable":true},"total_price_money":{"$ref":"#/components/schemas/Money","description":"The total price paid for goods associated with the\nadjustment. Present if and only if `to_state` is `SOLD`. Always\nnon-negative.","readOnly":true},"occurred_at":{"type":"string","description":"A client-generated RFC 3339-formatted timestamp that indicates when\nthe inventory adjustment took place. For inventory adjustment updates, the `occurred_at`\ntimestamp cannot be older than 24 hours or in the future relative to the\ntime of the request.","maxLength":34,"nullable":true},"created_at":{"type":"string","description":"An RFC 3339-formatted timestamp that indicates when the inventory adjustment is received.","maxLength":34,"readOnly":true},"source":{"$ref":"#/components/schemas/SourceApplication","description":"Information about the application that caused the\ninventory adjustment.","readOnly":true},"employee_id":{"type":"string","description":"The Square-generated ID of the [Employee](entity:Employee) responsible for the\ninventory adjustment.","maxLength":100,"nullable":true},"team_member_id":{"type":"string","description":"The Square-generated ID of the [Team Member](entity:TeamMember) responsible for the\ninventory adjustment.","maxLength":100,"nullable":true},"transaction_id":{"type":"string","description":"The Square-generated ID of the [Transaction](entity:Transaction) that\ncaused the adjustment. Only relevant for payment-related state\ntransitions.","maxLength":255,"readOnly":true},"refund_id":{"type":"string","description":"The Square-generated ID of the [Refund](entity:Refund) that\ncaused the adjustment. Only relevant for refund-related state\ntransitions.","maxLength":255,"readOnly":true},"purchase_order_id":{"type":"string","description":"The Square-generated ID of the purchase order that caused the\nadjustment. Only relevant for state transitions from the Square for Retail\napp.","maxLength":100,"readOnly":true},"goods_receipt_id":{"type":"string","description":"The Square-generated ID of the goods receipt that caused the\nadjustment. Only relevant for state transitions from the Square for Retail\napp.","maxLength":100,"readOnly":true},"adjustment_group":{"$ref":"#/components/schemas/InventoryAdjustmentGroup","description":"An adjustment group bundling the related adjustments of item variations through stock conversions in a single inventory event.","readOnly":true,"x-release-status":"BETA"},"cost_money":{"$ref":"#/components/schemas/Money","description":"The total amount paid by the merchant to the supplying vendor for these units of the product.\nThis field is only applicable for stock receive adjustments that introduce stock into the system (from_state is NONE or UNLINKED_RETURN).\nMay be empty.\nThis field will only accept writes if the merchant has an active subscription for either Retail Plus, Restaurants Plus, or Restaurants Premium.","x-release-status":"BETA","nullable":true},"vendor_id":{"type":"string","description":"The Square-generated ID of the Vendor from which the merchant purchased this product.\nThis field is only applicable for stock receive adjustments that introduce stock into the system (from_state is NONE or UNLINKED_RETURN).\nThis field will only accept writes if the merchant has an active subscription for either Retail Plus, Restaurants Plus, or Restaurants Premium.","maxLength":100,"x-release-status":"BETA","nullable":true},"physical_count_id":{"type":"string","description":"The Square-generated ID of the InventoryPhysicalCount (recount) that generated this adjustment, if applicable.\nThe quantity of an adjustment generated by a physical count cannot be edited.","readOnly":true,"x-release-status":"BETA"},"reason_id":{"$ref":"#/components/schemas/InventoryAdjustmentReasonId","description":"Identifies the reason for this inventory adjustment.","x-release-status":"BETA","nullable":true}}},"InventoryAdjustmentGroup":{"type":"object","x-release-status":"BETA","properties":{"id":{"type":"string","description":"A unique ID generated by Square for the\n`InventoryAdjustmentGroup`.","maxLength":100,"readOnly":true},"root_adjustment_id":{"type":"string","description":"The inventory adjustment of the composed variation.","maxLength":100,"readOnly":true},"from_state":{"$ref":"#/components/schemas/InventoryState","description":"Representative `from_state` for adjustments within the group. For example, for a group adjustment from `IN_STOCK` to `SOLD`,\nthere can be two component adjustments in the group: one from `IN_STOCK`to `COMPOSED` and the other one from `COMPOSED` to `SOLD`.\nHere, the representative `from_state` for the `InventoryAdjustmentGroup` is `IN_STOCK`.\nSee [InventoryState](#type-inventorystate) for possible values","readOnly":true},"to_state":{"$ref":"#/components/schemas/InventoryState","description":"Representative `to_state` for adjustments within group. For example, for a group adjustment from `IN_STOCK` to `SOLD`,\nthe two component adjustments in the group can be from `IN_STOCK` to `COMPOSED` and from `COMPOSED` to `SOLD`.\nHere, the representative `to_state` of the `InventoryAdjustmentGroup` is `SOLD`.\nSee [InventoryState](#type-inventorystate) for possible values","readOnly":true}}},"InventoryAdjustmentReason":{"type":"object","description":"Represents an inventory adjustment reason.","x-release-status":"BETA","required":["id"],"properties":{"id":{"$ref":"#/components/schemas/InventoryAdjustmentReasonId","description":"The identifier for this inventory adjustment reason."},"name":{"type":"string","description":"The seller-facing name for a custom inventory adjustment reason. This\nfield is empty for standard and system-generated adjustment reasons.","maxLength":50,"nullable":true},"direction":{"$ref":"#/components/schemas/InventoryAdjustmentReasonDirection","description":"Indicates whether this inventory adjustment reason increases or\ndecreases inventory. This field is set for custom reasons and for standard\nseller-selectable reasons. It is empty for system-generated inventory\nevents.\nSee [Direction](#type-direction) for possible values","nullable":true},"created_at":{"type":"string","description":"An RFC 3339-formatted timestamp that indicates when the custom\nadjustment reason was created. This field is empty for standard\nadjustment reasons.","maxLength":34,"readOnly":true},"updated_at":{"type":"string","description":"An RFC 3339-formatted timestamp that indicates when the custom\nadjustment reason was last updated. This field is empty for standard\nadjustment reasons.","maxLength":34,"readOnly":true},"is_deleted":{"type":"boolean","description":"Indicates whether this custom inventory adjustment reason has been\ndeleted. Deleted custom reasons can still be retrieved by ID, but are\nomitted from list responses unless deleted reasons are explicitly included.\nTo restore a deleted custom reason, call\n[RestoreInventoryAdjustmentReason](api-endpoint:Inventory-RestoreInventoryAdjustmentReason).\nThis field is always `false` for standard and system-generated adjustment\nreasons.","nullable":true}}},"InventoryAdjustmentReasonDirection":{"type":"string","enum":["INCREASE","DECREASE"],"x-enum-elements":[{"name":"INCREASE","description":""},{"name":"DECREASE","description":""}],"x-release-status":"BETA"},"InventoryAdjustmentReasonId":{"type":"object","description":"Identifies a standard or custom inventory adjustment reason.","x-release-status":"BETA","required":["type"],"properties":{"type":{"$ref":"#/components/schemas/InventoryAdjustmentReasonIdType","description":"The adjustment reason type.\nSee [Type](#type-type) for possible values"},"custom_reason_id":{"type":"string","description":"The Square-generated ID of the custom adjustment reason. This field\nis only set when `type` is `CUSTOM`.","maxLength":100,"nullable":true}}},"InventoryAdjustmentReasonIdType":{"type":"string","enum":["RECEIVED","DAMAGED","THEFT","LOST","RETURNED","SPOILAGE_WASTE","SAMPLES_PROMOTIONAL","INTERNAL_USE","VENDOR_RETURN","PRODUCTION_WASTE","SALE","RECOUNT","TRANSFER","IN_TRANSIT","CANCELED_SALE","CUSTOM"],"x-enum-elements":[{"name":"RECEIVED","description":""},{"name":"DAMAGED","description":""},{"name":"THEFT","description":""},{"name":"LOST","description":""},{"name":"RETURNED","description":""},{"name":"SPOILAGE_WASTE","description":""},{"name":"SAMPLES_PROMOTIONAL","description":""},{"name":"INTERNAL_USE","description":""},{"name":"VENDOR_RETURN","description":""},{"name":"PRODUCTION_WASTE","description":""},{"name":"SALE","description":""},{"name":"RECOUNT","description":""},{"name":"TRANSFER","description":""},{"name":"IN_TRANSIT","description":""},{"name":"CANCELED_SALE","description":""},{"name":"CUSTOM","description":""}],"description":"The type of inventory adjustment reason.\n\nCustom reasons use `CUSTOM` and include a `custom_reason_id`. Standard\nseller-selectable reasons use `RECEIVED`, `DAMAGED`, `THEFT`, `LOST`,\n`RETURNED`, `SPOILAGE_WASTE`, `SAMPLES_PROMOTIONAL`, `INTERNAL_USE`,\n`VENDOR_RETURN`, or `PRODUCTION_WASTE`.\n\nThe writable standard reasons with direction `INCREASE` are `RECEIVED`\nand `RETURNED`. The writable standard reasons with direction `DECREASE`\nare `DAMAGED`, `THEFT`, `LOST`, `SPOILAGE_WASTE`,\n`SAMPLES_PROMOTIONAL`, `INTERNAL_USE`, `VENDOR_RETURN`, and\n`PRODUCTION_WASTE`.\n\nThe `SALE`, `RECOUNT`, `TRANSFER`, `IN_TRANSIT`, and `CANCELED_SALE`\nvalues identify system-generated inventory events. These values can be\nreturned by Square, but cannot be used when writing inventory adjustments.","x-release-status":"BETA"},"InventoryAlertType":{"type":"string","enum":["NONE","LOW_QUANTITY"],"x-enum-elements":[{"name":"NONE","description":"The variation does not display an alert."},{"name":"LOW_QUANTITY","description":"The variation generates an alert when its quantity is low."}],"description":"Indicates whether Square should alert the merchant when the inventory quantity of a CatalogItemVariation is low.","x-release-status":"PUBLIC"},"InventoryChange":{"type":"object","description":"Represents a single physical count, inventory, adjustment, or transfer\nthat is part of the history of inventory changes for a particular\n[CatalogObject](entity:CatalogObject) instance.","x-release-status":"PUBLIC","properties":{"type":{"$ref":"#/components/schemas/InventoryChangeType","description":"Indicates how the inventory change is applied. See\n[InventoryChangeType](entity:InventoryChangeType) for all possible values.\nSee [InventoryChangeType](#type-inventorychangetype) for possible values","nullable":true},"physical_count":{"$ref":"#/components/schemas/InventoryPhysicalCount","description":"Contains details about the physical count when `type` is\n`PHYSICAL_COUNT`, and is unset for all other change types.","nullable":true},"adjustment":{"$ref":"#/components/schemas/InventoryAdjustment","description":"Contains details about the inventory adjustment when `type` is\n`ADJUSTMENT`, and is unset for all other change types.","nullable":true},"measurement_unit":{"$ref":"#/components/schemas/CatalogMeasurementUnit","description":"The [CatalogMeasurementUnit](entity:CatalogMeasurementUnit) object representing the catalog measurement unit associated with the inventory change.","readOnly":true},"measurement_unit_id":{"type":"string","description":"The ID of the [CatalogMeasurementUnit](entity:CatalogMeasurementUnit) object representing the catalog measurement unit associated with the inventory change.","readOnly":true}}},"InventoryChangeType":{"type":"string","enum":["PHYSICAL_COUNT","ADJUSTMENT"],"x-enum-elements":[{"name":"PHYSICAL_COUNT","description":"The change occurred as part of a physical count update."},{"name":"ADJUSTMENT","description":"The change occurred as part of the normal lifecycle of goods\n(e.g., as an inventory adjustment)."}],"description":"Indicates how the inventory change was applied to a tracked product quantity.","x-release-status":"PUBLIC"},"InventoryCount":{"type":"object","description":"Represents Square-estimated quantity of items in a particular state at a\nparticular seller location based on the known history of physical counts and\ninventory adjustments. The absence of an inventory count indicates that the\ncatalog object hasn't interacted with the given inventory state at the given location.","x-release-status":"PUBLIC","properties":{"catalog_object_id":{"type":"string","description":"The Square-generated ID of the\n[CatalogObject](entity:CatalogObject) being tracked.","maxLength":100,"nullable":true},"catalog_object_type":{"type":"string","description":"The [type](entity:CatalogObjectType) of the [CatalogObject](entity:CatalogObject) being tracked. \n\nThe Inventory API supports setting and reading the `\"catalog_object_type\": \"ITEM_VARIATION\"` field value. \nIn addition, it can also read the `\"catalog_object_type\": \"ITEM\"` field value that is set by the Square Restaurants app.","maxLength":14,"nullable":true},"state":{"$ref":"#/components/schemas/InventoryState","description":"The current [inventory state](entity:InventoryState) for the related\nquantity of items.\nSee [InventoryState](#type-inventorystate) for possible values","nullable":true},"location_id":{"type":"string","description":"The Square-generated ID of the [Location](entity:Location) where the related\nquantity of items is being tracked.","maxLength":100,"nullable":true},"quantity":{"type":"string","description":"The number of items affected by the estimated count as a decimal string.\nCan support up to 5 digits after the decimal point.","maxLength":26,"nullable":true},"calculated_at":{"type":"string","description":"An RFC 3339-formatted timestamp that indicates when the most recent physical count or adjustment affecting\nthe estimated count is received.","maxLength":34,"readOnly":true},"is_estimated":{"type":"boolean","description":"Whether the inventory count is for composed variation (TRUE) or not (FALSE). If true, the inventory count will not be present in the response of\nany of these endpoints: [BatchChangeInventory](api-endpoint:Inventory-BatchChangeInventory),\n[BatchRetrieveInventoryChanges](api-endpoint:Inventory-BatchRetrieveInventoryChanges),\n[BatchRetrieveInventoryCounts](api-endpoint:Inventory-BatchRetrieveInventoryCounts), and\n[RetrieveInventoryChanges](api-endpoint:Inventory-RetrieveInventoryChanges).","readOnly":true,"x-release-status":"BETA"}}},"InventoryCountUpdatedEvent":{"type":"object","description":"Published when the quantity is updated for a\n[CatalogItemVariation](entity:CatalogItemVariation).","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the target merchant associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event this represents.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"Timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/InventoryCountUpdatedEventData","description":"Data associated with the event.","nullable":true}},"example":{"created_at":"2019-10-29T18:38:45.455006797Z","data":{"id":"84e4ac73-d605-4dbd-a9e5-ffff794ddb9d","object":{"inventory_counts":[{"calculated_at":"2019-10-29T18:38:45.10296Z","catalog_object_id":"FGQ5JJWT2PYTHF35CKZ2DSKP","catalog_object_type":"ITEM_VARIATION","location_id":"YYQR03DGCTXA4","quantity":"10","state":"IN_STOCK"}]},"type":"inventory_counts"},"event_id":"df5f3813-a913-45a1-94e9-fdc3f7d5e3b6","merchant_id":"6SSW7HV8K2ST5","type":"inventory.count.updated"},"x-webhook":{"event":"inventory.count.updated","scopes":["INVENTORY_READ"]},"x-api":"#/components/x-apis/Inventory","x-since":"2019-06-12"},"InventoryCountUpdatedEventData":{"type":"object","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"Name of the affected object’s type. For this event, the value is `inventory_counts`.","nullable":true},"id":{"type":"string","description":"ID of the affected object."},"object":{"$ref":"#/components/schemas/InventoryCountUpdatedEventObject","description":"An object containing fields and values relevant to the event. Is absent if affected object was deleted.","nullable":true}}},"InventoryCountUpdatedEventObject":{"type":"object","x-release-status":"PUBLIC","properties":{"inventory_counts":{"type":"array","items":{"$ref":"#/components/schemas/InventoryCount"},"description":"The inventory counts.","nullable":true}}},"InventoryPhysicalCount":{"type":"object","description":"Represents the quantity of an item variation that is physically present\nat a specific location, verified by a seller or a seller's employee. For example,\na physical count might come from an employee counting the item variations on\nhand or from syncing with an external system.","x-release-status":"PUBLIC","properties":{"id":{"type":"string","description":"A unique Square-generated ID for the\n[InventoryPhysicalCount](entity:InventoryPhysicalCount).","maxLength":100},"reference_id":{"type":"string","description":"An optional ID provided by the application to tie the\n[InventoryPhysicalCount](entity:InventoryPhysicalCount) to an external\nsystem.","maxLength":255,"nullable":true},"catalog_object_id":{"type":"string","description":"The Square-generated ID of the\n[CatalogObject](entity:CatalogObject) being tracked.","maxLength":100,"nullable":true},"catalog_object_type":{"type":"string","description":"The [type](entity:CatalogObjectType) of the [CatalogObject](entity:CatalogObject) being tracked. \n\nThe Inventory API supports setting and reading the `\"catalog_object_type\": \"ITEM_VARIATION\"` field value. \nIn addition, it can also read the `\"catalog_object_type\": \"ITEM\"` field value that is set by the Square Restaurants app.","maxLength":14,"nullable":true},"state":{"$ref":"#/components/schemas/InventoryState","description":"The current [inventory state](entity:InventoryState) for the related\nquantity of items.\nSee [InventoryState](#type-inventorystate) for possible values","nullable":true},"location_id":{"type":"string","description":"The Square-generated ID of the [Location](entity:Location) where the related\nquantity of items is being tracked.","maxLength":100,"nullable":true},"quantity":{"type":"string","description":"The number of items affected by the physical count as a decimal string.\nThe number can support up to 5 digits after the decimal point.","maxLength":26,"nullable":true},"source":{"$ref":"#/components/schemas/SourceApplication","description":"Information about the application with which the\nphysical count is submitted.","readOnly":true},"employee_id":{"type":"string","description":"The Square-generated ID of the [Employee](entity:Employee) responsible for the\nphysical count.","maxLength":100,"nullable":true},"team_member_id":{"type":"string","description":"The Square-generated ID of the [Team Member](entity:TeamMember) responsible for the\nphysical count.","maxLength":100,"nullable":true},"occurred_at":{"type":"string","description":"A client-generated RFC 3339-formatted timestamp that indicates when\nthe physical count was examined. For physical count updates, the `occurred_at`\ntimestamp cannot be older than 24 hours or in the future relative to the\ntime of the request.","maxLength":34,"nullable":true},"created_at":{"type":"string","description":"An RFC 3339-formatted timestamp that indicates when the physical count is received.","maxLength":34,"readOnly":true},"adjustment_id":{"type":"string","description":"The Square-generated ID of the InventoryAdjustment that was generated by this physical count in order to\nadjust the current stock count to reflect the re-counted quantity.\nThis field may be empty if the merchant does not have an active subscription for either Retail Plus, Restaurants Plus, or Restaurants Premium.","readOnly":true,"x-release-status":"BETA"}}},"InventoryState":{"type":"string","enum":["CUSTOM","IN_STOCK","SOLD","RETURNED_BY_CUSTOMER","RESERVED_FOR_SALE","SOLD_ONLINE","ORDERED_FROM_VENDOR","RECEIVED_FROM_VENDOR","IN_TRANSIT_TO","NONE","WASTE","UNLINKED_RETURN","COMPOSED","DECOMPOSED","SUPPORTED_BY_NEWER_VERSION","IN_TRANSIT","UNTRACKED"],"x-enum-elements":[{"name":"CUSTOM","description":"The related quantity of items are in a custom state. **READ-ONLY**:\nthe Inventory API cannot move quantities to or from this state."},{"name":"IN_STOCK","description":"The related quantity of items are on hand and available for sale."},{"name":"SOLD","description":"The related quantity of items were sold as part of an itemized\ntransaction. Quantities in the `SOLD` state are no longer tracked."},{"name":"RETURNED_BY_CUSTOMER","description":"The related quantity of items were returned through the Square Point\nof Sale application, but are not yet available for sale. **READ-ONLY**:\nthe Inventory API cannot move quantities to or from this state."},{"name":"RESERVED_FOR_SALE","description":"The related quantity of items are on hand, but not currently\navailable for sale. **READ-ONLY**: the Inventory API cannot move\nquantities to or from this state."},{"name":"SOLD_ONLINE","description":"The related quantity of items were sold online. **READ-ONLY**: the\nInventory API cannot move quantities to or from this state."},{"name":"ORDERED_FROM_VENDOR","description":"The related quantity of items were ordered from a vendor but not yet\nreceived. **READ-ONLY**: the Inventory API cannot move quantities to or\nfrom this state."},{"name":"RECEIVED_FROM_VENDOR","description":"The related quantity of items were received from a vendor but are\nnot yet available for sale. **READ-ONLY**: the Inventory API cannot move\nquantities to or from this state."},{"name":"IN_TRANSIT_TO","description":"Replaced by `IN_TRANSIT` to represent quantities\nof items that are in transit between locations."},{"name":"NONE","description":"A placeholder indicating that the related quantity of items are not\ncurrently tracked in Square. Transferring quantities from the `NONE` state\nto a tracked state (e.g., `IN_STOCK`) introduces stock into the system."},{"name":"WASTE","description":"The related quantity of items are lost or damaged and cannot be\nsold."},{"name":"UNLINKED_RETURN","description":"The related quantity of items were returned but not linked to a\nprevious transaction. Unlinked returns are not tracked in Square.\nTransferring a quantity from `UNLINKED_RETURN` to a tracked state (e.g.,\n`IN_STOCK`) introduces new stock into the system."},{"name":"COMPOSED","description":"The related quantity of items that are part of a composition consisting one or more components."},{"name":"DECOMPOSED","description":"The related quantity of items that are part of a component."},{"name":"SUPPORTED_BY_NEWER_VERSION","description":"This state is not supported by this version of the Square API. We recommend that you upgrade the client to use the appropriate version of the Square API supporting this state."},{"name":"IN_TRANSIT","description":"The related quantity of items are in transit between locations. **READ-ONLY:** the Inventory API cannot currently be used to move quantities to or from this inventory state."},{"name":"UNTRACKED","description":"The related quantity of items are untracked."}],"description":"Indicates the state of a tracked item quantity in the lifecycle of goods.","x-release-status":"PUBLIC"},"Invoice":{"type":"object","description":"Stores information about an invoice. You use the Invoices API to create and manage\ninvoices. For more information, see [Invoices API Overview](https://developer.squareup.com/docs/invoices-api/overview).","x-release-status":"PUBLIC","properties":{"id":{"type":"string","description":"The Square-assigned ID of the invoice.","readOnly":true},"version":{"type":"integer","description":"The Square-assigned version number, which is incremented each time an update is committed to the invoice."},"location_id":{"type":"string","description":"The ID of the location that this invoice is associated with. \n\nIf specified in a `CreateInvoice` request, the value must match the `location_id` of the associated order.","minLength":1,"maxLength":255,"nullable":true},"order_id":{"type":"string","description":"The ID of the [order](entity:Order) for which the invoice is created. \nThis field is required when creating an invoice, and the order must be in the `OPEN` state.\n\nTo view the line items and other information for the associated order, call the \n[RetrieveOrder](api-endpoint:Orders-RetrieveOrder) endpoint using the order ID.","minLength":1,"maxLength":255,"nullable":true},"primary_recipient":{"$ref":"#/components/schemas/InvoiceRecipient","description":"The customer who receives the invoice. This customer data is displayed on the invoice and used by Square to deliver the invoice. \n\nThis field is required to publish an invoice, and it must specify the `customer_id`.","nullable":true},"payment_requests":{"type":"array","items":{"$ref":"#/components/schemas/InvoicePaymentRequest"},"description":"The payment schedule for the invoice, represented by one or more payment requests that\ndefine payment settings, such as amount due and due date. An invoice supports the following payment request combinations:\n- One balance\n- One deposit with one balance\n- 2–12 installments \n- One deposit with 2–12 installments\n\nThis field is required when creating an invoice. It must contain at least one payment request. \nAll payment requests for the invoice must equal the total order amount. For more information, see \n[Configuring payment requests](https://developer.squareup.com/docs/invoices-api/create-publish-invoices#payment-requests).\n\nAdding `INSTALLMENT` payment requests to an invoice requires an \n[Invoices Plus subscription](https://developer.squareup.com/docs/invoices-api/overview#invoices-plus-subscription).","nullable":true},"delivery_method":{"$ref":"#/components/schemas/InvoiceDeliveryMethod","description":"The delivery method that Square uses to send the invoice, reminders, and receipts to\nthe customer. After the invoice is published, Square processes the invoice based on the delivery\nmethod and payment request settings, either immediately or on the `scheduled_at` date, if specified.\nFor example, Square might send the invoice or receipt for an automatic payment. For invoices with\nautomatic payments, this field must be set to `EMAIL`.\n\nOne of the following is required when creating an invoice:\n- (Recommended) This `delivery_method` field. To configure an automatic payment, the\n`automatic_payment_source` field of the payment request is also required.\n- The deprecated `request_method` field of the payment request. Note that `invoice`\nobjects returned in responses do not include `request_method`.\nSee [InvoiceDeliveryMethod](#type-invoicedeliverymethod) for possible values","nullable":true},"invoice_number":{"type":"string","description":"A user-friendly invoice number that is displayed on the invoice. The value is unique within a location.\nIf not provided when creating an invoice, Square assigns a value.\nIt increments from 1 and is padded with zeros making it 7 characters long\n(for example, 0000001 and 0000002).","minLength":1,"maxLength":191,"nullable":true},"title":{"type":"string","description":"The title of the invoice, which is displayed on the invoice.","minLength":1,"maxLength":255,"nullable":true},"description":{"type":"string","description":"The description of the invoice, which is displayed on the invoice.","minLength":1,"maxLength":65536,"nullable":true},"scheduled_at":{"type":"string","description":"The timestamp when the invoice is scheduled for processing, in RFC 3339 format.\nAfter the invoice is published, Square processes the invoice on the specified date,\naccording to the delivery method and payment request settings.\n\nIf the field is not set, Square processes the invoice immediately after it is published.","nullable":true},"public_url":{"type":"string","description":"A temporary link to the Square-hosted payment page where the customer can pay the\ninvoice. If the link expires, customers can provide the email address or phone number\nassociated with the invoice and request a new link directly from the expired payment page. \n\nThis field is added after the invoice is published and reaches the scheduled date\n(if one is defined).","readOnly":true},"next_payment_amount_money":{"$ref":"#/components/schemas/Money","description":"The current amount due for the invoice. In addition to the\namount due on the next payment request, this includes any overdue payment amounts.","readOnly":true},"status":{"$ref":"#/components/schemas/InvoiceStatus","description":"The status of the invoice.\nSee [InvoiceStatus](#type-invoicestatus) for possible values","readOnly":true},"timezone":{"type":"string","description":"The time zone used to interpret calendar dates on the invoice, such as `due_date`.\nWhen an invoice is created, this field is set to the `timezone` specified for the seller\nlocation. The value cannot be changed.\n\nFor example, a payment `due_date` of 2021-03-09 with a `timezone` of America/Los\\_Angeles\nbecomes overdue at midnight on March 9 in America/Los\\_Angeles (which equals a UTC timestamp\nof 2021-03-10T08:00:00Z).","readOnly":true},"created_at":{"type":"string","description":"The timestamp when the invoice was created, in RFC 3339 format.","readOnly":true},"updated_at":{"type":"string","description":"The timestamp when the invoice was last updated, in RFC 3339 format.","readOnly":true},"accepted_payment_methods":{"$ref":"#/components/schemas/InvoiceAcceptedPaymentMethods","description":"The payment methods that customers can use to pay the invoice on the Square-hosted\ninvoice page. This setting is independent of any automatic payment requests for the invoice.\n\nThis field is required when creating an invoice and must set at least one payment method to `true`.","nullable":true},"custom_fields":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceCustomField"},"description":"Additional seller-defined fields that are displayed on the invoice. For more information, see\n[Custom fields](https://developer.squareup.com/docs/invoices-api/overview#custom-fields).\n\nAdding custom fields to an invoice requires an \n[Invoices Plus subscription](https://developer.squareup.com/docs/invoices-api/overview#invoices-plus-subscription).\n\nMax: 2 custom fields","nullable":true},"subscription_id":{"type":"string","description":"The ID of the [subscription](entity:Subscription) associated with the invoice.\nThis field is present only on subscription billing invoices.","readOnly":true},"sale_or_service_date":{"type":"string","description":"The date of the sale or the date that the service is rendered, in `YYYY-MM-DD` format.\nThis field can be used to specify a past or future date which is displayed on the invoice.","nullable":true},"payment_conditions":{"type":"string","description":"**France only.** The payment terms and conditions that are displayed on the invoice. For more information, \nsee [Payment conditions](https://developer.squareup.com/docs/invoices-api/overview#payment-conditions).\n\nFor countries other than France, Square returns an `INVALID_REQUEST_ERROR` with a `BAD_REQUEST` code and \n\"Payment conditions are not supported for this location's country\" detail if this field is included in `CreateInvoice` or `UpdateInvoice` requests.","minLength":1,"maxLength":2000,"nullable":true},"store_payment_method_enabled":{"type":"boolean","description":"Indicates whether to allow a customer to save a credit or debit card as a card on file or a bank transfer as a\nbank account on file. If `true`, Square displays a __Save my card on file__ or __Save my bank on file__ checkbox on the\ninvoice payment page. Stored payment information can be used for future automatic payments. The default value is `false`.","nullable":true},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceAttachment"},"description":"Metadata about the attachments on the invoice. Invoice attachments are managed using the\n[CreateInvoiceAttachment](api-endpoint:Invoices-CreateInvoiceAttachment) and [DeleteInvoiceAttachment](api-endpoint:Invoices-DeleteInvoiceAttachment) endpoints.","readOnly":true},"creator_team_member_id":{"type":"string","description":"The ID of the [team member](entity:TeamMember) who created the invoice.\nThis field is present only on invoices created in the Square Dashboard or Square Invoices app by a logged-in team member.","readOnly":true}}},"InvoiceAcceptedPaymentMethods":{"type":"object","description":"The payment methods that customers can use to pay an [invoice](entity:Invoice) on the Square-hosted invoice payment page.","x-release-status":"PUBLIC","properties":{"card":{"type":"boolean","description":"Indicates whether credit card or debit card payments are accepted. The default value is `false`.","nullable":true},"square_gift_card":{"type":"boolean","description":"Indicates whether Square gift card payments are accepted. The default value is `false`.","nullable":true},"bank_account":{"type":"boolean","description":"Indicates whether ACH bank transfer payments are accepted. The default value is `false`.","nullable":true},"buy_now_pay_later":{"type":"boolean","description":"Indicates whether Afterpay (also known as Clearpay) payments are accepted. The default value is `false`.\n\nThis option is allowed only for invoices that have a single payment request of the `BALANCE` type. This payment method is\nsupported if the seller account accepts Afterpay payments and the seller location is in a country where Afterpay\ninvoice payments are supported. As a best practice, consider enabling an additional payment method when allowing\n`buy_now_pay_later` payments. For more information, including detailed requirements and processing limits, see\n[Buy Now Pay Later payments with Afterpay](https://developer.squareup.com/docs/invoices-api/overview#buy-now-pay-later).","nullable":true},"cash_app_pay":{"type":"boolean","description":"Indicates whether Cash App payments are accepted. The default value is `false`.\n\nThis payment method is supported only for seller [locations](entity:Location) in the United States.","nullable":true}}},"InvoiceAttachment":{"type":"object","description":"Represents a file attached to an [invoice](entity:Invoice).","x-release-status":"PUBLIC","properties":{"id":{"type":"string","description":"The Square-assigned ID of the attachment.","readOnly":true},"filename":{"type":"string","description":"The file name of the attachment, which is displayed on the invoice.","readOnly":true},"description":{"type":"string","description":"The description of the attachment, which is displayed on the invoice.\nThis field maps to the seller-defined **Message** field.","readOnly":true},"filesize":{"type":"integer","description":"The file size of the attachment in bytes.","readOnly":true},"hash":{"type":"string","description":"The MD5 hash that was generated from the file contents.","readOnly":true},"mime_type":{"type":"string","description":"The mime type of the attachment.\nThe following mime types are supported: \nimage/gif, image/jpeg, image/png, image/tiff, image/bmp, application/pdf.","readOnly":true},"uploaded_at":{"type":"string","description":"The timestamp when the attachment was uploaded, in RFC 3339 format.","readOnly":true}}},"InvoiceAutomaticPaymentSource":{"type":"string","enum":["NONE","CARD_ON_FILE","BANK_ON_FILE"],"x-enum-elements":[{"name":"NONE","description":"An automatic payment is not configured for the payment request."},{"name":"CARD_ON_FILE","description":"Use a card on file as the automatic payment method. On the due date, Square charges the card\nfor the amount of the payment request.\n\nFor `CARD_ON_FILE` payments, the invoice delivery method must be `EMAIL` and `card_id` must be\nspecified for the payment request before the invoice can be published."},{"name":"BANK_ON_FILE","description":"Use a bank account on file as the automatic payment method. On the due date, Square charges the bank\naccount for the amount of the payment request if the buyer has approved the payment. The buyer receives a\nrequest to approve the payment when the invoice is sent or the invoice is updated.\n\nThis payment method applies only to invoices that sellers create in the Seller Dashboard or other\nSquare product. The bank account is provided by the customer during the payment flow. \n\nYou cannot set `BANK_ON_FILE` as a payment method using the Invoices API, but you can change a `BANK_ON_FILE`\npayment method to `NONE` or `CARD_ON_FILE`. For `BANK_ON_FILE` payments, the invoice delivery method must be `EMAIL`."}],"description":"Indicates the automatic payment method for an [invoice payment request](entity:InvoicePaymentRequest).","x-release-status":"PUBLIC"},"InvoiceCanceledEvent":{"type":"object","description":"Published when an [Invoice](entity:Invoice) is canceled.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the target merchant associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event this represents, `\"invoice.canceled\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"Timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/InvoiceCanceledEventData","description":"Data associated with the event.","nullable":true}},"example":{"created_at":"2020-06-18T18:23:11Z","data":{"id":"inv:0-ChCHu2mZEabLeeHahQnXDjZQECY","object":{"invoice":{"accepted_payment_methods":{"bank_account":false,"buy_now_pay_later":false,"card":true,"cash_app_pay":false,"square_gift_card":false},"created_at":"2020-06-18T17:45:13Z","custom_fields":[{"label":"Event Reference Number","placement":"ABOVE_LINE_ITEMS","value":"Ref. #1234"},{"label":"Terms of Service","placement":"BELOW_LINE_ITEMS","value":"The terms of service are..."}],"delivery_method":"EMAIL","description":"We appreciate your business!","id":"inv:0-ChCHu2mZEabLeeHahQnXDjZQECY","invoice_number":"inv-100","location_id":"ES0RJRZYEC39A","order_id":"CAISENgvlJ6jLWAzERDzjyHVybY","payment_requests":[{"automatic_payment_source":"NONE","computed_amount_money":{"amount":10000,"currency":"USD"},"due_date":"2030-01-24","reminders":[{"message":"Your invoice is due tomorrow","relative_scheduled_days":-1,"status":"PENDING","uid":"beebd363-e47f-4075-8785-c235aaa7df11"}],"request_type":"BALANCE","tipping_enabled":true,"total_completed_amount_money":{"amount":0,"currency":"USD"},"uid":"2da7964f-f3d2-4f43-81e8-5aa220bf3355"}],"primary_recipient":{"customer_id":"JDKYHBWT1D4F8MFH63DBMEN8Y4","email_address":"[email protected]","family_name":"Earhart","given_name":"Amelia","phone_number":"1-212-555-4240"},"sale_or_service_date":"2030-01-24","scheduled_at":"2030-01-13T10:00:00Z","status":"CANCELED","store_payment_method_enabled":false,"timezone":"America/Los_Angeles","title":"Event Planning Services","updated_at":"2020-06-18T18:23:11Z","version":1}},"type":"invoice"},"event_id":"742ef00c-446b-4fca-b3d5-f177d816ee54","location_id":"ES0RJRZYEC39A","merchant_id":"031FEV2Q6VMPK","type":"invoice.canceled"},"x-webhook":{"event":"invoice.canceled","scopes":["INVOICES_READ"]},"x-api":"#/components/x-apis/Invoices","x-since":"2020-07-22"},"InvoiceCanceledEventData":{"type":"object","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"Name of the affected object’s type, `\"invoice\"`.","nullable":true},"id":{"type":"string","description":"ID of the affected invoice."},"object":{"$ref":"#/components/schemas/InvoiceCanceledEventObject","description":"An object containing the canceled invoice.","nullable":true}}},"InvoiceCanceledEventObject":{"type":"object","x-release-status":"PUBLIC","properties":{"invoice":{"$ref":"#/components/schemas/Invoice","description":"The related invoice.","nullable":true}}},"InvoiceCreatedEvent":{"type":"object","description":"Published when an [Invoice](entity:Invoice) is created.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the target merchant associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event this represents, `\"invoice.created\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"Timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/InvoiceCreatedEventData","description":"Data associated with the event.","nullable":true}},"example":{"created_at":"2020-06-18T17:45:13Z","data":{"id":"inv:0-ChCHu2mZEabLeeHahQnXDjZQECY","object":{"invoice":{"accepted_payment_methods":{"bank_account":false,"buy_now_pay_later":false,"card":true,"cash_app_pay":false,"square_gift_card":false},"created_at":"2020-06-18T17:45:13Z","custom_fields":[{"label":"Event Reference Number","placement":"ABOVE_LINE_ITEMS","value":"Ref. #1234"},{"label":"Terms of Service","placement":"BELOW_LINE_ITEMS","value":"The terms of service are..."}],"delivery_method":"EMAIL","description":"We appreciate your business!","id":"inv:0-ChCHu2mZEabLeeHahQnXDjZQECY","invoice_number":"inv-100","location_id":"ES0RJRZYEC39A","order_id":"CAISENgvlJ6jLWAzERDzjyHVybY","payment_requests":[{"automatic_payment_source":"NONE","computed_amount_money":{"amount":10000,"currency":"USD"},"due_date":"2030-01-24","reminders":[{"message":"Your invoice is due tomorrow","relative_scheduled_days":-1,"status":"PENDING","uid":"beebd363-e47f-4075-8785-c235aaa7df11"}],"request_type":"BALANCE","tipping_enabled":true,"total_completed_amount_money":{"amount":0,"currency":"USD"},"uid":"2da7964f-f3d2-4f43-81e8-5aa220bf3355"}],"primary_recipient":{"customer_id":"JDKYHBWT1D4F8MFH63DBMEN8Y4","email_address":"[email protected]","family_name":"Earhart","given_name":"Amelia","phone_number":"1-212-555-4240"},"sale_or_service_date":"2030-01-24","scheduled_at":"2030-01-13T10:00:00Z","status":"DRAFT","store_payment_method_enabled":false,"timezone":"America/Los_Angeles","title":"Event Planning Services","updated_at":"2020-06-18T17:45:13Z","version":0}},"type":"invoice"},"event_id":"012c1bfa-c239-4fc0-b16d-5809928b54fe","location_id":"ES0RJRZYEC39A","merchant_id":"031FEV2Q6VMPK","type":"invoice.created"},"x-webhook":{"event":"invoice.created","scopes":["INVOICES_READ"]},"x-api":"#/components/x-apis/Invoices","x-since":"2020-07-22"},"InvoiceCreatedEventData":{"type":"object","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"Name of the affected object’s type, `\"invoice\"`.","nullable":true},"id":{"type":"string","description":"ID of the affected invoice."},"object":{"$ref":"#/components/schemas/InvoiceCreatedEventObject","description":"An object containing the created invoice.","nullable":true}}},"InvoiceCreatedEventObject":{"type":"object","x-release-status":"PUBLIC","properties":{"invoice":{"$ref":"#/components/schemas/Invoice","description":"The related invoice.","nullable":true}}},"InvoiceCustomField":{"type":"object","description":"An additional seller-defined and customer-facing field to include on the invoice. For more information, \nsee [Custom fields](https://developer.squareup.com/docs/invoices-api/overview#custom-fields).\n\nAdding custom fields to an invoice requires an \n[Invoices Plus subscription](https://developer.squareup.com/docs/invoices-api/overview#invoices-plus-subscription).","x-release-status":"PUBLIC","properties":{"label":{"type":"string","description":"The label or title of the custom field. This field is required for a custom field.","maxLength":30,"nullable":true},"value":{"type":"string","description":"The text of the custom field. If omitted, only the label is rendered.","maxLength":2000,"nullable":true},"placement":{"$ref":"#/components/schemas/InvoiceCustomFieldPlacement","description":"The location of the custom field on the invoice. This field is required for a custom field.\nSee [InvoiceCustomFieldPlacement](#type-invoicecustomfieldplacement) for possible values","nullable":true}}},"InvoiceCustomFieldPlacement":{"type":"string","enum":["ABOVE_LINE_ITEMS","BELOW_LINE_ITEMS"],"x-enum-elements":[{"name":"ABOVE_LINE_ITEMS","description":"Render the custom field above the invoice line items."},{"name":"BELOW_LINE_ITEMS","description":"Render the custom field below the invoice line items."}],"description":"Indicates where to render a custom field on the Square-hosted invoice page and in emailed or PDF \ncopies of the invoice.","x-release-status":"PUBLIC"},"InvoiceDeletedEvent":{"type":"object","description":"Published when a draft [Invoice](entity:Invoice) is deleted.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the target merchant associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event this represents, `\"invoice.deleted\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"Timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/InvoiceDeletedEventData","description":"Data associated with the event.","nullable":true}},"example":{"created_at":"2020-06-18T18:23:11Z","data":{"deleted":true,"id":"inv:0-ChCHu2mZEabLeeHahQnXDjZQECY","type":"invoice"},"event_id":"742ef00c-446b-4fca-b3d5-f177d816ee54","location_id":"ES0RJRZYEC39A","merchant_id":"031FEV2Q6VMPK","type":"invoice.deleted"},"x-webhook":{"event":"invoice.deleted","scopes":["INVOICES_READ"]},"x-api":"#/components/x-apis/Invoices","x-since":"2020-07-22"},"InvoiceDeletedEventData":{"type":"object","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"Name of the affected object’s type, `\"invoice\"`.","nullable":true},"id":{"type":"string","description":"ID of the affected invoice."},"deleted":{"type":"boolean","description":"Indicates that the invoice was deleted.","nullable":true}}},"InvoiceDeliveryMethod":{"type":"string","enum":["EMAIL","SHARE_MANUALLY","SMS"],"x-enum-elements":[{"name":"EMAIL","description":"Directs Square to send invoices, reminders, and receipts to the customer using email."},{"name":"SHARE_MANUALLY","description":"Directs Square to take no action on the invoice. In this case, the seller\nor application developer follows up with the customer for payment. For example,\na seller might collect a payment in the Seller Dashboard or Point of Sale (POS) application.\nThe seller might also share the URL of the Square-hosted invoice page (`public_url`) with the customer to request payment."},{"name":"SMS","description":"Directs Square to send invoices and receipts to the customer using SMS (text message).\n\nYou cannot set `SMS` as a delivery method using the Invoices API, but you can change an `SMS` delivery method to `EMAIL` or `SHARE_MANUALLY`."}],"description":"Indicates how Square delivers the [invoice](entity:Invoice) to the customer.","x-release-status":"PUBLIC"},"InvoiceFilter":{"type":"object","description":"Describes query filters to apply.","x-release-status":"PUBLIC","required":["location_ids"],"properties":{"location_ids":{"type":"array","items":{"type":"string"},"description":"Limits the search to the specified locations. A location is required. \nIn the current implementation, only one location can be specified."},"customer_ids":{"type":"array","items":{"type":"string"},"description":"Limits the search to the specified customers, within the specified locations. \nSpecifying a customer is optional. In the current implementation, \na maximum of one customer can be specified.","nullable":true}}},"InvoicePaymentMadeEvent":{"type":"object","description":"Published when a payment that is associated with an [invoice](entity:Invoice) is completed.\nFor more information about invoice payments, see [Pay an invoice](https://developer.squareup.com/docs/invoices-api/pay-refund-invoices#pay-invoice).","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the target merchant associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event this represents, `\"invoice.payment_made\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"Timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/InvoicePaymentMadeEventData","description":"Data associated with the event.","nullable":true}},"example":{"created_at":"2020-06-18T18:23:11Z","data":{"id":"inv:0-ChCHu2mZEabLeeHahQnXDjZQECY","object":{"invoice":{"accepted_payment_methods":{"bank_account":false,"buy_now_pay_later":false,"card":true,"cash_app_pay":false,"square_gift_card":false},"created_at":"2020-06-18T17:45:13Z","custom_fields":[{"label":"Event Reference Number","placement":"ABOVE_LINE_ITEMS","value":"Ref. #1234"},{"label":"Terms of Service","placement":"BELOW_LINE_ITEMS","value":"The terms of service are..."}],"delivery_method":"EMAIL","description":"We appreciate your business!","id":"inv:0-ChCHu2mZEabLeeHahQnXDjZQECY","invoice_number":"inv-100","location_id":"ES0RJRZYEC39A","order_id":"CAISENgvlJ6jLWAzERDzjyHVybY","payment_requests":[{"automatic_payment_source":"NONE","computed_amount_money":{"amount":10000,"currency":"USD"},"due_date":"2030-01-24","request_type":"BALANCE","tipping_enabled":false,"total_completed_amount_money":{"amount":10000,"currency":"USD"},"uid":"2da7964f-f3d2-4f43-81e8-5aa220bf3355"}],"primary_recipient":{"customer_id":"JDKYHBWT1D4F8MFH63DBMEN8Y4","email_address":"[email protected]","family_name":"Earhart","given_name":"Amelia","phone_number":"1-212-555-4240"},"sale_or_service_date":"2030-01-24","status":"PAID","store_payment_method_enabled":false,"timezone":"America/Los_Angeles","title":"Event Planning Services","updated_at":"2020-06-18T18:23:11Z","version":3}},"type":"invoice"},"event_id":"891e3589-462f-4215-9b61-f6df2d4432b7","location_id":"ES0RJRZYEC39A","merchant_id":"031FEV2Q6VMPK","type":"invoice.payment_made"},"x-webhook":{"event":"invoice.payment_made","scopes":["INVOICES_READ"]},"x-api":"#/components/x-apis/Invoices","x-since":"2020-07-22"},"InvoicePaymentMadeEventData":{"type":"object","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"Name of the affected object’s type, `\"invoice\"`.","nullable":true},"id":{"type":"string","description":"ID of the affected invoice."},"object":{"$ref":"#/components/schemas/InvoicePaymentMadeEventObject","description":"An object containing the invoice that was paid.","nullable":true}}},"InvoicePaymentMadeEventObject":{"type":"object","x-release-status":"PUBLIC","properties":{"invoice":{"$ref":"#/components/schemas/Invoice","description":"The related invoice.","nullable":true}}},"InvoicePaymentReminder":{"type":"object","description":"Describes a payment request reminder (automatic notification) that Square sends\nto the customer. You configure a reminder relative to the payment request\n`due_date`.","x-release-status":"PUBLIC","properties":{"uid":{"type":"string","description":"A Square-assigned ID that uniquely identifies the reminder within the\n`InvoicePaymentRequest`.","readOnly":true},"relative_scheduled_days":{"type":"integer","description":"The number of days before (a negative number) or after (a positive number)\nthe payment request `due_date` when the reminder is sent. For example, -3 indicates that\nthe reminder should be sent 3 days before the payment request `due_date`.","minimum":-32767,"maximum":32767,"nullable":true},"message":{"type":"string","description":"The reminder message.","minLength":1,"maxLength":1000,"nullable":true},"status":{"$ref":"#/components/schemas/InvoicePaymentReminderStatus","description":"The status of the reminder.\nSee [InvoicePaymentReminderStatus](#type-invoicepaymentreminderstatus) for possible values","readOnly":true},"sent_at":{"type":"string","description":"If sent, the timestamp when the reminder was sent, in RFC 3339 format.","readOnly":true}}},"InvoicePaymentReminderStatus":{"type":"string","enum":["PENDING","NOT_APPLICABLE","SENT"],"x-enum-elements":[{"name":"PENDING","description":"The reminder will be sent on the `relative_scheduled_date` (if the invoice is published)."},{"name":"NOT_APPLICABLE","description":"The reminder is not applicable and is not sent. The following are examples\nof when reminders are not applicable and are not sent:\n- You schedule a reminder to be sent before the invoice is published.\n- The invoice is configured with multiple payment requests and a payment request reminder\nis configured to be sent after the next payment request `due_date`.\n- Two reminders (for different payment requests) are configured to be sent on the\nsame date. Therefore, only one reminder is sent.\n- You configure a reminder to be sent on the date that the invoice is scheduled to be sent.\n- The payment request is already paid.\n- The invoice status is `CANCELED` or `FAILED`."},{"name":"SENT","description":"The reminder is sent."}],"description":"The status of a payment request reminder.","x-release-status":"PUBLIC"},"InvoicePaymentRequest":{"type":"object","description":"Represents a payment request for an [invoice](entity:Invoice). Invoices can specify a maximum\nof 13 payment requests, with up to 12 `INSTALLMENT` request types. For more information, \nsee [Configuring payment requests](https://developer.squareup.com/docs/invoices-api/create-publish-invoices#payment-requests).\n\nAdding `INSTALLMENT` payment requests to an invoice requires an \n[Invoices Plus subscription](https://developer.squareup.com/docs/invoices-api/overview#invoices-plus-subscription).","x-release-status":"PUBLIC","properties":{"uid":{"type":"string","description":"The Square-generated ID of the payment request in an [invoice](entity:Invoice).","minLength":1,"maxLength":255,"nullable":true},"request_method":{"$ref":"#/components/schemas/InvoiceRequestMethod","description":"Indicates how Square processes the payment request. DEPRECATED at version 2021-01-21. Replaced by the\n`Invoice.delivery_method` and `InvoicePaymentRequest.automatic_payment_source` fields.\n\nOne of the following is required when creating an invoice:\n- (Recommended) The `delivery_method` field of the invoice. To configure an automatic payment, the\n`automatic_payment_source` field of the payment request is also required.\n- This `request_method` field. Note that `invoice` objects returned in responses do not include `request_method`.\nSee [InvoiceRequestMethod](#type-invoicerequestmethod) for possible values","x-release-status":"DEPRECATED","nullable":true},"request_type":{"$ref":"#/components/schemas/InvoiceRequestType","description":"Identifies the payment request type. This type defines how the payment request amount is determined. \nThis field is required to create a payment request.\nSee [InvoiceRequestType](#type-invoicerequesttype) for possible values","nullable":true},"due_date":{"type":"string","description":"The due date (in the invoice's time zone) for the payment request, in `YYYY-MM-DD` format. This field\nis required to create a payment request. If an `automatic_payment_source` is defined for the request, Square\ncharges the payment source on this date.\n\nAfter this date, the invoice becomes overdue. For example, a payment `due_date` of 2021-03-09 with a `timezone`\nof America/Los\\_Angeles becomes overdue at midnight on March 9 in America/Los\\_Angeles (which equals a UTC\ntimestamp of 2021-03-10T08:00:00Z).","nullable":true},"fixed_amount_requested_money":{"$ref":"#/components/schemas/Money","description":"If the payment request specifies `DEPOSIT` or `INSTALLMENT` as the `request_type`, \nthis indicates the request amount.\nYou cannot specify this when `request_type` is `BALANCE` or when the \npayment request includes the `percentage_requested` field.","nullable":true},"percentage_requested":{"type":"string","description":"Specifies the amount for the payment request in percentage:\n\n- When the payment `request_type` is `DEPOSIT`, it is the percentage of the order's total amount.\n- When the payment `request_type` is `INSTALLMENT`, it is the percentage of the order's total less \nthe deposit, if requested. The sum of the `percentage_requested` in all installment \npayment requests must be equal to 100.\n\nYou cannot specify this when the payment `request_type` is `BALANCE` or when the \npayment request specifies the `fixed_amount_requested_money` field.","nullable":true},"tipping_enabled":{"type":"boolean","description":"If set to true, the Square-hosted invoice page (the `public_url` field of the invoice) \nprovides a place for the customer to pay a tip. \n\nThis field is allowed only on the final payment request \nand the payment `request_type` must be `BALANCE` or `INSTALLMENT`.","nullable":true},"automatic_payment_source":{"$ref":"#/components/schemas/InvoiceAutomaticPaymentSource","description":"The payment method for an automatic payment.\n\nThe default value is `NONE`.\nSee [InvoiceAutomaticPaymentSource](#type-invoiceautomaticpaymentsource) for possible values","nullable":true},"card_id":{"type":"string","description":"The ID of the credit or debit card on file to charge for the payment request. To get the cards on file for a customer,\ncall [ListCards](api-endpoint:Cards-ListCards) and include the `customer_id` of the invoice recipient.","minLength":1,"maxLength":255,"nullable":true},"reminders":{"type":"array","items":{"$ref":"#/components/schemas/InvoicePaymentReminder"},"description":"A list of one or more reminders to send for the payment request.","nullable":true},"computed_amount_money":{"$ref":"#/components/schemas/Money","description":"The amount of the payment request, computed using the order amount and information from the various payment\nrequest fields (`request_type`, `fixed_amount_requested_money`, and `percentage_requested`).","readOnly":true},"total_completed_amount_money":{"$ref":"#/components/schemas/Money","description":"The amount of money already paid for the specific payment request. \nThis amount might include a rounding adjustment if the most recent invoice payment \nwas in cash in a currency that rounds cash payments (such as, `CAD` or `AUD`).","readOnly":true},"rounding_adjustment_included_money":{"$ref":"#/components/schemas/Money","description":"If the most recent payment was a cash payment \nin a currency that rounds cash payments (such as, `CAD` or `AUD`) and the payment \nis rounded from `computed_amount_money` in the payment request, then this \nfield specifies the rounding adjustment applied. This amount \nmight be negative.","readOnly":true}}},"InvoicePublishedEvent":{"type":"object","description":"Published when an [Invoice](entity:Invoice) transitions from a draft to a non-draft status.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the target merchant associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event this represents, `\"invoice.published\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"Timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/InvoicePublishedEventData","description":"Data associated with the event.","nullable":true}},"example":{"created_at":"2020-06-18T18:23:11Z","data":{"id":"inv:0-ChCHu2mZEabLeeHahQnXDjZQECY","object":{"invoice":{"accepted_payment_methods":{"bank_account":false,"buy_now_pay_later":false,"card":true,"cash_app_pay":false,"square_gift_card":false},"created_at":"2020-06-18T17:45:13Z","custom_fields":[{"label":"Event Reference Number","placement":"ABOVE_LINE_ITEMS","value":"Ref. #1234"},{"label":"Terms of Service","placement":"BELOW_LINE_ITEMS","value":"The terms of service are..."}],"delivery_method":"EMAIL","description":"We appreciate your business!","id":"inv:0-ChCHu2mZEabLeeHahQnXDjZQECY","invoice_number":"inv-100","location_id":"ES0RJRZYEC39A","order_id":"CAISENgvlJ6jLWAzERDzjyHVybY","payment_requests":[{"automatic_payment_source":"NONE","computed_amount_money":{"amount":10000,"currency":"USD"},"due_date":"2030-01-24","reminders":[{"message":"Your invoice is due tomorrow","relative_scheduled_days":-1,"status":"PENDING","uid":"beebd363-e47f-4075-8785-c235aaa7df11"}],"request_type":"BALANCE","tipping_enabled":true,"total_completed_amount_money":{"amount":0,"currency":"USD"},"uid":"2da7964f-f3d2-4f43-81e8-5aa220bf3355"}],"primary_recipient":{"customer_id":"JDKYHBWT1D4F8MFH63DBMEN8Y4","email_address":"[email protected]","family_name":"Earhart","given_name":"Amelia","phone_number":"1-212-555-4240"},"sale_or_service_date":"2030-01-24","scheduled_at":"2030-01-13T10:00:00Z","status":"SCHEDULED","store_payment_method_enabled":false,"timezone":"America/Los_Angeles","title":"Event Planning Services","updated_at":"2020-06-18T18:23:11Z","version":1}},"type":"invoice"},"event_id":"52246644-98ba-411a-874c-ba35ccdb831c","location_id":"ES0RJRZYEC39A","merchant_id":"031FEV2Q6VMPK","type":"invoice.published"},"x-webhook":{"event":"invoice.published","scopes":["INVOICES_READ"]},"x-api":"#/components/x-apis/Invoices","x-since":"2020-07-22"},"InvoicePublishedEventData":{"type":"object","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"Name of the affected object’s type, `\"invoice\"`.","nullable":true},"id":{"type":"string","description":"ID of the affected invoice."},"object":{"$ref":"#/components/schemas/InvoicePublishedEventObject","description":"An object containing the published invoice.","nullable":true}}},"InvoicePublishedEventObject":{"type":"object","x-release-status":"PUBLIC","properties":{"invoice":{"$ref":"#/components/schemas/Invoice","description":"The related invoice.","nullable":true}}},"InvoiceQuery":{"type":"object","description":"Describes query criteria for searching invoices.","x-release-status":"PUBLIC","required":["filter"],"properties":{"filter":{"$ref":"#/components/schemas/InvoiceFilter","description":"Query filters to apply in searching invoices. \nFor more information, see [Search for invoices](https://developer.squareup.com/docs/invoices-api/retrieve-list-search-invoices#search-invoices)."},"sort":{"$ref":"#/components/schemas/InvoiceSort","description":"Describes the sort order for the search result.","nullable":true}}},"InvoiceRecipient":{"type":"object","description":"Represents a snapshot of customer data. This object stores customer data that is displayed on the invoice \nand that Square uses to deliver the invoice.\n\nWhen you provide a customer ID for a draft invoice, Square retrieves the associated customer profile and populates \nthe remaining `InvoiceRecipient` fields. You cannot update these fields after the invoice is published. \nSquare updates the customer ID in response to a merge operation, but does not update other fields.","x-release-status":"PUBLIC","properties":{"customer_id":{"type":"string","description":"The ID of the customer. This is the customer profile ID that \nyou provide when creating a draft invoice.","minLength":1,"maxLength":255,"nullable":true},"given_name":{"type":"string","description":"The recipient's given (that is, first) name.","readOnly":true},"family_name":{"type":"string","description":"The recipient's family (that is, last) name.","readOnly":true},"email_address":{"type":"string","description":"The recipient's email address.","readOnly":true},"address":{"$ref":"#/components/schemas/Address","description":"The recipient's physical address.","readOnly":true},"phone_number":{"type":"string","description":"The recipient's phone number.","readOnly":true},"company_name":{"type":"string","description":"The name of the recipient's company.","readOnly":true},"tax_ids":{"$ref":"#/components/schemas/InvoiceRecipientTaxIds","description":"The recipient's tax IDs. The country of the seller account determines whether this field \nis available for the customer. For more information, see [Invoice recipient tax IDs](https://developer.squareup.com/docs/invoices-api/overview#recipient-tax-ids).","readOnly":true}}},"InvoiceRecipientTaxIds":{"type":"object","description":"Represents the tax IDs for an invoice recipient. The country of the seller account determines \nwhether the corresponding `tax_ids` field is available for the customer. For more information, \nsee [Invoice recipient tax IDs](https://developer.squareup.com/docs/invoices-api/overview#recipient-tax-ids).","x-release-status":"PUBLIC","properties":{"eu_vat":{"type":"string","description":"The EU VAT identification number for the invoice recipient. For example, `IE3426675K`.","readOnly":true}}},"InvoiceRefundedEvent":{"type":"object","description":"Published when a refund is applied toward a payment of an [invoice](entity:Invoice). \nFor more information about invoice refunds, see [Refund an invoice](https://developer.squareup.com/docs/invoices-api/pay-refund-invoices#refund-invoice).","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the target merchant associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event this represents, `\"invoice.refunded\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"Timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/InvoiceRefundedEventData","description":"Data associated with the event.","nullable":true}},"example":{"created_at":"2020-06-18T18:23:11Z","data":{"id":"inv:0-ChCHu2mZEabLeeHahQnXDjZQECY","object":{"invoice":{"accepted_payment_methods":{"bank_account":false,"buy_now_pay_later":false,"card":true,"cash_app_pay":false,"square_gift_card":false},"created_at":"2020-06-18T17:45:13Z","custom_fields":[{"label":"Event Reference Number","placement":"ABOVE_LINE_ITEMS","value":"Ref. #1234"},{"label":"Terms of Service","placement":"BELOW_LINE_ITEMS","value":"The terms of service are..."}],"delivery_method":"EMAIL","description":"We appreciate your business!","id":"inv:0-ChCHu2mZEabLeeHahQnXDjZQECY","invoice_number":"inv-100","location_id":"ES0RJRZYEC39A","order_id":"CAISENgvlJ6jLWAzERDzjyHVybY","payment_requests":[{"automatic_payment_source":"NONE","computed_amount_money":{"amount":10000,"currency":"USD"},"due_date":"2030-01-24","request_type":"BALANCE","tipping_enabled":false,"total_completed_amount_money":{"amount":10000,"currency":"USD"},"uid":"2da7964f-f3d2-4f43-81e8-5aa220bf3355"}],"primary_recipient":{"customer_id":"JDKYHBWT1D4F8MFH63DBMEN8Y4","email_address":"[email protected]","family_name":"Earhart","given_name":"Amelia","phone_number":"1-212-555-4240"},"sale_or_service_date":"2030-01-24","status":"REFUNDED","store_payment_method_enabled":false,"timezone":"America/Los_Angeles","title":"Event Planning Services","updated_at":"2020-06-18T18:23:11Z","version":4}},"type":"invoice"},"event_id":"aedeb1fb-6c7d-4484-8106-866d97652388","location_id":"ES0RJRZYEC39A","merchant_id":"031FEV2Q6VMPK","type":"invoice.refunded"},"x-webhook":{"event":"invoice.refunded","scopes":["INVOICES_READ"]},"x-api":"#/components/x-apis/Invoices","x-since":"2020-07-22"},"InvoiceRefundedEventData":{"type":"object","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"Name of the affected object’s type, `\"invoice\"`.","nullable":true},"id":{"type":"string","description":"ID of the affected invoice."},"object":{"$ref":"#/components/schemas/InvoiceRefundedEventObject","description":"An object containing the refunded invoice.","nullable":true}}},"InvoiceRefundedEventObject":{"type":"object","x-release-status":"PUBLIC","properties":{"invoice":{"$ref":"#/components/schemas/Invoice","description":"The related invoice.","nullable":true}}},"InvoiceRequestMethod":{"type":"string","enum":["EMAIL","CHARGE_CARD_ON_FILE","SHARE_MANUALLY","CHARGE_BANK_ON_FILE","SMS","SMS_CHARGE_CARD_ON_FILE","SMS_CHARGE_BANK_ON_FILE"],"x-enum-elements":[{"name":"EMAIL","description":"Directs Square to send invoices, reminders, and receipts to the customer using email.\nSquare sends the invoice after it is published (either immediately or at the `scheduled_at`\ntime, if specified in the [invoice](entity:Invoice))."},{"name":"CHARGE_CARD_ON_FILE","description":"Directs Square to charge the card on file on the `due_date` specified in the payment request\nand to use email to send invoices, reminders, and receipts."},{"name":"SHARE_MANUALLY","description":"Directs Square to take no specific action on the invoice. In this case, the seller \n(or the application developer) follows up with the customer for payment. For example, \na seller might collect a payment in the Seller Dashboard or use the Point of Sale (POS) application. \nThe seller might also share the URL of the Square-hosted invoice page (`public_url`) with the customer requesting payment."},{"name":"CHARGE_BANK_ON_FILE","description":"Directs Square to charge the customer's bank account on file and to use email to send invoices, reminders, and receipts.\nThe customer must approve the payment.\n\nThe bank on file payment method applies only to invoices that sellers create in the Seller Dashboard or other\nSquare product. The bank account is provided by the customer during the payment flow. You \ncannot set `CHARGE_BANK_ON_FILE` as a request method using the Invoices API."},{"name":"SMS","description":"Directs Square to send invoices and receipts to the customer using SMS (text message). Square sends the invoice\nafter it is published (either immediately or at the `scheduled_at` time, if specified in the [invoice](entity:Invoice)). \n\nYou cannot set `SMS` as a request method using the Invoices API."},{"name":"SMS_CHARGE_CARD_ON_FILE","description":"Directs Square to charge the card on file on the `due_date` specified in the payment request and to\nuse SMS (text message) to send invoices and receipts. \n\nYou cannot set `SMS_CHARGE_CARD_ON_FILE` as a request method using the Invoices API."},{"name":"SMS_CHARGE_BANK_ON_FILE","description":"Directs Square to charge the customer's bank account on file and to use SMS (text message) to send invoices and receipts.\nThe customer must approve the payment.\n\nThe bank on file payment method applies only to invoices that sellers create in the Seller Dashboard\nor other Square product. The bank account is provided by the customer during the payment flow. \nYou cannot set `SMS_CHARGE_BANK_ON_FILE` as a request method using the Invoices API."}],"description":"Specifies the action for Square to take for processing the invoice. For example, \nemail the invoice, charge a customer's card on file, or do nothing. DEPRECATED at\nversion 2021-01-21. The corresponding `request_method` field is replaced by the\n`Invoice.delivery_method` and `InvoicePaymentRequest.automatic_payment_source` fields.","x-release-status":"DEPRECATED"},"InvoiceRequestType":{"type":"string","enum":["BALANCE","DEPOSIT","INSTALLMENT"],"x-enum-elements":[{"name":"BALANCE","description":"A request for a balance payment. The balance amount is computed as follows: \n\n- If the invoice specifies only a balance payment request, the balance amount is the \ntotal amount of the associated order. \n- If the invoice also specifies a deposit request, the balance amount is the amount \nremaining after the deposit.\n\n`INSTALLMENT` and `BALANCE` payment requests are not allowed in the same invoice."},{"name":"DEPOSIT","description":"A request for a deposit payment. You have the option of specifying \nan exact amount or a percentage of the total order amount. If you request a deposit, \nit must be due before any other payment requests."},{"name":"INSTALLMENT","description":"A request for an installment payment. Installments allow buyers to pay the invoice over time. Installments can optionally be combined with a deposit. \n\nAdding `INSTALLMENT` payment requests to an invoice requires an \n[Invoices Plus subscription](https://developer.squareup.com/docs/invoices-api/overview#invoices-plus-subscription)."}],"description":"Indicates the type of the payment request. For more information, see \n[Configuring payment requests](https://developer.squareup.com/docs/invoices-api/create-publish-invoices#payment-requests).","x-release-status":"PUBLIC"},"InvoiceScheduledChargeFailedEvent":{"type":"object","description":"Published when an automatic scheduled payment for an [Invoice](entity:Invoice) has failed.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the target merchant associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event this represents, `\"invoice.scheduled_charge_failed\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"Timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/InvoiceScheduledChargeFailedEventData","description":"Data associated with the event.","nullable":true}},"example":{"created_at":"2020-06-18T18:23:11Z","data":{"id":"inv:0-ChCHu2mZEabLeeHahQnXDjZQECY","object":{"invoice":{"accepted_payment_methods":{"bank_account":false,"buy_now_pay_later":false,"card":true,"cash_app_pay":false,"square_gift_card":false},"created_at":"2020-06-18T17:45:13Z","custom_fields":[{"label":"Event Reference Number","placement":"ABOVE_LINE_ITEMS","value":"Ref. #1234"},{"label":"Terms of Service","placement":"BELOW_LINE_ITEMS","value":"The terms of service are..."}],"delivery_method":"EMAIL","description":"We appreciate your business!","id":"inv:0-ChCHu2mZEabLeeHahQnXDjZQECY","invoice_number":"inv-100","location_id":"ES0RJRZYEC39A","next_payment_amount_money":{"amount":10000,"currency":"USD"},"order_id":"CAISENgvlJ6jLWAzERDzjyHVybY","payment_requests":[{"automatic_payment_source":"NONE","computed_amount_money":{"amount":10000,"currency":"USD"},"due_date":"2030-01-24","reminders":[{"message":"Your invoice is due tomorrow","relative_scheduled_days":-1,"status":"PENDING","uid":"beebd363-e47f-4075-8785-c235aaa7df11"}],"request_type":"BALANCE","tipping_enabled":false,"total_completed_amount_money":{"amount":0,"currency":"USD"},"uid":"2da7964f-f3d2-4f43-81e8-5aa220bf3355"}],"primary_recipient":{"customer_id":"JDKYHBWT1D4F8MFH63DBMEN8Y4","email_address":"[email protected]","family_name":"Earhart","given_name":"Amelia","phone_number":"1-212-555-4240"},"sale_or_service_date":"2030-01-24","scheduled_at":"2030-01-13T10:00:00Z","status":"UNPAID","store_payment_method_enabled":false,"timezone":"America/Los_Angeles","title":"Event Planning Services","updated_at":"2020-06-18T18:23:11Z","version":4}},"type":"invoice"},"event_id":"3cabb64e-16ba-40c2-b605-5c51a06ec794","location_id":"ES0RJRZYEC39A","merchant_id":"031FEV2Q6VMPK","type":"invoice.scheduled_charge_failed"},"x-webhook":{"event":"invoice.scheduled_charge_failed","scopes":["INVOICES_READ"]},"x-api":"#/components/x-apis/Invoices","x-since":"2020-07-22"},"InvoiceScheduledChargeFailedEventData":{"type":"object","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"Name of the affected object’s type, `\"invoice\"`.","nullable":true},"id":{"type":"string","description":"ID of the affected invoice."},"object":{"$ref":"#/components/schemas/InvoiceScheduledChargeFailedEventObject","description":"An object containing the invoice that experienced the failed scheduled charge.","nullable":true}}},"InvoiceScheduledChargeFailedEventObject":{"type":"object","x-release-status":"PUBLIC","properties":{"invoice":{"$ref":"#/components/schemas/Invoice","description":"The related invoice.","nullable":true}}},"InvoiceSort":{"type":"object","description":"Identifies the sort field and sort order.","x-release-status":"PUBLIC","required":["field"],"properties":{"field":{"$ref":"#/components/schemas/InvoiceSortField","description":"The field to use for sorting.\nSee [InvoiceSortField](#type-invoicesortfield) for possible values"},"order":{"$ref":"#/components/schemas/SortOrder","description":"The order to use for sorting the results.\nSee [SortOrder](#type-sortorder) for possible values","nullable":true}}},"InvoiceSortField":{"type":"string","enum":["INVOICE_SORT_DATE"],"x-enum-elements":[{"name":"INVOICE_SORT_DATE","description":"The field works as follows:\n\n- If the invoice is a draft, it uses the invoice `created_at` date.\n- If the invoice is scheduled for publication, it uses the `scheduled_at` date.\n- If the invoice is published, it uses the invoice publication date."}],"description":"The field to use for sorting.","x-release-status":"PUBLIC"},"InvoiceStatus":{"type":"string","enum":["DRAFT","UNPAID","SCHEDULED","PARTIALLY_PAID","PAID","PARTIALLY_REFUNDED","REFUNDED","CANCELED","FAILED","PAYMENT_PENDING"],"x-enum-elements":[{"name":"DRAFT","description":"The invoice is a draft. You must publish a draft invoice before Square can process it.\nA draft invoice has no `public_url`, so it is not available to customers."},{"name":"UNPAID","description":"The invoice is published but not yet paid."},{"name":"SCHEDULED","description":"The invoice is scheduled to be processed. On the scheduled date,\nSquare sends the invoice, initiates an automatic payment, or takes no action, depending on\nthe delivery method and payment request settings. Square also sets the invoice status to the\nappropriate state: `UNPAID`, `PAID`, `PARTIALLY_PAID`, or `PAYMENT_PENDING`."},{"name":"PARTIALLY_PAID","description":"A partial payment is received for the invoice."},{"name":"PAID","description":"The customer paid the invoice in full."},{"name":"PARTIALLY_REFUNDED","description":"The invoice is paid (or partially paid) and some but not all the amount paid is\nrefunded."},{"name":"REFUNDED","description":"The full amount that the customer paid for the invoice is refunded."},{"name":"CANCELED","description":"The invoice is canceled. Square no longer requests payments from the customer.\nThe Square-hosted payment page is still accessible using the temporary `public_url`\nlink, but the invoice is shown as canceled and does not accept payment."},{"name":"FAILED","description":"Square canceled the invoice due to suspicious activity."},{"name":"PAYMENT_PENDING","description":"A payment on the invoice was initiated but has not yet been processed.\n\nWhen in this state, invoices cannot be updated and other payments cannot be initiated."}],"description":"Indicates the status of an [invoice](entity:Invoice).","x-release-status":"PUBLIC"},"InvoiceUpdatedEvent":{"type":"object","description":"Published when an [Invoice](entity:Invoice) is updated.","x-release-status":"PUBLIC","properties":{"merchant_id":{"type":"string","description":"The ID of the target merchant associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event this represents, `\"invoice.updated\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"Timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/InvoiceUpdatedEventData","description":"Data associated with the event.","nullable":true}},"example":{"created_at":"2020-06-18T18:23:11Z","data":{"id":"inv:0-ChCHu2mZEabLeeHahQnXDjZQECY","object":{"invoice":{"accepted_payment_methods":{"bank_account":false,"buy_now_pay_later":false,"card":true,"cash_app_pay":false,"square_gift_card":false},"attachments":[{"description":"Service contract","filename":"terms_and_agreements.pdf","filesize":81839,"hash":"273ee02cb6f5f8a3a8ca23604930dd53","id":"inva:0-ChBIMZJ99MugJFCUBjUVfdwY","mime_type":"application/pdf","uploaded_at":"2023-03-03T00:07:52Z"}],"created_at":"2020-06-18T17:45:13Z","custom_fields":[{"label":"Event Reference Number","placement":"ABOVE_LINE_ITEMS","value":"Ref. #1234"},{"label":"Terms of Service","placement":"BELOW_LINE_ITEMS","value":"The terms of service are..."}],"delivery_method":"EMAIL","description":"We appreciate your business!","id":"inv:0-ChCHu2mZEabLeeHahQnXDjZQECY","invoice_number":"inv-100","location_id":"ES0RJRZYEC39A","next_payment_amount_money":{"amount":10000,"currency":"USD"},"order_id":"CAISENgvlJ6jLWAzERDzjyHVybY","payment_requests":[{"automatic_payment_source":"NONE","computed_amount_money":{"amount":10000,"currency":"USD"},"due_date":"2030-01-24","reminders":[{"message":"Your invoice is due tomorrow","relative_scheduled_days":-1,"status":"PENDING","uid":"beebd363-e47f-4075-8785-c235aaa7df11"}],"request_type":"BALANCE","tipping_enabled":false,"total_completed_amount_money":{"amount":0,"currency":"USD"},"uid":"2da7964f-f3d2-4f43-81e8-5aa220bf3355"}],"primary_recipient":{"customer_id":"JDKYHBWT1D4F8MFH63DBMEN8Y4","email_address":"[email protected]","family_name":"Earhart","given_name":"Amelia","phone_number":"1-212-555-4240"},"sale_or_service_date":"2030-01-24","scheduled_at":"2030-01-13T10:00:00Z","status":"UNPAID","store_payment_method_enabled":false,"timezone":"America/Los_Angeles","title":"Event Planning Services","updated_at":"2020-06-18T18:23:11Z","version":2}},"type":"invoice"},"event_id":"0312a8c5-af0f-49f4-ba29-291ef08dcd7e","location_id":"ES0RJRZYEC39A","merchant_id":"031FEV2Q6VMPK","type":"invoice.updated"},"x-webhook":{"event":"invoice.updated","scopes":["INVOICES_READ"]},"x-api":"#/components/x-apis/Invoices","x-since":"2020-07-22"},"InvoiceUpdatedEventData":{"type":"object","x-release-status":"PUBLIC","properties":{"type":{"type":"string","description":"Name of the affected object’s type, `\"invoice\"`.","nullable":true},"id":{"type":"string","description":"ID of the affected invoice."},"object":{"$ref":"#/components/schemas/InvoiceUpdatedEventObject","description":"An object containing the updated invoice.","nullable":true}}},"InvoiceUpdatedEventObject":{"type":"object","x-release-status":"PUBLIC","properties":{"invoice":{"$ref":"#/components/schemas/Invoice","description":"The related invoice.","nullable":true}}},"ItemVariationLocationOverrides":{"type":"object","description":"Price and inventory alerting overrides for a `CatalogItemVariation` at a specific `Location`.","x-release-status":"PUBLIC","properties":{"location_id":{"type":"string","description":"The ID of the `Location`. This can include locations that are deactivated.","nullable":true},"price_money":{"$ref":"#/components/schemas/Money","description":"The price of the `CatalogItemVariation` at the given `Location`, or blank for variable pricing.","nullable":true},"pricing_type":{"$ref":"#/components/schemas/CatalogPricingType","description":"The pricing type (fixed or variable) for the `CatalogItemVariation` at the given `Location`.\nSee [CatalogPricingType](#type-catalogpricingtype) for possible values","nullable":true},"track_inventory":{"type":"boolean","description":"Indicates whether inventory tracking is active for the `CatalogItemVariation` at this `Location`.\nWhen set, this value explicitly overrides the global `track_inventory` setting. When unset, the location\nshould use the global value. If both global and location-level values are unset, inventory tracking is disabled.","nullable":true},"inventory_alert_type":{"$ref":"#/components/schemas/InventoryAlertType","description":"Indicates whether the `CatalogItemVariation` displays an alert when its inventory\nquantity is less than or equal to its `inventory_alert_threshold`.\nSee [InventoryAlertType](#type-inventoryalerttype) for possible values","nullable":true},"inventory_alert_threshold":{"type":"integer","description":"If the inventory quantity for the variation is less than or equal to this value and `inventory_alert_type`\nis `LOW_QUANTITY`, the variation displays an alert in the merchant dashboard.\n\nThis value is always an integer.","format":"int64","nullable":true},"sold_out":{"type":"boolean","description":"Indicates whether the overridden item variation is sold out at the specified location.\n\nWhen inventory tracking is enabled on the item variation either globally or at the specified location,\nthe item variation is automatically marked as sold out when its inventory count reaches zero. The seller\ncan manually set the item variation as sold out even when the inventory count is greater than zero.\nAttempts by an application to set this attribute are ignored. Regardless how the sold-out status is set,\napplications should treat its inventory count as zero when this attribute value is `true`.","readOnly":true},"sold_out_valid_until":{"type":"string","description":"The seller-assigned timestamp, of the RFC 3339 format, to indicate when this sold-out variation\nbecomes available again at the specified location. Attempts by an application to set this attribute are ignored.\nWhen the current time is later than this attribute value, the affected item variation is no longer sold out.","readOnly":true}}},"Job":{"type":"object","description":"Represents a job that can be assigned to [team members](entity:TeamMember). This object defines the\njob's title and tip eligibility. Compensation is defined in a [job assignment](entity:JobAssignment)\nin a team member's wage setting.","x-release-status":"BETA","properties":{"id":{"type":"string","description":"**Read only** The unique Square-assigned ID of the job. If you need a job ID for an API request,\ncall [ListJobs](api-endpoint:Team-ListJobs) or use the ID returned when you created the job.\nYou can also get job IDs from a team member's wage setting."},"title":{"type":"string","description":"The title of the job.","maxLength":150,"nullable":true},"is_tip_eligible":{"type":"boolean","description":"Indicates whether team members can earn tips for the job.","nullable":true},"created_at":{"type":"string","description":"The timestamp when the job was created, in RFC 3339 format.","readOnly":true},"updated_at":{"type":"string","description":"The timestamp when the job was last updated, in RFC 3339 format.","readOnly":true},"version":{"type":"integer","description":"**Read only** The current version of the job. Include this field in `UpdateJob` requests to enable\n[optimistic concurrency](https://developer.squareup.com/docs/working-with-apis/optimistic-concurrency)\ncontrol and avoid overwrites from concurrent requests. Requests fail if the provided version doesn't\nmatch the server version at the time of the request."}}},"JobAssignment":{"type":"object","description":"Represents a job assigned to a [team member](entity:TeamMember), including the compensation the team\nmember earns for the job. Job assignments are listed in the team member's [wage setting](entity:WageSetting).","x-release-status":"PUBLIC","required":["pay_type"],"properties":{"job_title":{"type":"string","description":"The title of the job.","nullable":true},"pay_type":{"$ref":"#/components/schemas/JobAssignmentPayType","description":"The current pay type for the job assignment used to\ncalculate the pay amount in a pay period.\nSee [JobAssignmentPayType](#type-jobassignmentpaytype) for possible values"},"hourly_rate":{"$ref":"#/components/schemas/Money","description":"The hourly pay rate of the job. For `SALARY` pay types, Square calculates the hourly rate based on\n`annual_rate` and `weekly_hours`.","nullable":true},"annual_rate":{"$ref":"#/components/schemas/Money","description":"The total pay amount for a 12-month period on the job. Set if the job `PayType` is `SALARY`.","nullable":true},"weekly_hours":{"type":"integer","description":"The planned hours per week for the job. Set if the job `PayType` is `SALARY`.","nullable":true},"job_id":{"type":"string","description":"The ID of the [job](entity:Job).","x-release-status":"BETA","nullable":true}}},"JobAssignmentPayType":{"type":"string","enum":["NONE","HOURLY","SALARY"],"x-enum-elements":[{"name":"NONE","description":"The job does not have a defined pay type."},{"name":"HOURLY","description":"The job pays an hourly rate."},{"name":"SALARY","description":"The job pays an annual salary."}],"description":"Enumerates the possible pay types that a job can be assigned.","x-release-status":"PUBLIC"},"JobCreatedEvent":{"type":"object","description":"Published when a Job is created.","x-release-status":"BETA","properties":{"merchant_id":{"type":"string","description":"The ID of the target merchant associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event this represents, `\"job.created\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"Timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/JobCreatedEventData","description":"Data associated with the event.","nullable":true}},"example":{"created_at":"2024-12-20T01:16:04.253Z","data":{"id":"9AMrnT51mWUa31uN4QziQZXF","object":{"job":{"created_at":"2024-12-20T01:15:55Z","id":"9AMrnT51mWUa31uN4QziQZXF","is_tip_eligible":true,"title":"Cashier","updated_at":"2024-12-20T01:15:55Z","version":1}},"type":"job"},"event_id":"91484f7e-63bc-4253-a86d-18e7ea0b0cfb","merchant_id":"0JV5BGNW4EG9R","type":"job.created"},"x-webhook":{"event":"job.created","scopes":["EMPLOYEES_READ"]},"x-api":"#/components/x-apis/Team","x-since":"2024-12-18"},"JobCreatedEventData":{"type":"object","x-release-status":"BETA","properties":{"type":{"type":"string","description":"Name of the affected object’s type, `\"job\"`.","nullable":true},"id":{"type":"string","description":"ID of the created job."},"object":{"$ref":"#/components/schemas/JobCreatedEventObject","description":"An object containing the created job.","nullable":true}}},"JobCreatedEventObject":{"type":"object","x-release-status":"BETA","properties":{"job":{"$ref":"#/components/schemas/Job","description":"The created job.","nullable":true}}},"JobUpdatedEvent":{"type":"object","description":"Published when a Job is updated.","x-release-status":"BETA","properties":{"merchant_id":{"type":"string","description":"The ID of the target merchant associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event this represents, `\"job.updated\"`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"Timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/JobUpdatedEventData","description":"Data associated with the event.","nullable":true}},"example":{"created_at":"2024-12-21T02:34:55.253Z","data":{"id":"9AMrnT51mWUa31uN4QziQZXF","object":{"job":{"created_at":"2024-12-20T01:15:55Z","id":"9AMrnT51mWUa31uN4QziQZXF","is_tip_eligible":false,"title":"Cashier","updated_at":"2024-12-21T02:34:14Z","version":2}},"type":"job"},"event_id":"91484f7e-63bc-4253-a86d-18e7ea0b0cfb","merchant_id":"0JV5BGNW4EG9R","type":"job.updated"},"x-webhook":{"event":"job.updated","scopes":["EMPLOYEES_READ"]},"x-api":"#/components/x-apis/Team","x-since":"2024-12-18"},"JobUpdatedEventData":{"type":"object","x-release-status":"BETA","properties":{"type":{"type":"string","description":"Name of the affected object’s type, `\"job\"`.","nullable":true},"id":{"type":"string","description":"ID of the updated job."},"object":{"$ref":"#/components/schemas/JobUpdatedEventObject","description":"An object containing the updated job.","nullable":true}}},"JobUpdatedEventObject":{"type":"object","x-release-status":"BETA","properties":{"job":{"$ref":"#/components/schemas/Job","description":"The updated job.","nullable":true}}},"LaborScheduledShiftCreatedEvent":{"type":"object","description":"Published when a [ScheduledShift](entity:ScheduledShift) is created.","x-release-status":"BETA","properties":{"merchant_id":{"type":"string","description":"The ID of the merchant associated with the event.","nullable":true},"location_id":{"type":"string","description":"The ID of the location associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event. For this event, the value is `labor.scheduled_shift.created`.","nullable":true},"event_id":{"type":"string","description":"The unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"The timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/LaborScheduledShiftCreatedEventData","description":"The data associated with the event.","nullable":true}},"example":{"created_at":"2025-02-11T18:02:00.084598063Z","data":{"id":"509RM55G6R17F","object":{"scheduled_shift":{"created_at":"2025-02-11T18:02:00Z","draft_shift_details":{"end_at":"2025-02-14T09:11:00-08:00","is_deleted":false,"job_id":"ioeL1Mp7iZwCAWxeGMAT7ggB","location_id":"LR473RTW59VRY","notes":"Dont forget to prep the vegetables","start_at":"2025-02-13T23:11:00-08:00","team_member_id":"TMnsTAouYbvmp-8O","timezone":"America/Los_Angeles"},"id":"509RM55G6R17F","updated_at":"2025-02-11T18:02:00Z","version":1}},"type":"scheduled_shift"},"event_id":"d0fabe2e-791c-398e-a349-79f6ec7dfa69","merchant_id":"MLHZRVNSD91A1","type":"labor.scheduled_shift.created"},"x-webhook":{"event":"labor.scheduled_shift.created","scopes":["TIMECARDS_READ"]},"x-api":"#/components/x-apis/Labor","x-since":"2025-05-21"},"LaborScheduledShiftCreatedEventData":{"type":"object","x-release-status":"BETA","properties":{"type":{"type":"string","description":"The type of object affected by the event. For this event, the value is `scheduled_shift`.","maxLength":50,"nullable":true},"id":{"type":"string","description":"The ID of the affected `ScheduledShift`.","maxLength":255},"object":{"$ref":"#/components/schemas/LaborScheduledShiftCreatedEventObject","description":"An object containing the affected `ScheduledShift`.","nullable":true}}},"LaborScheduledShiftCreatedEventObject":{"type":"object","x-release-status":"BETA","properties":{"ScheduledShift":{"$ref":"#/components/schemas/ScheduledShift","description":"The new `ScheduledShift`.","nullable":true}}},"LaborScheduledShiftDeletedEvent":{"type":"object","description":"Published when a [ScheduledShift](entity:ScheduledShift) is deleted.","x-release-status":"BETA","properties":{"merchant_id":{"type":"string","description":"The ID of the merchant associated with the event.","nullable":true},"location_id":{"type":"string","description":"The ID of the location associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event. For this event, the value is `labor.scheduled_shift.deleted`.","nullable":true},"event_id":{"type":"string","description":"The unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"The timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/LaborScheduledShiftDeletedEventData","description":"The data associated with the event.","nullable":true}},"example":{"created_at":"2025-02-11T18:03:12.879368768Z","data":{"deleted":true,"id":"509RM55G6R17F","type":"scheduled_shift"},"event_id":"58d3897e-951c-337f-ac01-84c20ed6007d","merchant_id":"MLHZRVNSD91A1","type":"labor.scheduled_shift.deleted"},"x-webhook":{"event":"labor.scheduled_shift.deleted","scopes":["TIMECARDS_READ"]},"x-api":"#/components/x-apis/Labor","x-since":"2025-05-21"},"LaborScheduledShiftDeletedEventData":{"type":"object","x-release-status":"BETA","properties":{"type":{"type":"string","description":"The type of object affected by the event. For this event, the value is `scheduled_shift`.","maxLength":50,"nullable":true},"id":{"type":"string","description":"The ID of the affected `ScheduledShift`.","maxLength":255},"deleted":{"type":"boolean","description":"Is true if the affected object was deleted. Otherwise absent.","nullable":true}}},"LaborScheduledShiftPublishedEvent":{"type":"object","description":"Published when a [ScheduledShift](entity:ScheduledShift) is published.","x-release-status":"BETA","properties":{"merchant_id":{"type":"string","description":"The ID of the merchant associated with the event.","nullable":true},"location_id":{"type":"string","description":"The ID of the location associated with the event.","nullable":true},"type":{"type":"string","description":"The type of event. For this event, the value is `labor.scheduled_shift.published`.","nullable":true},"event_id":{"type":"string","description":"A unique ID for the event.","nullable":true},"created_at":{"type":"string","description":"The timestamp of when the event was created, in RFC 3339 format.","readOnly":true},"data":{"$ref":"#/components/schemas/LaborScheduledShiftPublishedEventData","description":"The data associated with the event.","nullable":true}},"example":{"created_at":"2025-02-11T18:54:08.044355293Z","data":{"id":"WA09SDV3DNJ54","object":{"scheduled_shift":{"created_at":"2025-02-11T18:53:35Z","draft_shift_details":{"end_at":"2025-02-14T09:11:00-08:00","is_deleted":false,"job_id":"ioeL1Mp7iZwCAWxeGMAT7ggB","location_id":"LR473RTW59VRY","notes":"Dont forget to prep the vegetables","start_at":"2025-02-13T23:11:00-08:00","team_member_id":"TMnsTAouYbvmp-8O","timezone":"America/Los_Angeles"},"id":"WA09SDV3DNJ54","published_shift_details":{"end_at":"2025-02-14T09:11:00-08:00","is_deleted":false,"job_id":"ioeL1Mp7iZwCAWxeGMAT7ggB","location_id":"LR473RTW59VRY","notes":"Dont forget to prep the vegetables","start_at":"2025-02-13T23:11:00-08:00","team_member_id":"TMnsTAouYbvmp-8O","timezone":"America/Los_Angeles"},"updated_at":"2025-02-11T18:54:08Z","version":2}},"type":"scheduled_shift"},"event_id":"4e31748e-1219-3f6f-a5c7-6fe3464705cd","merchant_id":"MLHZRVNSD91A1","type":"labor.scheduled_shift.published"},"x-webhook":{"event":"labor.scheduled_shift.published"File truncated at 1 MB.