To retrieve an item inquiry, use the following URL along with the inquiry ID and additional POST data.
| Method | URL |
| POST | https://api.fairwarningsoftware.com/v1.1.1/inquiry/[id] |
| Request |
| { "user_id": <user_id> } |
| Field | Type | Description |
| user_id | int | The ID of the user submitting the item inquiry |
| Status | Response |
| 200 | { "report_id": <report_id>, "item_id": <item_id>, "user_id": <user_id>, "report_date": <report_date>, "report_messages": [ { "message": { "message_id": <message_id>, "user_id": <user_id>, "message_copy": <message_copy>, "message_date": <message_date>, "user_fname": <user_fname>, "user_lname": <user_lname>, "report_images": [ { "image": { "image_id": <image_id>, "image_name": { "base": <base>, "parts": { "full": <full>, "large": <large>, "medium": <medium>, "thumb": <thumb> }, "image_name": <image_name>, } } }, ... ] } }, ... ] } |
| 401 | {"error":"The API keys provided are invalid."} |
| 403 | {"error":"API keys are missing."} |
| 500 | {"error": <custom error>} |
| Field | Type | Description |
| report_id | int | The unique ID of the inquiry. |
| item_id | int | The unique ID of the item the inquiry is for. |
| user_id | int | The unique ID of the user who initially submitted the inquiry. |
| report_date | string | The date the inquiry was originally submitted. |
| report_messages | object | An object containing a list of messages associated with the inquiry, ordered by the message date, desc. |
| message | object | An object containing the details of the individual message. |
| message_id | int | The unique ID of the message. |
| user_id | int | The unique ID of the person who left the message. |
| user_fname | string | The first name of the person who left the message. |
| user_lname | string | The last name of the person who left the message. |
| message_copy | string | The text copy of the message that was left. |
| message_date | string | The timestamp the message was left. |
| report_images | object | An object containing a list of images associated with the message. |
| image | object | An object containing the details of the image. |
| image_id | int | The unique ID of the image. |
| image_name | object | An object containing parts of the image URL. |
| base | string | The base of the URL for the image. |
| parts | object | An object containing the end of the URL for different sizes of the image. |
| full | string | The end of the URL for the full-sized image. |
| large | string | The end of the URL for the large-sized image. |
| medium | string | The end of the URL for the medium-sized image. |
| thumb | string | The end of the URL for the thumb-sized image. |
| image_name | string | Just the name of the image. |