Create a review

POST/commerce/{connection_id}/review

Parameters

fieldsstring array
Fields to return
rawstring
Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
connection_idstring required
ID of the connection

Payload

idstring
created_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
item_idstring
Reference to the product being reviewed (reference to CommerceItem)
item_variant_idstring
Optional reference to specific variant if applicable (reference to CommerceCommerceItemvariant)
location_idstring
(reference to CommerceLocation)
ratingnumber
1-5 rating
titlestring
contentstring
author_namestring
author_emailstring
author_avatar_urlstring
author_locationstring
verified_purchaseboolean
helpful_votesnumber
unhelpful_votesnumber
media array
Photosvideos attached to the review
status enum
Valid values:
"PENDING"
"APPROVED"
"REJECTED"
"SPAM"
is_verifiedboolean
is_featuredboolean
is_publicboolean
comments array
metadata array
urlstring

Returns

idstring
created_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
item_idstring
Reference to the product being reviewed (reference to CommerceItem)
item_variant_idstring
Optional reference to specific variant if applicable (reference to CommerceCommerceItemvariant)
location_idstring
(reference to CommerceLocation)
ratingnumber
1-5 rating
titlestring
contentstring
author_namestring
author_emailstring
author_avatar_urlstring
author_locationstring
verified_purchaseboolean
helpful_votesnumber
unhelpful_votesnumber
media array
Photosvideos attached to the review
status enum
Valid values:
"PENDING"
"APPROVED"
"REJECTED"
"SPAM"
is_verifiedboolean
is_featuredboolean
is_publicboolean
comments array
metadata array
urlstring
const options = {
  method: 'POST',
  url: 'https://api.unified.to/commerce/5de520f96e439b002043d8dc/review',
  headers: {
    authorization: 'bearer .....'
  },
  data: undefined,
  params: {
    fields: '',
    raw: '',
  }
};

const results = await axios.request(options);
Are we missing anything? Let us know
Was this page helpful?