Skip to content

Documentation ProductService (1.1)

Download OpenAPI description
Languages
Servers

https://customer-slug.api-se.norce.tech/commerce/product/1.1/

Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations

Request

Inserts a product review and returns the new list. Likes and Dislikes will be set to zero.

Query
cultureCodestring

Specifies in which language to display culture specific information. If none is supplied, value is resolved from Application.

Bodyrequired

The actual Review to insert. Likes and Dislikes will be ignored and set to zero.

Idinteger or null(int32)

The internal id of the review. Null or left out when creating new reviews.

ReferenceIdinteger(int32)

The internal product id of the review. Or if the review is for some other entity, then it is the entity Id.

Namestring

The name of the reviewer. MaxLength: 255.

Emailstring

The email address of the reviewer. MaxLength: 255.

Textstring

The review text. MaxLength: max.

Urlstring

A Url to some external source referenced by the reviewer. MaxLength: 255.

ImagePathstring

A Url to some external image uploaded by the reviewer. MaxLength: 255.

Scorenumber(decimal)

The review score, if scores are kept. It is up to the application to define the score range.

Datestring(date-time)

The date of the review.

Likesinteger(int32)

Number of likes. See UpdateProductReviewLikes for information about how to update this.

Dislikesinteger(int32)

Number of dislikes. See UpdateProductReviewLikes for information about how to update this.

IsPublishedboolean or null

Shows if review is published. Applications can have new reviews to not be published and later after internal review on the content have it published.

curl -i -X POST \
  https://customer-slug.api-se.norce.tech/commerce/product/1.1/InsertProductReview \
  -H 'Content-Type: application/json' \
  -d '{
    "Id": 0,
    "ReferenceId": 0,
    "Name": "string",
    "Email": "string",
    "Text": "string",
    "Url": "string",
    "ImagePath": "string",
    "Score": 0,
    "Date": "2019-08-24T14:15:22Z",
    "Likes": 0,
    "Dislikes": 0,
    "IsPublished": true
  }'

Responses

Success

BodyArray [
Idinteger or null(int32)

The internal id of the review. Null or left out when creating new reviews.

ReferenceIdinteger(int32)

The internal product id of the review. Or if the review is for some other entity, then it is the entity Id.

Namestring

The name of the reviewer. MaxLength: 255.

Emailstring

The email address of the reviewer. MaxLength: 255.

Textstring

The review text. MaxLength: max.

Urlstring

A Url to some external source referenced by the reviewer. MaxLength: 255.

ImagePathstring

A Url to some external image uploaded by the reviewer. MaxLength: 255.

Scorenumber(decimal)

The review score, if scores are kept. It is up to the application to define the score range.

Datestring(date-time)

The date of the review.

Likesinteger(int32)

Number of likes. See UpdateProductReviewLikes for information about how to update this.

Dislikesinteger(int32)

Number of dislikes. See UpdateProductReviewLikes for information about how to update this.

IsPublishedboolean or null

Shows if review is published. Applications can have new reviews to not be published and later after internal review on the content have it published.

]
Response
[ { "Id": 0, "ReferenceId": 0, "Name": "string", "Email": "string", "Text": "string", "Url": "string", "ImagePath": "string", "Score": 0, "Date": "2019-08-24T14:15:22Z", "Likes": 0, "Dislikes": 0, "IsPublished": true } ]

Request

Lists reviews for a product. Only published Reviews will be listed.

Query
productIdinteger(int32)required

The internal id of the product for which reviews are listed.

cultureCodestring

Specifies in which language to display culture specific information. If none is supplied, value is resolved from Application.

curl -i -X GET \
  'https://customer-slug.api-se.norce.tech/commerce/product/1.1/ListProductReviews?productId=0'

Responses

Success

