Square API
You are viewing an old version of the API
Snippets
Square API
Manage snippets for Square Online sites.
The Snippets API lets you manage snippets that add custom functionality to Square Online sites. A snippet is HTML, CSS, and JavaScript that is injected into the head
element of all pages on a site, except for checkout pages. You can use the Snippets API to create applications that help meet the many needs of Square sellers.
Note: Square Online APIs are publicly available as part of an early access program. For more information, see Early access program for Square Online APIs.
Guides: Snippets
Endpoints
-
Delete snippet
DELETE /v2/sites/{site_id}/snippet - Removes your snippet from a Square Online site.
-
Retrieve snippet
GET /v2/sites/{site_id}/snippet - Retrieves your snippet from a Square Online site.
-
Upsert snippet
POST /v2/sites/{site_id}/snippet - Adds a snippet to a Square Online site or updates the existing snippet on the site.