Skip to main content
Version: 3.0.0

Rate A Supplier

Rate a supplier after complete an order

curl --location --request PUT 'https://partner-apistg.ahamove.com/v3/orders/<order_id>/rate' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>'
--data '{
"rated_by":"receiver",
"rating": 4,
"comment": "good"
}'

HTTP Request

PUT https://partner-apistg.ahamove.com/v3/orders/<order_id>/rate

Headers

ParameterValueRequiredDescription
AuthorizationBearer <token>YesToken of the order creator

Body

{
"rated_by": "receiver",
"rating": 4,
"comment": "good"
}

Query Parameters

ParameterTypeRequiredDescription
tokenStringYesUser's token
order_idStringYesOrder ID
rated_byStringYesRated by sender (user) or recipient (receiver)
ratingIntYesRating level, from 1-5
commentStringNoFeedback from sender or recipient

Response

JSON response example:

{}

Status-Code: 200 OK

Errors

CodeTextDescription
400MISSING_REQUIRED_INFOMissing required fields
400INVALID_PARAMInvalid information
401NOT_AUTHORIZEDInvalid token
404SUPPLIER_NOT_FOUNDDriver information not found
409ORDER_HAS_BEEN_RATED_BY_USEROrder has already been rated by the sender
409ORDER_HAS_BEEN_RATED_BY_RECEIVEROrder has already been rated by the recipient
500INTERNAL_SERVER_ERRORWe had a problem with our server. Try again later
503SERVICE_UNAVAILABLEWe're temporarily offline for maintenance. Please try again later