The Supplier label endpoint allows you to add the review label to the supplier via our API. This is the same as reviewing a supplier in the Ravelin dashboard. This is an optional integration. You may manage reviews entirely within the Ravelin dashboard.
The category of label being applied to the supplier. Only:
  | 
The review label to apply to the supplier. One of:
  | 
The individual who is reviewing the supplier. Their details will appear in the supplier profile on the Ravelin dashboard so you are able to see who did this review.  | 
POST https://api.ravelin.com/v2/supplier/supplier-123/labels HTTP/1.1
Authorization: token ...
Content-Type: application/json
{
  "category": "SUPPLIER_FRAUD",
  "review": "NOT_SUPPLIER_FRAUD",
  "reviewer": {
    "name": "Bilbo Baggins",
    "email": "bilbo.b@shiremail.com"
  }
}
Example response:
{
  "eventTime": "2020-01-23T16:33:02Z"
}
Was this page helpful?