<- Object

Object

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.

Link to section

Properties

Link to section

id

string

Read only The Square-assigned ID for the snippet.

Link to section

site_id

string

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

Link to section

content

string

Required

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

Link to section

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

Link to section

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