跳到主要内容
版本:202201

创建商品专辑

POST 

/openapi/2022-01/collections

在店铺中创建一个新的商品专辑,可设置专辑名称、描述、关联商品、SEO 信息及商品排序规则。

请求

请求体

    collection object
    titlestring必填

    The title of the collection.

    handlestring

    The SEO link, the C-end album link is https://{subdomain}.myshoplaza.com/collections/{handle}.

    seo_titlestring

    SEO title

    seo_descriptionstring

    SEO description

    seo_keywordsstring

    SEO Keywords, separated by comma, for example: key1,key2

    descriptionstring

    The description of the collection, supports rich text.

    image object

    The image for the collection. This image is added to the collection's page in the Shoplazza admin.

    srcstring必填

    Image's URL

    widthint32

    Image's width in px

    heightint32

    Image's height in px

    altstring

    Image's alt

    sort_orderstring

    Collection merchandise sorting rules:
    - default to manual
    - sales-desc: by total sales volume, hight to low
    - published-desc: by product published time, newest first
    - real-sales-desc:by product real sales, more to less
    - inventory-quantity-asc: by inventory quantity, less to more
    - inventory-quantity-desc: by inventory quantity, more to less
    - views-desc: by product page views, more to less
    - add-to-cart-count-desc: by add to card count, more to less
    - updated-desc: by product update time, newest first
    - vendor-asc: by supplier name A-Z
    - vendor-desc: by supplier name Z-A
    - alpha-asc: by product title A-Z
    - alpha-desc: by product title Z-A
    - price-asc: by price, low to high
    - price-desc: by price, high to low
    - created-desc: by creation time, newest first
    - manual: manually

    默认值: manual
    product_idsstring

    Product's IDs, separated by comma, for example: 0097cfc8-6ec3-40ed,40ed-ab9f-6f2231b7

响应

200

数据结构
    collection object
    idstring
    示例: a60fe556-43ad-4e07-9125-507ac1bf71f7
    titlestring
    示例: Test-Collection
    descriptionstring
    示例: Desc
    handlestring
    示例: test-collection
    smartboolean
    默认值: true
    示例: false
    image object
    srcstring
    示例: //cdn.shoplazza.com/loading.png
    widthinteger
    默认值: 0
    示例: 100
    heightinteger
    默认值: 0
    示例: 100
    altstring
    示例:
    pathstring
    示例: loading.png
    seo_titlestring
    示例: seo_title
    seo_descriptionstring
    示例: Desc
    seo_keywordsstring
    示例: test
    sort_orderstring
    示例: title-asc
    created_atstring
    示例: 2024-04-16T10:31:12Z
    updated_atstring
    示例: 2024-04-16T10:31:12Z