Upload an image
Uploads an image and makes small, medium, large and square copies of it on the CDN. The body must be multipart/form-data with the image in a part named file; a JSON body is refused with 400. There is no way to upload an image from a URL. Use the image_id in a product's image_ids. Images cannot be changed after upload; upload a new one instead. Secret and trusted tokens may call it.
AuthorizationBearer <token>A secret, trusted or limited token. See Authentication.
show?stringComma-separated fields to return; all others are left out. Use dot notation for child fields (customer.email). You cannot send show and hide together (400). See Customizing output.
hide?stringComma-separated fields to leave out of the response. Use dot notation for child fields (customer.email). You cannot send show and hide together (400). See Customizing output.
formatted?booleanWhen true, the object also has a formatted child with amounts and dates as display text in the shopper's language and currency (for example $19.99 or November 7, 2026). The default is false. See Localized formatting.
falseThe image.
multipart/form-data- body
A multipart/form-data body with one image in a part named file. The image must be a .png, .jpg, .jpeg, .gif or .ico file of at most 10 MB (10,000,000 bytes), with a file name of 50 characters or less.
file*fileThe image to upload.
binaryThe new image.
application/json- response
An image you uploaded, such as a product picture. Comecero stores the original and four resized copies on its CDN.
object*"image"The object type. Always image.
"image"url*stringThe URL of this image in the API.
uriimage_id*stringThe id of the image.
date_created*stringWhen the image was uploaded.
date-timedate_modified*stringWhen the image was last changed.
date-timetest*booleanTrue for a test-mode image.
account_id*stringThe account the image belongs to.
link*stringThe CDN link to the image as uploaded.
urilink_small*stringThe CDN link to the small copy.
urilink_medium*stringThe CDN link to the medium copy.
urilink_large*stringThe CDN link to the large copy.
urilink_square*stringThe CDN link to a square copy, for thumbnails.
urifilename*stringThe file name, cleaned of characters that are not safe in a URL.
formatted?Present only when you send formatted=true.
curl -X POST 'https://api.comecero.com/api/v1/images' \ -F 'file=string'{ "object": "image", "url": "https://api.comecero.com/api/v1/images/0099844605810ImLAMbo73", "image_id": "0099844605810ImLAMbo73", "date_created": "2026-11-02T14:36:45Z", "date_modified": "2026-11-02T14:36:45Z", "test": true, "account_id": "AB1234", "link": "https://cdn.comecero.net/AB1234/0099844605810ImLAMbo73/widget.png", "link_small": "https://cdn.comecero.net/AB1234/0099844605810ImLAMbo73/sm_widget.png", "link_medium": "https://cdn.comecero.net/AB1234/0099844605810ImLAMbo73/md_widget.png", "link_large": "https://cdn.comecero.net/AB1234/0099844605810ImLAMbo73/lg_widget.png", "link_square": "https://cdn.comecero.net/AB1234/0099844605810ImLAMbo73/sq_widget.png", "filename": "widget.png"}