1. Under development
Trustoo
  • Reviews Widget Integration
  • Reviews Data API
    • API Quick Start
    • Response Code
    • Webhook Description
    • Under development
      • Get OAuth2 Authorization URL
        GET
      • OAuth2 Merchant Authorization
        GET
      • OAuth2 Get Access Token
        POST
      • Get Shop OAuth Installation Status
        GET
    • Create shop webhook
      POST
    • Update shop webhook
      POST
    • Delete shop webhook
      POST
    • Get shop webhooks
      GET
    • Get review detail
      GET
    • Get review list
      GET
    • Get order list
      GET
    • Get rating
      GET
    • Get customer event list
      GET
    • Unsubscribe
      POST
    • Get the video upload url
      GET
    • Create review
      POST
    • Delete review
      POST
    • Create customer exclusion
      POST
    • Delete customer exclusion
      POST
    • Get customer exclusion list
      GET
  • Schemas
    • Sample Schemas
      • Pet
      • Category
      • Tag
  1. Under development

OAuth2 Get Access Token

POST
/api/v1/openapi/oauth/token
Exchange authorization_code or refresh_token for an access_token.

Request

Body Params application/json

Example
{
    "grant_type": "authorization_code",
    "client_id": "string",
    "client_secret": "string",
    "code": "string",
    "redirect_uri": "string",
    "refresh_token": "string",
    "shop_id": 0,
    "myshopify_domain": "string",
    "scope": "string"
}

Request Code 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 'https://rapi.trustoo.io/api/v1/openapi/oauth/token' \
--header 'Content-Type: application/json' \
--data '{
    "grant_type": "authorization_code",
    "client_id": "string",
    "client_secret": "string",
    "code": "string",
    "redirect_uri": "string",
    "refresh_token": "string",
    "shop_id": 0,
    "myshopify_domain": "string",
    "scope": "string"
}'

Responses

🟢200
application/json
Successful response
Bodyapplication/json

Example
{
    "code": 0,
    "message": "success",
    "time": 1772087676,
    "request_id": "771197f10769e3a2465c9b332e63bb59",
    "data": {
        "access_token": "string",
        "token_type": "Bearer",
        "expires_in": 3600,
        "refresh_token": "string",
        "scope": "string"
    }
}
Modified at 2026-05-25 12:03:36
Previous
OAuth2 Merchant Authorization
Next
Get Shop OAuth Installation Status
Built with