Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Square Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-square-knowledge-patch)
---
name: square-knowledge-patch
description: Square
version: null
license: MIT
metadata:
author: Nevaberry
---
# Square integration compatibility
Use this skill when updating Square integrations, migrating API or SDK calls,
or working with the payment, catalog, inventory, customer, and platform behavior
described below. Load the relevant topic reference for full conditions and limits.
## Reference index
| Reference | Topics |
| --- | --- |
| [API and SDK migrations](references/api-and-sdk-migrations.md) | SDK rewrites, Transactions writes, Reader SDK authorization, offline payment requests, Timecards |
| [Catalog, orders, and inventory](references/catalog-orders-and-inventory.md) | Modifier rules and nesting, kitchen fields, order charges, fulfillment, costs, adjustment reasons, cross-location movements, channels |
| [Customers, invoices, subscriptions, and labor](references/customer-commerce-and-labor.md) | Customer cards and bank accounts, invoices, payment links, subscriptions, loyalty, scheduling |
| [Payments, cards, and disputes](references/payments-cards-and-disputes.md) | Payment errors, card metadata, surcharges, application fee allocations, refunds, disputes, Japanese e-money |
| [Platform integration and reporting](references/platform-integration-and-reporting.md) | JWT tokens, webhook objects and retries, Reporting API, App Marketplace, MCP |
| [Terminal, locations, and devices](references/terminal-locations-and-devices.md) | Terminal regional capabilities and capture default, address validation, receipt fields, device discovery |
| [Web and mobile payments](references/web-and-mobile-payments.md) | HTTPS, card tokenization, ACH migration, string types, Afterpay styling, wallet support and contacts |
## Breaking changes and deprecations
### Payment processing and mobile authorization
- The Transactions API retired `Charge`, `CreateRefund`, `CaptureTransaction`,
and `VoidTransaction`; reads for historical transaction data remain supported.
Use the Payments API for processing and the Refunds API for refunds.
- Remove `offline_payment_details` from `CreatePayment` requests; its retirement
date was set for November 19, 2025.
- Reader SDK and Mobile Authorization API retirement was scheduled for
December 31, 2025. Migrate to Mobile Payments SDK and its own authorization methods.
See [API and SDK migrations](references/api-and-sdk-migrations.md).
### Rewritten SDKs
The rewritten SDK releases add auto-pagination and require integration code
migration for future API updates. Their starting release identifiers are in the
[migration reference](references/api-and-sdk-migrations.md).
- Node.js switches from Axios to native `fetch`.
- Python requires 3.8 or later and raises `ApiError` subclasses with Pydantic support.
- Ruby requires 3.1 or later.
### Customer cards, labor, and loyalty
- `Customer.cards` was retired. Use `ListCards` and `ListGiftCards`, passing
`customer_id=CUSTOMER_ID` to either request.
- Replace deprecated Labor `Shift` types and webhooks with `Timecard` equivalents;
move GraphQL reads from `shifts` to `timecards`. See the exact endpoint mapping
in [API and SDK migrations](references/api-and-sdk-migrations.md).
- After retirement of `LoyaltyProgramRewardTier.definition`, use
`pricing_rule_reference` to look up reward tier discount details.
See [customer commerce and labor](references/customer-commerce-and-labor.md).
### Catalog and inventory migration
- Use list-level `CatalogModifierList.allow_quantities`, `min_selected_modifiers`,
and `max_selected_modifiers`; migrate from deprecated `selection_type` and `max_quantity`.
- On `CatalogItemModifierListInfo`, migrate from `hidden_from_customer` to
`hidden_from_customer_override`. On `CatalogModifierOverride`, use
`hidden_online_override` and `on_by_default_override` in place of the deprecated fields.
- Starting with API version `2026-07-15`, represent cross-location movements as
`ADJUSTMENT` records with `from_location_id` and `to_location_id` after retirement
of `TRANSFER`, `InventoryTransfer`, `RetrieveInventoryTransfer`, and
`InventoryAdjustment.location_id`.
See [catalog, orders, and inventory](references/catalog-orders-and-inventory.md).
### Web checkout migration
- Starting October 1, 2025, every Web Payments SDK integration requires a secure
context. Serve checkout pages over HTTPS.
- `payments.ach()` no longer requires `redirectURI`; `transactionId` is optional.
- For `ach.tokenize()`, replace deprecated `AchChargeTokenOptions.total` with
top-level `amount` and `currency`; read `result.intent` for the authorization flow.
- Handle `InvalidOptionError` for a missing name in ACH. `PlaidMissingNameError`
remains for compatibility but is no longer emitted.
- Tokenization statuses are strings. `PaymentRequestEvent` and `MethodType` are
string unions; use supported string literals in place of enum members.
See [web and mobile payments](references/web-and-mobile-payments.md).
## Payment links and subscriptions
In `CreatePaymentLink`, set `subscription_plan_id` to the subscription **plan variation** ID.
For ACH on a payment link, set `AcceptedPaymentMethods.bank_account`.
Use `RetrieveMerchantSettings` or `UpdateMerchantSettings` for the seller default
in `CheckoutMerchantSettingsPaymentMethods.bank_account`.
When the link field is omitted, ACH defaults on for eligible US sellers' one-time
USD payments, subject to saved seller opt-outs and existing payment-link settings.
`CheckoutOptions.phone_collection` accepts `REQUIRED` (default), `OPTIONAL`, or
`HIDDEN`, from `CheckoutOptionsPhoneCollection`.
For subscription variations with only fixed-length phases,
`Subscription.completed_date` is the expected completion date in `YYYY-MM-DD` form.
After all billing cycles finish, `status` becomes `COMPLETED`, billing stops, and
the subscription is locked against edits or resumption; a `COMPLETE`
`SubscriptionAction` marks the event.
See [customer commerce and labor](references/customer-commerce-and-labor.md).
## Payment diagnostics, fees, and disputes
- Insufficient-funds gift card payments return `GIFT_CARD_AVAILABLE_AMOUNT` with
the remaining balance alongside `INSUFFICIENT_FUNDS`, including requests without
partial authorization. This applies to every API version.
- Inspect `BuyNowPayLaterDetails.errors` and `DigitalWalletDetails.errors` for
payment-method errors.
- `Payment.app_fee_allocations` distributes a transaction's application fee to
up to three parties. On refunds of such payments, specify `app_fee_allocations`
to control each party's contribution to the refund.
- Filter `ListPaymentRefunds` by `updated_at_begin_time` and `updated_at_end_time`;
`sort_field` permits sorting on update time.
- Track API-managed disputes and evidence through the Disputes API. The Dashboard
omits API-submitted evidence and leaves displayed status unchanged after API actions.
See [payments, cards, and disputes](references/payments-cards-and-disputes.md).
## Catalog and inventory features
- `CatalogItem.is_alcoholic` identifies alcoholic items. `kitchen_name` is available
on `CatalogItem`, `CatalogItemVariation`, and `CatalogModifier`; `CatalogItem`
also exposes `buyer_facing`.
- **Beta:** `CatalogModifier.child_modifier_list_ids` supports multi-step choices
and up to 15 child modifier lists per modifier. `include_options` on
`BatchRetrieveCatalogObjects`, `SearchCatalogItems`, or `SearchCatalogObjects`
returns related modifier lists for requested items, variations, and modifier lists.
- **Beta:** `CatalogModifier.kitchen_color`, using `CatalogModifierColor`, changes
modifier text color only on the kitchen display.
- **Beta:** Record `cost_money` and `vendor_id` on stock-receiving adjustments with
an active Retail Plus, Restaurants Plus, or Restaurants Premium subscription.
`UpdateInventoryAdjustment` edits `quantity`, `cost_money`, `vendor_id`, or `reason_id`.
- **Beta:** Categorize adjustments with `InventoryAdjustment.reason_id` and filter
change history by `reason_ids`; adjustment reasons may be standard or seller-defined.
- **Closed Beta:** Writing `IN_STORE` fulfillments requires enrollment. This type
covers orders received at the seller's location at the time of sale.
See [catalog, orders, and inventory](references/catalog-orders-and-inventory.md).
## Invoices and labor schedules
Invoice attachment limits are combined totals: 1 KB in Sandbox and 25 MB in
production, across API versions. `Invoice.creator_team_member_id` is read-only
and present for invoices created by a signed-in team member in Dashboard or Invoices app.
`Invoice.public_url` is available after publication and after the scheduled date,
if set. Links expire across API versions. Retrieve an invoice immediately before
sharing an older link, or let the customer request a fresh link from the expired
page using the invoice's email address or phone number. Expiry and regeneration
do not emit `invoice.updated`.
**Beta:** `ScheduledShift` endpoints and webhook events manage draft and published
team schedules. GraphQL `scheduledShifts` queries drafts and scheduled shifts.
See [customer commerce and labor](references/customer-commerce-and-labor.md).
## Platform authentication, webhooks, and reporting
Include `"use_jwt": true` in an OAuth token request to obtain a JWT access token;
authenticate with it the same way as a standard access token.
SDKs released with API version 2025-06-18 provide an associated SDK object for
every webhook payload. Delivery is capped at 11 retry attempts within 24 hours
of the event, for subscriptions on every API version.
**Beta:** Discover Reporting API cubes, views, measures, dimensions, and segments
with `GET /v1/meta`; send analytical queries to `POST /v1/load` using a personal
access token or an OAuth access token with `REPORTING_READ`.
Views such as `Sales`, `ItemSales`, and `ModifierSales` pre-join data and filter to
closed orders. Queries can combine measures from multiple cubes with automatic joins.
See [platform integration and reporting](references/platform-integration-and-reporting.md).
## Terminal, locations, and wallets
- `PaymentOptions.autocomplete` defaults to `true` when omitted.
- Terminal supports surcharges on US credit card payments; Payments API reports
seller-added card surcharges.
- **Beta:** `Location.custom_receipt_text` and `Location.return_policy` each accept
up to 1,000 characters; read with `RetrieveLocation` or `ListLocations`, and set
or clear with `UpdateLocation`.
- Japan-based sellers can accept Apple Pay and Google Pay through Web Payments
SDK. In-App Payments SDK also supports both wallets for sellers in Japan,
extending both methods to every supported seller region.
- **Beta:** Web Payments SDK `Card.tokenize()` supports buyer verification,
storing a card on file, and charging and storing a card in one checkout.
See [Terminal, locations, and devices](references/terminal-locations-and-devices.md),
[payment details](references/payments-cards-and-disputes.md), and
[web and mobile payments](references/web-and-mobile-payments.md).