amzn / selling-partner-api-models

This repository contains OpenAPI models for developers to use when developing software to call Selling Partner APIs.
Apache License 2.0
574 stars 730 forks source link

Unable to create listing using POST_PRODUCT_DATA feedType #1404

Closed ashok-damani closed 1 year ago

ashok-damani commented 3 years ago

Hi, I am trying to creating listing using POST_PRODUCT_DATA feedType, I am using below XML:

<?xml version="1.0" encoding="utf-8"?>
<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
<Header>
    <DocumentVersion>1.01</DocumentVersion>
  <MerchantIdentifier>{{MyMerchantIdentifier}}</MerchantIdentifier>
</Header>
<MessageType>Product</MessageType>
<Message>
    <MessageID>1</MessageID>
    <OperationType>Update</OperationType>
    <Product>
        <SKU>ME-9J1B-C24Q-36</SKU>
    <StandardProductID>
      <Type>UPC</Type>
      <Value>YSjsjs899ss</Value>
    </StandardProductID>
    <LaunchDate>2018-07-26T00:00:01</LaunchDate>
    <ReleaseDate>2020-07-26T00:00:01</ReleaseDate>
        <Condition>
      <ConditionType>New</ConditionType>
    </Condition>
        <DescriptionData>
            <Title>Men T-Shirt</Title>
            <Brand>Generic</Brand>
            <Description>Lyric sheeting by Peacock Alley</Description>
            <BulletPoint>made in India</BulletPoint>
            <BulletPoint>500 thread count</BulletPoint>
            <BulletPoint>plain weave (percale)</BulletPoint>
            <BulletPoint>100% Egyptian cotton</BulletPoint>
      <ItemDimensions>
        <Length unitOfMeasure="IN">15</Length>
        <Width unitOfMeasure="IN">10</Width>
        <Height unitOfMeasure="IN">1</Height>
        <Weight unitOfMeasure="GR">100</Weight>
      </ItemDimensions>
      <PackageWeight unitOfMeasure="GR">110</PackageWeight>
      <MaxOrderQuantity>1</MaxOrderQuantity>
            <LegalDisclaimer>NA</LegalDisclaimer>
            <Manufacturer>Peacock Alley</Manufacturer>
      <MfrPartNumber>t-100</MfrPartNumber>
            <SearchTerms>bedding</SearchTerms>
            <ItemType>T-Shirt</ItemType>
      <ExternalProductInformation>6109</ExternalProductInformation>
            <RecommendedBrowseNode>1968123031</RecommendedBrowseNode>
      <DepartmentName>male</DepartmentName>
      <ManufacturerContactInformation>test</ManufacturerContactInformation>
      <ImporterContactInformation>test</ImporterContactInformation>
      <PackerContactInformation>test</PackerContactInformation>
      <UnitCount>1</UnitCount>
      <PPUCountType>count</PPUCountType>
    </DescriptionData>
        <ProductData>
      <Clothing>
              <ClassificationData>
                  <Size>Large</Size>
                  <Color>Red</Color>
          <ClothingType>Shirt</ClothingType>
                  <ColorMap>Red</ColorMap>
                  <MaterialComposition>100% Cotton</MaterialComposition>
                  <CareInstructions>Machine Wash</CareInstructions>
                  <OccasionAndLifestyle>Casual</OccasionAndLifestyle>
                  <Season>Summer</Season>
                  <StyleName>T-Shirt</StyleName>
                  <CollarType>Collarless</CollarType>
                  <SleeveType>HalfSleeve</SleeveType>
                  <CountryOfOrigin>IN</CountryOfOrigin>
                  <SizeMap>Large</SizeMap>
                  <MaterialType>Cotton</MaterialType>
                  <NeckStyle>RoundNeck</NeckStyle>
                  <PatternStyle>Printed</PatternStyle>
                  <CollectionName>MyColl 1</CollectionName>
                  <SpecialFeature>Trendy</SpecialFeature>
                  <SpecialFeature>Latest</SpecialFeature>
                  <SpecialFeature>Round neck</SpecialFeature>
                  <TargetGender>male</TargetGender>
                  <Theme>Cartoon</Theme>
          <OccasionType>Evening</OccasionType>
        </ClassificationData>
        <AgeRangeDescription>adult</AgeRangeDescription>
        <ShirtSizeClass>alpha</ShirtSizeClass>
        <ShirtSizeSystem>as1</ShirtSizeSystem>
        <ShirtSize>l</ShirtSize>
      </Clothing>
        </ProductData>
    </Product>
</Message>
</AmazonEnvelope>

I am getting below error:

