Squarespace 的订单 API

Orders API for Squarespace

我正在寻找可以用来下订单的 Squarespace API。 我在 google 上搜索并找到了一个提到订单 API ( https://support.squarespace.com/hc/en-us/articles/236297987-Squarespace-API-keys ) 的 Squarespace 文档,但它没有帮助,因为它没有提到任何 API 端点。

Commerce API 订单履行端点可用,但我找不到用于下订单的端点。

我们将不胜感激在这方面的任何帮助。

Squarespace developer docs为参考,端点如下:

All API endpoints are served from https://api.squarespace.com/<version>

For example: curl "https://api.squarespace.com/1.0/commerce/orders/56f1806d7b863796cbc2ee81" -H "Authorization: Bearer YOUR_SECRET_API_KEY"

在撰写本文时,目前无法使用 Squarespace Commerce 下订单 API。但是您现在可以设置库存水平,这意味着如果您可以自己使用 Stripe API 并促进购买,那么您可以在 Squarespace 中更新库存水平。

With the Squarespace Commerce API, you can build applications that manage data from your Squarespace store. HTTP endpoints are provided which allow you to:

  • Retrieve orders
  • Update orders with fulfillment information
  • Retrieve product variant stock levels
  • Update stock levels using incremental and decremental adjustments
  • Set finite stock levels for product variants
  • Mark product variants as having unlimited stock

请注意,此功能需要相当昂贵的 "Commerce Advanced" 计划。