Przejdź do głównej zawartości

Edytuj oferty zbiorczo

POST
/api/ProductAllegroOffer/EditOffers
curl --request POST \
--url https://twoja-instancja-sales-offers-allegro-api.enterprise.sellrocket.pl/api/ProductAllegroOffer/EditOffers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "criteria": { "connectionId": "example", "limit": 1, "offset": 1, "sortType": "StartDate", "sortOrder": "Ascending", "offerIds": [ "example" ], "status": "ACTIVE", "offerName": "example", "productIds": [ 1 ], "productSkuValues": [ "example" ], "productEanValues": [ "example" ], "offerSkuValues": [ "example" ], "offerEanValues": [ "example" ], "allegroPriceFrom": 1, "allegroPriceTo": 1, "allegroQuantityFrom": 1, "allegroQuantityTo": 1, "pimQuantityFrom": 1, "pimQuantityTo": 1, "offerWarning": "None", "includeArchived": true, "includePermanentyDeleted": true, "autoRenewStatus": "AutoRenewEnabled", "pimCategoryIds": [ 1 ], "allegroSoldQuantityFrom": 1, "allegroSoldQuantityTo": 1, "offerStartDateFrom": "2026-04-15T12:00:00Z", "offerStartDateTo": "2026-04-15T12:00:00Z", "offerEndDateFrom": "2026-04-15T12:00:00Z", "offerEndDateTo": "2026-04-15T12:00:00Z", "responsibleProducerId": "example", "responsiblePersonId": "example", "isSyncerPriceUpdateEnabled": true, "isSyncerStockUpdateEnabled": true, "isPromoted": true, "productVariantId": 1, "templateId": 1, "pimCatalogId": 1, "offerTags": [ "example" ], "offerCategoryIds": [ "example" ] }, "connectionId": "example", "templateId": 1, "updateParametersFromAllegroProduct": true, "city": "example", "country": "example", "postCode": "example", "province": "example", "sku": "example", "ean": "example", "editDescription": { "descriptionModification": "UpdateFromWarehouse", "phrase": "example", "phraseToReplace": "example", "updateTemplate": true }, "taxSettingRates": [ { "rate": "example", "countryCode": "example", "selected": true, "toDelete": true } ], "editParameters": { "parametersWithValues": [ { "name": "example", "valuesWithIds": [ { "value": "example", "valueId": "example" } ], "type": "OfferParameter", "categoryId": "example" } ], "gpsr": true, "useParametersFromRules": true }, "editPrice": { "priceModification": "Increase", "modifyPriceValue": 1, "rounding": "NoRounding", "currency": "example" }, "editStock": { "stockModification": "SetToWarehouseStock", "endAuctionIfEmptyStock": true, "stockValue": 1 }, "editShippingRates": { "shippingRatesModification": "UpdateCurrent", "shippingRatesId": "example" }, "editTitle": { "titleTextToAdd": "example", "titleTextToReplace": "example" }, "editSafetyInformation": { "text": "example", "type": "Text", "complexFieldName": "example" }, "handlingTime": "PT0S", "eanModification": "SetEan", "taxSettingsModification": "UpdateVatFromPim", "titleModification": "EndText", "skuModification": "SetSku", "newStatus": "ACTIVE", "duration": "example", "delivery": { "shippingRates": { "id": "example" }, "handlingTime": "example", "additionalInfo": "example", "shipmentDate": "example" }, "afterSalesServices": { "impliedWarranty": { "id": "example" }, "returnPolicy": { "id": "example" }, "warranty": { "id": "example" } }, "complexOperationType": "Edit", "responsibleProducerId": "example", "responsiblePersonId": "example", "offerTags": [ "example" ], "modifyOffersPromotionPackages": { "useDepartmentPagePromo": true, "basePackageId": "example", "promotionModificationType": "CHANGE" }, "renewOfferHistoryId": 1, "editShipmentDate": true, "editWholesalePriceList": { "id": "example" }, "scheduledDate": "2026-04-15T12:00:00Z", "editImages": true }'

Zmienia wybrane pola wielu ofert Allegro; zwraca operację asynchroniczną.

