Download OpenAPI specification:Download
CatalogService API spec (Default Adapter)
API documentation for CatalogService default adapter.
{- "status": "ok",
- "packageInfo": {
- "gitCommitHash": "82fc145",
- "sdkVersion": "3.2.0",
- "serviceAdapterAPIVersion": "^3.5.0",
- "serviceName": "@basaldev/blocks-catalog-service",
- "serviceVersion": "3.0.0"
}
}
Retrieves a location tree by queries.
https://{{catalogServiceEndpoint}}/locations-tree?$filter=type eq 'region'
https://{{catalogServiceEndpoint}}/locations-tree?$filter=type eq 'prefecture'
$top | integer [ 1 .. 100 ] Example: $top=20 The maximum number of results to show on the page (The default value is 20). |
$skip | integer Example: $skip=20 The maximum number of the items to skip (The Default value is 0). |
$nextToken | string Example: $nextToken=token A unique token to get next batch of data. (base64 format) |
$previousToken | string Example: $previousToken=token A unique token to get previous batch of data. (base64 format) |
parentId required | string^[0-9a-z]{24}$ Example: parentId=0123456789ab0123456789ab A unique identifier of a category/location |
$orderBy | string Return sorted items based on property values. It can contains a comma-separated list of expressions. The expression may include the suffix "asc" for ascending or "desc" for descending, separated from the property name by one or more spaces. If "asc" or "desc" is not specified, the service MUST order by the specified property in ascending order. The sort order is the inherent order for the type of the property. Examples:Return all orders sorted by publishedAt in descending order and a secondary sort order of updatedAt in ascending order.
|
$expand | string Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
{- "total": 100,
- "count": 100,
- "value": [
- {
- "id": "0123456789ab0123456789ab",
- "type": "region",
- "code": 10006,
- "name": "Hokkaido",
- "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z",
- "numberOfProducts": 10,
- "children": [
- {
- "id": "0123456789ab0123456789ab",
- "type": "region",
- "code": 10006,
- "name": "Hokkaido",
- "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z",
- "numberOfProducts": 10
}
]
}
]
}
Retrieves a list of locations by queries.
$skip | integer Example: $skip=20 The maximum number of the items to skip (The Default value is 0). | |||||||||||||||||||||||||||||||||||||||
$nextToken | string Example: $nextToken=token A unique token to get next batch of data. (base64 format) | |||||||||||||||||||||||||||||||||||||||
$previousToken | string Example: $previousToken=token A unique token to get previous batch of data. (base64 format) | |||||||||||||||||||||||||||||||||||||||
$filter | string Return only items which matches to a condition (The operators below are listed in order of precedence from highest to lowest).
Examples:Simple example of filtering by a property value.
| |||||||||||||||||||||||||||||||||||||||
$orderBy | string Return sorted items based on property values. It can contains a comma-separated list of expressions. The expression may include the suffix "asc" for ascending or "desc" for descending, separated from the property name by one or more spaces. If "asc" or "desc" is not specified, the service MUST order by the specified property in ascending order. The sort order is the inherent order for the type of the property. Examples:Return all orders sorted by publishedAt in descending order and a secondary sort order of updatedAt in ascending order.
|
{- "total": 100,
- "count": 100,
- "value": [
- {
- "id": "0123456789ab0123456789ab",
- "type": "region",
- "code": 10006,
- "name": "Hokkaido",
- "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
]
}
Create a new location.
This operation requires System Admin role
$expand | string Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
Post a location request body.
name required | string (LocationName) The name of the location. |
parentId | string (ParentId) ^[0-9a-z]{24}$ A character hexadecimal string value. |
code | string |
type | string |
{- "name": "Hokkaido",
- "parentId": "0123456789ab0123456789ab",
- "code": "string",
- "type": "string"
}
{- "id": "0123456789ab0123456789ab",
- "type": "region",
- "code": 10006,
- "name": "Hokkaido",
- "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
Retrieves a list of count of product locations by queries.
locationIds required | string^[0-9a-z]{24}+(?:,[0-9a-z]{24}+)*$ Example: 0123456789ab0123456789ab A list of unique identifiers of a location. |
[- {
- "id": "0123456789ab0123456789ab",
- "count": 30
}
]
Retrieves a single location by id.
locationId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of a location. |
{- "id": "0123456789ab0123456789ab",
- "type": "region",
- "code": 10006,
- "name": "Hokkaido",
- "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
Update a single location by id partially.
This operation requires System Admin role
locationId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of a location. |
$expand | string Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
Patch a location request body.
name | string (LocationName) The name of the location. |
parentId | string (ParentId) ^[0-9a-z]{24}$ A character hexadecimal string value. |
code | string |
type | string |
{- "name": "location1"
}
{- "id": "0123456789ab0123456789ab",
- "type": "region",
- "code": 10006,
- "name": "Hokkaido",
- "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
Delete a single location by id.
This operation requires System Admin role
locationId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of a location. |
{- "code": "Unauthorized",
- "message": "Authorization has failed.",
- "target": "Token",
- "innererror": {
- "code": "TokenExpiredError"
}
}
Retrieves a list of areas by queries.
$top | integer [ 1 .. 100 ] Example: $top=20 The maximum number of results to show on the page (The default value is 20). | |||||||||||||||||||||||||||||||||||||||
$skip | integer Example: $skip=20 The maximum number of the items to skip (The Default value is 0). | |||||||||||||||||||||||||||||||||||||||
$nextToken | string Example: $nextToken=token A unique token to get next batch of data. (base64 format) | |||||||||||||||||||||||||||||||||||||||
$previousToken | string Example: $previousToken=token A unique token to get previous batch of data. (base64 format) | |||||||||||||||||||||||||||||||||||||||
$filter | string Return only items which matches to a condition (The operators below are listed in order of precedence from highest to lowest).
Examples:Simple example of filtering by a property value.
| |||||||||||||||||||||||||||||||||||||||
$orderBy | string Return sorted items based on property values. It can contains a comma-separated list of expressions. The expression may include the suffix "asc" for ascending or "desc" for descending, separated from the property name by one or more spaces. If "asc" or "desc" is not specified, the service MUST order by the specified property in ascending order. The sort order is the inherent order for the type of the property. Examples:Return all orders sorted by publishedAt in descending order and a secondary sort order of updatedAt in ascending order.
| |||||||||||||||||||||||||||||||||||||||
$expand | string Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
{- "total": 100,
- "count": 100,
- "value": [
- {
- "id": "string",
- "name": "string",
- "code": "string",
- "lines": [
- {
- "uri": "string"
}
]
}
]
}
Retrieves a list of lines by queries.
$top | integer [ 1 .. 100 ] Example: $top=20 The maximum number of results to show on the page (The default value is 20). | |||||||||||||||||||||||||||||||||||||||
$skip | integer Example: $skip=20 The maximum number of the items to skip (The Default value is 0). | |||||||||||||||||||||||||||||||||||||||
$nextToken | string Example: $nextToken=token A unique token to get next batch of data. (base64 format) | |||||||||||||||||||||||||||||||||||||||
$previousToken | string Example: $previousToken=token A unique token to get previous batch of data. (base64 format) | |||||||||||||||||||||||||||||||||||||||
$filter | string Return only items which matches to a condition (The operators below are listed in order of precedence from highest to lowest).
Examples:Simple example of filtering by a property value.
| |||||||||||||||||||||||||||||||||||||||
$orderBy | string Return sorted items based on property values. It can contains a comma-separated list of expressions. The expression may include the suffix "asc" for ascending or "desc" for descending, separated from the property name by one or more spaces. If "asc" or "desc" is not specified, the service MUST order by the specified property in ascending order. The sort order is the inherent order for the type of the property. Examples:Return all orders sorted by publishedAt in descending order and a secondary sort order of updatedAt in ascending order.
|
{- "total": 100,
- "count": 100,
- "value": [
- {
- "id": "string",
- "name": "string",
- "code": "string",
- "company": {
- "uri": "string"
}
}
]
}
Retrieves a list of stations by queries.
$top | integer [ 1 .. 100 ] Example: $top=20 The maximum number of results to show on the page (The default value is 20). | |||||||||||||||||||||||||||||||||||||||
$skip | integer Example: $skip=20 The maximum number of the items to skip (The Default value is 0). | |||||||||||||||||||||||||||||||||||||||
$nextToken | string Example: $nextToken=token A unique token to get next batch of data. (base64 format) | |||||||||||||||||||||||||||||||||||||||
$previousToken | string Example: $previousToken=token A unique token to get previous batch of data. (base64 format) | |||||||||||||||||||||||||||||||||||||||
$filter | string Return only items which matches to a condition (The operators below are listed in order of precedence from highest to lowest).
Examples:Simple example of filtering by a property value.
| |||||||||||||||||||||||||||||||||||||||
$orderBy | string Return sorted items based on property values. It can contains a comma-separated list of expressions. The expression may include the suffix "asc" for ascending or "desc" for descending, separated from the property name by one or more spaces. If "asc" or "desc" is not specified, the service MUST order by the specified property in ascending order. The sort order is the inherent order for the type of the property. Examples:Return all orders sorted by publishedAt in descending order and a secondary sort order of updatedAt in ascending order.
|
{- "total": 100,
- "count": 100,
- "value": [
- {
- "id": "string",
- "code": "string",
- "name": "string",
- "line": {
- "uri": "string"
}, - "area": {
- "uri": "string"
}, - "orderNum": 0,
- "isClosed": null,
- "point": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}
}
]
}
Retrieves a active product category tree by queries.
$top | integer [ 1 .. 100 ] Example: $top=20 The maximum number of results to show on the page (The default value is 20). |
$skip | integer Example: $skip=20 The maximum number of the items to skip (The Default value is 0). |
$nextToken | string Example: $nextToken=token A unique token to get next batch of data. (base64 format) |
$previousToken | string Example: $previousToken=token A unique token to get previous batch of data. (base64 format) |
parentId required | string^[0-9a-z]{24}$ Example: parentId=0123456789ab0123456789ab A unique identifier of a category/location |
$orderBy | string Return sorted items based on property values. It can contains a comma-separated list of expressions. The expression may include the suffix "asc" for ascending or "desc" for descending, separated from the property name by one or more spaces. If "asc" or "desc" is not specified, the service MUST order by the specified property in ascending order. The sort order is the inherent order for the type of the property. Examples:Return all orders sorted by publishedAt in descending order and a secondary sort order of updatedAt in ascending order.
|
{- "total": 100,
- "count": 100,
- "value": [
- {
- "id": "0123456789ab0123456789ab",
- "icon": {
- "type": "string",
- "value": "string"
}, - "parent": { },
- "name": "Cat A",
- "description": "This is a description of the product category.",
- "status": "ACTIVE",
- "sequence": 0,
- "numberOfProducts": 10,
- "children": [
- {
- "id": "0123456789ab0123456789ab",
- "icon": {
- "type": "string",
- "value": "string"
}, - "parent": { },
- "name": "Cat A",
- "description": "This is a description of the product category.",
- "status": "ACTIVE",
- "sequence": 0,
- "numberOfProducts": 10
}
]
}
]
}
Retrieves a list of product categories by queries.
$top | integer [ 1 .. 100 ] Example: $top=20 The maximum number of results to show on the page (The default value is 20). | |||||||||||||||||||||||||||||||||||||||
$skip | integer Example: $skip=20 The maximum number of the items to skip (The Default value is 0). | |||||||||||||||||||||||||||||||||||||||
$nextToken | string Example: $nextToken=token A unique token to get next batch of data. (base64 format) | |||||||||||||||||||||||||||||||||||||||
$previousToken | string Example: $previousToken=token A unique token to get previous batch of data. (base64 format) | |||||||||||||||||||||||||||||||||||||||
$filter | string Return only items which matches to a condition (The operators below are listed in order of precedence from highest to lowest).
Examples:Simple example of filtering by a property value.
| |||||||||||||||||||||||||||||||||||||||
$orderBy | string Return sorted items based on property values. It can contains a comma-separated list of expressions. The expression may include the suffix "asc" for ascending or "desc" for descending, separated from the property name by one or more spaces. If "asc" or "desc" is not specified, the service MUST order by the specified property in ascending order. The sort order is the inherent order for the type of the property. Examples:Return all orders sorted by publishedAt in descending order and a secondary sort order of updatedAt in ascending order.
| |||||||||||||||||||||||||||||||||||||||
$expand | string Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
{- "total": 100,
- "count": 100,
- "value": [
- {
- "id": "0123456789ab0123456789ab",
- "icon": {
- "type": "string",
- "value": "string"
}, - "parent": { },
- "name": "Cat A",
- "description": "This is a description of the product category.",
- "status": "ACTIVE",
- "sequence": 0
}
]
}
Create a new category.
This operation requires System Admin role
$expand | string Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
Post a category request body.
name required | string (CategoryName) The name of the product category. |
description | string |
parentId | string (ParentId) ^[0-9a-z]{24}$ A character hexadecimal string value. |
status | string (CategoryStatus) Enum: "ACTIVE" "ARCHIVED" The status of the category.
|
sequence | number (CategorySequence) The sequence of the category. This is useful when user want to customize the order when displaying category |
{- "name": "Cat A",
- "description": "string",
- "parentId": "0123456789ab0123456789ab",
- "status": "ACTIVE",
- "sequence": 0
}
{- "id": "0123456789ab0123456789ab",
- "icon": {
- "type": "string",
- "value": "string"
}, - "parent": { },
- "name": "Cat A",
- "description": "This is a description of the product category.",
- "status": "ACTIVE",
- "sequence": 0
}
Retrieves a list of count of product categories by queries.
categoryIds required | string^[0-9a-z]{24}+(?:,[0-9a-z]{24}+)*$ Example: 0123456789ab0123456789ab A list of unique identifier of a category. |
[- {
- "id": "0123456789ab0123456789ab",
- "count": 30
}
]
Retrieve a single category by id.
categoryId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of a category. |
$expand | string Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
{- "id": "0123456789ab0123456789ab",
- "icon": {
- "type": "string",
- "value": "string"
}, - "parent": { },
- "name": "Cat A",
- "description": "This is a description of the product category.",
- "status": "ACTIVE",
- "sequence": 0
}
Update a single category by id partially.
This operation requires System Admin role
categoryId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of a category. |
$expand | string Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
Patch a category request body.
name | string (CategoryName) The name of the product category. |
description | string |
parentId | string (ParentId) ^[0-9a-z]{24}$ A character hexadecimal string value. |
status | string (CategoryStatus) Enum: "ACTIVE" "ARCHIVED" The status of the category.
|
{- "name": "Cat B"
}
{- "id": "0123456789ab0123456789ab",
- "icon": {
- "type": "string",
- "value": "string"
}, - "parent": { },
- "name": "Cat A",
- "description": "This is a description of the product category.",
- "status": "ACTIVE",
- "sequence": 0
}
Delete a single category by id.
This operation requires System Admin role
A category assigned to any of products cannot be deleted.
categoryId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of a category. |
{- "code": "Unauthorized",
- "message": "Authorization has failed.",
- "target": "Token",
- "innererror": {
- "code": "TokenExpiredError"
}
}
Retrieves a list of published products across organizations by queries. Only publication.status = 'ACTIVE' products will be returned.
Use
/orgs/{orgId}/products
to get the organization's products in any publication status.
$top | integer [ 1 .. 100 ] Example: $top=20 The maximum number of results to show on the page (The default value is 20). | |||||||||||||||||||||||||||||||||||||||
$skip | integer Example: $skip=20 The maximum number of the items to skip (The Default value is 0). | |||||||||||||||||||||||||||||||||||||||
$nextToken | string Example: $nextToken=token A unique token to get next batch of data. (base64 format) | |||||||||||||||||||||||||||||||||||||||
$previousToken | string Example: $previousToken=token A unique token to get previous batch of data. (base64 format) | |||||||||||||||||||||||||||||||||||||||
$filter | string Return only items which matches to a condition (The operators below are listed in order of precedence from highest to lowest).
Examples:Simple example of filtering by a property value.
| |||||||||||||||||||||||||||||||||||||||
$orderBy | string Return sorted items based on property values. It can contains a comma-separated list of expressions. The expression may include the suffix "asc" for ascending or "desc" for descending, separated from the property name by one or more spaces. If "asc" or "desc" is not specified, the service MUST order by the specified property in ascending order. The sort order is the inherent order for the type of the property. Examples:Return all orders sorted by publishedAt in descending order and a secondary sort order of updatedAt in ascending order.
| |||||||||||||||||||||||||||||||||||||||
$expand | string Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
| |||||||||||||||||||||||||||||||||||||||
$search | string You can specify text to search. It will do free text search in product title, and description. The search is done in indexed data and support fuzzy search full-width / half-width change etc. | |||||||||||||||||||||||||||||||||||||||
$apply | string Transform and aggregate the response, such as applying a function to a property or grouping the response by a property. There are many supported types of aggregation and transformation. A full list of transformations can be found on the Nodeblocks documentation website. Transformations are specified separated by then. For example, to apply a filter and then group by a category property, the query would be $apply=filter(name eq 'xxx') then groupby((category), aggregate($count as count)). Grouping by multiple properties is supported. Grouping supports pagination when there are many groups. Certain restrictions may apply on transformations due to performance or security considerations. Examples:Group by a property and then return the top X results per group. Before transformation,
By using $apply parameter,
It will returns grouped information:
|
{- "total": 100,
- "count": 100,
- "value": [
- {
- "id": "0123456789ab0123456789ab",
- "category": {
- "id": "0123456789ab0123456789ab",
- "icon": {
- "type": "string",
- "value": "string"
}, - "parent": { },
- "name": "Cat A",
- "description": "This is a description of the product category.",
- "status": "ACTIVE",
- "sequence": 0
}, - "name": "Product A",
- "description": "This is a description of the product.",
- "dimensions": "100 x 100 x 100",
- "geoCoordinatesField": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "images": [
- {
- "id": "string",
- "type": "string",
- "url": "string"
}
], - "isPromoted": true,
- "variants": [
- {
- "id": "0123456789ab0123456789ab",
- "productId": "0123456789ab0123456789ab",
- "sku": "SKU123ABC",
- "title": "This is a title of Product variant A.",
- "description": "This is a description of Product variant A.",
- "images": [
- {
- "id": "string",
- "type": "string",
- "url": "string"
}
], - "price": {
- "amount": 1000000,
- "currency": "JPY",
- "taxable": true,
- "taxIncluded": true
}, - "customFields": {
- "region": "Asia",
- "regionCode": 100
}, - "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
], - "variantNote": "string",
- "locations": [
- {
- "id": "0123456789ab0123456789ab",
- "type": "region",
- "code": 10006,
- "name": "Hokkaido",
- "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
], - "tags": [
- "string"
], - "features": [
- {
- "name": "color",
- "value": "red"
}
], - "addressLine1": "東京都",
- "addressLine2": "目黒区",
- "addressLine3": "上目黒1-19-2",
- "postalCode": "153-0051",
- "additionalInformation": "string",
- "publication": {
- "since": "2022-01-01T00:00:00.000Z",
- "until": "2022-01-01T00:00:00.000Z",
- "status": "DRAFT",
- "publishedAt": "2022-01-01T00:00:00.000Z",
- "publishedBy": "0123456789ab0123456789ab"
}, - "customFields": {
- "region": "Asia",
- "regionCode": 100
}, - "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
]
}
Retrieves a list of products across organizations by queries. This include publication.status = 'ACTIVE', 'DRAFT' and 'ARCHIVED' products.
Only system admin can access this API.
$top | integer [ 1 .. 100 ] Example: $top=20 The maximum number of results to show on the page (The default value is 20). | |||||||||||||||||||||||||||||||||||||||
$skip | integer Example: $skip=20 The maximum number of the items to skip (The Default value is 0). | |||||||||||||||||||||||||||||||||||||||
$nextToken | string Example: $nextToken=token A unique token to get next batch of data. (base64 format) | |||||||||||||||||||||||||||||||||||||||
$previousToken | string Example: $previousToken=token A unique token to get previous batch of data. (base64 format) | |||||||||||||||||||||||||||||||||||||||
$filter | string Return only items which matches to a condition (The operators below are listed in order of precedence from highest to lowest).
Examples:Simple example of filtering by a property value.
| |||||||||||||||||||||||||||||||||||||||
$orderBy | string Return sorted items based on property values. It can contains a comma-separated list of expressions. The expression may include the suffix "asc" for ascending or "desc" for descending, separated from the property name by one or more spaces. If "asc" or "desc" is not specified, the service MUST order by the specified property in ascending order. The sort order is the inherent order for the type of the property. Examples:Return all orders sorted by publishedAt in descending order and a secondary sort order of updatedAt in ascending order.
| |||||||||||||||||||||||||||||||||||||||
$expand | string Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
| |||||||||||||||||||||||||||||||||||||||
$search | string You can specify text to search. It will do free text search in product title, and description. The search is done in indexed data and support fuzzy search full-width / half-width change etc. | |||||||||||||||||||||||||||||||||||||||
$apply | string Transform and aggregate the response, such as applying a function to a property or grouping the response by a property. There are many supported types of aggregation and transformation. A full list of transformations can be found on the Nodeblocks documentation website. Transformations are specified separated by then. For example, to apply a filter and then group by a category property, the query would be $apply=filter(name eq 'xxx') then groupby((category), aggregate($count as count)). Grouping by multiple properties is supported. Grouping supports pagination when there are many groups. Certain restrictions may apply on transformations due to performance or security considerations. Examples:Group by a property and then return the top X results per group. Before transformation,
By using $apply parameter,
It will returns grouped information:
|
{- "total": 100,
- "count": 100,
- "value": [
- {
- "id": "0123456789ab0123456789ab",
- "category": {
- "id": "0123456789ab0123456789ab",
- "icon": {
- "type": "string",
- "value": "string"
}, - "parent": { },
- "name": "Cat A",
- "description": "This is a description of the product category.",
- "status": "ACTIVE",
- "sequence": 0
}, - "name": "Product A",
- "description": "This is a description of the product.",
- "dimensions": "100 x 100 x 100",
- "geoCoordinatesField": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "images": [
- {
- "id": "string",
- "type": "string",
- "url": "string"
}
], - "isPromoted": true,
- "variants": [
- {
- "id": "0123456789ab0123456789ab",
- "productId": "0123456789ab0123456789ab",
- "sku": "SKU123ABC",
- "title": "This is a title of Product variant A.",
- "description": "This is a description of Product variant A.",
- "images": [
- {
- "id": "string",
- "type": "string",
- "url": "string"
}
], - "price": {
- "amount": 1000000,
- "currency": "JPY",
- "taxable": true,
- "taxIncluded": true
}, - "customFields": {
- "region": "Asia",
- "regionCode": 100
}, - "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
], - "variantNote": "string",
- "locations": [
- {
- "id": "0123456789ab0123456789ab",
- "type": "region",
- "code": 10006,
- "name": "Hokkaido",
- "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
], - "tags": [
- "string"
], - "features": [
- {
- "name": "color",
- "value": "red"
}
], - "addressLine1": "東京都",
- "addressLine2": "目黒区",
- "addressLine3": "上目黒1-19-2",
- "postalCode": "153-0051",
- "additionalInformation": "string",
- "publication": {
- "since": "2022-01-01T00:00:00.000Z",
- "until": "2022-01-01T00:00:00.000Z",
- "status": "DRAFT",
- "publishedAt": "2022-01-01T00:00:00.000Z",
- "publishedBy": "0123456789ab0123456789ab"
}, - "customFields": {
- "region": "Asia",
- "regionCode": 100
}, - "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
]
}
Retrieves a list of products for an organization by queries.
This operation requires user is
- a system admin
- or have owner/admin role in the organization
orgId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of an organization. |
$top | integer [ 1 .. 100 ] Example: $top=20 The maximum number of results to show on the page (The default value is 20). | |||||||||||||||||||||||||||||||||||||||
$skip | integer Example: $skip=20 The maximum number of the items to skip (The Default value is 0). | |||||||||||||||||||||||||||||||||||||||
$nextToken | string Example: $nextToken=token A unique token to get next batch of data. (base64 format) | |||||||||||||||||||||||||||||||||||||||
$previousToken | string Example: $previousToken=token A unique token to get previous batch of data. (base64 format) | |||||||||||||||||||||||||||||||||||||||
$filter | string Return only items which matches to a condition (The operators below are listed in order of precedence from highest to lowest).
Examples:Simple example of filtering by a property value.
| |||||||||||||||||||||||||||||||||||||||
$orderBy | string Return sorted items based on property values. It can contains a comma-separated list of expressions. The expression may include the suffix "asc" for ascending or "desc" for descending, separated from the property name by one or more spaces. If "asc" or "desc" is not specified, the service MUST order by the specified property in ascending order. The sort order is the inherent order for the type of the property. Examples:Return all orders sorted by publishedAt in descending order and a secondary sort order of updatedAt in ascending order.
| |||||||||||||||||||||||||||||||||||||||
$expand | string Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
{- "total": 100,
- "count": 100,
- "value": [
- {
- "id": "0123456789ab0123456789ab",
- "category": {
- "id": "0123456789ab0123456789ab",
- "icon": {
- "type": "string",
- "value": "string"
}, - "parent": { },
- "name": "Cat A",
- "description": "This is a description of the product category.",
- "status": "ACTIVE",
- "sequence": 0
}, - "name": "Product A",
- "description": "This is a description of the product.",
- "dimensions": "100 x 100 x 100",
- "geoCoordinatesField": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "images": [
- {
- "id": "string",
- "type": "string",
- "url": "string"
}
], - "isPromoted": true,
- "variants": [
- {
- "id": "0123456789ab0123456789ab",
- "productId": "0123456789ab0123456789ab",
- "sku": "SKU123ABC",
- "title": "This is a title of Product variant A.",
- "description": "This is a description of Product variant A.",
- "images": [
- {
- "id": "string",
- "type": "string",
- "url": "string"
}
], - "price": {
- "amount": 1000000,
- "currency": "JPY",
- "taxable": true,
- "taxIncluded": true
}, - "customFields": {
- "region": "Asia",
- "regionCode": 100
}, - "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
], - "variantNote": "string",
- "locations": [
- {
- "id": "0123456789ab0123456789ab",
- "type": "region",
- "code": 10006,
- "name": "Hokkaido",
- "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
], - "tags": [
- "string"
], - "features": [
- {
- "name": "color",
- "value": "red"
}
], - "addressLine1": "東京都",
- "addressLine2": "目黒区",
- "addressLine3": "上目黒1-19-2",
- "postalCode": "153-0051",
- "additionalInformation": "string",
- "publication": {
- "since": "2022-01-01T00:00:00.000Z",
- "until": "2022-01-01T00:00:00.000Z",
- "status": "DRAFT",
- "publishedAt": "2022-01-01T00:00:00.000Z",
- "publishedBy": "0123456789ab0123456789ab"
}, - "customFields": {
- "region": "Asia",
- "regionCode": 100
}, - "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
]
}
Create a new product for an organization.
This operation requires user is
- a system admin
- or have owner/admin role in the organization
orgId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of an organization. |
$expand | string Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
Post a product request body.
categoryId required | string (ObjectId) ^[0-9a-z]{24}$ A 24 character hexadecimal string value. |
name required | string (ProductName) The name of the product. |
description | string (ProductDescription) A description of the product. |
dimensions | string (ProductDimensions) The size of the product. |
imageIds | Array of strings (ObjectId) An array of product images. These are ids referring to the organization service attachments. |
object (PostGeoCoordinatesInProductRequest) The geo coordinate date of the project. | |
Array of objects (PostProductVariantRequest) An array of product variants. | |
variantNote | string (ProductVariantNote) Extra information that is added to the variant. |
locationIds | Array of strings (ProductLocationIds) An array of product location ids. Each product can have a maximum of 10 locations. |
tags | Array of strings (ProductTags) Tags that are used for filtering and search. |
Array of objects (ProductFeatures) A list of product features. For example, Color and Material. | |
addressLine1 | string (ProductAddressLine1) The product's address line 1 |
addressLine2 | string (ProductAddressLine2) The product's address line 2 |
addressLine3 | string (ProductAddressLine3) The product's address line 3 |
postalCode | string (ProductPostalCode) The product's postal code |
additionalInformation | string (ProductAdditionalInformation) Extra information that is added to the variant. |
object Publication information of the product. | |
customFields | object (CustomFields) Custom fields that have been added to the |
{- "categoryId": "0123456789ab0123456789ab",
- "name": "Product A",
- "description": "Product A description",
- "variants": [
- {
- "title": "Variant A",
- "price": {
- "amount": 1000,
- "taxable": true
}
}
]
}
{- "id": "0123456789ab0123456789ab",
- "category": {
- "id": "0123456789ab0123456789ab",
- "icon": {
- "type": "string",
- "value": "string"
}, - "parent": { },
- "name": "Cat A",
- "description": "This is a description of the product category.",
- "status": "ACTIVE",
- "sequence": 0
}, - "name": "Product A",
- "description": "This is a description of the product.",
- "dimensions": "100 x 100 x 100",
- "geoCoordinatesField": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "images": [
- {
- "id": "string",
- "type": "string",
- "url": "string"
}
], - "isPromoted": true,
- "variants": [
- {
- "id": "0123456789ab0123456789ab",
- "productId": "0123456789ab0123456789ab",
- "sku": "SKU123ABC",
- "title": "This is a title of Product variant A.",
- "description": "This is a description of Product variant A.",
- "images": [
- {
- "id": "string",
- "type": "string",
- "url": "string"
}
], - "price": {
- "amount": 1000000,
- "currency": "JPY",
- "taxable": true,
- "taxIncluded": true
}, - "customFields": {
- "region": "Asia",
- "regionCode": 100
}, - "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
], - "variantNote": "string",
- "locations": [
- {
- "id": "0123456789ab0123456789ab",
- "type": "region",
- "code": 10006,
- "name": "Hokkaido",
- "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
], - "tags": [
- "string"
], - "features": [
- {
- "name": "color",
- "value": "red"
}
], - "addressLine1": "東京都",
- "addressLine2": "目黒区",
- "addressLine3": "上目黒1-19-2",
- "postalCode": "153-0051",
- "additionalInformation": "string",
- "publication": {
- "since": "2022-01-01T00:00:00.000Z",
- "until": "2022-01-01T00:00:00.000Z",
- "status": "DRAFT",
- "publishedAt": "2022-01-01T00:00:00.000Z",
- "publishedBy": "0123456789ab0123456789ab"
}, - "customFields": {
- "region": "Asia",
- "regionCode": 100
}, - "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
Create a list of new products for an organization.
This operation requires user is
- a system admin
- or have owner/admin role in the organization
orgId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of an organization. |
$expand | string Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
Post a list of product request body.
categoryId | string (ObjectId) ^[0-9a-z]{24}$ A 24 character hexadecimal string value. |
name | string (ProductName) The name of the product. |
description | string (ProductDescription) A description of the product. |
dimensions | string (ProductDimensions) The size of the product. |
imageIds | Array of strings (ObjectId) An array of product images. These are ids referring to the organization service attachments. |
object (PostGeoCoordinatesInProductRequest) The geo coordinate date of the project. | |
Array of objects (PostProductVariantRequest) An array of product variants. | |
variantNote | string (ProductVariantNote) Extra information that is added to the variant. |
locationIds | Array of strings (ProductLocationIds) An array of product location ids. Each product can have a maximum of 10 locations. |
tags | Array of strings (ProductTags) Tags that are used for filtering and search. |
Array of objects (ProductFeatures) A list of product features. For example, Color and Material. | |
addressLine1 | string (ProductAddressLine1) The product's address line 1 |
addressLine2 | string (ProductAddressLine2) The product's address line 2 |
addressLine3 | string (ProductAddressLine3) The product's address line 3 |
postalCode | string (ProductPostalCode) The product's postal code |
additionalInformation | string (ProductAdditionalInformation) Extra information that is added to the variant. |
object Publication information of the product. | |
customFields | object (CustomFields) Custom fields that have been added to the |
[- {
- "categoryId": "0123456789ab0123456789ab",
- "name": "Product A",
- "description": "Product A description",
- "variants": [
- {
- "title": "Variant A",
- "price": {
- "amount": 1000,
- "taxable": true
}
}
]
}, - {
- "categoryId": "0123456789ab0123456789ab",
- "name": "Product B",
- "description": "Product B description",
- "variants": [
- {
- "title": "Variant B",
- "price": {
- "amount": 1000,
- "taxable": true
}
}
]
}, - {
- "categoryId": "0123456789ab0123456789ab",
- "name": "Product A",
- "description": "Product A description",
- "features": [
- {
- "name": "color",
- "value": "red"
}, - {
- "name": "size",
- "value": "s"
}, - {
- "name": "Pattern",
- "value": "check"
}
]
}, - {
- "categoryId": "0123456789ab0123456789ab",
- "name": "Product C",
- "description": "Product C description",
- "customFields": {
- "region": "Asia",
- "regionCode": 100
}
}
]
[- {
- "id": "0123456789ab0123456789ab",
- "category": {
- "id": "0123456789ab0123456789ab",
- "icon": {
- "type": "string",
- "value": "string"
}, - "parent": { },
- "name": "Cat A",
- "description": "This is a description of the product category.",
- "status": "ACTIVE",
- "sequence": 0
}, - "name": "Product A",
- "description": "This is a description of the product.",
- "dimensions": "100 x 100 x 100",
- "geoCoordinatesField": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "images": [
- {
- "id": "string",
- "type": "string",
- "url": "string"
}
], - "isPromoted": true,
- "variants": [
- {
- "id": "0123456789ab0123456789ab",
- "productId": "0123456789ab0123456789ab",
- "sku": "SKU123ABC",
- "title": "This is a title of Product variant A.",
- "description": "This is a description of Product variant A.",
- "images": [
- {
- "id": "string",
- "type": "string",
- "url": "string"
}
], - "price": {
- "amount": 1000000,
- "currency": "JPY",
- "taxable": true,
- "taxIncluded": true
}, - "customFields": {
- "region": "Asia",
- "regionCode": 100
}, - "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
], - "variantNote": "string",
- "locations": [
- {
- "id": "0123456789ab0123456789ab",
- "type": "region",
- "code": 10006,
- "name": "Hokkaido",
- "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
], - "tags": [
- "string"
], - "features": [
- {
- "name": "color",
- "value": "red"
}
], - "addressLine1": "東京都",
- "addressLine2": "目黒区",
- "addressLine3": "上目黒1-19-2",
- "postalCode": "153-0051",
- "additionalInformation": "string",
- "publication": {
- "since": "2022-01-01T00:00:00.000Z",
- "until": "2022-01-01T00:00:00.000Z",
- "status": "DRAFT",
- "publishedAt": "2022-01-01T00:00:00.000Z",
- "publishedBy": "0123456789ab0123456789ab"
}, - "customFields": {
- "region": "Asia",
- "regionCode": 100
}, - "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
]
Retrieve a single product by id.
orgId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of an organization. |
productId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of a product. |
$expand | string Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
{- "id": "0123456789ab0123456789ab",
- "category": {
- "id": "0123456789ab0123456789ab",
- "icon": {
- "type": "string",
- "value": "string"
}, - "parent": { },
- "name": "Cat A",
- "description": "This is a description of the product category.",
- "status": "ACTIVE",
- "sequence": 0
}, - "name": "Product A",
- "description": "This is a description of the product.",
- "dimensions": "100 x 100 x 100",
- "geoCoordinatesField": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "images": [
- {
- "id": "string",
- "type": "string",
- "url": "string"
}
], - "isPromoted": true,
- "variants": [
- {
- "id": "0123456789ab0123456789ab",
- "productId": "0123456789ab0123456789ab",
- "sku": "SKU123ABC",
- "title": "This is a title of Product variant A.",
- "description": "This is a description of Product variant A.",
- "images": [
- {
- "id": "string",
- "type": "string",
- "url": "string"
}
], - "price": {
- "amount": 1000000,
- "currency": "JPY",
- "taxable": true,
- "taxIncluded": true
}, - "customFields": {
- "region": "Asia",
- "regionCode": 100
}, - "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
], - "variantNote": "string",
- "locations": [
- {
- "id": "0123456789ab0123456789ab",
- "type": "region",
- "code": 10006,
- "name": "Hokkaido",
- "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
], - "tags": [
- "string"
], - "features": [
- {
- "name": "color",
- "value": "red"
}
], - "addressLine1": "東京都",
- "addressLine2": "目黒区",
- "addressLine3": "上目黒1-19-2",
- "postalCode": "153-0051",
- "additionalInformation": "string",
- "publication": {
- "since": "2022-01-01T00:00:00.000Z",
- "until": "2022-01-01T00:00:00.000Z",
- "status": "DRAFT",
- "publishedAt": "2022-01-01T00:00:00.000Z",
- "publishedBy": "0123456789ab0123456789ab"
}, - "customFields": {
- "region": "Asia",
- "regionCode": 100
}, - "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
Update a single product by id partially.
This operation requires user is
- a system admin
- or have owner/admin role in the organization
orgId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of an organization. |
productId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of a product. |
$expand | string Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
Update a product request body.
categoryId | string (ObjectId) ^[0-9a-z]{24}$ A 24 character hexadecimal string value. |
name | string (ProductName) The name of the product. |
description | string (ProductDescription) A description of the product. |
dimensions | string (ProductDimensions) The size of the product. |
imageIds | Array of strings (ObjectId) An array of product images. |
isPromoted | boolean (ProductPromotion) The promotion status of a product. |
Array of objects (GeoCoordinatesField) <= 2 items An nested array of geo coordinates. | |
Array of objects (PatchVariantInProductRequest) An array of product variants. | |
variantNote | string (ProductVariantNote) Extra information that is added to the variant. |
locationIds | Array of strings (ProductLocationIds) An array of product location ids. Each product can have a maximum of 10 locations. |
tags | Array of strings (ProductTags) Tags that are used for filtering and search. |
Array of objects (ProductFeatures) A list of product features. For example, Color and Material. | |
addressLine1 | string (ProductAddressLine1) The product's address line 1 |
addressLine2 | string (ProductAddressLine2) The product's address line 2 |
addressLine3 | string (ProductAddressLine3) The product's address line 3 |
postalCode | string (ProductPostalCode) The product's postal code |
additionalInformation | string (ProductAdditionalInformation) Extra information that is added to the variant. |
object Publication information of the product. | |
customFields | object (CustomFields) Custom fields that have been added to the |
{- "name": "Product A"
}
{- "id": "0123456789ab0123456789ab",
- "category": {
- "id": "0123456789ab0123456789ab",
- "icon": {
- "type": "string",
- "value": "string"
}, - "parent": { },
- "name": "Cat A",
- "description": "This is a description of the product category.",
- "status": "ACTIVE",
- "sequence": 0
}, - "name": "Product A",
- "description": "This is a description of the product.",
- "dimensions": "100 x 100 x 100",
- "geoCoordinatesField": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "images": [
- {
- "id": "string",
- "type": "string",
- "url": "string"
}
], - "isPromoted": true,
- "variants": [
- {
- "id": "0123456789ab0123456789ab",
- "productId": "0123456789ab0123456789ab",
- "sku": "SKU123ABC",
- "title": "This is a title of Product variant A.",
- "description": "This is a description of Product variant A.",
- "images": [
- {
- "id": "string",
- "type": "string",
- "url": "string"
}
], - "price": {
- "amount": 1000000,
- "currency": "JPY",
- "taxable": true,
- "taxIncluded": true
}, - "customFields": {
- "region": "Asia",
- "regionCode": 100
}, - "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
], - "variantNote": "string",
- "locations": [
- {
- "id": "0123456789ab0123456789ab",
- "type": "region",
- "code": 10006,
- "name": "Hokkaido",
- "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
], - "tags": [
- "string"
], - "features": [
- {
- "name": "color",
- "value": "red"
}
], - "addressLine1": "東京都",
- "addressLine2": "目黒区",
- "addressLine3": "上目黒1-19-2",
- "postalCode": "153-0051",
- "additionalInformation": "string",
- "publication": {
- "since": "2022-01-01T00:00:00.000Z",
- "until": "2022-01-01T00:00:00.000Z",
- "status": "DRAFT",
- "publishedAt": "2022-01-01T00:00:00.000Z",
- "publishedBy": "0123456789ab0123456789ab"
}, - "customFields": {
- "region": "Asia",
- "regionCode": 100
}, - "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
Delete a single product by id.
It also deletes all its variants.
This operation requires user is
- a system admin
- or have owner/admin role in the organization
orgId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of an organization. |
productId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of a product. |
{- "code": "Unauthorized",
- "message": "Authorization has failed.",
- "target": "Token",
- "innererror": {
- "code": "TokenExpiredError"
}
}
Delete multiple products by ids array in body and data
This operation requires user is
- a system admin
- or have owner/admin role in the organization
orgId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of an organization. |
delete a list of product request body.
ids | Array of strings (ObjectId) An array of product ids. |
{- "ids": [
- "0123456789ab0123456789ab"
]
}
{- "code": "BadArgument",
- "message": "Multiple invalid values in the request body.",
- "target": "RequestBody",
- "details": {
- "code": "NullValue",
- "target": "name",
- "message": "field name must not be null."
}
}
Update multiple products by ids array in body and data
This operation requires user is
- a system admin
- or have owner/admin role in the organization
orgId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of an organization. |
update a list of product request body.
ids | Array of strings (ObjectId) An array of product ids. |
object The data of the product to update. |
[- {
- "ids": [
- "0123456789ab0123456789ab"
], - "data": {
- "categoryId": "0123456789ab0123456789ab",
- "name": "Product A",
- "description": "This is a description of the product.",
- "dimensions": "100 x 100 x 100",
- "imageIds": [
- "0123456789ab0123456789ab"
], - "isPromoted": true,
- "geoCoordinatesField": [
- {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}
], - "variants": [
- {
- "id": "0123456789ab0123456789ab",
- "sku": "SKU123ABC",
- "title": "This is a title of Product variant A.",
- "description": "This is a description of Product variant A.",
- "imageIds": [
- "0123456789ab0123456789ab"
], - "price": {
- "amount": 1000000,
- "taxable": true
}, - "customFields": {
- "region": "Asia",
- "regionCode": 100
}
}
], - "variantNote": "string",
- "locationIds": [
- "0123456789ab0123456789ab"
], - "tags": [
- "string"
], - "features": [
- {
- "name": "color",
- "value": "red"
}
], - "addressLine1": "東京都",
- "addressLine2": "目黒区",
- "addressLine3": "上目黒1-19-2",
- "postalCode": "153-0051",
- "additionalInformation": "string",
- "publication": {
- "since": "2022-01-01T00:00:00.000Z",
- "until": "2022-01-01T00:00:00.000Z",
- "status": "ACTIVE"
}, - "customFields": {
- "region": "Asia",
- "regionCode": 100
}
}
}
]
{- "code": "BadArgument",
- "message": "Multiple invalid values in the request body.",
- "target": "RequestBody",
- "details": {
- "code": "NullValue",
- "target": "name",
- "message": "field name must not be null."
}
}
Copy a product by id.
This operation requires user is
- a system admin
- or have owner/admin role in the organization
productId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of a product. |
{- "id": "0123456789ab0123456789ab",
- "category": {
- "id": "0123456789ab0123456789ab",
- "icon": {
- "type": "string",
- "value": "string"
}, - "parent": { },
- "name": "Cat A",
- "description": "This is a description of the product category.",
- "status": "ACTIVE",
- "sequence": 0
}, - "name": "Product A",
- "description": "This is a description of the product.",
- "dimensions": "100 x 100 x 100",
- "geoCoordinatesField": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "images": [
- {
- "id": "string",
- "type": "string",
- "url": "string"
}
], - "isPromoted": true,
- "variants": [
- {
- "id": "0123456789ab0123456789ab",
- "productId": "0123456789ab0123456789ab",
- "sku": "SKU123ABC",
- "title": "This is a title of Product variant A.",
- "description": "This is a description of Product variant A.",
- "images": [
- {
- "id": "string",
- "type": "string",
- "url": "string"
}
], - "price": {
- "amount": 1000000,
- "currency": "JPY",
- "taxable": true,
- "taxIncluded": true
}, - "customFields": {
- "region": "Asia",
- "regionCode": 100
}, - "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
], - "variantNote": "string",
- "locations": [
- {
- "id": "0123456789ab0123456789ab",
- "type": "region",
- "code": 10006,
- "name": "Hokkaido",
- "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
], - "tags": [
- "string"
], - "features": [
- {
- "name": "color",
- "value": "red"
}
], - "addressLine1": "東京都",
- "addressLine2": "目黒区",
- "addressLine3": "上目黒1-19-2",
- "postalCode": "153-0051",
- "additionalInformation": "string",
- "publication": {
- "since": "2022-01-01T00:00:00.000Z",
- "until": "2022-01-01T00:00:00.000Z",
- "status": "DRAFT",
- "publishedAt": "2022-01-01T00:00:00.000Z",
- "publishedBy": "0123456789ab0123456789ab"
}, - "customFields": {
- "region": "Asia",
- "regionCode": 100
}, - "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
Create a list of new product variants. Variants can be created for multiple products at the same time.
This operation requires the specified organization owner role for all products that are being used
$expand | string Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
Post a product variant bulk request body.
productId | string (ObjectId) ^[0-9a-z]{24}$ A 24 character hexadecimal string value. |
sku | string (ProductVariantSku) A unique identifier for the product variant in the organization. |
title required | string (ProductVariantTitle) The title of the product variant. |
description | string (ProductVariantDescription) A description of the product variant. |
imageIds | Array of strings (ObjectId) An array of product images. These are ids referring to the organization service attachments. |
required | object Product price information |
customFields | object (CustomFields) Custom fields that have been added to the |
[- {
- "productId": "0123456789ab0123456789ab",
- "sku": "SKU123ABC",
- "title": "This is a title of Product variant A.",
- "description": "This is a description of Product variant A.",
- "imageIds": [
- "0123456789ab0123456789ab"
], - "price": {
- "amount": 1000000,
- "taxable": true
}, - "customFields": {
- "region": "Asia",
- "regionCode": 100
}
}
]
[- {
- "id": "0123456789ab0123456789ab",
- "productId": "0123456789ab0123456789ab",
- "sku": "SKU123ABC",
- "title": "This is a title of Product variant A.",
- "description": "This is a description of Product variant A.",
- "images": [
- {
- "id": "string",
- "type": "string",
- "url": "string"
}
], - "price": {
- "amount": 1000000,
- "currency": "JPY",
- "taxable": true,
- "taxIncluded": true
}, - "customFields": {
- "region": "Asia",
- "regionCode": 100
}, - "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
]
Delete multiple product variants using a list of ids. Variants can be deleted for multiple products at the same time.
This operation requires the specified organization owner role for all products that are being used
Delete a product variant bulk request body.
ids | Array of strings (ObjectId) An array of product variant ids. |
{- "ids": [
- "0123456789ab0123456789ab"
]
}
{- "code": "BadArgument",
- "message": "Multiple invalid values in the request body.",
- "target": "RequestBody",
- "details": {
- "code": "NullValue",
- "target": "name",
- "message": "field name must not be null."
}
}
Update multiple product variants using a list of ids. Variants can be updated for multiple products at the same time. Product id for variants can not be updated
This operation requires the specified organization owner role for all products that are being used
Patch a product variant bulk request body.
ids | Array of strings (ObjectId) An array of product variant ids. |
object The product variant data to update. |
[- {
- "ids": [
- "0123456789ab0123456789ab"
], - "data": {
- "sku": "SKU123ABC",
- "title": "This is a title of Product variant A.",
- "description": "This is a description of Product variant A.",
- "imageIds": [
- "0123456789ab0123456789ab"
], - "price": {
- "amount": 1000000,
- "taxable": true
}, - "customFields": {
- "region": "Asia",
- "regionCode": 100
}
}
}
]
{- "code": "BadArgument",
- "message": "Multiple invalid values in the request body.",
- "target": "RequestBody",
- "details": {
- "code": "NullValue",
- "target": "name",
- "message": "field name must not be null."
}
}
Retrieves a list of variants for the product by queries.
orgId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of an organization. |
productId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of a product. |
$top | integer [ 1 .. 100 ] Example: $top=20 The maximum number of results to show on the page (The default value is 20). | |||||||||||||||||||||||||||||||||||||||
$skip | integer Example: $skip=20 The maximum number of the items to skip (The Default value is 0). | |||||||||||||||||||||||||||||||||||||||
$nextToken | string Example: $nextToken=token A unique token to get next batch of data. (base64 format) | |||||||||||||||||||||||||||||||||||||||
$previousToken | string Example: $previousToken=token A unique token to get previous batch of data. (base64 format) | |||||||||||||||||||||||||||||||||||||||
$filter | string Return only items which matches to a condition (The operators below are listed in order of precedence from highest to lowest).
Examples:Simple example of filtering by a property value.
| |||||||||||||||||||||||||||||||||||||||
$orderBy | string Return sorted items based on property values. It can contains a comma-separated list of expressions. The expression may include the suffix "asc" for ascending or "desc" for descending, separated from the property name by one or more spaces. If "asc" or "desc" is not specified, the service MUST order by the specified property in ascending order. The sort order is the inherent order for the type of the property. Examples:Return all orders sorted by publishedAt in descending order and a secondary sort order of updatedAt in ascending order.
| |||||||||||||||||||||||||||||||||||||||
$expand | string Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
{- "total": 100,
- "count": 100,
- "value": [
- {
- "id": "0123456789ab0123456789ab",
- "productId": "0123456789ab0123456789ab",
- "sku": "SKU123ABC",
- "title": "This is a title of Product variant A.",
- "description": "This is a description of Product variant A.",
- "images": [
- {
- "id": "string",
- "type": "string",
- "url": "string"
}
], - "price": {
- "amount": 1000000,
- "currency": "JPY",
- "taxable": true,
- "taxIncluded": true
}, - "customFields": {
- "region": "Asia",
- "regionCode": 100
}, - "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
]
}
Create a new product variant.
This operation requires user is
- a system admin
- or have owner/admin role in the organization
orgId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of an organization. |
productId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of a product. |
$expand | string Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
Post a product variant request body.
sku | string (ProductVariantSku) A unique identifier for the product variant in the organization. |
title required | string (ProductVariantTitle) The title of the product variant. |
description | string (ProductVariantDescription) A description of the product variant. |
imageIds | Array of strings (ObjectId) An array of product images. These are ids referring to the organization service attachments. |
required | object Product price information |
customFields | object (CustomFields) Custom fields that have been added to the |
{- "sku": "SKU123ABC",
- "title": "This is a title of Product variant A.",
- "description": "This is a description of Product variant A.",
- "imageIds": [
- "0123456789ab0123456789ab"
], - "price": {
- "amount": 1000000,
- "taxable": true
}, - "customFields": {
- "region": "Asia",
- "regionCode": 100
}
}
{- "id": "0123456789ab0123456789ab",
- "productId": "0123456789ab0123456789ab",
- "sku": "SKU123ABC",
- "title": "This is a title of Product variant A.",
- "description": "This is a description of Product variant A.",
- "images": [
- {
- "id": "string",
- "type": "string",
- "url": "string"
}
], - "price": {
- "amount": 1000000,
- "currency": "JPY",
- "taxable": true,
- "taxIncluded": true
}, - "customFields": {
- "region": "Asia",
- "regionCode": 100
}, - "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
Retrieve a single product variant by id.
orgId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of an organization. |
productId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of a product. |
variantId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of a product variant. |
$expand | string Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
{- "id": "0123456789ab0123456789ab",
- "productId": "0123456789ab0123456789ab",
- "sku": "SKU123ABC",
- "title": "This is a title of Product variant A.",
- "description": "This is a description of Product variant A.",
- "images": [
- {
- "id": "string",
- "type": "string",
- "url": "string"
}
], - "price": {
- "amount": 1000000,
- "currency": "JPY",
- "taxable": true,
- "taxIncluded": true
}, - "customFields": {
- "region": "Asia",
- "regionCode": 100
}, - "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
Update a single product variant by id partially.
This operation requires user is
- a system admin
- or have owner/admin role in the organization
orgId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of an organization. |
productId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of a product. |
variantId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of a product variant. |
$expand | string Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
Patch a product variant request body.
sku | string (ProductVariantSku) A unique identifier for the product variant in the organization. |
title | string (ProductVariantTitle) The title of the product variant. |
description | string (ProductVariantDescription) A description of the product variant. |
imageIds | Array of strings (ObjectId) An array of product images. These are ids referring to the organization service attachments. |
object Product price information | |
customFields | object (CustomFields) Custom fields that have been added to the |
{- "sku": "SKU123ABC",
- "title": "This is a title of Product variant A.",
- "description": "This is a description of Product variant A.",
- "imageIds": [
- "0123456789ab0123456789ab"
], - "price": {
- "amount": 1000000,
- "taxable": true
}, - "customFields": {
- "region": "Asia",
- "regionCode": 100
}
}
{- "id": "0123456789ab0123456789ab",
- "productId": "0123456789ab0123456789ab",
- "sku": "SKU123ABC",
- "title": "This is a title of Product variant A.",
- "description": "This is a description of Product variant A.",
- "images": [
- {
- "id": "string",
- "type": "string",
- "url": "string"
}
], - "price": {
- "amount": 1000000,
- "currency": "JPY",
- "taxable": true,
- "taxIncluded": true
}, - "customFields": {
- "region": "Asia",
- "regionCode": 100
}, - "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
Delete a single product variant by id.
This operation requires user is
- a system admin
- or have owner/admin role in the organization
orgId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of an organization. |
productId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of a product. |
variantId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of a product variant. |
{- "code": "Unauthorized",
- "message": "Authorization has failed.",
- "target": "Token",
- "innererror": {
- "code": "TokenExpiredError"
}
}
Follow a product
productId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of a product. |
followerId | string |
followerType | string |
{- "followerId": "string",
- "followerType": "string"
}
{- "code": "BadArgument",
- "message": "Multiple invalid values in the request body.",
- "target": "RequestBody",
- "details": {
- "code": "NullValue",
- "target": "name",
- "message": "field name must not be null."
}
}
Unfollow a product
productId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of a product. |
followerId | string |
followerType | string |
{- "followerId": "string",
- "followerType": "string"
}
{- "code": "BadArgument",
- "message": "Multiple invalid values in the request body.",
- "target": "RequestBody",
- "details": {
- "code": "NullValue",
- "target": "name",
- "message": "field name must not be null."
}
}
Get product follower list
Validations
- Valid Bearer token have been specified in the request header
- Bearer token is super product token or a system internal token
productId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of a product. |
type required | string type of follow/follower examples:
| |||||||||||||||||||||||||||||||||||||||
$top | integer [ 1 .. 100 ] Example: $top=20 The maximum number of results to show on the page (The default value is 20). | |||||||||||||||||||||||||||||||||||||||
$skip | integer Example: $skip=20 The maximum number of the items to skip (The Default value is 0). | |||||||||||||||||||||||||||||||||||||||
$nextToken | string Example: $nextToken=token A unique token to get next batch of data. (base64 format) | |||||||||||||||||||||||||||||||||||||||
$previousToken | string Example: $previousToken=token A unique token to get previous batch of data. (base64 format) | |||||||||||||||||||||||||||||||||||||||
$filter | string Return only items which matches to a condition (The operators below are listed in order of precedence from highest to lowest).
Examples:Simple example of filtering by a property value.
| |||||||||||||||||||||||||||||||||||||||
$orderBy | string Return sorted items based on property values. It can contains a comma-separated list of expressions. The expression may include the suffix "asc" for ascending or "desc" for descending, separated from the property name by one or more spaces. If "asc" or "desc" is not specified, the service MUST order by the specified property in ascending order. The sort order is the inherent order for the type of the property. Examples:Return all orders sorted by publishedAt in descending order and a secondary sort order of updatedAt in ascending order.
|
{- "total": 0,
- "count": 0,
- "@nextLink": "string",
- "@previousLink": "string",
- "value": [
- {
- "followId": "userId",
- "followType": "userId",
- "followerId": "userId2",
- "followerType": "user"
}
]
}
Get user product follow list
Filtration
- filter by product id or follow id:
productId eq 'xxx'
orfollowId eq 'xxx'
will be change tofollowId eq 'xxx'
Validations
- Valid Bearer token have been specified in the request header
- Bearer token is super product token or a system internal token
userId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of a user. |
$top | integer [ 1 .. 100 ] Example: $top=20 The maximum number of results to show on the page (The default value is 20). | |||||||||||||||||||||||||||||||||||||||
$skip | integer Example: $skip=20 The maximum number of the items to skip (The Default value is 0). | |||||||||||||||||||||||||||||||||||||||
$nextToken | string Example: $nextToken=token A unique token to get next batch of data. (base64 format) | |||||||||||||||||||||||||||||||||||||||
$previousToken | string Example: $previousToken=token A unique token to get previous batch of data. (base64 format) | |||||||||||||||||||||||||||||||||||||||
$filter | string Return only items which matches to a condition (The operators below are listed in order of precedence from highest to lowest).
Examples:Simple example of filtering by a property value.
| |||||||||||||||||||||||||||||||||||||||
$orderBy | string Return sorted items based on property values. It can contains a comma-separated list of expressions. The expression may include the suffix "asc" for ascending or "desc" for descending, separated from the property name by one or more spaces. If "asc" or "desc" is not specified, the service MUST order by the specified property in ascending order. The sort order is the inherent order for the type of the property. Examples:Return all orders sorted by publishedAt in descending order and a secondary sort order of updatedAt in ascending order.
|
{- "total": 0,
- "count": 0,
- "@nextLink": "string",
- "@previousLink": "string",
- "value": [
- {
- "id": "0123456789ab0123456789ab",
- "category": {
- "id": "0123456789ab0123456789ab",
- "icon": {
- "type": "string",
- "value": "string"
}, - "parent": { },
- "name": "Cat A",
- "description": "This is a description of the product category.",
- "status": "ACTIVE",
- "sequence": 0
}, - "name": "Product A",
- "description": "This is a description of the product.",
- "dimensions": "100 x 100 x 100",
- "geoCoordinatesField": {
- "type": "Point",
- "coordinates": [
- 0,
- 0
]
}, - "images": [
- {
- "id": "string",
- "type": "string",
- "url": "string"
}
], - "isPromoted": true,
- "variants": [
- {
- "id": "0123456789ab0123456789ab",
- "productId": "0123456789ab0123456789ab",
- "sku": "SKU123ABC",
- "title": "This is a title of Product variant A.",
- "description": "This is a description of Product variant A.",
- "images": [
- {
- "id": "string",
- "type": "string",
- "url": "string"
}
], - "price": {
- "amount": 1000000,
- "currency": "JPY",
- "taxable": true,
- "taxIncluded": true
}, - "customFields": {
- "region": "Asia",
- "regionCode": 100
}, - "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
], - "variantNote": "string",
- "locations": [
- {
- "id": "0123456789ab0123456789ab",
- "type": "region",
- "code": 10006,
- "name": "Hokkaido",
- "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
], - "tags": [
- "string"
], - "features": [
- {
- "name": "color",
- "value": "red"
}
], - "addressLine1": "東京都",
- "addressLine2": "目黒区",
- "addressLine3": "上目黒1-19-2",
- "postalCode": "153-0051",
- "additionalInformation": "string",
- "publication": {
- "since": "2022-01-01T00:00:00.000Z",
- "until": "2022-01-01T00:00:00.000Z",
- "status": "DRAFT",
- "publishedAt": "2022-01-01T00:00:00.000Z",
- "publishedBy": "0123456789ab0123456789ab"
}, - "customFields": {
- "region": "Asia",
- "regionCode": 100
}, - "createdAt": "2022-01-01T00:00:00.000Z",
- "updatedAt": "2022-01-01T00:00:00.000Z"
}
]
}
Retrieves a list of attributes by queries.
$top | integer [ 1 .. 100 ] Example: $top=20 The maximum number of results to show on the page (The default value is 20). | |||||||||||||||||||||||||||||||||||||||
$skip | integer Example: $skip=20 The maximum number of the items to skip (The Default value is 0). | |||||||||||||||||||||||||||||||||||||||
$nextToken | string Example: $nextToken=token A unique token to get next batch of data. (base64 format) | |||||||||||||||||||||||||||||||||||||||
$previousToken | string Example: $previousToken=token A unique token to get previous batch of data. (base64 format) | |||||||||||||||||||||||||||||||||||||||
$filter | string Return only items which matches to a condition (The operators below are listed in order of precedence from highest to lowest).
Examples:Simple example of filtering by a property value.
| |||||||||||||||||||||||||||||||||||||||
$orderBy | string Return sorted items based on property values. It can contains a comma-separated list of expressions. The expression may include the suffix "asc" for ascending or "desc" for descending, separated from the property name by one or more spaces. If "asc" or "desc" is not specified, the service MUST order by the specified property in ascending order. The sort order is the inherent order for the type of the property. Examples:Return all orders sorted by publishedAt in descending order and a secondary sort order of updatedAt in ascending order.
| |||||||||||||||||||||||||||||||||||||||
$expand | string Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
{- "total": 100,
- "count": 100,
- "value": [
- {
- "id": "string",
- "categoryIds": [
- "string"
], - "groupName": "string",
- "items": [
- {
- "key": "string",
- "value": "string",
- "groupName": "string"
}
], - "itemGroups": [
- {
- "key": "string",
- "value": "string",
- "categoryIds": [
- "string"
]
}
], - "name": "string",
- "order": 0,
- "type": "string",
- "customFields": {
- "region": "Asia",
- "regionCode": 100
}
}
]
}
Create a new attribute
Post an attribute request body.
categoryIds | Array of strings relation to categories |
Array of objects List of select options. Used when type is 'Select' or 'MultiSelect' | |
Array of objects List of groups to group together select options. Used when type is 'Select' or 'MultiSelect' | |
name required | string name |
order | number order |
type required | string type of the attribute, one of 'Boolean', 'Text', 'Number', 'Select', 'MultiSelect' |
customFields | object (CustomFields) Custom fields that have been added to the |
{- "categoryIds": [
- "string"
], - "items": [
- {
- "key": "string",
- "value": "string",
- "groupName": "string"
}
], - "itemGroups": [
- {
- "key": "string",
- "value": "string",
- "categoryIds": [
- "string"
]
}
], - "name": "string",
- "order": 0,
- "type": "string",
- "customFields": {
- "region": "Asia",
- "regionCode": 100
}
}
{- "id": "string",
- "categoryIds": [
- "string"
], - "groupName": "string",
- "items": [
- {
- "key": "string",
- "value": "string",
- "groupName": "string"
}
], - "itemGroups": [
- {
- "key": "string",
- "value": "string",
- "categoryIds": [
- "string"
]
}
], - "name": "string",
- "order": 0,
- "type": "string",
- "customFields": {
- "region": "Asia",
- "regionCode": 100
}
}
Update a single attribute by id partially.
This operation requires System Admin role
attributeId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of a attribute. |
Patch an attribute request body.
categoryIds | Array of strings relation to categories |
Array of objects list of select options, used when type is 'Select' or 'MultiSelect' | |
name | string name |
order | number order |
type | string type of the attribute, one of 'Boolean', 'Text', 'Number', 'Select', 'MultiSelect' |
{- "categoryIds": [
- "string"
], - "items": [
- {
- "key": "string",
- "value": "string",
- "groupName": "string"
}
], - "name": "string",
- "order": 0,
- "type": "string"
}
{- "id": "string",
- "categoryIds": [
- "string"
], - "groupName": "string",
- "items": [
- {
- "key": "string",
- "value": "string",
- "groupName": "string"
}
], - "itemGroups": [
- {
- "key": "string",
- "value": "string",
- "categoryIds": [
- "string"
]
}
], - "name": "string",
- "order": 0,
- "type": "string",
- "customFields": {
- "region": "Asia",
- "regionCode": 100
}
}
Delete a single attribute by id.
This operation requires System Admin role
attributeId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of a attribute. |
{- "code": "Unauthorized",
- "message": "Authorization has failed.",
- "target": "Token",
- "innererror": {
- "code": "TokenExpiredError"
}
}
Retrieves a list of attachments for organization
orgId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of an organization. |
$top | integer [ 1 .. 100 ] Example: $top=20 The maximum number of results to show on the page (The default value is 20). | |||||||||||||||||||||||||||||||||||||||
$skip | integer Example: $skip=20 The maximum number of the items to skip (The Default value is 0). | |||||||||||||||||||||||||||||||||||||||
$nextToken | string Example: $nextToken=token A unique token to get next batch of data. (base64 format) | |||||||||||||||||||||||||||||||||||||||
$previousToken | string Example: $previousToken=token A unique token to get previous batch of data. (base64 format) | |||||||||||||||||||||||||||||||||||||||
$filter | string Return only items which matches to a condition (The operators below are listed in order of precedence from highest to lowest).
Examples:Simple example of filtering by a property value.
| |||||||||||||||||||||||||||||||||||||||
$orderBy | string Return sorted items based on property values. It can contains a comma-separated list of expressions. The expression may include the suffix "asc" for ascending or "desc" for descending, separated from the property name by one or more spaces. If "asc" or "desc" is not specified, the service MUST order by the specified property in ascending order. The sort order is the inherent order for the type of the property. Examples:Return all orders sorted by publishedAt in descending order and a secondary sort order of updatedAt in ascending order.
| |||||||||||||||||||||||||||||||||||||||
$expand | string Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
{- "total": 100,
- "count": 100,
- "value": [
- {
- "id": "string",
- "isPublic": true,
- "ownerId": "string",
- "ownerType": "string",
- "type": "string",
- "url": "string"
}
]
}
Organization user can create attachment for its organization, and use it as product image etc.
orgId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of an organization. |
{- "id": "string",
- "isPublic": true,
- "ownerId": "string",
- "ownerType": "string",
- "type": "string",
- "url": "string"
}
Retrieves one attrachment
orgId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of an organization. |
attachmentId required | string^[0-9a-z]{24}$ Example: 0123456789ab0123456789ab A unique identifier of an organization. |
{- "id": "string",
- "isPublic": true,
- "ownerId": "string",
- "ownerType": "string",
- "type": "string",
- "url": "string"
}
Retrieves a list of attachments
$top | integer [ 1 .. 100 ] Example: $top=20 The maximum number of results to show on the page (The default value is 20). | |||||||||||||||||||||||||||||||||||||||
$skip | integer Example: $skip=20 The maximum number of the items to skip (The Default value is 0). | |||||||||||||||||||||||||||||||||||||||
$nextToken | string Example: $nextToken=token A unique token to get next batch of data. (base64 format) | |||||||||||||||||||||||||||||||||||||||
$previousToken | string Example: $previousToken=token A unique token to get previous batch of data. (base64 format) | |||||||||||||||||||||||||||||||||||||||
$filter | string Return only items which matches to a condition (The operators below are listed in order of precedence from highest to lowest).
Examples:Simple example of filtering by a property value.
| |||||||||||||||||||||||||||||||||||||||
$orderBy | string Return sorted items based on property values. It can contains a comma-separated list of expressions. The expression may include the suffix "asc" for ascending or "desc" for descending, separated from the property name by one or more spaces. If "asc" or "desc" is not specified, the service MUST order by the specified property in ascending order. The sort order is the inherent order for the type of the property. Examples:Return all orders sorted by publishedAt in descending order and a secondary sort order of updatedAt in ascending order.
| |||||||||||||||||||||||||||||||||||||||
$expand | string Include extra information that are not included in responses by default in the response.
By default, the fields that supports this query contain only You can expand recursively by specifying nested fields after a dot (.). until For example, requesting You can use the expand param on any endpoint which returns expandable fields, including list, create, and update endpoints. You can expand multiple objects at once by identifying multiple items in comma-separated style. Examples:Include full category and organization information in the response. Before expanding,
By using $expand parameter,
It will returns full information:
|
{- "total": 100,
- "count": 100,
- "value": [
- {
- "id": "string",
- "isPublic": true,
- "ownerId": "string",
- "ownerType": "string",
- "type": "string",
- "url": "string"
}
]
}
Retrieves a list of attachment upload url. You need to specify a content length, and content type of the files you would like to upload After getting the upload url, you can upload the file to the url with PUT method, and the file will be uploaded to the cloud storage. After uploading the file, you need to call the create attachment api to create the attachment.
Note that the file you upload later must much the content length and content type you specified in the query.
contentLength required | number Example: contentLength=100000 The contentLengh of the object to upload |
contentType required | string Example: contentType=image/png The contentType of the object to upload |
{- "code": "BadArgument",
- "message": "Multiple invalid values in the request body.",
- "target": "RequestBody",
- "details": {
- "code": "NullValue",
- "target": "name",
- "message": "field name must not be null."
}
}