Resources Reference
Used to render resources on a custom site.
Square Online pages use template syntax and the Site Theme SDK or Client APIs to access the site catalog, the cart, locations, customer accounts, and other site resources. This reference describes available resources and supported query parameters.
Resource | Description | Schema type |
---|---|---|
Cart | Accesses cart data. | cart |
Category | Fetches a single category. | category |
CategoryHierarchy | Fetches the hierarchy of categories and subcategories in the catalog. | category-hierarchy |
CategoryList | Fetches multiple categories. | category-list |
CategoryOptions | Fetches product options associated with a category. | category-options |
CustomerAccount | Accesses customer account data. | customer-account |
DiscountList | Fetches multiple discounts. | discount-list |
Image | Represents an image. | image |
Item | Fetches a single item. | item |
ItemList | Fetches multiple items. | item-list |
Link | Represents a link. | link |
Location | Fetches a single location. | location |
LocationList | Fetches multiple locations. | location-list |
LoyaltyProgram | Fetches loyalty program, if it exists | loyalty-program |
ScheduleTimes | Fetches a schedule’s times for a specific day for a location or cart. | schedule-times |
ScheduleDays | Fetches a schedule’s days for a location or cart. | schedule-days |
StoreInfo | Fetches detailed information about the store. | store-info |
Video | Represents a video. | video |