List Images

GET /api/v1/products/{id}/images

Response

{"success": true, "data": [
    {"file_id": 101, "main_img": 1, "filepath": "products/", "filename": "wallet-front.jpg"},
    {"file_id": 102, "main_img": 0, "filepath": "products/", "filename": "wallet-back.jpg"}
]}

Assign Image

POST /api/v1/products/{id}/images
FieldRequiredDescription
file_idYesFile ID from the file manager
main_imgNo1 = set as main image
curl -X POST -H "Authorization: Bearer KEY:SECRET" 
     -H "Content-Type: application/json" 
     -d '{"file_id": 103, "main_img": 1}' 
     https://example.com/api/v1/products/57/images

Remove Image

DELETE /api/v1/products/{id}/images/{file_id}