Square
payment.square
Protects against destructive Square CLI/API operations like deleting catalog objects or customers (which can break payment flows).
- 7blocking rules
- 3safe patterns
- 3Critical
- 4High
[packs]
enabled = ["payment.square"]Evaluated when a command contains square, api.squareup.com, connect.squareup.com, connect.squareupsandbox.com.
Blocking rules
Each rule ID is payment.square:<name>. Use it in allowlists and [policy.rules].
Criticalsquare-api-batch-delete-catalog-objectsSquare API POST /v2/catalog/batch-delete deletes multiple catalog objects.
Explanation
Batch deleting catalog objects can remove up to 200 products, variations, modifiers, categories, or related objects in one call. Deletion cascades to dependent catalog objects, so a wrong ID list can remove more than the immediate targets. Safer alternatives: - Retrieve and review every object ID before deletion - Export a catalog backup before batch deletion - Test the request against Square sandbox first
Criticalsquare-api-delete-customerSquare API DELETE /v2/customers/{id} deletes a customer.
Explanation
Deleting a Square customer removes their profile, cards on file, and loyalty data. Transaction history loses customer context, affecting reporting and CRM. Repeat customers will need to re-register. Safer alternatives: - GET /v2/customers/{id} to verify customer before deletion - Remove cards on file instead of full deletion - Export customer data before deletion for compliance
Criticalsquare-api-delete-locationSquare API DELETE /v2/locations/{id} deletes a location.
Explanation
Deleting a location removes a business location from Square. This affects payment processing, inventory tracking, and employee management for that location. Transactions cannot be processed at a deleted location. Safer alternatives: - Set location status to inactive instead of deleting - GET /v2/locations/{id} to verify location details first - Transfer inventory and employees before deletion
Highsquare-api-delete-catalog-objectSquare API DELETE /v2/catalog/object/{id} deletes a catalog object.
Explanation
Direct API deletion of catalog objects bypasses CLI safety checks. Products, categories, taxes, discounts, and modifiers can be permanently removed, breaking POS workflows and e-commerce integrations. Safer alternatives: - GET /v2/catalog/object/{id} to verify before deletion - Use batch operations with careful ID validation - Test in Square sandbox environment first
Highsquare-api-delete-payment-linkSquare API DELETE /v2/online-checkout/payment-links/{id} deletes a payment link.
Explanation
Deleting a Square payment link cancels the associated checkout order and makes the shared link unusable. Customers who already received the link cannot pay through it after deletion. Safer alternatives: - Retrieve the payment link and order before deletion - Deactivate or replace the link intentionally through Square Dashboard - Notify customers before invalidating a shared checkout link
Highsquare-api-delete-webhook-subscriptionSquare API DELETE /v2/webhooks/subscriptions/{id} deletes a webhook subscription.
Explanation
Deleting a webhook subscription stops event notifications for payments, refunds, inventory changes, and other business events. Your application will miss critical updates until the subscription is recreated. Safer alternatives: - Disable the webhook subscription instead of deleting - GET /v2/webhooks/subscriptions to verify subscription ID - Set up backup notification channels before removal
Highsquare-catalog-deletesquare catalog delete removes catalog objects, impacting products and inventory.
Explanation
Deleting catalog objects removes products, variations, modifiers, or categories from your Square catalog. POS systems, online stores, and invoicing that reference these items will show errors or missing products. Safer alternatives: - square catalog list to review items first - Set item visibility to hidden instead of deleting - Export catalog backup before bulk deletions
Safe patterns
Checked first. A command that matches one is never blocked by this pack.
square-catalog-listsquare-customers-listsquare-api-get