Create review
Developing
POST
/api/v1/openapi/create_review
Request
Body Params application/json
order_id
string
optional
product_id
integer
optional
rating
enum<integer>
required
Allowed values:
12345
author
string
required
>= 0 characters<= 120 characters
author_email
string
optional
author_phone
string
optional
author_country
string
optional
title
string
optional
<= 300 characters
content
string
optional
<= 10000 characters
commented_at
string
required
item_type
string
optional
<= 120 characters
source
enum<string>
required
Allowed values:
CSV uploadedAliExpressAmazonStore frontStore linkEmail requestAutoShopQR CodeShopee
tag
string
optional
is_verified
enum<integer>
required
Allowed values:
01
is_featured
enum<integer>
required
Allowed values:
01
is_published
enum<integer>
required
Allowed values:
01
is_top
enum<integer>
required
Allowed values:
01
media
object
optional
images
array[string]
optional
<= 10 items
thumbnails
array[string]
optional
video
string
optional
video_thumbnail
string
optional
reply
object
optional
content
string
optional
reply_at
string
optional
Example
{
"rating": 5,
"author": "Trustoo",
"commented_at": "2025-06-20 00:00:00",
"source": "Shop",
"is_verified": 0,
"is_featured": 1,
"is_published": 0,
"is_top": 0,
"author_country": "US",
"author_phone": "",
"tag": "",
"content": "this is a test",
"media": {
"images": [
],
"thumbnails": [
],
"video": "",
"video_thumbnail": ""
},
"reply": {
"content": "Thank you",
"reply_at": "2025-06-20 00:00:00"
},
"author_email": "[email protected]",
"order_id": "",
"product_id": 0,
"title": "test",
"item_type": "Red"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://rapi.trustoo.io/api/v1/openapi/create_review' \
--header 'Content-Type: application/json' \
--data-raw '{
"rating": 5,
"author": "Trustoo",
"commented_at": "2025-06-20 00:00:00",
"source": "Shop",
"is_verified": 0,
"is_featured": 1,
"is_published": 0,
"is_top": 0,
"author_country": "US",
"author_phone": "",
"tag": "",
"content": "this is a test",
"media": {
"images": [
],
"thumbnails": [
],
"video": "",
"video_thumbnail": ""
},
"reply": {
"content": "Thank you",
"reply_at": "2025-06-20 00:00:00"
},
"author_email": "[email protected]",
"order_id": "",
"product_id": 0,
"title": "test",
"item_type": "Red"
}'
Responses
🟢200OK
application/json
Body
object {0}
Example
{}
Modified at 2025-06-20 11:21:38