INRIX documentation logo

The Reviews API may be used to create a review for a lot.

Creating a Review

Create a review via

curl -d "email=john.doe@gmail.com&review=testing&stars=4&first_name=John&last_name=Doe&i_lot_id=114953" 
    http://api.dev01.parkme.com/review/

Required parameters

review string The text of the review.
lot_id int Lot ID
stars int Stars

Optional parameters

email User’s phone number
first_name User’s first name
last_name User’s last name

NOTE: If email, first_name, last_name aren’t included, the request must have valid Auth headers for an existing user

Response Payload

The Response payload will be in the form of a JSON Object with a property called “Review” which will contain all the details for the user.

{
  "review": {
    "stars": "4",
    "last": "Cena",
    "user": null,
    "lot": "5b78c10c-0e49-11e2-b0be-12313d1b6657",
    "text": "was pretty good i guess",
    "review": "3c032781-b47b-423a-a3d5-4fadcc33e684",
    "email": "cena@youtube.com",
    "first": "John"
  },
  "success": true
}

Error Handling:

In the event that there is some ERROR in the request parameters, and/or a trappable error on the server, an Error Response payload will be returned:

{  
  "ErrorCode":        1,             // 1 = Query Parameter Error
                                     // 2 = Server Error
                                     // 3 = Credentials Error
                                     // -1 = Other Error
  "ErrorDescription": "Missing uid"  // String Description of the Error
}

Error codes are as follows:

# Generic Error Numbers
QUERY_PARAMETER_ERROR = 479
SERVER_ERROR = 2
CREDENTIALS_ERROR = 3
OTHER_ERROR = -1