Sample Use Cases and Flows

This article shares a possible use case your app could support, as well as sample flows that could support this use case. This can be a helpful jumping-off point as you plan your app's implementation.

Create a product with a new info section

To create a product and assign a new info section with a single API call: Call Create Product and pass the uniqueName and title to the product.infoSections array.

Note: if an info section with infoSection.uniqueName already exists, the call will fail.

Assign an existing info section to a product

The Info Sections API allows you to create and update multiple info sections. You can then use and reuse these info sections and assign them across multiple products.

To create and assign an info section to a product:

  1. Call Create Info Section.
  2. Save the infoSection.id or infoSection.uniqueName from the info section you created.
  3. Call Create Product or Update Product, and pass either the infoSection.id or the infoSection.uniqueName to the infoSections array.
Did this help?

Info Sections: Supported Filters and Sorting

The following table shows field support for filters and sorting for the info section object:

FieldSupported FiltersSortable
id$eq, $ne, $exists, $in, $hasSome, $startsWith
createdDate$eq, $ne, $exists, $in, $hasSome, $lt, $le, $gt, $geSortable
updatedDate$eq, $ne, $exists, $in, $hasSome, $lt, $le, $gt, $geSortable
uniqueName$eq, $ne, $exists, $in, $hasSome, $startsWithSortable
title$eq, $ne, $exists, $in, $hasSome, $startsWithSortable

Related content: API Query Language, Query Info Sections

Did this help?

Info Section Object


An info section is a visible property of a product Add info sections to a product to provide all the explanations your customers need.

Properties
idstringRead-onlyformat GUID

Info section ID.


revisionintegerRead-onlyformat int64

Revision number, which increments by 1 each time the info section is updated. To prevent conflicting changes, the current revision must be passed when updating the info section.

Ignored when creating an info section.


createdDatestringRead-onlyformat date-time

Date and time the info section was created.


updatedDatestringRead-onlyformat date-time

Date and time the info section was updated.


uniqueNamestringmaxLength 100

Unique name. Used as an identifier.


titlestringminLength 1maxLength 50

Info section title.


descriptionDescription

Info section description using rich content.

See Ricos document reference

plainDescriptionstringmaxLength 16000

Info section description in HTML.

When provided on create/update, this string must be a valid HTML. It will then be converted to rich content. plainDescription is ignored when value is also passed to the description field.


assignedProductsCountintegerRead-onlyformat int32

Number of products this info section is assigned to.

Note: Returned only when you pass "ASSIGNED_PRODUCTS_COUNT" to the fields array in Info Sections API requests.

InfoSection
JSON
{ "infoSection": { "id": "5db34212-4870-4a28-b210-187be25b24cd", "revision": "1", "createdDate": "2024-06-30T09:07:44.449Z", "updatedDate": "2024-06-30T09:07:44.449Z", "uniqueName": "Series 4 Cup", "title": "Product Features", "description": { "nodes": [ { "type": "PARAGRAPH", "id": "ohot5271", "nodes": [ { "type": "TEXT", "id": "", "nodes": [], "textData": { "text": "Dual-wall", "decorations": [ { "type": "COLOR", "colorData": { "foreground": "#ff0000" } }, { "type": "BOLD", "fontWeightValue": 700 } ] } }, { "type": "TEXT", "id": "", "nodes": [], "textData": { "text": " design for the hydration bottle keeps drinks cold for up to 24 hours & hot for up to 12 hours ", "decorations": [] } } ] }, { "type": "TABLE", "id": "jx3te102", "nodes": [ { "type": "TABLE_ROW", "id": "yysx7107", "nodes": [ { "type": "TABLE_CELL", "id": "gl0nw108", "nodes": [ { "type": "PARAGRAPH", "id": "h0mav109", "nodes": [ { "type": "TEXT", "id": "", "nodes": [], "textData": { "text": "product", "decorations": [] } } ] } ] } ] } ], "tableData": { "dimensions": { "colsWidthRatio": [587], "rowsHeight": [47], "colsMinWidth": [120] } } }, { "type": "PARAGRAPH", "id": "cjje5104", "nodes": [] } ], "metadata": { "version": 1 }, "documentStyle": {} }, "assignedProductsCount": 1 } }
Did this help?

POST

Create Info Section


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Creates an info section.

To assign the info section to a product, include the infoSection.id or infoSection.uniqueName when creating or updating a product.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Stores - all permissions
Manage Products
Manage v3 catalog
Info section write in v3 catalog
Product write in v3 catalog
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/stores/v3/info-sections

Body Params
infoSectionInfoSectionRequired

Info section to create.

Response Object
infoSectionInfoSection

Created info section.

Create Info Section

Creates an info section of type paragraph, with product feature descriptions.

