cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[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

 

Message 1 of 1
latest reply
0 REPLIES 0