Object Index
You are viewing an old version of the API
Snippet
Object Index
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
|
Read only The Square-assigned ID for the snippet. |
site_
|
Read only The ID of the site that contains the snippet. |
content
Required
|
The snippet code, which can contain valid HTML, JavaScript, or both. |
created_
|
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_
|
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 |