Rate A Supplier
This API is used to rate a supplier after complete an order
- cURL
- JavaScript
curl -X GET \
'https://apistg.ahamove.com/v1/order/rate_supplier?token=5d352c14eb44d753c5dcfc0b&order_id=ABCDEF&rating=5&comment=Good+guy' \
-H 'cache-control: no-cache'
var requestOptions = {
method: 'GET',
redirect: 'follow',
};
fetch(
'https://apistg.ahamove.com/v1/order/rate_supplier?token=5d352c14eb44d753c5dcfc0b&order_id=ABCDEF&rating=5&comment=Good+guy',
requestOptions
)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.log('error', error));
HTTP Request
GET https://apistg.ahamove.com/v1/order/rate_supplier
Query Parameters
Parameter | Type | Required | Description |
---|---|---|---|
token | String | Yes | User Token |
order_id | String | Yes | Order Id |
rating | Number | Yes | Rating score, range 1-5 |
comment | String | No | Comment |
Response
JSON response example:
{}
Status-Code: 200 OK
Errors
Code | Text | Description |
---|---|---|
404 | Not Found | - Token not found - Order not found - Supplier not found |
401 | Unauthorized | Unauthorized |
500 | Internal Server Error | We had a problem with our server. Try again later. |
503 | Service Unavailable | We're temporarily offline for maintenance. Please try again later. |