Trustoo
  1. Reviews Data API
Trustoo
  • Reviews Widget Integration
  • Reviews Data API
    • API Quick Start
    • Response Code
    • Webhook Description
    • Create shop webhook
      POST
    • Update shop webhook
      PUT
    • Delete shop webhook
      DELETE
    • Get shop webhooks
      GET
    • Get review list
      GET
    • Get order list
      GET
    • Get customer event list
      GET
    • Unsubscribe
      POST
    • Get the video upload url
      GET
    • Create review
      POST
  1. Reviews Data API

Create review

Developing
POST
/api/v1/openapi/create_review

Request

Body Params application/json
order_id
string 
optional
Shopify order ID
product_id
integer 
optional
Shopify product ID, if product ID is 0, create store review
rating
enum<integer> 
required
Rating
Allowed values:
12345
author
string 
required
Author
>= 0 characters<= 120 characters
author_email
string 
optional
Author email
author_phone
string 
optional
Author phone
author_country
string 
optional
Author region
title
string 
optional
Review title
<= 300 characters
content
string 
optional
Review content
<= 10000 characters
commented_at
string 
required
Review time
item_type
string 
optional
Item type
<= 120 characters
source
enum<string> 
required
Source
Allowed values:
CSV uploadedAliExpressAmazonStore frontStore linkEmail requestAutoShopQR CodeShopee
tag
string 
optional
Tag
is_verified
enum<integer> 
required
Is verified: 1-Yes 0-No
Allowed values:
01
is_featured
enum<integer> 
required
Is featured: 1-Yes 0-No
Allowed values:
01
is_published
enum<integer> 
required
Is published: 1-Yes 0-No
Allowed values:
01
is_top
enum<integer> 
required
Is pinned: 1-Yes 0-No
Allowed values:
01
media
object 
optional
Media
images
array[string]
optional
Image URLs list
<= 10 items
thumbnails
array[string]
optional
Thumbnail URLs list
video
string 
optional
Video URL
video_thumbnail
string 
optional
Video thumbnail URL
reply
object 
optional
Reply
content
string 
optional
Reply content
reply_at
string 
optional
Reply time
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
Previous
Get the video upload url
Built with