webflow-api 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.mock/definition/__package__.yml +2495 -0
- package/.mock/definition/accessGroups.yml +80 -0
- package/.mock/definition/api.yml +13 -0
- package/.mock/definition/assets.yml +414 -0
- package/.mock/definition/collections/fields.yml +187 -0
- package/.mock/definition/collections/items.yml +1511 -0
- package/.mock/definition/collections.yml +185 -0
- package/.mock/definition/ecommerce.yml +42 -0
- package/.mock/definition/forms.yml +301 -0
- package/.mock/definition/inventory.yml +120 -0
- package/.mock/definition/orders.yml +1569 -0
- package/.mock/definition/pages/scripts.yml +169 -0
- package/.mock/definition/pages.yml +443 -0
- package/.mock/definition/products.yml +500 -0
- package/.mock/definition/scripts.yml +257 -0
- package/.mock/definition/sites/activityLogs.yml +65 -0
- package/.mock/definition/sites/scripts.yml +228 -0
- package/.mock/definition/sites.yml +299 -0
- package/.mock/definition/token.yml +71 -0
- package/.mock/definition/users.yml +392 -0
- package/.mock/definition/webhooks.yml +189 -0
- package/.mock/fern.config.json +4 -0
- package/Client.d.ts +2 -0
- package/README.md +23 -30
- package/api/errors/InternalServerError.d.ts +2 -1
- package/api/errors/NotFoundError.d.ts +2 -1
- package/api/errors/TooManyRequestsError.d.ts +1 -1
- package/api/errors/UnauthorizedError.d.ts +2 -1
- package/api/resources/accessGroups/client/Client.d.ts +5 -1
- package/api/resources/accessGroups/client/Client.js +27 -15
- package/api/resources/assets/client/Client.d.ts +31 -11
- package/api/resources/assets/client/Client.js +236 -126
- package/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +2 -2
- package/api/resources/assets/client/requests/AssetsUpdateRequest.d.ts +5 -5
- package/api/resources/collections/client/Client.d.ts +15 -22
- package/api/resources/collections/client/Client.js +109 -137
- package/api/resources/collections/resources/fields/client/Client.d.ts +34 -2
- package/api/resources/collections/resources/fields/client/Client.js +163 -32
- package/api/resources/collections/resources/items/client/Client.d.ts +302 -30
- package/api/resources/collections/resources/items/client/Client.js +959 -221
- package/api/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +61 -0
- package/api/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.d.ts +11 -0
- package/api/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.d.ts +11 -0
- package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.d.ts +128 -0
- package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +128 -0
- package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.js +5 -0
- package/api/resources/collections/resources/items/client/requests/index.d.ts +5 -0
- package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +5 -0
- package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.js +5 -0
- package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.d.ts +14 -0
- package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.js +5 -0
- package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.d.ts +14 -0
- package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.js +5 -0
- package/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +5 -0
- package/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js +5 -0
- package/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.d.ts +8 -0
- package/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.js +5 -0
- package/api/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts +5 -0
- package/api/resources/collections/resources/items/types/ItemsCreateItemRequest.js +5 -0
- package/api/resources/collections/resources/items/types/ItemsCreateItemRequestItems.d.ts +8 -0
- package/api/resources/collections/resources/items/types/ItemsCreateItemRequestItems.js +5 -0
- package/api/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +9 -0
- package/api/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +5 -0
- package/api/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.d.ts +9 -0
- package/api/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.js +5 -0
- package/api/resources/collections/resources/items/types/index.d.ts +9 -0
- package/api/resources/collections/resources/items/types/index.js +9 -0
- package/api/resources/ecommerce/client/Client.d.ts +2 -0
- package/api/resources/ecommerce/client/Client.js +24 -14
- package/api/resources/forms/client/Client.d.ts +17 -5
- package/api/resources/forms/client/Client.js +140 -76
- package/api/resources/inventory/client/Client.d.ts +8 -1
- package/api/resources/inventory/client/Client.js +59 -30
- package/api/resources/orders/client/Client.d.ts +7 -2
- package/api/resources/orders/client/Client.js +164 -89
- package/api/resources/pages/client/Client.d.ts +25 -14
- package/api/resources/pages/client/Client.js +169 -100
- package/api/resources/pages/client/requests/DomWrite.d.ts +6 -6
- package/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +2 -2
- package/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +2 -2
- package/api/resources/pages/client/requests/PagesListRequest.d.ts +2 -2
- package/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +3 -4
- package/api/resources/pages/resources/scripts/client/Client.d.ts +29 -3
- package/api/resources/pages/resources/scripts/client/Client.js +104 -46
- package/api/resources/products/client/Client.d.ts +26 -10
- package/api/resources/products/client/Client.js +188 -98
- package/api/resources/scripts/client/Client.d.ts +31 -3
- package/api/resources/scripts/client/Client.js +111 -47
- package/api/resources/sites/client/Client.d.ts +16 -4
- package/api/resources/sites/client/Client.js +101 -59
- package/api/resources/sites/client/requests/SitesPublishRequest.d.ts +1 -1
- package/api/resources/sites/resources/activityLogs/client/Client.d.ts +2 -0
- package/api/resources/sites/resources/activityLogs/client/Client.js +17 -13
- package/api/resources/sites/resources/scripts/client/Client.d.ts +26 -4
- package/api/resources/sites/resources/scripts/client/Client.js +125 -61
- package/api/resources/token/client/Client.d.ts +7 -2
- package/api/resources/token/client/Client.js +23 -24
- package/api/resources/users/client/Client.d.ts +21 -6
- package/api/resources/users/client/Client.js +149 -78
- package/api/resources/webhooks/client/Client.d.ts +15 -2
- package/api/resources/webhooks/client/Client.js +114 -59
- package/api/types/AssetFolder.d.ts +1 -1
- package/api/types/AuthorizationAuthorization.d.ts +1 -1
- package/api/types/AuthorizedUser.d.ts +1 -1
- package/api/types/BulkCollectionItemFieldData.d.ts +1 -1
- package/api/types/CollectionItem.d.ts +1 -1
- package/api/types/CollectionItemFieldData.d.ts +1 -1
- package/api/types/CollectionItemListNoPagination.d.ts +11 -0
- package/api/types/CollectionItemListNoPagination.js +5 -0
- package/api/types/CollectionItemWithIdInput.d.ts +24 -0
- package/api/types/CollectionItemWithIdInput.js +5 -0
- package/api/types/CollectionItemWithIdInputFieldData.d.ts +11 -0
- package/api/types/CollectionItemWithIdInputFieldData.js +5 -0
- package/api/types/ConflictErrorBody.d.ts +1 -10
- package/api/types/CustomCodeBlock.d.ts +2 -2
- package/api/types/DuplicateUserEmail.d.ts +1 -11
- package/api/types/ErrorCode.d.ts +38 -0
- package/api/types/ErrorCode.js +37 -0
- package/api/types/Error_.d.ts +1 -1
- package/api/types/ForbiddenErrorBody.d.ts +2 -7
- package/api/types/Form.d.ts +8 -8
- package/api/types/FormSubmission.d.ts +3 -3
- package/api/types/InvalidScopes.d.ts +4 -0
- package/api/types/InvalidScopes.js +5 -0
- package/api/types/NotEnterprisePlanSite.d.ts +1 -11
- package/api/types/Order.d.ts +5 -1
- package/api/types/Page.d.ts +2 -0
- package/api/types/Site.d.ts +4 -0
- package/api/types/SiteActivityLogItem.d.ts +1 -1
- package/api/types/SiteActivityLogItemEvent.d.ts +48 -0
- package/api/types/SiteActivityLogItemEvent.js +50 -0
- package/api/types/SiteActivityLogItemResourceOperation.d.ts +5 -1
- package/api/types/SiteActivityLogItemResourceOperation.js +4 -0
- package/api/types/SiteDataCollectionType.d.ts +12 -0
- package/api/types/SiteDataCollectionType.js +11 -0
- package/api/types/UserLimitReached.d.ts +1 -11
- package/api/types/UsersNotEnabled.d.ts +1 -11
- package/api/types/index.d.ts +10 -6
- package/api/types/index.js +10 -6
- package/core/fetcher/Fetcher.d.ts +1 -1
- package/core/fetcher/getResponseBody.js +3 -0
- package/core/fetcher/requestWithRetries.js +13 -4
- package/core/schemas/builders/object/object.js +28 -0
- package/core/schemas/builders/object/types.d.ts +5 -0
- package/dist/Client.d.ts +2 -0
- package/dist/api/errors/InternalServerError.d.ts +2 -1
- package/dist/api/errors/NotFoundError.d.ts +2 -1
- package/dist/api/errors/TooManyRequestsError.d.ts +1 -1
- package/dist/api/errors/UnauthorizedError.d.ts +2 -1
- package/dist/api/resources/accessGroups/client/Client.d.ts +5 -1
- package/dist/api/resources/accessGroups/client/Client.js +27 -15
- package/dist/api/resources/assets/client/Client.d.ts +31 -11
- package/dist/api/resources/assets/client/Client.js +236 -126
- package/dist/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +2 -2
- package/dist/api/resources/assets/client/requests/AssetsUpdateRequest.d.ts +5 -5
- package/dist/api/resources/collections/client/Client.d.ts +15 -22
- package/dist/api/resources/collections/client/Client.js +109 -137
- package/dist/api/resources/collections/resources/fields/client/Client.d.ts +34 -2
- package/dist/api/resources/collections/resources/fields/client/Client.js +163 -32
- package/dist/api/resources/collections/resources/items/client/Client.d.ts +302 -30
- package/dist/api/resources/collections/resources/items/client/Client.js +959 -221
- package/dist/api/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +61 -0
- package/dist/api/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.d.ts +11 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.d.ts +11 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.d.ts +128 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +128 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/index.d.ts +5 -0
- package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +5 -0
- package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.js +5 -0
- package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.d.ts +14 -0
- package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.js +5 -0
- package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.d.ts +14 -0
- package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.d.ts +8 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemRequestItems.d.ts +8 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemRequestItems.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +9 -0
- package/dist/api/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.d.ts +9 -0
- package/dist/api/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.js +5 -0
- package/dist/api/resources/collections/resources/items/types/index.d.ts +9 -0
- package/dist/api/resources/collections/resources/items/types/index.js +9 -0
- package/dist/api/resources/ecommerce/client/Client.d.ts +2 -0
- package/dist/api/resources/ecommerce/client/Client.js +24 -14
- package/dist/api/resources/forms/client/Client.d.ts +17 -5
- package/dist/api/resources/forms/client/Client.js +140 -76
- package/dist/api/resources/inventory/client/Client.d.ts +8 -1
- package/dist/api/resources/inventory/client/Client.js +59 -30
- package/dist/api/resources/orders/client/Client.d.ts +7 -2
- package/dist/api/resources/orders/client/Client.js +164 -89
- package/dist/api/resources/pages/client/Client.d.ts +25 -14
- package/dist/api/resources/pages/client/Client.js +169 -100
- package/dist/api/resources/pages/client/requests/DomWrite.d.ts +6 -6
- package/dist/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +2 -2
- package/dist/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +2 -2
- package/dist/api/resources/pages/client/requests/PagesListRequest.d.ts +2 -2
- package/dist/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +3 -4
- package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +29 -3
- package/dist/api/resources/pages/resources/scripts/client/Client.js +104 -46
- package/dist/api/resources/products/client/Client.d.ts +26 -10
- package/dist/api/resources/products/client/Client.js +188 -98
- package/dist/api/resources/scripts/client/Client.d.ts +31 -3
- package/dist/api/resources/scripts/client/Client.js +111 -47
- package/dist/api/resources/sites/client/Client.d.ts +16 -4
- package/dist/api/resources/sites/client/Client.js +101 -59
- package/dist/api/resources/sites/client/requests/SitesPublishRequest.d.ts +1 -1
- package/dist/api/resources/sites/resources/activityLogs/client/Client.d.ts +2 -0
- package/dist/api/resources/sites/resources/activityLogs/client/Client.js +17 -13
- package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +26 -4
- package/dist/api/resources/sites/resources/scripts/client/Client.js +125 -61
- package/dist/api/resources/token/client/Client.d.ts +7 -2
- package/dist/api/resources/token/client/Client.js +23 -24
- package/dist/api/resources/users/client/Client.d.ts +21 -6
- package/dist/api/resources/users/client/Client.js +149 -78
- package/dist/api/resources/webhooks/client/Client.d.ts +15 -2
- package/dist/api/resources/webhooks/client/Client.js +114 -59
- package/dist/api/types/AssetFolder.d.ts +1 -1
- package/dist/api/types/AuthorizationAuthorization.d.ts +1 -1
- package/dist/api/types/AuthorizedUser.d.ts +1 -1
- package/dist/api/types/BulkCollectionItemFieldData.d.ts +1 -1
- package/dist/api/types/CollectionItem.d.ts +1 -1
- package/dist/api/types/CollectionItemFieldData.d.ts +1 -1
- package/dist/api/types/CollectionItemListNoPagination.d.ts +11 -0
- package/dist/api/types/CollectionItemListNoPagination.js +5 -0
- package/dist/api/types/CollectionItemWithIdInput.d.ts +24 -0
- package/dist/api/types/CollectionItemWithIdInput.js +5 -0
- package/dist/api/types/CollectionItemWithIdInputFieldData.d.ts +11 -0
- package/dist/api/types/CollectionItemWithIdInputFieldData.js +5 -0
- package/dist/api/types/ConflictErrorBody.d.ts +1 -10
- package/dist/api/types/CustomCodeBlock.d.ts +2 -2
- package/dist/api/types/DuplicateUserEmail.d.ts +1 -11
- package/dist/api/types/ErrorCode.d.ts +38 -0
- package/dist/api/types/ErrorCode.js +37 -0
- package/dist/api/types/Error_.d.ts +1 -1
- package/dist/api/types/ForbiddenErrorBody.d.ts +2 -7
- package/dist/api/types/Form.d.ts +8 -8
- package/dist/api/types/FormSubmission.d.ts +3 -3
- package/dist/api/types/InvalidScopes.d.ts +4 -0
- package/dist/api/types/InvalidScopes.js +5 -0
- package/dist/api/types/NotEnterprisePlanSite.d.ts +1 -11
- package/dist/api/types/Order.d.ts +5 -1
- package/dist/api/types/Page.d.ts +2 -0
- package/dist/api/types/Site.d.ts +4 -0
- package/dist/api/types/SiteActivityLogItem.d.ts +1 -1
- package/dist/api/types/SiteActivityLogItemEvent.d.ts +48 -0
- package/dist/api/types/SiteActivityLogItemEvent.js +50 -0
- package/dist/api/types/SiteActivityLogItemResourceOperation.d.ts +5 -1
- package/dist/api/types/SiteActivityLogItemResourceOperation.js +4 -0
- package/dist/api/types/SiteDataCollectionType.d.ts +12 -0
- package/dist/api/types/SiteDataCollectionType.js +11 -0
- package/dist/api/types/UserLimitReached.d.ts +1 -11
- package/dist/api/types/UsersNotEnabled.d.ts +1 -11
- package/dist/api/types/index.d.ts +10 -6
- package/dist/api/types/index.js +10 -6
- package/dist/core/fetcher/Fetcher.d.ts +1 -1
- package/dist/core/fetcher/getResponseBody.js +3 -0
- package/dist/core/fetcher/requestWithRetries.js +13 -4
- package/dist/core/schemas/builders/object/object.js +28 -0
- package/dist/core/schemas/builders/object/types.d.ts +5 -0
- package/dist/errors/WebflowTimeoutError.d.ts +1 -1
- package/dist/errors/WebflowTimeoutError.js +2 -2
- package/dist/serialization/resources/assets/client/requests/AssetsUpdateRequest.d.ts +2 -1
- package/dist/serialization/resources/assets/client/requests/AssetsUpdateRequest.js +2 -1
- package/dist/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +16 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.js +37 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.js +34 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.js +34 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.js +34 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.js +34 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/index.d.ts +5 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/index.js +11 -1
- package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +12 -0
- package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.js +36 -0
- package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.d.ts +14 -0
- package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.js +36 -0
- package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.d.ts +14 -0
- package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.js +36 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +12 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js +33 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.js +34 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts +12 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.js +33 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemRequestItems.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemRequestItems.js +34 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +34 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.js +34 -0
- package/dist/serialization/resources/collections/resources/items/types/index.d.ts +9 -0
- package/dist/serialization/resources/collections/resources/items/types/index.js +9 -0
- package/dist/serialization/resources/pages/client/requests/DomWrite.d.ts +1 -1
- package/dist/serialization/types/BulkCollectionItemFieldData.js +4 -2
- package/dist/serialization/types/CollectionItem.d.ts +1 -1
- package/dist/serialization/types/CollectionItem.js +1 -1
- package/dist/serialization/types/CollectionItemFieldData.js +4 -2
- package/dist/serialization/types/CollectionItemListNoPagination.d.ts +13 -0
- package/dist/serialization/types/{TooManyRequestsErrorBody.js → CollectionItemListNoPagination.js} +4 -6
- package/dist/serialization/types/CollectionItemWithIdInput.d.ts +20 -0
- package/dist/serialization/types/CollectionItemWithIdInput.js +41 -0
- package/dist/serialization/types/CollectionItemWithIdInputFieldData.d.ts +14 -0
- package/dist/serialization/types/{MissingScopes.js → CollectionItemWithIdInputFieldData.js} +7 -8
- package/dist/serialization/types/ConflictErrorBody.d.ts +4 -8
- package/dist/serialization/types/ConflictErrorBody.js +3 -7
- package/dist/serialization/types/DuplicateUserEmail.d.ts +2 -8
- package/dist/serialization/types/DuplicateUserEmail.js +1 -7
- package/dist/serialization/types/ErrorCode.d.ts +10 -0
- package/dist/serialization/types/ErrorCode.js +61 -0
- package/dist/serialization/types/Error_.d.ts +2 -1
- package/dist/serialization/types/Error_.js +2 -1
- package/dist/serialization/types/ForbiddenErrorBody.d.ts +4 -8
- package/dist/serialization/types/ForbiddenErrorBody.js +3 -7
- package/dist/serialization/types/Form.d.ts +1 -1
- package/dist/serialization/types/Form.js +1 -1
- package/dist/serialization/types/InvalidScopes.d.ts +10 -0
- package/{serialization/types/MissingScopes.js → dist/serialization/types/InvalidScopes.js} +2 -8
- package/dist/serialization/types/NotEnterprisePlanSite.d.ts +2 -8
- package/dist/serialization/types/NotEnterprisePlanSite.js +1 -7
- package/dist/serialization/types/Page.d.ts +1 -0
- package/dist/serialization/types/Page.js +1 -0
- package/dist/serialization/types/Site.d.ts +3 -0
- package/dist/serialization/types/Site.js +3 -0
- package/dist/serialization/types/SiteActivityLogItem.d.ts +2 -1
- package/dist/serialization/types/SiteActivityLogItem.js +2 -1
- package/dist/serialization/types/SiteActivityLogItemEvent.d.ts +10 -0
- package/dist/serialization/types/SiteActivityLogItemEvent.js +74 -0
- package/dist/serialization/types/SiteActivityLogItemResourceOperation.d.ts +1 -1
- package/dist/serialization/types/SiteActivityLogItemResourceOperation.js +11 -1
- package/dist/serialization/types/SiteDataCollectionType.d.ts +10 -0
- package/dist/serialization/types/SiteDataCollectionType.js +31 -0
- package/dist/serialization/types/UserLimitReached.d.ts +2 -8
- package/dist/serialization/types/UserLimitReached.js +1 -7
- package/dist/serialization/types/UsersNotEnabled.d.ts +2 -8
- package/dist/serialization/types/UsersNotEnabled.js +1 -7
- package/dist/serialization/types/index.d.ts +10 -5
- package/dist/serialization/types/index.js +10 -5
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/ItemsClient.d.ts +23 -49
- package/dist/wrapper/ItemsClient.js +50 -216
- package/dist/wrapper/WebflowClient.d.ts +1 -1
- package/dist/wrapper/WebflowClient.js +11 -1
- package/errors/WebflowTimeoutError.d.ts +1 -1
- package/errors/WebflowTimeoutError.js +2 -2
- package/package.json +1 -2
- package/reference.md +821 -230
- package/serialization/resources/assets/client/requests/AssetsUpdateRequest.d.ts +2 -1
- package/serialization/resources/assets/client/requests/AssetsUpdateRequest.js +2 -1
- package/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +16 -0
- package/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.js +37 -0
- package/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.d.ts +13 -0
- package/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.js +34 -0
- package/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.d.ts +13 -0
- package/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.js +34 -0
- package/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.d.ts +13 -0
- package/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.js +34 -0
- package/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +13 -0
- package/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.js +34 -0
- package/serialization/resources/collections/resources/items/client/requests/index.d.ts +5 -0
- package/serialization/resources/collections/resources/items/client/requests/index.js +11 -1
- package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +12 -0
- package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.js +36 -0
- package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.d.ts +14 -0
- package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.js +36 -0
- package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.d.ts +14 -0
- package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.js +36 -0
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +12 -0
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js +33 -0
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.d.ts +13 -0
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.js +34 -0
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts +12 -0
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.js +33 -0
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemRequestItems.d.ts +13 -0
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemRequestItems.js +34 -0
- package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +13 -0
- package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +34 -0
- package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.d.ts +13 -0
- package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.js +34 -0
- package/serialization/resources/collections/resources/items/types/index.d.ts +9 -0
- package/serialization/resources/collections/resources/items/types/index.js +9 -0
- package/serialization/resources/pages/client/requests/DomWrite.d.ts +1 -1
- package/serialization/types/BulkCollectionItemFieldData.js +4 -2
- package/serialization/types/CollectionItem.d.ts +1 -1
- package/serialization/types/CollectionItem.js +1 -1
- package/serialization/types/CollectionItemFieldData.js +4 -2
- package/serialization/types/CollectionItemListNoPagination.d.ts +13 -0
- package/serialization/types/{TooManyRequestsErrorBody.js → CollectionItemListNoPagination.js} +4 -6
- package/serialization/types/CollectionItemWithIdInput.d.ts +20 -0
- package/serialization/types/CollectionItemWithIdInput.js +41 -0
- package/serialization/types/CollectionItemWithIdInputFieldData.d.ts +14 -0
- package/serialization/types/CollectionItemWithIdInputFieldData.js +36 -0
- package/serialization/types/ConflictErrorBody.d.ts +4 -8
- package/serialization/types/ConflictErrorBody.js +3 -7
- package/serialization/types/DuplicateUserEmail.d.ts +2 -8
- package/serialization/types/DuplicateUserEmail.js +1 -7
- package/serialization/types/ErrorCode.d.ts +10 -0
- package/serialization/types/ErrorCode.js +61 -0
- package/serialization/types/Error_.d.ts +2 -1
- package/serialization/types/Error_.js +2 -1
- package/serialization/types/ForbiddenErrorBody.d.ts +4 -8
- package/serialization/types/ForbiddenErrorBody.js +3 -7
- package/serialization/types/Form.d.ts +1 -1
- package/serialization/types/Form.js +1 -1
- package/serialization/types/InvalidScopes.d.ts +10 -0
- package/serialization/types/InvalidScopes.js +31 -0
- package/serialization/types/NotEnterprisePlanSite.d.ts +2 -8
- package/serialization/types/NotEnterprisePlanSite.js +1 -7
- package/serialization/types/Page.d.ts +1 -0
- package/serialization/types/Page.js +1 -0
- package/serialization/types/Site.d.ts +3 -0
- package/serialization/types/Site.js +3 -0
- package/serialization/types/SiteActivityLogItem.d.ts +2 -1
- package/serialization/types/SiteActivityLogItem.js +2 -1
- package/serialization/types/SiteActivityLogItemEvent.d.ts +10 -0
- package/serialization/types/SiteActivityLogItemEvent.js +74 -0
- package/serialization/types/SiteActivityLogItemResourceOperation.d.ts +1 -1
- package/serialization/types/SiteActivityLogItemResourceOperation.js +11 -1
- package/serialization/types/SiteDataCollectionType.d.ts +10 -0
- package/serialization/types/SiteDataCollectionType.js +31 -0
- package/serialization/types/UserLimitReached.d.ts +2 -8
- package/serialization/types/UserLimitReached.js +1 -7
- package/serialization/types/UsersNotEnabled.d.ts +2 -8
- package/serialization/types/UsersNotEnabled.js +1 -7
- package/serialization/types/index.d.ts +10 -5
- package/serialization/types/index.js +10 -5
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/ItemsClient.d.ts +23 -49
- package/wrapper/ItemsClient.js +50 -216
- package/wrapper/WebflowClient.d.ts +1 -1
- package/wrapper/WebflowClient.js +11 -1
- package/api/types/MissingScopes.d.ts +0 -14
- package/api/types/TooManyRequestsErrorBody.d.ts +0 -9
- package/dist/api/types/MissingScopes.d.ts +0 -14
- package/dist/api/types/TooManyRequestsErrorBody.d.ts +0 -9
- package/dist/serialization/types/MissingScopes.d.ts +0 -16
- package/dist/serialization/types/TooManyRequestsErrorBody.d.ts +0 -15
- package/serialization/types/MissingScopes.d.ts +0 -16
- package/serialization/types/TooManyRequestsErrorBody.d.ts +0 -15
- /package/api/{types/MissingScopes.js → resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.js} +0 -0
- /package/api/{types/TooManyRequestsErrorBody.js → resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.js} +0 -0
- /package/{dist/api/types/MissingScopes.js → api/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.js} +0 -0
- /package/{dist/api/types/TooManyRequestsErrorBody.js → api/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.js} +0 -0
|
@@ -0,0 +1,500 @@
|
|
|
1
|
+
imports:
|
|
2
|
+
root: __package__.yml
|
|
3
|
+
service:
|
|
4
|
+
auth: false
|
|
5
|
+
base-path: ''
|
|
6
|
+
endpoints:
|
|
7
|
+
list:
|
|
8
|
+
path: /sites/{site_id}/products
|
|
9
|
+
method: GET
|
|
10
|
+
auth: true
|
|
11
|
+
docs: >
|
|
12
|
+
Retrieve all products for a site.
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
Use `limit` and `offset` to page through all products with subsequent
|
|
16
|
+
requests. All SKUs for each product
|
|
17
|
+
|
|
18
|
+
will also be fetched and returned. The `limit`, `offset` and `total`
|
|
19
|
+
values represent Products only and do not include any SKUs.
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
Required scope | `ecommerce:read`
|
|
23
|
+
source:
|
|
24
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
25
|
+
path-parameters:
|
|
26
|
+
site_id:
|
|
27
|
+
type: string
|
|
28
|
+
docs: Unique identifier for a Site
|
|
29
|
+
display-name: List Products & SKUs
|
|
30
|
+
request:
|
|
31
|
+
name: ProductsListRequest
|
|
32
|
+
query-parameters:
|
|
33
|
+
offset:
|
|
34
|
+
type: optional<double>
|
|
35
|
+
docs: >-
|
|
36
|
+
Offset used for pagination if the results have more than limit
|
|
37
|
+
records
|
|
38
|
+
limit:
|
|
39
|
+
type: optional<double>
|
|
40
|
+
docs: 'Maximum number of records to be returned (max limit: 100)'
|
|
41
|
+
response:
|
|
42
|
+
docs: Request was successful
|
|
43
|
+
type: root.ProductAndSkUsList
|
|
44
|
+
errors:
|
|
45
|
+
- root.BadRequestError
|
|
46
|
+
- root.UnauthorizedError
|
|
47
|
+
- root.ForbiddenError
|
|
48
|
+
- root.NotFoundError
|
|
49
|
+
- root.ConflictError
|
|
50
|
+
- root.TooManyRequestsError
|
|
51
|
+
- root.InternalServerError
|
|
52
|
+
examples:
|
|
53
|
+
- path-parameters:
|
|
54
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
55
|
+
response:
|
|
56
|
+
body:
|
|
57
|
+
items:
|
|
58
|
+
- product:
|
|
59
|
+
id: 660eb7a486d1d6e0412292d7
|
|
60
|
+
cmsLocaleId: 653ad57de882f528b32e810e
|
|
61
|
+
lastPublished: '2024-04-04T14:24:19Z'
|
|
62
|
+
lastUpdated: '2024-04-04T14:30:19Z'
|
|
63
|
+
createdOn: '2024-04-04T14:22:28Z'
|
|
64
|
+
isArchived: false
|
|
65
|
+
isDraft: false
|
|
66
|
+
fieldData:
|
|
67
|
+
name: T-Shirt
|
|
68
|
+
slug: t-shirt
|
|
69
|
+
description: A plain cotton t-shirt.
|
|
70
|
+
shippable: true
|
|
71
|
+
sku-properties:
|
|
72
|
+
- id: Color
|
|
73
|
+
name: Color
|
|
74
|
+
enum:
|
|
75
|
+
- id: id
|
|
76
|
+
name: Royal Blue
|
|
77
|
+
slug: royal-blue
|
|
78
|
+
skus:
|
|
79
|
+
- id: 580e63fc8c9a982ac9b8b745
|
|
80
|
+
cmsLocaleId: 653ad57de882f528b32e810e
|
|
81
|
+
lastPublished: '2023-03-17T18:47:35Z'
|
|
82
|
+
lastUpdated: '2023-03-17T18:47:35Z'
|
|
83
|
+
createdOn: '2023-03-17T18:47:35Z'
|
|
84
|
+
fieldData:
|
|
85
|
+
sku-values:
|
|
86
|
+
ff42fee0113744f693a764e3431a9cc2: 64a74715c456e36762fc39a1
|
|
87
|
+
name: Blue T-shirt
|
|
88
|
+
slug: t-shirt-blue
|
|
89
|
+
price:
|
|
90
|
+
value: 100
|
|
91
|
+
unit: USD
|
|
92
|
+
quantity: 10
|
|
93
|
+
pagination:
|
|
94
|
+
limit: 100
|
|
95
|
+
offset: 0
|
|
96
|
+
total: 100
|
|
97
|
+
create:
|
|
98
|
+
path: /sites/{site_id}/products
|
|
99
|
+
method: POST
|
|
100
|
+
auth: true
|
|
101
|
+
docs: >
|
|
102
|
+
Create a new product and SKU.
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
When you create a product, you will always create a SKU, since a Product
|
|
106
|
+
Item must have, at minimum, a single SKU.
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
To create a Product with multiple SKUs - for example a T-shirt in sizes
|
|
110
|
+
small, medium and large:
|
|
111
|
+
- Create parameters in `sku-properties`, also known as [product options and variants.](https://help.webflow.com/hc/en-us/articles/33961334531347-Create-product-options-and-variants).
|
|
112
|
+
- A single `sku-property` would be `color`. Within the `color` property, list the various colors of T-shirts as an array of `enum` values: `royal-blue`, `crimson-red`, and `forrest-green`.
|
|
113
|
+
- Once, you've created a Product and its `sku-properties` with `enum` values, Webflow will create a **default SKU**, which will automatically be a combination of the first `sku-properties` you've created.
|
|
114
|
+
- In our example, the default SKU will be a Royal Blue T-Shirt, because our first `enum` of our Color `sku-property` is Royal Blue.
|
|
115
|
+
- After you've created your product, you can create additional SKUs using the [Create SKU endpoint.](/data/reference/ecommerce/products-sk-us/create-sku)
|
|
116
|
+
|
|
117
|
+
Upon creation, the default product type will be `Advanced`, which
|
|
118
|
+
ensures all Product and SKU fields will be shown to users in the
|
|
119
|
+
Designer.
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
Required scope | `ecommerce:write`
|
|
123
|
+
source:
|
|
124
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
125
|
+
path-parameters:
|
|
126
|
+
site_id:
|
|
127
|
+
type: string
|
|
128
|
+
docs: Unique identifier for a Site
|
|
129
|
+
display-name: Create Product & SKU
|
|
130
|
+
request:
|
|
131
|
+
name: ProductSkuCreate
|
|
132
|
+
body:
|
|
133
|
+
properties:
|
|
134
|
+
publishStatus: optional<root.PublishStatus>
|
|
135
|
+
product: optional<root.Product>
|
|
136
|
+
sku: optional<root.Sku>
|
|
137
|
+
content-type: application/json
|
|
138
|
+
response:
|
|
139
|
+
docs: Request was successful
|
|
140
|
+
type: root.ProductAndSkUs
|
|
141
|
+
errors:
|
|
142
|
+
- root.BadRequestError
|
|
143
|
+
- root.UnauthorizedError
|
|
144
|
+
- root.ForbiddenError
|
|
145
|
+
- root.NotFoundError
|
|
146
|
+
- root.ConflictError
|
|
147
|
+
- root.TooManyRequestsError
|
|
148
|
+
- root.InternalServerError
|
|
149
|
+
examples:
|
|
150
|
+
- path-parameters:
|
|
151
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
152
|
+
request: {}
|
|
153
|
+
response:
|
|
154
|
+
body:
|
|
155
|
+
product:
|
|
156
|
+
id: 660eb7a486d1d6e0412292d7
|
|
157
|
+
cmsLocaleId: 653ad57de882f528b32e810e
|
|
158
|
+
lastPublished: '2024-04-04T14:24:19Z'
|
|
159
|
+
lastUpdated: '2024-04-04T14:30:19Z'
|
|
160
|
+
createdOn: '2024-04-04T14:22:28Z'
|
|
161
|
+
isArchived: false
|
|
162
|
+
isDraft: false
|
|
163
|
+
fieldData:
|
|
164
|
+
name: T-Shirt
|
|
165
|
+
slug: t-shirt
|
|
166
|
+
description: A plain cotton t-shirt.
|
|
167
|
+
shippable: true
|
|
168
|
+
sku-properties:
|
|
169
|
+
- id: Color
|
|
170
|
+
name: Color
|
|
171
|
+
enum:
|
|
172
|
+
- id: id
|
|
173
|
+
name: Royal Blue
|
|
174
|
+
slug: royal-blue
|
|
175
|
+
categories:
|
|
176
|
+
- categories
|
|
177
|
+
tax-category: standard-taxable
|
|
178
|
+
default-sku: default-sku
|
|
179
|
+
ec-product-type: ff42fee0113744f693a764e3431a9cc2
|
|
180
|
+
skus:
|
|
181
|
+
- id: 580e63fc8c9a982ac9b8b745
|
|
182
|
+
cmsLocaleId: 653ad57de882f528b32e810e
|
|
183
|
+
lastPublished: '2023-03-17T18:47:35Z'
|
|
184
|
+
lastUpdated: '2023-03-17T18:47:35Z'
|
|
185
|
+
createdOn: '2023-03-17T18:47:35Z'
|
|
186
|
+
fieldData:
|
|
187
|
+
sku-values:
|
|
188
|
+
ff42fee0113744f693a764e3431a9cc2: 64a74715c456e36762fc39a1
|
|
189
|
+
name: Blue T-shirt
|
|
190
|
+
slug: t-shirt-blue
|
|
191
|
+
price:
|
|
192
|
+
value: 100
|
|
193
|
+
unit: USD
|
|
194
|
+
quantity: 10
|
|
195
|
+
get:
|
|
196
|
+
path: /sites/{site_id}/products/{product_id}
|
|
197
|
+
method: GET
|
|
198
|
+
auth: true
|
|
199
|
+
docs: |
|
|
200
|
+
Retrieve a single product by its ID. All of its SKUs will also be
|
|
201
|
+
retrieved.
|
|
202
|
+
|
|
203
|
+
Required scope | `ecommerce:read`
|
|
204
|
+
source:
|
|
205
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
206
|
+
path-parameters:
|
|
207
|
+
site_id:
|
|
208
|
+
type: string
|
|
209
|
+
docs: Unique identifier for a Site
|
|
210
|
+
product_id:
|
|
211
|
+
type: string
|
|
212
|
+
docs: Unique identifier for a Product
|
|
213
|
+
display-name: Get Product and SKUs
|
|
214
|
+
response:
|
|
215
|
+
docs: Request was successful
|
|
216
|
+
type: root.ProductAndSkUs
|
|
217
|
+
errors:
|
|
218
|
+
- root.BadRequestError
|
|
219
|
+
- root.UnauthorizedError
|
|
220
|
+
- root.ForbiddenError
|
|
221
|
+
- root.NotFoundError
|
|
222
|
+
- root.ConflictError
|
|
223
|
+
- root.TooManyRequestsError
|
|
224
|
+
- root.InternalServerError
|
|
225
|
+
examples:
|
|
226
|
+
- path-parameters:
|
|
227
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
228
|
+
product_id: 580e63fc8c9a982ac9b8b745
|
|
229
|
+
response:
|
|
230
|
+
body:
|
|
231
|
+
product:
|
|
232
|
+
id: 660eb7a486d1d6e0412292d7
|
|
233
|
+
cmsLocaleId: 653ad57de882f528b32e810e
|
|
234
|
+
lastPublished: '2024-04-04T14:24:19Z'
|
|
235
|
+
lastUpdated: '2024-04-04T14:30:19Z'
|
|
236
|
+
createdOn: '2024-04-04T14:22:28Z'
|
|
237
|
+
isArchived: false
|
|
238
|
+
isDraft: false
|
|
239
|
+
fieldData:
|
|
240
|
+
name: T-Shirt
|
|
241
|
+
slug: t-shirt
|
|
242
|
+
description: A plain cotton t-shirt.
|
|
243
|
+
shippable: true
|
|
244
|
+
sku-properties:
|
|
245
|
+
- id: Color
|
|
246
|
+
name: Color
|
|
247
|
+
enum:
|
|
248
|
+
- id: id
|
|
249
|
+
name: Royal Blue
|
|
250
|
+
slug: royal-blue
|
|
251
|
+
categories:
|
|
252
|
+
- categories
|
|
253
|
+
tax-category: standard-taxable
|
|
254
|
+
default-sku: default-sku
|
|
255
|
+
ec-product-type: ff42fee0113744f693a764e3431a9cc2
|
|
256
|
+
skus:
|
|
257
|
+
- id: 580e63fc8c9a982ac9b8b745
|
|
258
|
+
cmsLocaleId: 653ad57de882f528b32e810e
|
|
259
|
+
lastPublished: '2023-03-17T18:47:35Z'
|
|
260
|
+
lastUpdated: '2023-03-17T18:47:35Z'
|
|
261
|
+
createdOn: '2023-03-17T18:47:35Z'
|
|
262
|
+
fieldData:
|
|
263
|
+
sku-values:
|
|
264
|
+
ff42fee0113744f693a764e3431a9cc2: 64a74715c456e36762fc39a1
|
|
265
|
+
name: Blue T-shirt
|
|
266
|
+
slug: t-shirt-blue
|
|
267
|
+
price:
|
|
268
|
+
value: 100
|
|
269
|
+
unit: USD
|
|
270
|
+
quantity: 10
|
|
271
|
+
update:
|
|
272
|
+
path: /sites/{site_id}/products/{product_id}
|
|
273
|
+
method: PATCH
|
|
274
|
+
auth: true
|
|
275
|
+
docs: >
|
|
276
|
+
Update an existing Product.
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
Updating an existing Product will set the product type to `Advanced`,
|
|
280
|
+
which ensures all Product and SKU fields will be shown to users in the
|
|
281
|
+
Designer.
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
Required scope | `ecommerce:write`
|
|
285
|
+
source:
|
|
286
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
287
|
+
path-parameters:
|
|
288
|
+
site_id:
|
|
289
|
+
type: string
|
|
290
|
+
docs: Unique identifier for a Site
|
|
291
|
+
product_id:
|
|
292
|
+
type: string
|
|
293
|
+
docs: Unique identifier for a Product
|
|
294
|
+
display-name: Update Product
|
|
295
|
+
request:
|
|
296
|
+
name: ProductSkuUpdate
|
|
297
|
+
body:
|
|
298
|
+
properties:
|
|
299
|
+
publishStatus: optional<root.PublishStatus>
|
|
300
|
+
product: optional<root.Product>
|
|
301
|
+
sku: optional<root.Sku>
|
|
302
|
+
content-type: application/json
|
|
303
|
+
response:
|
|
304
|
+
docs: Request was successful
|
|
305
|
+
type: root.Product
|
|
306
|
+
errors:
|
|
307
|
+
- root.BadRequestError
|
|
308
|
+
- root.UnauthorizedError
|
|
309
|
+
- root.ForbiddenError
|
|
310
|
+
- root.NotFoundError
|
|
311
|
+
- root.ConflictError
|
|
312
|
+
- root.TooManyRequestsError
|
|
313
|
+
- root.InternalServerError
|
|
314
|
+
examples:
|
|
315
|
+
- path-parameters:
|
|
316
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
317
|
+
product_id: 580e63fc8c9a982ac9b8b745
|
|
318
|
+
request: {}
|
|
319
|
+
response:
|
|
320
|
+
body:
|
|
321
|
+
id: 660eb7a486d1d6e0412292d7
|
|
322
|
+
cmsLocaleId: 653ad57de882f528b32e810e
|
|
323
|
+
lastPublished: '2024-04-04T14:24:19Z'
|
|
324
|
+
lastUpdated: '2024-04-04T14:30:19Z'
|
|
325
|
+
createdOn: '2024-04-04T14:22:28Z'
|
|
326
|
+
isArchived: false
|
|
327
|
+
isDraft: false
|
|
328
|
+
fieldData:
|
|
329
|
+
name: T-Shirt
|
|
330
|
+
slug: t-shirt
|
|
331
|
+
description: A plain cotton t-shirt.
|
|
332
|
+
shippable: true
|
|
333
|
+
sku-properties:
|
|
334
|
+
- id: Color
|
|
335
|
+
name: Color
|
|
336
|
+
enum:
|
|
337
|
+
- id: id
|
|
338
|
+
name: Royal Blue
|
|
339
|
+
slug: royal-blue
|
|
340
|
+
categories:
|
|
341
|
+
- categories
|
|
342
|
+
tax-category: standard-taxable
|
|
343
|
+
default-sku: default-sku
|
|
344
|
+
ec-product-type: ff42fee0113744f693a764e3431a9cc2
|
|
345
|
+
create-sku:
|
|
346
|
+
path: /sites/{site_id}/products/{product_id}/skus
|
|
347
|
+
method: POST
|
|
348
|
+
auth: true
|
|
349
|
+
docs: >
|
|
350
|
+
Create additional SKUs to manage every [option and variant of your
|
|
351
|
+
Product.](https://help.webflow.com/hc/en-us/articles/33961334531347-Create-product-options-and-variants)
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
Creating SKUs through the API will set the product type to `Advanced`,
|
|
355
|
+
which ensures all Product and SKU fields will be shown to users in the
|
|
356
|
+
Designer.
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
Required scope | `ecommerce:write`
|
|
360
|
+
source:
|
|
361
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
362
|
+
path-parameters:
|
|
363
|
+
site_id:
|
|
364
|
+
type: string
|
|
365
|
+
docs: Unique identifier for a Site
|
|
366
|
+
product_id:
|
|
367
|
+
type: string
|
|
368
|
+
docs: Unique identifier for a Product
|
|
369
|
+
display-name: Create SKU
|
|
370
|
+
request:
|
|
371
|
+
name: ProductsCreateSkuRequest
|
|
372
|
+
body:
|
|
373
|
+
properties:
|
|
374
|
+
publishStatus: optional<root.PublishStatus>
|
|
375
|
+
skus:
|
|
376
|
+
docs: An array of the SKU data your are adding
|
|
377
|
+
type: list<root.Sku>
|
|
378
|
+
content-type: application/json
|
|
379
|
+
response:
|
|
380
|
+
docs: Request was successful
|
|
381
|
+
type: ProductsCreateSkuResponse
|
|
382
|
+
errors:
|
|
383
|
+
- root.BadRequestError
|
|
384
|
+
- root.UnauthorizedError
|
|
385
|
+
- root.ForbiddenError
|
|
386
|
+
- root.NotFoundError
|
|
387
|
+
- root.ConflictError
|
|
388
|
+
- root.TooManyRequestsError
|
|
389
|
+
- root.InternalServerError
|
|
390
|
+
examples:
|
|
391
|
+
- path-parameters:
|
|
392
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
393
|
+
product_id: 580e63fc8c9a982ac9b8b745
|
|
394
|
+
request:
|
|
395
|
+
skus:
|
|
396
|
+
- {}
|
|
397
|
+
response:
|
|
398
|
+
body:
|
|
399
|
+
skus:
|
|
400
|
+
- id: 580e63fc8c9a982ac9b8b745
|
|
401
|
+
cmsLocaleId: 653ad57de882f528b32e810e
|
|
402
|
+
lastPublished: '2023-03-17T18:47:35Z'
|
|
403
|
+
lastUpdated: '2023-03-17T18:47:35Z'
|
|
404
|
+
createdOn: '2023-03-17T18:47:35Z'
|
|
405
|
+
fieldData:
|
|
406
|
+
sku-values:
|
|
407
|
+
ff42fee0113744f693a764e3431a9cc2: 64a74715c456e36762fc39a1
|
|
408
|
+
name: Blue T-shirt
|
|
409
|
+
slug: t-shirt-blue
|
|
410
|
+
price:
|
|
411
|
+
value: 100
|
|
412
|
+
unit: USD
|
|
413
|
+
quantity: 10
|
|
414
|
+
update-sku:
|
|
415
|
+
path: /sites/{site_id}/products/{product_id}/skus/{sku_id}
|
|
416
|
+
method: PATCH
|
|
417
|
+
auth: true
|
|
418
|
+
docs: >
|
|
419
|
+
Update a specified SKU.
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
Updating an existing SKU will set the Product type to `Advanced`, which
|
|
423
|
+
ensures all Product and SKU fields will be shown to users in the
|
|
424
|
+
Designer.
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
Required scope | `ecommerce:write`
|
|
428
|
+
source:
|
|
429
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
430
|
+
path-parameters:
|
|
431
|
+
site_id:
|
|
432
|
+
type: string
|
|
433
|
+
docs: Unique identifier for a Site
|
|
434
|
+
product_id:
|
|
435
|
+
type: string
|
|
436
|
+
docs: Unique identifier for a Product
|
|
437
|
+
sku_id:
|
|
438
|
+
type: string
|
|
439
|
+
docs: Unique identifier for a SKU
|
|
440
|
+
display-name: Update SKU
|
|
441
|
+
request:
|
|
442
|
+
name: ProductsUpdateSkuRequest
|
|
443
|
+
body:
|
|
444
|
+
properties:
|
|
445
|
+
publishStatus: optional<root.PublishStatus>
|
|
446
|
+
sku: root.Sku
|
|
447
|
+
content-type: application/json
|
|
448
|
+
response:
|
|
449
|
+
docs: Request was successful
|
|
450
|
+
type: root.Sku
|
|
451
|
+
errors:
|
|
452
|
+
- root.BadRequestError
|
|
453
|
+
- root.UnauthorizedError
|
|
454
|
+
- root.ForbiddenError
|
|
455
|
+
- root.NotFoundError
|
|
456
|
+
- root.ConflictError
|
|
457
|
+
- root.TooManyRequestsError
|
|
458
|
+
- root.InternalServerError
|
|
459
|
+
examples:
|
|
460
|
+
- path-parameters:
|
|
461
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
462
|
+
product_id: 580e63fc8c9a982ac9b8b745
|
|
463
|
+
sku_id: 5e8518516e147040726cc415
|
|
464
|
+
request:
|
|
465
|
+
sku: {}
|
|
466
|
+
response:
|
|
467
|
+
body:
|
|
468
|
+
id: 580e63fc8c9a982ac9b8b745
|
|
469
|
+
cmsLocaleId: 653ad57de882f528b32e810e
|
|
470
|
+
lastPublished: '2023-03-17T18:47:35Z'
|
|
471
|
+
lastUpdated: '2023-03-17T18:47:35Z'
|
|
472
|
+
createdOn: '2023-03-17T18:47:35Z'
|
|
473
|
+
fieldData:
|
|
474
|
+
sku-values:
|
|
475
|
+
ff42fee0113744f693a764e3431a9cc2: 64a74715c456e36762fc39a1
|
|
476
|
+
name: Blue T-shirt
|
|
477
|
+
slug: t-shirt-blue
|
|
478
|
+
price:
|
|
479
|
+
value: 100
|
|
480
|
+
unit: USD
|
|
481
|
+
compare-at-price:
|
|
482
|
+
value: 100
|
|
483
|
+
unit: USD
|
|
484
|
+
ec-sku-billing-method: one-time
|
|
485
|
+
ec-sku-subscription-plan:
|
|
486
|
+
interval: day
|
|
487
|
+
frequency: 1
|
|
488
|
+
trial: 7
|
|
489
|
+
plans:
|
|
490
|
+
- {}
|
|
491
|
+
track-inventory: true
|
|
492
|
+
quantity: 10
|
|
493
|
+
source:
|
|
494
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
495
|
+
types:
|
|
496
|
+
ProductsCreateSkuResponse:
|
|
497
|
+
properties:
|
|
498
|
+
skus: optional<list<root.Sku>>
|
|
499
|
+
source:
|
|
500
|
+
openapi: ../../../referenced-specs/v2.yml
|