younifyd
Menu

Submit Comment

Submit a comment

POST/data/submitreviewcomment.json

Use it in a workflow

  1. Add a step and choose the Bazaarvoice connector.
  2. Pick the Submit Comment action (under submission).
  3. Fill in the fields below, then reference the result from later steps as {{submitComment.response.data}}.

Request

Query parameters

ApiVersionstringrequired

The API version, e.g. 5.4.

ProductIdstringrequired

The id of the product that this content is being submitted on.

reviewIdstringrequired

A ReviewId is required for all review comment submissions.

PassKeystringrequired

API key is required to authenticate API user and check permission to access particular client's data.

Headers

X-Forwarded-Fornumber

IP address of content author. This header is only necessary when performing submissions from your server. See Authenticity Tutorial for more information. Per the Bazaarvoice Authenticity Policy, you must send author IP address attached to each submission. If you fail to send author IP address with your submission, Bazaarvoice may take any action deemed necessary in Bazaarvoice’s sole discretion to protect the integrity of the network. Such actions may include but are not limited to: rejection of your content, halting syndication of your content on the Bazaarvoice network, revocation of your API key, or revocation of your API license. Alert Failure to submit this field will result in your content being ineligible for syndication, authenticity or other business processes.

Content-Typestringrequired

The media-type type of the request body. Value must be application/x-www-form-urlencoded. Required This field is required in all API requests.

Request body

Enter the body as JSON in the step's Body field.

Actionstring

The submission action to take -- either 'Action=', 'Action=Preview' or 'Action=Submit'. 'Action=' will show information that can be used to build a submission form, 'Action=Preview' will show a draft of the content to be submitted; 'Action=Submit' will submit the content. If 'Action=Submit', the request must be an HTTP POST.

CommentTextstring

Contains the text of the comment.

fpstring

Fingerprint of content author's device. See the Authenticity Tutorial for more information. Per the Bazaarvoice Authenticity Policy, you must send a device fingerprint attached to each submission. If you fail to send a device fingerprint with your submission, Bazaarvoice may take any action deemed necessary in Bazaarvoice’s sole discretion to protect the integrity of the network. Such actions may include but are not limited to: rejection of your content, halting syndication of your content on the Bazaarvoice network, revocation of your API key, or revocation of your API license. Alert: Failure to submit this field will result in your content being ineligible for syndication, authenticity or other business processes.

CampaignIdstring

Arbitrary text that may be saved alongside content to indicate vehicle by which content was captured, e.g. “post-purchase email”.

HostedAuthentication_AuthenticationEmailstring

Email address where the submitter will receive the confirmation email. If you are configured to use hosted email authentication, this parameter is required. See the Authenticate User method for more information on hosted authentication.

HostedAuthentication_CallbackUrlstring

URL of the link contained in the user authentication email. This should point to a landing page where a web application exists to complete the user authentication process. The host for the URL must be one of the domains configured for the client. The link in the email will contain a user authentication token (authtoken) that is used to verify the submitter. If you are configured to use hosted email authentication, this parameter is required. See the hosted authentication tutorial for more information.

Localestring

Locale to display Labels, Configuration, Product Attributes and Category Attributes in. The default value is the locale defined in the display associated with the API key. Alert: Failure to submit this field will result in your content being ineligible for syndication, authenticity or other business processes.

SendEmailAlertWhenPublishedboolean

Boolean indicating whether or not the user wants to be notified when his/her content is published.

userstring

Value of the encrypted user. This parameter demonstrates that a user has been authenticated. Note that the UserId parameter does not contain authentication information and should not be used for hosted authentication. See the Authenticate User method for more information.

useridstring

User's external ID. This value should come from your authentication system. See Client-Mastered Authentication for more information.

UserEmailstring

User's email address.

UserLocationstring

User location text

UserNicknamestring

User nickname display text.

json
{
  "Action": "submit",
  "CommentText": "Testing for products",
  "fp": "0400Ia/vP4SUWbEXk1Rjuv1iJmSjiw6jjNGA14xr7X6xRXldg3Eo6XtD78oKt7mA8bo/mtBit",
  "CampaignId": "campaign1",
  "HostedAuthentication_AuthenticationEmail": "dummy@dummy.com",
  "HostedAuthentication_CallbackUrl": "https://dummy.com",
  "Locale": "en_US",
  "SendEmailAlertWhenPublished": "true",
  "user": "4bd24fd580c77ab1d86b3ea3738603db646174653d3230323330393232267573657269643d74657374693226656d61696c616464726573733d746573747368726125343062762e636f6d26757365726e616d653d736b686172266d61786167653d3930267375626a6563746964733d70726f647563743031",
  "userid": "testi2",
  "UserEmail": "dummy@dummy.com",
  "UserLocation": "USA"
}

Response

Returns 200 with an object. Read it in later steps with {{submitComment.response.data.<field>}}.

Dataobject
HasErrorsboolean
Formarray<object>
FormErrorsobject
TypicalHoursToPostnumber

The typical number of hours it takes for a comment to be posted.

Commentobject
SendEmailAlertWhenPublishedboolean

Flag indicating whether to send an email alert when the comment is published.

SubmissionTimestring

The submission time of the comment.

TypicalHoursToPostnumber

The typical number of hours it takes for the comment to be posted.

Idstring

The ID of the comment.

SubmissionIdstring

The submission ID of the comment.

CommentTextstring

The text content of the comment.

SubmissionIdstring

The submission ID.

Localestring

The locale of the comment.

Errorsarray<object>
json
{
  "Data": {},
  "HasErrors": false,
  "Form": [
    {}
  ],
  "FormErrors": {},
  "TypicalHoursToPost": 0,
  "Comment": {
    "SendEmailAlertWhenPublished": false,
    "SubmissionTime": "string",
    "TypicalHoursToPost": 0,
    "Id": "string",
    "SubmissionId": "string",
    "CommentText": "string"
  },
  "SubmissionId": "string",
  "Locale": "string",
  "Errors": [
    {}
  ]
}

Need more? See the Bazaarvoice guide for connection setup and behaviour shared by every action.

Was this page helpful?