P_updateAuctionPrice

Updates multiple auctions' prices.

Supported arguments

The following arguments are supported by P_updateAuctionPrice mutation:

FieldTypeDescription
inputP_API_UpdateAuctionPriceInput!

Return type

The mutation returns the P_API_UpdateAuctionPriceResponse type.

This mutation allows for maximum 200 price updates in a single mutation.
Given that you can make 100 mutations with a single request, you can update up to 20 000 auctions prices in a single request.

Example usage

Mutation

Here we are updating multiple auctions' prices.

mutation UpdateManyAuctions {
    update1: P_updateAuctionPrice(input: {
        items: [ # Up to 200 items (price changes) per 1 mutation
            {
                auctionId: "00000000-0000-0000-0000-000000000000",
                enabled: false, # You can also toggle auctions' enabled state
                price: { # You can pass price or priceIWantToGet
                    amount: 100,
                    currency: "EUR"
                },
                preventPaidPriceChange: false
            },
            {
                auctionId: "00000000-0000-0000-0000-000000000000",
                price: { # You can pass price or priceIWantToGet
                    amount: 101,
                    currency: "EUR"
                },
            },
            {
                auctionId: "00000000-0000-0000-0000-000000000000",
                priceIWantToGet: {
                    amount: 100,
                    currency: "EUR"
                },
                preventPaidPriceChange: true # Its possible to prevent price change if you exceeded the update quota and do not want to pay for the price update
            },
            {
                auctionId: "00000000-0000-0000-0000-000000000000",
                wholesale: true, # You can toggle auctions' wholesale status
                wholesalePrice: {
                    amount: 100,
                    currency: "EUR"
                }
            },
        ]
    }) {
        items {
            auctionId # Auction ID
            price {amount currency} # Final auction price that is set
            success # Bool: Whether auction is updated successfully
            paidForPriceChange # Bool
            error # String: Error message (If any)
        }
    }
    update2: P_updateAuctionPrice(input: {
        items: [ # Up to 200 items (price changes) per 1 mutation
            {
                auctionId: "00000000-0000-0000-0000-000000000000",
                price: { # You can pass price or priceIWantToGet
                    amount: 100,
                    currency: "EUR"
                },
                preventPaidPriceChange: false
            },
            {
                auctionId: "00000000-0000-0000-0000-000000000000",
                price: { # You can pass price or priceIWantToGet
                    amount: 101,
                    currency: "EUR"
                },
            },
            {
                auctionId: "00000000-0000-0000-0000-000000000000",
                priceIWantToGet: {
                    amount: 100,
                    currency: "EUR"
                },
                preventPaidPriceChange: true # Its possible to prevent price change if you exceeded the update quota and do not want to pay for the price update
            },
        ]
    }) {
        items {
            auctionId # Auction ID
            price {amount currency} # Final auction price that is set
            success # Bool: Whether auction is updated successfully
            paidForPriceChange # Bool
            error # String: Error message (If any)
        }
    }

    # You can add more mutations in this request for more price updates in a single request
}

Result

{
  "data": {
    "update1": {
      "items": [
        { "auctionId": "00000000-0000-0000-0000-000000000000", "price": { "amount": 100, "currency": "EUR" }, "paidForPriceChange": false, "success": true, "error": null },
        { "auctionId": "00000000-0000-0000-0000-000000000000", "price": { "amount": 101, "currency": "EUR" }, "paidForPriceChange": true, "success": true, "error": null },
        { "auctionId": "00000000-0000-0000-0000-000000000000", "price": { "amount": 100, "currency": "EUR" }, "paidForPriceChange": false, "success": false, "error": "Paid price change is restricted by preventPaidPriceChange flag." }
        { "auctionId": "00000000-0000-0000-0000-000000000000", "price": { "amount": 100, "currency": "EUR" }, "paidForPriceChange": false, "success": true, "error": null }
      ]
    },
    "update2": {
      "items": [
        { "auctionId": "00000000-0000-0000-0000-000000000000", "price": { "amount": 100, "currency": "EUR" }, "paidForPriceChange": false, "success": true, "error": null },
        { "auctionId": "00000000-0000-0000-0000-000000000000", "price": { "amount": 101, "currency": "EUR" }, "paidForPriceChange": true, "success": true, "error": null },
        { "auctionId": "00000000-0000-0000-0000-000000000000", "price": { "amount": 100, "currency": "EUR" }, "paidForPriceChange": false, "success": false, "error": "Paid price change is restricted by preventPaidPriceChange flag." }
      ]
    }
  }
}
Copyright 2026 Eneba. All Rights Reserved. JSC “Helis play”, Gyneju St. 4-333, Vilnius, the Republic of Lithuania