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
  1. Reviews Data API

Update shop webhook

PUT
/api/v1/open_api/update_shop_webhook

Request

Header Params
Public-Token
string 
optional
Example:
GfKu22TCaj4gULtrA3/OgA==
Sign
string 
optional
Example:
c3f6910a4dc12969c819f47621e5adf608e2a33f4db0575988bd4fc19173a582
Timestamp
string 
optional
Example:
1699934592
Body Params application/json
id
integer 
required
webhook id
topic
string 
required
webhook topic: review/created, review/updated, review/deleted
url
string 
required
webhook url
Example
{
  "id": 0,
  "topic": "string",
  "url": "string"
}

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 PUT 'https://api.trustoo.io/api/v1/open_api/update_shop_webhook' \
--header 'Public-Token: GfKu22TCaj4gULtrA3/OgA==' \
--header 'Sign: c3f6910a4dc12969c819f47621e5adf608e2a33f4db0575988bd4fc19173a582' \
--header 'Timestamp: 1699934592' \
--header 'Content-Type: application/json' \
--data-raw '{
    "id": 0,
    "topic": "string",
    "url": "string"
}'

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": 2000,
  "message": "OK",
  "request_id": "42c31968-5139-4e7e-a16f-26624cd8c690",
  "data": {
    "id": "1",
    "topic": "review/created",
    "url": "https://trustoo.io/webhook",
    "created_at": "2024-08-28 08:32:31",
    "updated_at": "2024-08-28 08:32:31"
  }
}
Modified at 2024-08-28 09:01:45
Previous
Create shop webhook
Next
Delete shop webhook
Built with