Request
cURL
curl -X POST \ 'https://www.wixapis.com/stores/v3/info-sections' \ -H 'Content-type: application/json' \ -H 'Authorization: <AUTH>' \ -d '{ "infoSection": { "uniqueName": "Series 4 Cup", "title": "Product Features", "description": { "nodes": [ { "type": "PARAGRAPH", "id": "ohot5271", "nodes": [ { "type": "TEXT", "textData": { "text": "Dual-wall", "decorations": [ { "type": "COLOR", "colorData": { "foreground": "#ff0000" } }, { "type": "BOLD", "fontWeightValue": 700 } ] } }, { "type": "TEXT", "textData": { "text": " design for the hydration bottle keeps drinks cold for up to 24 hours & hot for up to 12 hours " } } ] }, { "type": "TABLE", "id": "jx3te102", "nodes": [ { "type": "TABLE_ROW", "id": "yysx7107", "nodes": [ { "type": "TABLE_CELL", "id": "gl0nw108", "nodes": [ { "type": "PARAGRAPH", "id": "h0mav109", "nodes": [ { "type": "TEXT", "textData": { "text": "product" } } ] } ] } ] } ], "tableData": { "dimensions": { "colsWidthRatio": [ 587 ], "rowsHeight": [ 47 ], "colsMinWidth": [ 120 ] } } }, { "type": "PARAGRAPH", "id": "cjje5104" } ], "metadata": { "version": 1 } } } }'
Response
JSON
{ "infoSection": { "id": "5db34212-4870-4a28-b210-187be25b24cd", "revision": "1", "createdDate": "2024-06-30T12:58:08.297Z", "updatedDate": "2024-06-30T12:58:08.297Z", "uniqueName": "Series 5 Cup", "title": "Product Features", "description": { "nodes": [ { "type": "PARAGRAPH", "id": "ohot5271", "nodes": [ { "type": "TEXT", "id": "", "nodes": [], "textData": { "text": "Dual-wall", "decorations": [ { "type": "COLOR", "colorData": { "foreground": "#ff0000" } }, { "type": "BOLD", "fontWeightValue": 700 } ] } }, { "type": "TEXT", "id": "", "nodes": [], "textData": { "text": " design for the hydration bottle keeps drinks cold for up to 24 hours & hot for up to 12 hours ", "decorations": [] } } ] }, { "type": "TABLE", "id": "jx3te102", "nodes": [ { "type": "TABLE_ROW", "id": "yysx7107", "nodes": [ { "type": "TABLE_CELL", "id": "gl0nw108", "nodes": [ { "type": "PARAGRAPH", "id": "h0mav109", "nodes": [ { "type": "TEXT", "id": "", "nodes": [], "textData": { "text": "product", "decorations": [] } } ] } ] } ] } ], "tableData": { "dimensions": { "colsWidthRatio": [587], "rowsHeight": [47], "colsMinWidth": [120] } } }, { "type": "PARAGRAPH", "id": "cjje5104", "nodes": [] } ], "metadata": { "version": 1 } } } }
Errors
400Invalid Argument

There are 2 errors with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?

GET

Get Info Section


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Retrieves an info section.

Permissions
Manage Stores - all permissions
Read Stores - all read permissions
Manage Orders
Manage Products
Read Products
Manage Restaurants - all permissions
Read v3 catalog
Manage v3 catalog
Read info sections in v3 catalog
Product write in v3 catalog
Learn more about app permissions.
Endpoint
GET
https://www.wixapis.com/stores/v3/info-sections/{infoSectionId}

Path Params
infoSectionIdstringRequired

Info section ID.

Query Params
fieldsArray <string>

Fields to include in the response.

Supported values: ASSIGNED_PRODUCTS_COUNT

Response Object
infoSectionInfoSection

Info section.

Gets an info section by Id.

Request
cURL
curl -X GET \ 'https://www.wixapis.com/stores/v3/info-sections/5db34212-4870-4a28-b210-187be25b24cd' \ -H 'Content-Type: application/json' \ -H 'Authorization: <AUTH>'
Response
JSON
{ "infoSection": { "id": "5db34212-4870-4a28-b210-187be25b24cd", "revision": "1", "createdDate": "2024-06-30T12:58:08.297Z", "updatedDate": "2024-06-30T12:58:08.297Z", "uniqueName": "Series 5 Cup", "title": "Product Features", "description": { "nodes": [ { "type": "PARAGRAPH", "id": "ohot5271", "nodes": [ { "type": "TEXT", "id": "", "nodes": [], "textData": { "text": "Dual-wall", "decorations": [ { "type": "COLOR", "colorData": { "foreground": "#ff0000" } }, { "type": "BOLD", "fontWeightValue": 700 } ] } }, { "type": "TEXT", "id": "", "nodes": [], "textData": { "text": " design for the hydration bottle keeps drinks cold for up to 24 hours & hot for up to 12 hours ", "decorations": [] } } ] }, { "type": "TABLE", "id": "jx3te102", "nodes": [ { "type": "TABLE_ROW", "id": "yysx7107", "nodes": [ { "type": "TABLE_CELL", "id": "gl0nw108", "nodes": [ { "type": "PARAGRAPH", "id": "h0mav109", "nodes": [ { "type": "TEXT", "id": "", "nodes": [], "textData": { "text": "product", "decorations": [] } } ] } ] } ] } ], "tableData": { "dimensions": { "colsWidthRatio": [587], "rowsHeight": [47], "colsMinWidth": [120] } } }, { "type": "PARAGRAPH", "id": "cjje5104", "nodes": [] } ], "metadata": { "version": 1 } } } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?