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-nevaberry-plugins)
---
name: square-knowledge-patch
description: Square
version: null
license: MIT
metadata:
author: Nevaberry
---
# Square integration guidance
Use this skill when updating Square integrations or working with payments,
checkout, catalog, orders, inventory, customer records, labor, and platform APIs.
The references contain migration details, field behavior, regional availability,
and beta restrictions.
## Reference index
| Reference | Topics |
| --- | --- |
| [Migrations and compatibility](references/migrations-and-compatibility.md) | Retired payment interfaces, customer cards, loyalty, SDK rewrites, webhook objects, timecards |
| [Payments, checkout, and risk](references/payments-checkout-and-risk.md) | Bank accounts, card metadata, diagnostics, fees, refunds, disputes, payment links, Terminal, invoices, subscriptions |
| [Catalog, orders, and inventory](references/catalog-orders-and-inventory.md) | Modifier migrations and nesting, kitchen displays, service charges, fulfillment, inventory movements, costs, reasons |
| [Platforms, devices, and reporting](references/platforms-devices-and-reporting.md) | OAuth, MCP, webhook retries, locations, devices, mobile wallets, scheduling, reporting, channels, Marketplace |
| [Web Payments SDK](references/web-payments-sdk.md) | Secure contexts, string types, ACH migrations, card tokenization, wallet contacts, Afterpay styling |
## Retirements and migrations
### Payment processing and stored instruments
- The Transactions API retired `Charge`, `CreateRefund`, `CaptureTransaction`,
and `VoidTransaction`; reads for historical transaction data remain supported.
Use the Payments API for payment processing and the Refunds API for refunds.
- Remove `offline_payment_details` from `CreatePayment` requests. Its retirement
date was set for November 19, 2025.
- API version 2025-01-23 retired `Customer.cards`. Use `ListCards` and
`ListGiftCards`, respectively, with `customer_id=CUSTOMER_ID` to list a
customer's cards and gift cards.
- After retirement of `LoyaltyProgramRewardTier.definition`, use
`pricing_rule_reference` to look up a tier's discount details.
### SDK migration
The Reader SDK and Mobile Authorization API were scheduled for retirement on
December 31, 2025. Migrate to the Mobile Payments SDK and its authorization methods.
Rewritten SDKs add auto-pagination and require integration code migration for
future API updates. See the migration reference for the starting SDK releases.
Node.js switches from Axios to native `fetch`; Python requires 3.8 or later,
raises `ApiError` subclasses, and has Pydantic support; Ruby requires 3.1 or later.
### Labor timecards
Replace deprecated Labor `Shift` types and webhooks with `Timecard` equivalents,
and move GraphQL reads from `shifts` to `timecards`.
| Deprecated operation | Replacement |
| --- | --- |
| `CreateShift` | `CreateTimecard` |
| `UpdateShift` | `UpdateTimecard` |
| `DeleteShift` | `DeleteTimecard` |
| `GetShift` | `RetrieveTimecard` |
| `SearchShifts` | `SearchTimecards` |
### Catalog modifier fields
Set list quantity and selection rules with `CatalogModifierList.allow_quantities`,
`min_selected_modifiers`, and `max_selected_modifiers`; use `hidden_from_customer`
for list visibility. Migrate from deprecated `selection_type` and `max_quantity`.
For `CatalogItemModifierListInfo`, migrate from `hidden_from_customer` to
`hidden_from_customer_override`. For `CatalogModifierOverride`, replace deprecated
`hidden_online` and `on_by_default` with `hidden_online_override` and
`on_by_default_override`.
### Cross-location inventory
Starting with API version `2026-07-15`, handle cross-location movements as
`ADJUSTMENT` records with `from_location_id` and `to_location_id` after retirement
of `TRANSFER`, `InventoryTransfer`, `RetrieveInventoryTransfer`, and
`InventoryAdjustment.location_id`. Responses also expose `UNTRACKED` and
system-generated inferred and component adjustments.
## Web checkout requirements and migrations
### Secure contexts and string types
Starting October 1, 2025, every Web Payments SDK integration requires a secure
context. Serve checkout pages over HTTPS.
Tokenization statuses are returned as strings. `PaymentRequestEvent` and
`MethodType` are string union types; use supported string literals instead of
enum members.
### ACH initialization, options, and errors
`payments.ach()` no longer requires `redirectURI`, and `transactionId` is optional.
For `ach.tokenize()`, replace deprecated `AchChargeTokenOptions.total` with
top-level `amount` and `currency`; read `result.intent` to identify the
authorization flow that ran.
```js
const { total, ...chargeOptions } = previousChargeOptions;
const result = await ach.tokenize({ ...chargeOptions, amount, currency });
```
Handle `InvalidOptionError` for a missing name in the ACH flow.
`PlaidMissingNameError` remains for compatibility but is no longer emitted.
### Card tokenization (Beta)
The Web Payments SDK introduced a beta `Card.tokenize()` flow for payments with
buyer verification, storing a card on file, and charging and storing a card in
one checkout.
## Payment links, fees, and diagnostics
### ACH on payment links and phone collection
Set `AcceptedPaymentMethods.bank_account` to enable or disable ACH on an individual
link. Use `RetrieveMerchantSettings` or `UpdateMerchantSettings` for the seller
default in `CheckoutMerchantSettingsPaymentMethods.bank_account`.
If 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.
Set `CheckoutOptions.phone_collection` to `REQUIRED` (the default), `OPTIONAL`, or
`HIDDEN`; these values come from `CheckoutOptionsPhoneCollection`.
In `CreatePaymentLink`, `subscription_plan_id` is the subscription **plan variation** ID.
### Application fees and Terminal capture
`Payment.app_fee_allocations` distributes a single transaction's application fee
to up to three parties. For a refund of a payment that used allocations, specify
`app_fee_allocations` to control each party's contribution to the refund.
`PaymentOptions.autocomplete` defaults to `true` when omitted.
### Error and dispute handling
- `CreatePayment` returns `GIFT_CARD_AVAILABLE_AMOUNT` with the remaining balance
alongside `INSUFFICIENT_FUNDS` for insufficient gift card funds, including requests
without partial authorization. This behavior applies to every API version.
- Inspect `BuyNowPayLaterDetails.errors` and `DigitalWalletDetails.errors` for
payment-method errors.
- Payment error handling can recognize `PARTIAL_PAYMENT_DELAY_CAPTURE_NOT_SUPPORTED`,
`PAYMENT_SOURCE_NOT_ENABLED_FOR_TARGET`, and `AMOUNT_TOO_LOW`.
- Track API-managed dispute status and evidence through the Disputes API. The
Dashboard omits API-submitted evidence and leaves its displayed dispute status
unchanged after API actions.
## Invoice links and subscription completion
`Invoice.public_url` becomes available after publication and after the scheduled
date, if set. Links expire across API versions: retrieve the 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 link
regeneration occur without an `invoice.updated` event.
For variations with only fixed-length phases, `Subscription.completed_date` holds
the expected completion date in `YYYY-MM-DD` format. Once all billing cycles finish,
`status` becomes `COMPLETED`, billing stops, and the subscription is locked against
edits or resumption. A `SubscriptionAction` of type `COMPLETE` marks the event.
## Catalog, inventory, and fulfillment
### Nested modifiers and kitchen colors (Beta)
Follow `CatalogModifier.child_modifier_list_ids` for multi-step modifier choices;
it accepts up to 15 child modifier lists per modifier, up from 5. Set `include_options`
on `BatchRetrieveCatalogObjects`, `SearchCatalogItems`, or `SearchCatalogObjects`
to return related modifier lists for requested items, variations, and modifier lists.
Set `CatalogModifier.kitchen_color` from `CatalogModifierColor` to change modifier
text color on the kitchen display. The color applies only to the display.
### Receiving costs and corrections (Beta)
Record `cost_money` and `vendor_id` on stock-receiving adjustments with an active
Retail Plus, Restaurants Plus, or Restaurants Premium subscription.
Use `UpdateInventoryAdjustment` to edit `quantity`, `cost_money`, `vendor_id`, or
`reason_id` on an existing adjustment.
### In-store fulfillment (Closed Beta)
Use `IN_STORE` for orders buyers receive at the seller's location at the time of
sale. Writing these fulfillments requires enrollment in the closed beta.
## Platform access, delivery, and analytics
Include `"use_jwt": true` in an OAuth token request to obtain a JWT access token;
use it for authentication the same way as a standard access token.
Webhook delivery is capped at 11 retry attempts within 24 hours of the event.
The schedule applies to subscriptions on every API version.
### Team scheduling (Beta)
The beta `ScheduledShift` endpoints and webhook events manage draft and published
team schedules. Publish with `PublishScheduledShift` or `BulkPublishScheduledShifts`;
query drafts and scheduled shifts with GraphQL `scheduledShifts`.
### Reporting API (Beta)
Use `GET /v1/meta` to discover available cubes, views, measures, dimensions, and
segments, then send analytical queries to `POST /v1/load` with 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.