• Example searches: “transaction”, “CreateOrder”, “/v2/locations”, “inventory”, “delete customer”

Object Index

You are viewing an old version of the API
Snippet

Represents the snippet that is added to a Square Online site.

The snippet code is injected into the head element of all pages on the site, except for checkout pages.

Properties

Name Description
id
string

Read only The Square-assigned ID for the snippet.

Max Length 48
site_id
string

Read only The ID of the site that contains the snippet.

content
string

Required

The snippet code, which can contain valid HTML, JavaScript, or both.

Min Length 1 Max Length 65535
created_at
string

Read only The timestamp of when the snippet was initially added to the site, in RFC 3339 format.

Examples for January 25th, 2020 6:25:34pm Pacific Standard Time:

UTC: 2020-01-26T02:25:34Z

Pacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00

updated_at
string

Read only The timestamp of when the snippet was last updated on the site, in RFC 3339 format.

Examples for January 25th, 2020 6:25:34pm Pacific Standard Time:

UTC: 2020-01-26T02:25:34Z

Pacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00

Share Feedback

Thanks for visiting the Square API documentation. What's on your mind?