All PostsDiscussionsBlogsIdeasQuestions
  •                    
  •                    
  •                    
  •                    
  •                    
  •                    
  •                    
  •                    
  •                    
  •                    
  •                    
  •                    
  •                    
  •                    
  •                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
Discussions
eBay Community logo
  • Home
  • News & Updates
  • Buying & Selling
    • Buying
    • Selling
    • New to selling on eBay
    • Seller Tools
    • Shipping
    • Returns
    • eBay Advertising
    • Payments
    • Mobile Apps
  • Explore Categories
      • eBay Motors
      • Electronics
      • Collectibles & Art
      • Home & Garden
      • Clothing, Shoes & Accessories
      • Toys & Hobbies
      • Sporting Goods
      • Books, Movies & Music
      • Health & Beauty
      • Business & Industrial
      • Jewelry & Watches
      • Specialty Services
      • eBay Partner Network
      • Accessibility
      • eBay Developers Program
      • eBay Cafe
      • eBay Live
      • Community Mentors
    • Ask a Mentor
  • About
    • About the Community
    • Share Community Platform Feedback
    • Report eBay Technical Issues
    • About eBay
  • Community Events
    • Events
    • Seller Circle Hosts
    • Seller Circles
  • eBay Help
    • Special CategoriesChevronRightIcon
    • eBay Developers ProgramChevronRightIcon
    • RESTful Sell APIsChevronRightIcon
    • Marketing, Analytics, MetadataChevronRightIcon
    [38243] - The 'minQuantity' value is invalid

    Im trying to create a promotion for an article with this payload

     

     

    {
            "name": "Volume Pricing Discount for ",
            "startDate": "2024-12-31T21:18:00.000Z",
            "endDate": "2099-01-30T23:59:59.000Z",
            "marketplaceId": "EBAY_US",
            "promotionStatus": "SCHEDULED",
            "promotionType": "VOLUME_DISCOUNT",
            "applyDiscountToSingleItemOnly": true,
            "inventoryCriterion": {
                "inventoryCriterionType": "INVENTORY_BY_VALUE",
                "listingIds": [1162627126]
            },
            "discountRules": [
                {
                    "discountSpecification": {
                        "minQuantity": 2
                    },
                    "discountBenefit": {
                        "percentageOffOrder": "3"
                    },
                    "ruleOrder": 1
                },
                {
                    "discountSpecification": {
                        "minQuantity": 3
                    },
                    "discountBenefit": {
                        "percentageOffOrder": "4"
                    },
                    "ruleOrder": 2
                }
            ]
        }

     

     

    But i receive the error The 'minQuantity' value is invalid. In documentation, say that minQuantity field need to be integer. I also tested with float and number, but i get same error.

     

    The curl to test is this

     

    curl --location --request POST 'https://api.ebay.com/sell/marketing/v1/item_promotion' \
        --header 'Authorization: Bearer
        --header 'Content-Type: application/json' \
        --header 'X-EBAY-C-MARKETPLACE-ID: EBAY_US' \
        --data-raw '{
            "name": "Volume Pricing Discount for ",
            "startDate": "2024-12-31T21:18:00.000Z",
            "endDate": "2099-01-30T23:59:59.000Z",
            "marketplaceId": "EBAY_US",
            "promotionStatus": "SCHEDULED",
            "promotionType": "VOLUME_DISCOUNT",
            "applyDiscountToSingleItemOnly": true,
            "inventoryCriterion": {
                "inventoryCriterionType": "INVENTORY_BY_VALUE",
                "listingIds": [116262712686]
            },
            "discountRules": [
                {
                    "discountSpecification": {
                        "minQuantity": 2
                    },
                    "discountBenefit": {
                        "percentageOffOrder": "3"
                    },
                    "ruleOrder": 1
                },
                {
                    "discountSpecification": {
                        "minQuantity": 3
                    },
                    "discountBenefit": {
                        "percentageOffOrder": "4"
                    },
                    "ruleOrder": 2
                }
            ]
        }

     

     

    Can anyone help me?

     

    Thanks in advance

     

    javierflti
    javierflti
    Posted 1 year ago · Edited 1 year ago
                                           
             
    0 comments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
                   
                                                                                     
    •                                                              
    •                                                              
    •