eBay Trading APIVersion 1375
 

PictureDetailsType

Contains the data for the pictures associated with an item.

Type that uses PictureDetailsType:

Calls that use PictureDetailsType:

Fields



ExtendedPictureDetails ( ExtendedPictureDetailsType ) [0..1]
The ExtendedPictureDetails container and its child fields are no longer returned under any circumstances, including when self-hosted pictures are used for the item. When self-hosted pictures are used by the seller, only the external URL of the gallery image is shown in the PictureDetails.ExternalPictureURL field, and only the equivalent eBay Picture Server (EPS) URLs are shown for the rest of the item's images in separate PictureDetails.PictureURL fields.
See the Field Index to learn which calls use ExtendedPictureDetails.

ExternalPictureURL ( anyURI ) [0..*]
When returned this contains the original URL of a self-hosted pictures, associated with the item when the item was listed.
See the Field Index to learn which calls use ExternalPictureURL.

GalleryErrorInfo ( string ) [0..1]
Indicates the reason the gallery generation failed, such as, URL for the image is not valid. This field is returned when GalleryStatus field is returned and does not appear when the gallery generation is successful.
See the Field Index to learn which calls use GalleryErrorInfo.

GalleryStatus ( GalleryStatusCodeType ) [0..1]
Indicates if the gallery image upload failed and gives a reason for the failure, such as 'InvalidUrl' or 'ServerDown'. It is not returned if the gallery image is uploaded successfully.
See the Field Index to learn which calls use GalleryStatus.

GalleryType ( GalleryTypeCodeType ) [0..1]
This field is used to specify the type of picture gallery to use for the listing. If this field is omitted, a standard picture gallery is used for the listing. There is no listing fee for a standard picture gallery.

To use the Gallery Plus feature, you must include this field and set its value to Plus.

The Gallery image will be the first URL passed into the first PictureURL field, so if you want a specific picture to be the Gallery image, you should make sure you pass the URL for this picture in the first PictureURL field.

When revising a listing, if you disable the Gallery Plus feature by including the GalleryType field and setting its value to Gallery, the original feature fee for this feature will not be credited to the seller.
See the Field Index to learn which calls use GalleryType.

GalleryURL ( anyURI ) [0..1]
This field shows the URL for the gallery image of an item returned in GetMyeBayBuying
and GetMyeBaySelling.
See the Field Index to learn which calls use GalleryURL.

PictureSource ( PictureSourceCodeType ) [0..1]
The value in this field indicates if the listing contains image files uploaded to the eBay Picture Server (EPS), or externally-hosted images for which eBay created EPS equivalents.

This value defaults to EPS, so if a seller is going to upload externally-hosted image URLs, this field must be included and set to Vendor.

Note: Original EPS and externally-hosted images cannot be mixed, so this value cannot be changed if a listing already has one or more images.
See the Field Index to learn which calls use PictureSource.

PictureURL ( anyURI ) [0..*]
Contains the URL for a picture of the item. The URL can be from the eBay Picture Services (images previously uploaded) or from a server outside of eBay (self-hosted). You can pass in up to 24 picture URLs for each listing, but you cannot mix self-hosted and EPS-hosted URLs in the same listing. The UploadSiteHostedPictures call can be used to upload pictures to EPS. Note that if pictures are externally-hosted, they must be hosted on a site that is using the 'https' protocol. URLs using the 'http' protocol will not be allowed.

Sellers can have up to 24 pictures in almost any category at no cost. Motor vehicle listings are an exception. The number of included pictures in motor vehicle listings depend on the selected vehicle package (see Fees for selling vehicles on eBay Motors).

Note: If a URL contains spaces, those spaces can be replaced with %20. For example, https://example.com/my image.jpg must be submitted as https://example.com/my%20image.jpg to replace the space in the image file name. However, a semicolon character (;) cannot be replaced with %20, so a semicolon cannot be a part of the URL, as an error will occur. The Gallery image will be the first PictureURL in the array of PictureURL fields.

Note: All images, whether they are hosted by EPS or self-hosted, must comply with eBay picture requirements, including the requirement that all images must be at least 500 pixels on its longest side. If the image does not satisfy the 500 pixels requirement, the listing may be blocked. For more information about other requirements and tips for adding pictures to listings, see the Adding pictures to your listings help page. To specify multiple pictures, send each URL in a separate, PictureDetails.PictureURL element. The first URL passed in defaults to be the 'gallery image', and will be the first picture that is shown when a user lands on the View Item page.

If a listing uses a single, self-hosted picture (except in the case of a multiple-variation listing), the picture will be copied to eBay Picture Services (EPS) and the PictureDetails.PictureURL value returned by GetItem will be an EPS URL.

For VerifyAddItem only: You must include a picture even when using VerifyAddItem. If you don't have a image file, you can use the following fake eBay Picture Services URL (https://i2.ebayimg.com/abc/M28/dummy.jpg) with this call.

For ReviseItem and RelistItem only: To remove a picture when revising or relisting an item, specify PictureDetails with all the pictures that you want the listing to include. That is, you need to completely replace the original set of URLs with the revised set. You cannot remove all the PictureURL fields from a listing because each listing requires at least one picture.

Remember: The 'gallery image' will be the first PictureURL in the array of PictureURL fields. So, if the first image passed in when relisting/revising is different from when the listing was created, the 'gallery image' will be changed.

Note: For some large merchants, there are no limitations on when pictures can be added or removed from a fixed-price listing, even when the listing has had transactions or is set to end within 12 hours.
See the Field Index to learn which calls use PictureURL.