Operations 6
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
Ask an LLM
“Which discounts are currently active on my store?”
“Can I list only promo-code discounts and leave out the auto-applied ones?”
Tell an agent
List my discounts with status {status}.
Search discounts by name or promo code for {search}.
Ask an LLM
“How do I set up a new promo code for my Squarespace store?”
“Can I create a discount that each customer can only use once?”
Tell an agent
Create discount {name} using template {template}, criteria {criteria}, trigger {trigger}, starting {validFrom}.
Create a once-per-customer discount {name} ({template}, {criteria}, {trigger}) valid from {validFrom} to {validTo}.
Ask an LLM
“How do I get rid of a discount I no longer want?”
“Can I delete a discount even if its type isn't supported by this API version?”
Tell an agent destructive · confirm first
Delete discount {discountId}.
Remove the discount {discountId} from my store.
Ask an LLM
“How do I look up the settings of a single discount by its ID?”
“When does a specific discount start and expire?”
Tell an agent
Get discount {discountId}.
Show me how discount {discountId} is configured.
Ask an LLM
“How do I extend the expiry date on a discount I already created?”
“Can I cap how many times an existing discount can be redeemed site-wide?”
Tell an agent
Update discount {discountId} so it is named {name} with template {template}, criteria {criteria}, trigger {trigger}, from {validFrom}.
Change existing discount {discountId} to allow at most {maxUsesAllowed} uses.
GET
/v1/fulfillments/fulfillment-options
List fulfillment options usable with discounts · Get fulfillment options
#
Ask an LLM
“Which shipping options and carrier services can a discount apply to?”
“What fulfillment option IDs do I need for a free-shipping discount?”
Tell an agent
List the fulfillment options and carrier services available for discounts.
Get fulfillment option IDs for discounts, sending user agent {user_agent}.
Documentation
Documentation
https://developers.squarespace.com/commerce-apis/overview
APIReference
https://developers.squarespace.com/commerce-apis
GettingStarted
https://developers.squarespace.com/quick-start
Authentication
https://developers.squarespace.com/commerce-apis/authentication-and-permissions
RateLimits
https://artifacts.apis.io/squarespace/rate-limits/squarespace-rate-limits.yml
Specifications
Other Resources
OAuthScopes
https://artifacts.apis.io/squarespace/scopes/squarespace-scopes.yml
ErrorCatalog
https://artifacts.apis.io/squarespace/errors/squarespace-problem-types.yml
Conventions
https://artifacts.apis.io/squarespace/conventions/squarespace-conventions.yml
Idempotency
https://artifacts.apis.io/squarespace/conventions/squarespace-conventions.yml
DataModel
https://artifacts.apis.io/squarespace/data-model/squarespace-data-model.yml
ChangeLog
https://developers.squarespace.com/commerce-apis/changelog