Cloutly Reviews API & SDK
  • Introduction
    • Background & Motivations
    • System Overview
    • Setup & Authentication
    • Ping
  • Swagger Docs
    • Swagger Specs
  • Vendor API
    • Create Vendor
    • Get Vendor
    • Update Vendor
  • Review Collection API
    • Send Review Invite
  • Review Submission API
    • Submit Review
  • Review Insights API
    • Get Reviews
    • Get Review Insights
  • Review Widgets SDK
    • Enriched Review Widgets UI
    • Custom HTML Review Widgets
Powered by GitBook
On this page
  • POST /vendors
  • Request
  • Response
  • Important Recommendations:
  • Notes:
  1. Vendor API

Create Vendor

Create a Supplier

POST /vendors

Create a new vendor. In the response body, the id property is what you will use for accessing all other resources for that vendor (aka. vendorId). Ensure to persist this in your DB.

Request

POST https://marketplace.cloutly.com/api/v2/vendors

{
   // required
   "name": "My Supplier's Business Name", 
   "senderName": "Supplier R Us",
   "address": "12 Main St, Gold Coast, Australia",
   "industry": "Restaurant and Hospitality",
   "website": "www.abc.com",
   "logoUrl": "https://your-hosted-url.com/business-1",
   // optional
   "googlePlaceId": "XXXX",
   "facebookUrl": "https://facebook.com/XXXX"
}

Response

{
  "id": "5ef7b45b-2fd2-4719-88fd-96ef62f9d4a4",
  "name": "My Supplier's Business Name",
  "senderName": "Suppier R Us",
  "website": "www.abc.com",
  "googlePlaceId": "XXXXX",
  ...
}

Important Recommendations:

  • name field MUST be as close as possible to the real vendor name.

  • Use the senderName field to display short/user-friendly names. We display senderName externally. name is used as an internal reference.

  • address field should be a full string with as much detail as possible. We use this to identify vendor industryu

  • industry can be any descriptive string. We normalise the industry on our side.

Notes:

  • examples:

  • ... indicates that more fields may be returned here in future.

PreviousSwagger SpecsNextGet Vendor

Last updated 8 months ago

If you want to enable Facebook reviews, provide the facebookUrl property in body request. You can update this later in the request

Update
https://www.facebook.com/cloutly/
https://www.facebook.com/SolarPowerAus/