BodyArray [
Idinteger or null(int32)

The internal id of the review. Null or left out when creating new reviews.

ReferenceIdinteger(int32)

The internal product id of the review. Or if the review is for some other entity, then it is the entity Id.

Namestring

The name of the reviewer. MaxLength: 255.

Emailstring

The email address of the reviewer. MaxLength: 255.

Textstring

The review text. MaxLength: max.

Urlstring

A Url to some external source referenced by the reviewer. MaxLength: 255.

ImagePathstring

A Url to some external image uploaded by the reviewer. MaxLength: 255.

Scorenumber(decimal)

The review score, if scores are kept. It is up to the application to define the score range.

Datestring(date-time)

The date of the review.

Likesinteger(int32)

Number of likes. See UpdateProductReviewLikes for information about how to update this.

Dislikesinteger(int32)

Number of dislikes. See UpdateProductReviewLikes for information about how to update this.

IsPublishedboolean or null

Shows if review is published. Applications can have new reviews to not be published and later after internal review on the content have it published.

]
Response
[ { "Id": 0, "ReferenceId": 0, "Name": "string", "Email": "string", "Text": "string", "Url": "string", "ImagePath": "string", "Score": 0, "Date": "2019-08-24T14:15:22Z", "Likes": 0, "Dislikes": 0, "IsPublished": true } ]

Request

Lists all reviews for all products. Only published Reviews will be listed.

Query
cultureCodestring

Specifies in which language to display culture specific information. If none is supplied, value is resolved from Application.

curl -i -X GET \
  https://customer-slug.api-se.norce.tech/commerce/product/1.1/ListProductReviewsAll

Responses

Success

BodyArray [
Idinteger or null(int32)

The internal id of the review. Null or left out when creating new reviews.

ReferenceIdinteger(int32)

The internal product id of the review. Or if the review is for some other entity, then it is the entity Id.

Namestring

The name of the reviewer. MaxLength: 255.

Emailstring

The email address of the reviewer. MaxLength: 255.

Textstring

The review text. MaxLength: max.

Urlstring

A Url to some external source referenced by the reviewer. MaxLength: 255.

ImagePathstring

A Url to some external image uploaded by the reviewer. MaxLength: 255.

Scorenumber(decimal)

The review score, if scores are kept. It is up to the application to define the score range.

Datestring(date-time)

The date of the review.

Likesinteger(int32)

Number of likes. See UpdateProductReviewLikes for information about how to update this.

Dislikesinteger(int32)

Number of dislikes. See UpdateProductReviewLikes for information about how to update this.

IsPublishedboolean or null

Shows if review is published. Applications can have new reviews to not be published and later after internal review on the content have it published.

]
Response
[ { "Id": 0, "ReferenceId": 0, "Name": "string", "Email": "string", "Text": "string", "Url": "string", "ImagePath": "string", "Score": 0, "Date": "2019-08-24T14:15:22Z", "Likes": 0, "Dislikes": 0, "IsPublished": true } ]

Request

Updates likes/dislikes on review.

Query
productIdinteger(int32)required

Product internal id of the review.

reviewIdinteger(int32)required

The internal id of the review to like/dislike.

doLikebooleanrequired

True or false depending on like or dislike.

cultureCodestring

Specifies in which language to display culture specific information. If none is supplied, value is resolved from Application.

curl -i -X POST \
  'https://customer-slug.api-se.norce.tech/commerce/product/1.1/UpdateProductReviewLikes?productId=0&reviewId=0&doLike=true'

Responses

Success

BodyArray [
Idinteger or null(int32)

The internal id of the review. Null or left out when creating new reviews.

ReferenceIdinteger(int32)

The internal product id of the review. Or if the review is for some other entity, then it is the entity Id.

Namestring

The name of the reviewer. MaxLength: 255.

Emailstring

The email address of the reviewer. MaxLength: 255.

Textstring

The review text. MaxLength: max.

Urlstring

A Url to some external source referenced by the reviewer. MaxLength: 255.

ImagePathstring

A Url to some external image uploaded by the reviewer. MaxLength: 255.

Scorenumber(decimal)

The review score, if scores are kept. It is up to the application to define the score range.

Datestring(date-time)

The date of the review.

Likesinteger(int32)

Number of likes. See UpdateProductReviewLikes for information about how to update this.

Dislikesinteger(int32)

Number of dislikes. See UpdateProductReviewLikes for information about how to update this.

IsPublishedboolean or null

Shows if review is published. Applications can have new reviews to not be published and later after internal review on the content have it published.

]
Response
[ { "Id": 0, "ReferenceId": 0, "Name": "string", "Email": "string", "Text": "string", "Url": "string", "ImagePath": "string", "Score": 0, "Date": "2019-08-24T14:15:22Z", "Likes": 0, "Dislikes": 0, "IsPublished": true } ]
Operations
Operations
Operations