亚马逊电商数据自动化管理接口平台JAVA SP-API接口开发(下)
重要说明
- 本文章为亚马逊系列其中的一篇,具体详见 主页 中亚马逊分类
- 该系列项目均为【CSDN轻夏】原创,未经允许禁止转载
- 如有疑问请添加qq群聊302493982学习咨询
1、上传数据
上传数据是非常麻烦的,因为每个类型的商品所要上传的结构也是不一样的
所以要首先根据地区获得ProductTpye,再根据类型获取更详细的类型,再根据这些类型
2、获取ProductTpye目录
package com.rss.server;
import com.amazon.SellingPartnerAPIAA.AWSAuthenticationCredentials;
import com.amazon.SellingPartnerAPIAA.AWSAuthenticationCredentialsProvider;
import com.amazon.SellingPartnerAPIAA.LWAAuthorizationCredentials;
import io.swagger.client.ApiException;
import io.swagger.client.api.CatalogApi;
import io.swagger.client.api.DefaultApi;
import io.swagger.client.model.GetCatalogItemResponse;
import io.swagger.client.model.ListCatalogCategoriesResponse;
import io.swagger.client.model.ListCatalogItemsResponse;
import java.util.ArrayList;
public class CatalogItems {
public static void main(String[] args) throws ApiException {
ArrayList<Object> pack = Pack.pack_US();
CatalogApi defaultApi = new CatalogApi.Builder().awsAuthenticationCredentials((AWSAuthenticationCredentials) pack.get(0))
.awsAuthenticationCredentialsProvider((AWSAuthenticationCredentialsProvider) pack.get(1))
.lwaAuthorizationCredentials((LWAAuthorizationCredentials) pack.get(2))
.endpoint(Pack.REQUEST_US_EAST_1)//请求地区
.build();
try {
ListCatalogItemsResponse result = defaultApi.listCatalogItems(US_MARKETPLACE_ID, null, null, null, null, null, null, null);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CatalogApi#listCatalogItems");
e.printStackTrace();
}
}
}
返回结果
class ProductTypeList {
productTypes: [class ProductType {
name: 3D_PRINTER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: ACCESSORY
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: ACCESSORY_OR_PART_OR_SUPPLY
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: ADULT_COSTUME
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: AIR_MATTRESS
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: ANTENNA
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: APPAREL
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: APPAREL_BELT
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: APPAREL_GLOVES
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: APRON
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: ARM_SLEEVE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: AROMA_DIFFUSER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: ART
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: ARTIFICIAL_PLANT
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: ARTIFICIAL_TREE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: ART_AND_CRAFT_SUPPLY
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: ASHTRAY
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: AUDIO_DEVICE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: AUDIO_OR_VIDEO
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: AV_FURNITURE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: AV_RECEIVER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: BABY_COSTUME
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: BACKDROP
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: BACKPACK
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: BAG
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: BASKET
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: BATTERY
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: BEAN_BAG_CHAIR
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: BED
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: BEDDING_SET
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: BED_FRAME
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: BED_LINEN
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: BED_LINEN_SET
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: BED_RAIL
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: BED_SKIRT
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: BENCH
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: BINOCULAR
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: BLANKET
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: BLANK_MEDIA
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: BLANK_MEDIA_FOR_CAMERAS
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: BLAZER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: BODY_POSITIONER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: BODY_STRAP
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: BOOKEND
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: BOOKSHELF_OR_MICRO_STEREO_SYS
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: BOOT
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: BOTTLE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: BOTTLE_RACK
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: BRA
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: BRA_UNDERWEAR_SET
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: BROOM
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: BUCKET
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: BUNGEE_CORD
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CABINET
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CABLE_OR_ADAPTER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CADDY
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CALCULATOR
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CAMCORDER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CAMERA_BAGS_AND_CASES
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CAMERA_DIGITAL
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CAMERA_FILM
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CAMERA_FLASH
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CAMERA_LENSES
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CAMERA_LENS_FILTERS
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CAMERA_OTHER_ACCESSORIES
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CAMERA_POWER_SUPPLY
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CAMERA_SUPPORT
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CAMERA_TRIPOD
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CAMISOLE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CANDLE_HOLDER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CARRYING_CASE_OR_BAG
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CAR_AUDIO_OR_THEATER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CAR_ELECTRONICS
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CD_PLAYER_OR_RECORDER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CELLULAR_PHONE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CELLULAR_PHONE_CASE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CELL_PHONE_HOLSTER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CE_ACCESSORY
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CHAIR
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CHANCHANKO
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CHARGING_ADAPTER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CHOLI
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CISTERN
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CLEANING_BRUSH
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CLOCK
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CLOCK_OR_CLOCK_RADIO
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CLOTHES_PIN
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CLOTHES_RACK
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CLOTH_NAPKIN
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: COAT
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: COIN_PURSE_POUCH
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: COMBINED_AV_DEVICE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: COMPUTER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: COMPUTER_ADD_ON
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: COMPUTER_CHASSIS
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: COMPUTER_COMPONENT
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: COMPUTER_DRIVE_OR_STORAGE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: COMPUTER_PROCESSOR
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: COMPUTER_VIDEO_GAME_CONTOLLER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CONSUMER_ELECTRONICS
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CORRECTIVE_EYEGLASSES
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CORSET
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: COSMETIC_CASE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CRIB
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CURTAIN
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: CURTAIN_FASTENER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: DECORATIVE_MAGNET
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: DESK
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: DIGITAL_PICTURE_FRAME
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: DIGITAL_VIDEO_RECORDER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: DRAIN_STRAINER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: DRESS
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: DRESSER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: DRYING_RACK
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: DUFFEL_BAG
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: DUPATTA
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: DUST_REMOVAL_TOOL
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: DUVET_COVER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: DVD_PLAYER_OR_RECORDER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: EARMUFF
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: ELECTRONIC_ADAPTER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: ELECTRONIC_BOOK_READER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: ELECTRONIC_DEVICE_DOCKING_STATION
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: ELECTRONIC_DEVICE_SKIN
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: ETHNIC_WEAR
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: EYEGLASS_FRAME
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: EYEWEAR
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: FABRIC
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: FAX_MACHINE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: FIGURINE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: FIREPLACE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: FITTED_SHEET
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: FLASH_DRIVE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: FLASH_MEMORY
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: FLAT_SCREEN_DISPLAY_MOUNT
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: FLAT_SHEET
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: FOOD_BIB
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: FOOTWEAR
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: FOUNTAIN
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: FURNITURE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: FURNITURE_COVER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: FURNITURE_LINER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: GPS_OR_NAVIGATION_ACCESSORY
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: GPS_OR_NAVIGATION_SYSTEM
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: GRAPHIC_TABLET
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: HAMMOCK
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: HANDBAG
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: HANDHELD_OR_PDA
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: HANDHELD_OR_PDA_ACCESSORY
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: HANGING_ROD
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: HAT
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: HEADBOARD
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: HEADPHONES
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: HOME
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: HOME_BED_AND_BATH
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: HOME_FURNITURE_AND_DECOR
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: HOME_MIRROR
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: HOME_ORGANIZERS_AND_STORAGE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: HOME_PARTS
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: HOME_THEATER_SYSTEM_OR_HTIB
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: HOSIERY
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: HVAC_CONTROL_THERMOSTAT
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: INCENSE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: INCENSE_HOLDER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: INDOOR_GROW_ENCLOSURE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: INKJET_PRINTER_INK
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: INK_OR_TONER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: INPUT_MOUSE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: INPUT_PEN
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: IRONING_BOARD
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: JEWELRY_STORAGE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: JINBEI
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: KEYBOARDS
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: KEYCHAIN
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: KIMONO
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: KURTA
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: LADDER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: LANDLINE_PHONE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: LAP_DESK
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: LAUNDRY_HAMPER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: LEHENGA_CHOLI_SET
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: LEOTARD
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: LIGHT_FIXTURE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: LINT_REMOVER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: LUGGAGE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: MAGNIFIER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: MAILBOX
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: MATERIAL_HANDLING_TRUCK
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: MATTRESS
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: MATTRESS_COVER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: MEDIA_READER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: MEDIA_STORAGE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: MEMORY_READER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: MICROPHONE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: MONEY_BANK
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: MOTHERBOARD
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: MOUSE_PAD
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: MP3_PLAYER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: MULTIPORT_HUB
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: NECKTIE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: NETTING_COVER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: NETWORKING_ROUTER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: NETWORK_ADAPTER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: NETWORK_INTERFACE_CONTROLLER_ADAPTER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: NIGHTGOWN_NIGHTSHIRT
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: NOTEBOOK_COMPUTER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: OBI
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: OFFICE_ELECTRONICS
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: ONBOARD_CAMERA
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: ONE_PIECE_OUTFIT
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: OPTICAL_DISC_DRIVE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: ORCA_SHIRT
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: OTTOMAN
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: OUTERWEAR
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: OVERALLS
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: PAINT_BRUSH
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: PAJAMAS
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: PAPER_TOWEL_HOLDER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: PDA
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: PERSONAL_COMPUTER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: PET_DOOR
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: PHONE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: PHONE_ACCESSORY
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: PHOTOGRAPHIC_PAPER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: PHOTOGRAPHIC_STUDIO_ITEMS
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: PICNIC_HOLDER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: PLANTER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: PLAY_SLIDE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: PLUG_STOPPER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: PORTABLE_AUDIO
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: PORTABLE_AV_DEVICE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: PORTABLE_ELECTRONICS
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: PORTABLE_ELECTRONIC_DEVICE_STAND
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: PORTABLE_TOOL_BOX
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: POWER_CONVERTER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: POWER_CORD
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: POWER_STRIP
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: POWER_SUPPLIES_OR_PROTECTION
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: POWER_SUPPLY
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: PRINTER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: PRINTER_CONSUMABLE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: PRODUCT
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: PUMP_DISPENSER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: RADIO
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: RAM_MEMORY
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: RECEIVER_OR_AMPLIFIER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: REMOTE_CONTROL
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: ROBE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: ROBOTIC_VACUUM_CLEANER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: ROOM_DIVIDER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: RUBBER_STAMP
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SAFE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SALWAR_SUIT_SET
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SANDAL
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SAREE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SATELLITE_OR_DSS
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SCANNER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SCARF
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SCULPTURE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SHELF
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SHOELACE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SHOES
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SHOE_ACCESSORY
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SHOE_BAG
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SHORTS
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SHORTWAVE_RADIO
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SKIRT
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SLEEPWEAR
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SLIPPER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SNOW_GLOBE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SOCKS
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SOCKSHOSIERY
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SOFA
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SOUND_CARD
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SPEAKERS
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SPLASH_POOL
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SQUEEGEE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: STANDALONE_STREAMING_MEDIA_PLAYER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: STEP_STOOL
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: STOOL_SEATING
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: STORAGE_DRAWER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: STORAGE_RACK
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SUIT
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SUITCASE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SUNGLASSES
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SURVEILANCE_SYSTEMS
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SUSPENDER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SWEATSHIRT
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SWIMWEAR
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SWING
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SYSTEM_CABINET
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: SYSTEM_POWER_DEVICE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: TABLE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: TABLECLOTH
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: TABLET_COMPUTER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: TARP
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: TASK_TRAY
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: TECHNICAL_SPORT_SHOE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: TELESCOPE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: TIGHTS
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: TIMER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: TOILET_PAPER_HOLDER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: TOOTHBRUSH_HOLDER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: TOTE_BAG
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: TOWEL_HOLDER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: TRACK_SUIT
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: TRAY
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: TREE_SKIRT
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: TREE_TOPPER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: TUNER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: TUNIC
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: TURNTABLE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: TWO_WAY_RADIO
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: UMBRELLA
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: UNDERGARMENT_SLIP
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: UNDERGARMENT_THIGH_SLIMMER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: UNDERPANTS
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: UNDERWEAR
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: UTILITY_CART_WAGON
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: VACUUM_CLEANER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: VASE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: VCR
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: VEHICLE_SAFETY_CAMERA
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: VEST
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: VIDEO_CARD
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: VIDEO_CONFERENCE_EQUIPMENT
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: VIDEO_DEVICE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: VIDEO_DISC_PLAYER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: VIDEO_PROJECTOR
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: VIRTUAL_REALITY_HEADSET
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: VOICE_RECORDER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: WAIST_CINCHER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: WAIST_PACK
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: WALLET
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: WASTE_BAG
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: WATERING_CAN
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: WATER_DISPENSER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: WEARABLE_COMPUTER
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: WEBCAM
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: WINDOW_FILM
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: WINDOW_SHADE
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: WREATH
marketplaceIds: [ATVPDKIKX0DER]
}, class ProductType {
name: YUKATA
marketplaceIds: [ATVPDKIKX0DER]
}]
}
3、获取ProductTpye详细目录
返回结果
class ProductTypeDefinition {
metaSchema: class SchemaLink {
link: class SchemaLinkLink {
resource: https://selling-partner-definitions-prod-iad.s3.amazonaws.com/schema/amazon-product-type-definition-meta-schema-v1.json/R%252BtOl阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴pg7BnWfEpdzgCh6es%2Bg%3D%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20220226T020935Z&X-Amz-SignedHeaders=host&X-Amz-Expires=604800&X-Amz-Credential=ASIAXZP4P45APPDUV5M3%2F20220226%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=be3ac740c14e564482ee740ff9e480b0aa8c848636ff5c98152172fa5a542b4c
verb: GET
}
checksum: R+tOle7/tlSwgT5dChfExA==
}
schema: class SchemaLink {
link: class SchemaLinkLink {
resource: https://selling-partner-definitions-prod-iad.s3.amazonaws.com/schema/OUTERWEAR.json/5qzdQ8I8%252B9Wp8ZS8K%252Bg6tw%253D%253D?X-Amz-Security-Token=IQoJb阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿阿巴阿巴阿巴阿巴阿巴阿巴阿巴巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴15c85b76906dfba2bfffc7078486dc
verb: GET
}
checksum: 5qzdQ8I8+9Wp8ZS8K+g6tw==
}
requirements: LISTING
requirementsEnforced: ENFORCED
propertyGroups: {offer=class PropertyGroup {
title: Offer
description: Product Offer
propertyNames: [skip_offer, fulfillment_availability, map_policy, purchasable_offer, condition_type, condition_note, list_price, product_tax_code, merchant_release_date, merchant_shipping_group, max_order_quantity, gift_options, main_offer_image_locator, other_offer_image_locator_1, other_offer_image_locator_2, other_offer_image_locator_3, other_offer_image_locator_4, other_offer_image_locator_5]
}, images=class PropertyGroup {
title: Images
description: Provide media content, such as product images
propertyNames: [main_product_image_locator, other_product_image_locator_1, other_product_image_locator_2, other_product_image_locator_3, other_product_image_locator_4, other_product_image_locator_5, other_product_image_locator_6, other_product_image_locator_7, other_product_image_locator_8, swatch_product_image_locator]
}, shipping=class PropertyGroup {
title: Shipping
description: Information to determine shipping and storage of your product (e.g., package dimensions, weight, volume)
propertyNames: [item_package_dimensions, item_package_weight]
}, variations=class PropertyGroup {
title: Variations
description: Variations that product will use
propertyNames: [parentage_level, child_parent_sku_relationship, variation_theme]
}, safety_and_compliance=class PropertyGroup {
title: Safety & Compliance
description: Information to indicate product compliance, hazardous materials, and legal and safety warnings (e.g., lithium batteries, choking hazards, Consumer Product Safety Information Act (CPSIA))
propertyNames: [country_of_origin, batteries_required, batteries_included, battery, num_batteries, number_of_lithium_metal_cells, number_of_lithium_ion_cells, lithium_battery, supplier_declared_dg_hz_regulation, hazmat, safety_data_sheet_url, item_weight, ghs, import_designation, supplier_declared_material_regulation, fur, california_proposition_65, cpsia_cautionary_statement, pesticide_marking, fcc_radio_frequency_emission_compliance]
}, product_identity=class PropertyGroup {
title: Product Identity
description: Information to uniquely identify your product (e.g., UPC, EAN, GTIN, Product Type, Brand)
propertyNames: [item_name, brand, externally_assigned_product_identifier, merchant_suggested_asin, supplier_declared_has_product_identifier_exemption, item_type_keyword, item_type_name, model_number, model_name]
}, product_details=class PropertyGroup {
title: Product Details
description: Information and characteristics to describe the product to support search, browse and detail page content (e.g., bullets, product features, model, style name)
propertyNames: [product_description, bullet_point, generic_keyword, lifestyle, style, department, target_gender, age_range_description, material, fabric_type, number_of_items, water_resistance_level, subject_character, special_size_type, color, size, part_number, theme, fit_type, weave_type, care_instructions, closure, sport_type, league_name, team_name, athlete, is_autographed]
}}
locale: en_US
marketplaceIds: [ATVPDKIKX0DER]
productType: OUTERWEAR
productTypeVersion: class ProductTypeVersion {
version: U5bTuUXL5lHpQD2x8sDBXkeBAGA8l2GCV
latest: true
releaseCandidate: false
}
}
Disconnected from the target VM, address: '127.0.0.1:55052', transport: 'socket'
Process finished with exit code 0
在线json查看器
https://www.bejson.com/jsonviewernew/
可以看到这个required里面包含着
下面给出两个例子
在打开的过程中如果超过的时间限制,就会失败
4、上传json数据
根据这些属性,来构造需要传递的json,然后就可以《愉快的》上传了,在上传过程中,会有问题,他就会返回一些错误的信息,然后需要根据这些错误的信息,进行修改后再次上传
官方例子
https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox
可能会打不开,要在出现页面的时候点停止加载按钮
{
"sku": "50-TS3D-QEPT",
"summaries": [
{
"marketplaceId": "ATVPDKIKX0DER",
"asin": "B08YRD1CNN",
"productType": "DRINKING_CUP",
"conditionType": "new_new",
"status": [
"BUYABLE",
"DISCOVERABLE"
],
"itemName": "6 Pack Coffee Mug Set, Farielyn-X 16 Ounce Ceramic Coffee Cups, Black Large Coffee mugs, Restaurant Coffee Cups for Coffee, Tea, Cappuccino, Cocoa, Cereal, Matte Black Outside and Colorful Inside",
"createdDate": "2021-07-14T19:57:02.327Z",
"lastUpdatedDate": "2021-07-14T19:57:10.637Z",
"mainImage":
{
"link": "https://m.media-amazon.com/images/I/41epVg7mZoS.jpg",
"height": 500,
"width": 500
}
}
],
"attributes":
{
"condition_type": [
{
"value": "new_new",
"marketplace_id": "ATVPDKIKX0DER"
}
],
"merchant_shipping_group": [
{
"value": "legacy-template-id",
"marketplace_id": "ATVPDKIKX0DER"
}
],
"merchant_suggested_asin": [
{
"value": "B08YRD1CNN",
"marketplace_id": "ATVPDKIKX0DER"
}
],
"purchasable_offer": [
{
"currency": "USD",
"start_at":
{
"value": "2021-07-14T19:56:57.717Z"
},
"our_price": [
{
"schedule": [
{
"value_with_tax": 30.0
}
]
}
],
"marketplace_id": "ATVPDKIKX0DER"
}
],
"fulfillment_availability": [
{
"fulfillment_channel_code": "DEFAULT",
"quantity": 1,
"marketplace_id": "ATVPDKIKX0DER"
}
],
"main_product_image_locator": [
{
"media_location": "https://media-origin-na-ssl.integ.amazon.com/images/I/xxxx1.jpg",
"marketplace_id": "ATVPDKIKX0DER"
}
],
"other_product_image_locator_1": [
{
"media_location": "https://media-origin-na-ssl.integ.amazon.com/images/I/xxxxx2.jpg",
"marketplace_id": "ATVPDKIKX0DER"
}
],
"other_product_image_locator_2": [
{
"media_location": "https://media-origin-na-ssl.integ.amazon.com/images/I/xxxxx3.jpg",
"marketplace_id": "ATVPDKIKX0DER"
}
]
},
"offers": [
{
"marketplaceId": "ATVPDKIKX0DER",
"offerType": "B2C",
"price":
{
"currency": "USD",
"amount": "30.0"
}
}
],
"fulfillmentAvailability": [
{
"fulfillmentChannelCode": "DEFAULT",
"quantity": 1
}
]
}
根据官方的例子,构造完整代码,上传数据
package com.rss.server;
import com.alibaba.fastjson.JSONObject;
import com.amazon.SellingPartnerAPIAA.AWSAuthenticationCredentials;
import com.amazon.SellingPartnerAPIAA.AWSAuthenticationCredentialsProvider;
import com.amazon.SellingPartnerAPIAA.LWAAuthorizationCredentials;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import io.swagger.client.ApiException;
import io.swagger.client.api.ListingsApi;
import io.swagger.client.api.ReportsApi;
import io.swagger.client.model.ListingsItemPutRequest;
import io.swagger.client.model.ListingsItemSubmissionResponse;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Arrays;
public class MyListingsApi {
public static void main(String[] args) {
ArrayList<Object> pack = Pack.pack_US();
ListingsApi listingsApi = new ListingsApi.Builder().awsAuthenticationCredentials((AWSAuthenticationCredentials) pack.get(0))
.awsAuthenticationCredentialsProvider((AWSAuthenticationCredentialsProvider) pack.get(1))
.lwaAuthorizationCredentials((LWAAuthorizationCredentials) pack.get(2))
.endpoint(Pack.REQUEST_US_EAST_1)//请求地区
.build();
String sellerId = "A23WHAFS6NKKN";
String sku = "50-TS3D-QEPT";
ListingsItemPutRequest listingsItemPutRequest = new ListingsItemPutRequest();
String json = "{\n" +
" \"sku\": \"50-TS3D-QEPT\",\n" +
" \"summaries\": [\n" +
" {\n" +
" \"marketplaceId\": \"ATVPDKIKX0DER\",\n" +
" \"asin\": \"B08YRD1CNN\",\n" +
" \"productType\": \"VASE\",\n" +
" \"conditionType\": \"new_new\",\n" +
" \"status\": [\n" +
" \"BUYABLE\",\n" +
" \"DISCOVERABLE\"\n" +
" ],\n" +
" \"itemName\": \"6 Pack Coffee Mug Set, Farielyn-X 16 Ounce Ceramic Coffee Cups, Black Large Coffee mugs, Restaurant Coffee Cups for Coffee, Tea, Cappuccino, Cocoa, Cereal, Matte Black Outside and Colorful Inside\",\n" +
" \"createdDate\": \"2021-07-14T19:57:02.327Z\",\n" +
" \"lastUpdatedDate\": \"2021-07-14T19:57:10.637Z\",\n" +
" \"mainImage\":\n" +
" {\n" +
" \"link\": \"https://m.media-amazon.com/images/I/41epVg7mZoS.jpg\",\n" +
" \"height\": 500,\n" +
" \"width\": 500\n" +
" }\n" +
" }\n" +
" ],\n" +
" \"attributes\":\n" +
" {\n" +
" \"condition_type\": [\n" +
" {\n" +
" \"value\": \"new_new\",\n" +
" \"marketplace_id\": \"ATVPDKIKX0DER\"\n" +
" }\n" +
" ],\n" +
" \"merchant_shipping_group\": [\n" +
" {\n" +
" \"value\": \"legacy-template-id\",\n" +
" \"marketplace_id\": \"ATVPDKIKX0DER\"\n" +
" }\n" +
" ],\n" +
" \"merchant_suggested_asin\": [\n" +
" {\n" +
" \"value\": \"B08YRD1CNN\",\n" +
" \"marketplace_id\": \"ATVPDKIKX0DER\"\n" +
" }\n" +
" ],\n" +
" \"purchasable_offer\": [\n" +
" {\n" +
" \"currency\": \"USD\",\n" +
" \"start_at\":\n" +
" {\n" +
" \"value\": \"2021-07-14T19:56:57.717Z\"\n" +
" },\n" +
" \"our_price\": [\n" +
" {\n" +
" \"schedule\": [\n" +
" {\n" +
" \"value_with_tax\": 30.0\n" +
" }\n" +
" ]\n" +
" }\n" +
" ],\n" +
" \"marketplace_id\": \"ATVPDKIKX0DER\"\n" +
" }\n" +
" ],\n" +
" \"fulfillment_availability\": [\n" +
" {\n" +
" \"fulfillment_channel_code\": \"DEFAULT\",\n" +
" \"quantity\": 1,\n" +
" \"marketplace_id\": \"ATVPDKIKX0DER\"\n" +
" }\n" +
" ],\n" +
" \"main_product_image_locator\": [\n" +
" {\n" +
" \"media_location\": \"https://media-origin-na-ssl.integ.amazon.com/images/I/xxxx1.jpg\",\n" +
" \"marketplace_id\": \"ATVPDKIKX0DER\"\n" +
" }\n" +
" ],\n" +
" \"other_product_image_locator_1\": [\n" +
" {\n" +
" \"media_location\": \"https://media-origin-na-ssl.integ.amazon.com/images/I/xxxxx2.jpg\",\n" +
" \"marketplace_id\": \"ATVPDKIKX0DER\"\n" +
" }\n" +
" ],\n" +
" \"other_product_image_locator_2\": [\n" +
" {\n" +
" \"media_location\": \"https://media-origin-na-ssl.integ.amazon.com/images/I/xxxxx3.jpg\",\n" +
" \"marketplace_id\": \"ATVPDKIKX0DER\"\n" +
" }\n" +
" ]\n" +
" },\n" +
" \"offers\": [\n" +
" {\n" +
" \"marketplaceId\": \"ATVPDKIKX0DER\",\n" +
" \"offerType\": \"B2C\",\n" +
" \"price\":\n" +
" {\n" +
" \"currency\": \"USD\",\n" +
" \"amount\": \"30.0\"\n" +
" }\n" +
" }\n" +
" ],\n" +
" \"fulfillmentAvailability\": [\n" +
" {\n" +
" \"fulfillmentChannelCode\": \"DEFAULT\",\n" +
" \"quantity\": 1\n" +
" }\n" +
" ]\n" +
"}";
JSONObject jsonObject = JSONObject.parseObject(json);
listingsItemPutRequest.setAttributes(jsonObject);
listingsItemPutRequest.setProductType("VASE");
listingsItemPutRequest.setRequirements(ListingsItemPutRequest.RequirementsEnum.LISTING);
try {
ListingsItemSubmissionResponse listingsItemSubmissionResponse = listingsApi.putListingsItem(sellerId, sku, Arrays.asList(Pack.US_MARKETPLACE_ID),
listingsItemPutRequest, "");
System.out.println(listingsItemSubmissionResponse);
} catch (ApiException e) {
e.printStackTrace();
}
}
}
如果有错误,就会返回如下结果
class ListingsItemSubmissionResponse {
sku: 50-TS3D-QEPT
status: INVALID
submissionId: 81f2f3bbd5ad4e47beff0c085e9e36a1
issues: [class Issue {
code: 4000001
message: The provided value for 'sku' is invalid.
severity: ERROR
attributeName: sku
}, class Issue {
code: null
message: The attributes are invalid.
severity: ERROR
attributeName: b2b_purchasable_offer
}, class Issue {
code: null
message: The attributes are invalid.
severity: ERROR
attributeName: summaries
}, class Issue {
code: null
message: The attributes are invalid.
severity: ERROR
attributeName: sku
}, class Issue {
code: null
message: The attributes are invalid.
severity: ERROR
attributeName: attributes
}, class Issue {
code: 4000001
message: The provided value for 'attributes' is invalid.
severity: ERROR
attributeName: attributes
}, class Issue {
code: null
message: The attributes are invalid.
severity: ERROR
attributeName: fulfillmentAvailability
}, class Issue {
code: null
message: The attributes are invalid.
severity: ERROR
attributeName: purchasable_offer
}]
}
参考文献
https://gitee.com/penghaiping/amazon-sp-api/tree/master/docs/catalogitems
http://events.jianshu.io/p/59affdb25d53
https://github.com/penghaiping/amazon-sp-api/tree/master/docs
https://segmentfault.com/a/1190000040005829?utm_source=sf-similar-article
https://blog.csdn.net/Sanzhutech/article/details/118637423
https://blog.csdn.net/penghaiping1001/article/details/113524366
https://www.spapi.org.cn/cn/model2/_4_appstore.html
http://blog.sina.com.cn/s/blog_7cb308650102w2lm.html
https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox
https://mp.weixin.qq.com/s/fse3FTBNWfY2nDVbpmeG9w
https://www.amazon.com/gp/help/customer/display.html?nodeId=GGGMZK378RQPATDJ
https://www.51tracking.com/api-index?language=Java#%E5%88%9B%E5%BB%BA%E5%A4%9A%E4%B8%AA%E6%9F%A5%E8%AF%A2