object
criteria
wymagane
object
connectionId
wymagane
string
limit
wymagane
integer format: int32
offset
wymagane
integer format: int32
sortType
string
Dozwolone wartości: StartDate EndDate Price StockSold StockAvailable StockWarehouse OfferId Sku
sortOrder
string
Dozwolone wartości: Ascending Descending
offerIds
Array<string>
nullable
status
string
Dozwolone wartości: ACTIVE ENDED INACTIVE ACTIVATING ARCHIVED DELETED
offerName
string
nullable
productIds
Array<integer>
nullable
productSkuValues
Array<string>
nullable
productEanValues
Array<string>
nullable
offerSkuValues
Array<string>
nullable
offerEanValues
Array<string>
nullable
allegroPriceFrom
number format: double
nullable
allegroPriceTo
number format: double
nullable
allegroQuantityFrom
integer format: int32
nullable
allegroQuantityTo
integer format: int32
nullable
pimQuantityFrom
integer format: int32
nullable
pimQuantityTo
integer format: int32
nullable
offerWarning
string
Dozwolone wartości: None MoreProductsInAllegro NotLinked NotExistInPim NoSalesFor11Months
includeArchived
boolean
nullable
includePermanentyDeleted
boolean
nullable
autoRenewStatus
string
Dozwolone wartości: AutoRenewEnabled AutoRenewDisabled LastOperationFailed
pimCategoryIds
Array<integer>
nullable
allegroSoldQuantityFrom
integer format: int32
nullable
allegroSoldQuantityTo
integer format: int32
nullable
offerStartDateFrom
string format: date-time
nullable
offerStartDateTo
string format: date-time
nullable
offerEndDateFrom
string format: date-time
nullable
offerEndDateTo
string format: date-time
nullable
responsibleProducerId
string
nullable
responsiblePersonId
string
nullable
isSyncerPriceUpdateEnabled
boolean
nullable
isSyncerStockUpdateEnabled
boolean
nullable
isPromoted
boolean
nullable
productVariantId
integer format: int64
nullable
templateId
integer format: int64
nullable
pimCatalogId
integer format: int64
nullable
offerTags
Array<string>
nullable
offerCategoryIds
Array<string>
nullable
connectionId
wymagane
string
templateId
integer format: int64
nullable
updateParametersFromAllegroProduct
boolean
nullable
city
string
nullable
country
string
nullable
postCode
string
nullable
province
string
nullable
sku
string
nullable
ean
string
nullable
editDescription
object
descriptionModification
wymagane
string
Dozwolone wartości: UpdateFromWarehouse StartText EndText UpdatePhrase
phrase
string
nullable
phraseToReplace
string
nullable
updateTemplate
wymagane
boolean
taxSettingRates
Array<object>
nullable
object
rate
string
nullable
countryCode
string
nullable
selected
wymagane
boolean
toDelete
wymagane
boolean
editParameters
object
parametersWithValues
wymagane
Array<object>
object
name
wymagane
string
valuesWithIds
wymagane
Array<object>
object
value
wymagane
string
valueId
string
nullable
type
wymagane
string
Dozwolone wartości: OfferParameter ProductParameter
categoryId
wymagane
string
gpsr
boolean
nullable
useParametersFromRules
wymagane
boolean
editPrice
object
priceModification
wymagane
string
Dozwolone wartości: Increase IncreasePercentage Decrease DecreasePercentage SetTo FromWarehouse
modifyPriceValue
number format: double
nullable
rounding
wymagane
string
Dozwolone wartości: NoRounding RoundToNearestWholeNumberUp RoundToNearestWholeNumberDown RoundToPoint99Up RoundToPoint99Down RoundToNearestPointX9Up RoundToNearestPointX9Down RoundToNearestPointX9UpAndDown RoundToNearestPoint10
currency
string
nullable
editStock
object
stockModification
wymagane
string
Dozwolone wartości: SetToWarehouseStock SetToWarehouseStockWithMaxValue IncreaseStock DecreaseStock SetStock
endAuctionIfEmptyStock
wymagane
boolean
stockValue
integer format: int32
nullable
editShippingRates
object
shippingRatesModification
wymagane
string
Dozwolone wartości: UpdateCurrent ConnectionDefault SetTo
shippingRatesId
string
nullable
editTitle
object
titleTextToAdd
string
nullable
titleTextToReplace
string
nullable
editSafetyInformation
object
text
string
nullable
type
wymagane
string
Dozwolone wartości: Text Attachments Extra_field
complexFieldName
string
nullable
handlingTime
string
Dozwolone wartości: PT0S PT24H P2D P3D P4D P5D P7D P10D P14D P21D P30D P60D
eanModification
string
Dozwolone wartości: SetEan UpdateEanFromPim DeleteEan
taxSettingsModification
string
Dozwolone wartości: UpdateVatFromPim SetVat DeleteVat
titleModification
string
Dozwolone wartości: EndText StartText UpdatePhrase UpdateFromWarehouse UpdateManually
skuModification
string
Dozwolone wartości: SetSku UpdateSku InsertProductIdAsSku
newStatus
string
Dozwolone wartości: ACTIVE ENDED INACTIVE ACTIVATING ARCHIVED DELETED
duration
string
nullable
delivery
object
shippingRates
object
id
wymagane
string
handlingTime
string
nullable
additionalInfo
string
nullable
shipmentDate
string
nullable
afterSalesServices
object
impliedWarranty
object
id
wymagane
string
returnPolicy
object
id
wymagane
string
warranty
object
id
wymagane
string
complexOperationType
wymagane
string
Dozwolone wartości: Edit Activate End ListOnAnotherAccount SetRenewOffers SetSynchronizationOfStocksAndPrices ChangeOfferSettingsOnRenew DeleteOffersFromSystem LinkWithWarehouseProducts MergeIntoVariantGroup UpdateOfferParametersInPim UpdateOfferDescriptionAndImagesInPim
responsibleProducerId
string
nullable
responsiblePersonId
string
nullable
offerTags
Array<string>
nullable
modifyOffersPromotionPackages
object
useDepartmentPagePromo
wymagane
boolean
basePackageId
wymagane
string
promotionModificationType
wymagane
string
Dozwolone wartości: CHANGE REMOVE_WITH_END_OF_CYCLE REMOVE_NOW
renewOfferHistoryId
integer format: int64
nullable
editShipmentDate
boolean
nullable
editWholesalePriceList
object
id
string
nullable
scheduledDate
string format: date-time
nullable
editImages
boolean
nullable

OK

object
id
wymagane
integer format: int64