<?xml version="1.0" encoding="UTF-8"?>
<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
    <Header>
        <DocumentVersion>1.02</DocumentVersion>
        <MerchantIdentifier>A35LE58I1C8I0</MerchantIdentifier>
    </Header>
    <MessageType>ProcessingReport</MessageType>
    <Message>
        <MessageID>1</MessageID>
        <ProcessingReport>
            <DocumentTransactionID>50032018777</DocumentTransactionID>
            <StatusCode>Complete</StatusCode>
            <ProcessingSummary>
                <MessagesProcessed>1</MessagesProcessed>
                <MessagesSuccessful>0</MessagesSuccessful>
                <MessagesWithError>1</MessagesWithError>
                <MessagesWithWarning>0</MessagesWithWarning>
            </ProcessingSummary>
            <Result>
                <MessageID>1</MessageID>
                <ResultCode>Error</ResultCode>
                <ResultMessageCode>5000</ResultMessageCode>
                <ResultDescription>XML Parsing Error at Line 82, Column 20: cvc-complex-type.2.4.a: Invalid content was found starting with element &apos;ShirtSize&apos;. One of &apos;{ShirtSizeTo, ShirtSleeveLength, ShirtSleeveLengthTo, PlayerName, BackStyle, BeltLengthString, ContainsLiquidContents, Coverage, DisplaySize, HazmatException, ImporterContactInformation, InsulationType, ItemDisplayDiameter, ItemDisplayHeight, ItemDisplayWidth, ItemShape, ItemStyling, ItemTypeName, JacketLength, LeagueName, LiningDescription, NumberOfPieces, SportsNumberOfPockets, ArtistBiography, PackerContactInformation, PadType, ShaftType, SkillLevel, Sport, TeamName, ToeStyle, UnitCount, PPUCountType, WaterResistanceDepth, HazmatRegulatoryPackingGroup, ShoeHeightMap, IsExclusiveProduct, SubBrandName, SupplierDeclaredMaterialRegulation, BottomsBodyType, BottomsHeightType, BottomsInseamSize, BottomsSize, BottomsSizeClass, BottomsSizeSystem, BottomsSizeTo, BottomsWaistSize, CustomerPackageType, Duration, FulfillmentCenterSpecialStorage, GripType, HeadSizeName, HeadwearSize, HeadwearSizeClass, HeadwearSizeSystem, HeadwearSizeTo, ItemBookingDate, LifecycleSupplyType, MatteStyle, ShapewearBandSize, ShapewearBandSizeTo, ShapewearBodyType, ShapewearCupSize, ShapewearCupSizeTo, ShapewearHeightType, ShapewearSize, ShapewearSizeClass, ShapewearSizeSystem, ShapewearSizeTo, SkirtBodyType, SkirtHeightType, SkirtSize, SkirtSizeClass, SkirtSizeSystem, SkirtSizeTo, SkirtWaistSize, TaxClassificationCodeType, Wattage, AirFlowCapacity, AmzMinimum, BatteryCapacity, BatteryDescription, BeltWidth, BladeType, BladeLength, LightOutputLuminance, Capacity, CenterLength, SwitchType, ClosureMaterial, VegetableCompartmentCapacity, CompatibleDevices, CompatibleFastenerRange, CompatibleWithVehicleType, CoolingType, CoolingWattage, CornerRadius, CustomerRestrictionType, CutType, CuttingWidth, DeviceType, DisplayType, EnergyEfficiencyRating, EnergyConsumption, EnergyEfficiencyRatioCooling, EnvironmentalDescription, EuEnergyEfficiencyClassHeating, EuEnergyLabelEfficiencyClass, ExtensionLength, FasteningType, FlushType, PackedSize, GritRating, GritType, HandOrientation, HandleLeverPlacement, HandleMaterial, HeaterWattage, Eye, Horsepower, HoseLength, InsideDiameterString, InstallationType, R-Value, IsAssemblyRequired, ItemDiameter, ItemDisplayArea, DisplayDepth, ItemPitch, ItemThicknessString, ItemTorque, PresentationRemoteLaserColor, OpticalCoatings, LensColor, LightingSourceType, MaximumCurrent, MaximumFlowRate, MaximumPressure, MaximumPower, WeightLimit, MeasurementAccuracy, MeasurementSystem, MinimumEfficiencyReportingValue, MountType, AudibleNoise, NumberOfSinks, NumberOfBoxes, CompartmentQuantity, NumberOfHandles, PlugType, DrillPointType, PowerPlugType, RecycledContentPercentage, ScrewHeadStyle, ShortProductDescription, ShoulderStrapDrop, SizeInfoDisplayName, Speed, SpeedRating, SpoutHeight, SpoutReach, StorageVolume, CordLength, SwitchStyle, TargetAudienceBase, TemperatureRange, ThreadPitch, RoughIn, TubingOutsideDiameter, UVProtection, ViewingArea, VolumeCapacityName, WaterConsumption, ClaspType, ExtendedLength, HasBuiltinLight, NoiseAttenuation, NoiseControl, ProductBenefit, MaterialTypeFree}&apos; is expected.</ResultDescription>
                <AdditionalInfo>
                    <SKU>ME-9J1B-C24Q-36</SKU>
                </AdditionalInfo>
            </Result>
        </ProcessingReport>
    </Message>
</AmazonEnvelope>
yafeng33 commented 2 years ago

I have the same problem, may I ask, has your problem been solved?

globelane commented 2 years ago

Is this resolved ? I am getting the same issue .

github-actions[bot] commented 1 year ago

This is a very old issue that is probably not getting as much attention as it deserves. We encourage you to check if this is still an issue after the latest release and if you find that this is still a problem, please feel free to open a new issue and make a reference to this one.

github-actions[bot] commented 1 year ago

closed for inactivity