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:
namefield MUST be as close as possible to the real vendor name.Use the
senderNamefield to display short/user-friendly names. We displaysenderNameexternally.nameis used as an internal reference.addressfield should be a full string with as much detail as possible. We use this to identify vendor industryuindustrycan be any descriptive string. We normalise the industry on our side.
Notes:
If you want to enable Facebook reviews, provide the
facebookUrlproperty in body request. You can update this later in the Update request...indicates that more fields may be returned here in future.
Last updated