get
http://{{url}}/api/method/emotive_app.inventory.doctype.stock_no.stock_no.get_stock_item
This endpoint retrieves vehicle image details associated with a given stock number. It is primarily used to fetch images linked to a stock vehicle for display in inventory, sales, or detail views.
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
