24/7 Support: 800.608.6482

Get Started

Navigation


ProductImage_Add

This function allows you to add a new image to a product.

Note: The file must first exist on the server at the path specified before calling this funciton. Use FTP to upload the file to the server or the Miva admin.

Request Body Parameters

Product_ID Type:
Number
Title:
Product Id
Product Id to assign Image to
Filepath Type:
String
Title:
File Path
Relative file path to the image (relative to mm5 folder). The file must first exist on the server before calling this funciton.
ImageType_ID Type:
Number
Title:
Image Type ID
The Id of the Image type you want to assign to the image. Pass 0 to not assign an image type.

Response Parameters

success boolean value for if the request was successfull

Example Request

Example Response

Error Responses

error code
MER-DBE-IMG-00001
error message
Image filepaths must be local and relative to the Base Directory for Graphics
  Order number not found.
error code
EOF
error message
Record not found: MER-DBP-PRD-00017
  description
Product Id not found

This website uses cookies to identify visitors, track visitors to our website, store login session information and to remember your user preferences. By continuing to use this site you agree to our use of cookies. Learn More.

This website uses cookies. By continuing to use this site you agree to our use of cookies. Learn More.

Accept

Miva believes that all online businesses should have access to a scalable ecommerce platform that can meet their unique business requirements. Miva offers PCI compliant ecommerce, hosting, and custom website design and development solutions. Miva customers have processed over $100 billion in online sales since 1997.

Copyright © 2016 Miva, Inc - All Rights Reserved   Privacy Policy | Store Policy

Links
Contact Us
Receive Tips & Updates

Copyright © 2017 Miva, Inc - All Rights Reserved

Back To The Top