Edytuj oferty zbiorczo
POST
/api/ProductAllegroOffer/EditOffers
const url = 'https://twoja-instancja-sales-offers-allegro-api.enterprise.sellrocket.pl/api/ProductAllegroOffer/EditOffers';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"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}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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ą.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”object
criteria
wymagane
object
connectionId
wymagane
string
limit
wymagane
integer format: int32
offset
wymagane
integer format: int32
sortType
string
sortOrder
string
offerIds
Array<string>
status
string
offerName
string
productIds
Array<integer>
productSkuValues
Array<string>
productEanValues
Array<string>
offerSkuValues
Array<string>
offerEanValues
Array<string>
allegroPriceFrom
number format: double
allegroPriceTo
number format: double
allegroQuantityFrom
integer format: int32
allegroQuantityTo
integer format: int32
pimQuantityFrom
integer format: int32
pimQuantityTo
integer format: int32
offerWarning
string
includeArchived
boolean
includePermanentyDeleted
boolean
autoRenewStatus
string
pimCategoryIds
Array<integer>
allegroSoldQuantityFrom
integer format: int32
allegroSoldQuantityTo
integer format: int32
offerStartDateFrom
string format: date-time
offerStartDateTo
string format: date-time
offerEndDateFrom
string format: date-time
offerEndDateTo
string format: date-time
responsibleProducerId
string
responsiblePersonId
string
isSyncerPriceUpdateEnabled
boolean
isSyncerStockUpdateEnabled
boolean
isPromoted
boolean
productVariantId
integer format: int64
templateId
integer format: int64
pimCatalogId
integer format: int64
offerTags
Array<string>
offerCategoryIds
Array<string>
connectionId
wymagane
string
templateId
integer format: int64
updateParametersFromAllegroProduct
boolean
city
string
country
string
postCode
string
province
string
sku
string
ean
string
editDescription
object
descriptionModification
wymagane
string
phrase
string
phraseToReplace
string
updateTemplate
wymagane
boolean
taxSettingRates
Array<object>
object
rate
string
countryCode
string
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
type
wymagane
string
categoryId
wymagane
string
gpsr
boolean
useParametersFromRules
wymagane
boolean
editPrice
object
priceModification
wymagane
string
modifyPriceValue
number format: double
rounding
wymagane
string
currency
string
editStock
object
stockModification
wymagane
string
endAuctionIfEmptyStock
wymagane
boolean
stockValue
integer format: int32
editShippingRates
object
shippingRatesModification
wymagane
string
shippingRatesId
string
editTitle
object
titleTextToAdd
string
titleTextToReplace
string
editSafetyInformation
object
text
string
type
wymagane
string
complexFieldName
string
handlingTime
string
eanModification
string
taxSettingsModification
string
titleModification
string
skuModification
string
newStatus
string
duration
string
delivery
object
shippingRates
object
id
wymagane
string
handlingTime
string
additionalInfo
string
shipmentDate
string
afterSalesServices
object
impliedWarranty
object
id
wymagane
string
returnPolicy
object
id
wymagane
string
warranty
object
id
wymagane
string
complexOperationType
wymagane
string
responsibleProducerId
string
responsiblePersonId
string
offerTags
Array<string>
modifyOffersPromotionPackages
object
useDepartmentPagePromo
wymagane
boolean
basePackageId
wymagane
string
promotionModificationType
wymagane
string
renewOfferHistoryId
integer format: int64
editShipmentDate
boolean
editWholesalePriceList
object
id
string
scheduledDate
string format: date-time
editImages
boolean
object
criteria
wymagane
object
connectionId
wymagane
string
limit
wymagane
integer format: int32
offset
wymagane
integer format: int32
sortType
string
sortOrder
string
offerIds
Array<string>
status
string
offerName
string
productIds
Array<integer>
productSkuValues
Array<string>
productEanValues
Array<string>
offerSkuValues
Array<string>
offerEanValues
Array<string>
allegroPriceFrom
number format: double
allegroPriceTo
number format: double
allegroQuantityFrom
integer format: int32
allegroQuantityTo
integer format: int32
pimQuantityFrom
integer format: int32
pimQuantityTo
integer format: int32
offerWarning
string
includeArchived
boolean
includePermanentyDeleted
boolean
autoRenewStatus
string
pimCategoryIds
Array<integer>
allegroSoldQuantityFrom
integer format: int32
allegroSoldQuantityTo
integer format: int32
offerStartDateFrom
string format: date-time
offerStartDateTo
string format: date-time
offerEndDateFrom
string format: date-time
offerEndDateTo
string format: date-time
responsibleProducerId
string
responsiblePersonId
string
isSyncerPriceUpdateEnabled
boolean
isSyncerStockUpdateEnabled
boolean
isPromoted
boolean
productVariantId
integer format: int64
templateId
integer format: int64
pimCatalogId
integer format: int64
offerTags
Array<string>
offerCategoryIds
Array<string>
connectionId
wymagane
string
templateId
integer format: int64
updateParametersFromAllegroProduct
boolean
city
string
country
string
postCode
string
province
string
sku
string
ean
string
editDescription
object
descriptionModification
wymagane
string
phrase
string
phraseToReplace
string
updateTemplate
wymagane
boolean
taxSettingRates
Array<object>
object
rate
string
countryCode
string
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
type
wymagane
string
categoryId
wymagane
string
gpsr
boolean
useParametersFromRules
wymagane
boolean
editPrice
object
priceModification
wymagane
string
modifyPriceValue
number format: double
rounding
wymagane
string
currency
string
editStock
object
stockModification
wymagane
string
endAuctionIfEmptyStock
wymagane
boolean
stockValue
integer format: int32
editShippingRates
object
shippingRatesModification
wymagane
string
shippingRatesId
string
editTitle
object
titleTextToAdd
string
titleTextToReplace
string
editSafetyInformation
object
text
string
type
wymagane
string
complexFieldName
string
handlingTime
string
eanModification
string
taxSettingsModification
string
titleModification
string
skuModification
string
newStatus
string
duration
string
delivery
object
shippingRates
object
id
wymagane
string
handlingTime
string
additionalInfo
string
shipmentDate
string
afterSalesServices
object
impliedWarranty
object
id
wymagane
string
returnPolicy
object
id
wymagane
string
warranty
object
id
wymagane
string
complexOperationType
wymagane
string
responsibleProducerId
string
responsiblePersonId
string
offerTags
Array<string>
modifyOffersPromotionPackages
object
useDepartmentPagePromo
wymagane
boolean
basePackageId
wymagane
string
promotionModificationType
wymagane
string
renewOfferHistoryId
integer format: int64
editShipmentDate
boolean
editWholesalePriceList
object
id
string
scheduledDate
string format: date-time
editImages
boolean
object
criteria
wymagane
object
connectionId
wymagane
string
limit
wymagane
integer format: int32
offset
wymagane
integer format: int32
sortType
string
sortOrder
string
offerIds
Array<string>
status
string
offerName
string
productIds
Array<integer>
productSkuValues
Array<string>
productEanValues
Array<string>
offerSkuValues
Array<string>
offerEanValues
Array<string>
allegroPriceFrom
number format: double
allegroPriceTo
number format: double
allegroQuantityFrom
integer format: int32
allegroQuantityTo
integer format: int32
pimQuantityFrom
integer format: int32
pimQuantityTo
integer format: int32
offerWarning
string
includeArchived
boolean
includePermanentyDeleted
boolean
autoRenewStatus
string
pimCategoryIds
Array<integer>
allegroSoldQuantityFrom
integer format: int32
allegroSoldQuantityTo
integer format: int32
offerStartDateFrom
string format: date-time
offerStartDateTo
string format: date-time
offerEndDateFrom
string format: date-time
offerEndDateTo
string format: date-time
responsibleProducerId
string
responsiblePersonId
string
isSyncerPriceUpdateEnabled
boolean
isSyncerStockUpdateEnabled
boolean
isPromoted
boolean
productVariantId
integer format: int64
templateId
integer format: int64
pimCatalogId
integer format: int64
offerTags
Array<string>
offerCategoryIds
Array<string>
connectionId
wymagane
string
templateId
integer format: int64
updateParametersFromAllegroProduct
boolean
city
string
country
string
postCode
string
province
string
sku
string
ean
string
editDescription
object
descriptionModification
wymagane
string
phrase
string
phraseToReplace
string
updateTemplate
wymagane
boolean
taxSettingRates
Array<object>
object
rate
string
countryCode
string
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
type
wymagane
string
categoryId
wymagane
string
gpsr
boolean
useParametersFromRules
wymagane
boolean
editPrice
object
priceModification
wymagane
string
modifyPriceValue
number format: double
rounding
wymagane
string
currency
string
editStock
object
stockModification
wymagane
string
endAuctionIfEmptyStock
wymagane
boolean
stockValue
integer format: int32
editShippingRates
object
shippingRatesModification
wymagane
string
shippingRatesId
string
editTitle
object
titleTextToAdd
string
titleTextToReplace
string
editSafetyInformation
object
text
string
type
wymagane
string
complexFieldName
string
handlingTime
string
eanModification
string
taxSettingsModification
string
titleModification
string
skuModification
string
newStatus
string
duration
string
delivery
object
shippingRates
object
id
wymagane
string
handlingTime
string
additionalInfo
string
shipmentDate
string
afterSalesServices
object
impliedWarranty
object
id
wymagane
string
returnPolicy
object
id
wymagane
string
warranty
object
id
wymagane
string
complexOperationType
wymagane
string
responsibleProducerId
string
responsiblePersonId
string
offerTags
Array<string>
modifyOffersPromotionPackages
object
useDepartmentPagePromo
wymagane
boolean
basePackageId
wymagane
string
promotionModificationType
wymagane
string
renewOfferHistoryId
integer format: int64
editShipmentDate
boolean
editWholesalePriceList
object
id
string
scheduledDate
string format: date-time
editImages
boolean
Odpowiedzi
Dział zatytułowany „Odpowiedzi”OK
object
id
wymagane
integer format: int64
object
id
wymagane
integer format: int64
Examplegenerated
{ "id": 1}object
id
wymagane
integer format: int64
Examplegenerated
{ "id": 1}
