get
http://{url}{}/api/method/emotive_app.inventory.doctype.stock_no.stock_no.get_stock_item
Get Stock Item
This endpoint retrieves details of a specific stock item based on the provided stock number.
Request Method
- GET
Endpoint
{{url}}/api/method/emotive_app.inventory.doctype.stock_no.stock_no.get_stock_item
Query Parameters
- stock_no (string): The unique identifier for the stock item you wish to retrieve. In this example, the stock number is
01-00001.
Expected Response Format
The response will typically include details about the stock item associated with the provided stock number. The structure of the response will include various attributes related to the stock item, such as its name, description, quantity, and any other relevant details.
Ensure that the stock number provided is valid to receive the correct stock item information.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Response
The response includes vehicle-related data under the message object.
Vehicle images are returned as part of the vehicle_item.images array.
Example Response
{
"message": {
"vehicle_item": {
"images": [
{
"group": "Other",
"image": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTv7-zIO3xFfxxWINxI5ewmuZlYd7MAQrhUzg&s",
"is_primary": 1
}
]
}
}
}Response Body Fields
- message: Root object containing all data related to the provided stock number.
Vehicle Images (vehicle_item.images)
vehicle_item.images)- images: Array of image objects associated with the vehicle.
- group: Logical category of the image (for example, Exterior, Interior, or Other).
- image: Public URL of the vehicle image, usable directly in UI components.
- is_primary: Indicates whether the image is the primary display image
1= Primary image0= Secondary image
