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 shop webhook

POST
/api/v1/openapi/create_shop_webhook

Request

Header Params
Public-Token
string 
optional
Example:
7ygMzD/8/cpvR8DN8rquVQ==
Sign
string 
optional
Example:
7cc8d948c41a6d0dc0397f71ed771a8098fa0bc5e2c058558065540a9b7bd308
Timestamp
string 
optional
Example:
1750417404
Body Params application/json
topic
string 
required
webhook topic: review/created, review/updated, review/deleted,customer_event/created
url
string 
required
webhook url
Example
{
    "topic": "review/created",
    "url": "http://api.trustoo.io/webhook"
}

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_shop_webhook' \
--header 'Public-Token: 7ygMzD/8/cpvR8DN8rquVQ==' \
--header 'Sign: 7cc8d948c41a6d0dc0397f71ed771a8098fa0bc5e2c058558065540a9b7bd308' \
--header 'Timestamp: 1750417404' \
--header 'Content-Type: application/json' \
--data-raw '{
    "topic": "review/created",
    "url": "http://api.trustoo.io/webhook"
}'

Responses

🟢200OK
application/json
Body
code
integer 
required
status code
message
string 
required
request_id
string 
required
data
object 
required
id
string 
required
webhook id
topic
string 
required
webhook topic
url
string 
required
webhook url
created_at
string 
required
updated_at
string 
required
Example
{"code":0,"message":"success","time":1750417608,"request_id":"dbf9af0f0436ee4f86ebee64e3828555","data":{"id":"19","topic":"review/created","url":"http://api.trustoo.io/webhook","created_at":"2025-06-20T11:06:48Z","updated_at":"2025-06-20 11:06:48"}}
Modified at 2025-06-20 11:06:46
Previous
Webhook Description
Next
Update shop webhook
Built with