Aktywuj lub zakończ oferty
PUT
/api/Offers/ActivateOrEndOffer
const url = 'https://twoja-instancja-sales-offers-allegro-api.enterprise.sellrocket.pl/api/Offers/ActivateOrEndOffer';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"connectionId":"example","action":"ACTIVATE","scheduledFor":"2026-04-15T12:00:00Z","allegroOfferIds":["example"],"type":"CONTAINS_OFFERS","renewOfferHistoryId":1,"offersCriteria":{"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"]}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://twoja-instancja-sales-offers-allegro-api.enterprise.sellrocket.pl/api/Offers/ActivateOrEndOffer \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "connectionId": "example", "action": "ACTIVATE", "scheduledFor": "2026-04-15T12:00:00Z", "allegroOfferIds": [ "example" ], "type": "CONTAINS_OFFERS", "renewOfferHistoryId": 1, "offersCriteria": { "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" ] } }'Wznawia lub kończy wskazane oferty Allegro; zwraca operację asynchroniczną.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”object
connectionId
wymagane
string
action
wymagane
string
scheduledFor
string format: date-time
allegroOfferIds
Array<string>
type
wymagane
string
renewOfferHistoryId
integer format: int64
offersCriteria
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>
object
connectionId
wymagane
string
action
wymagane
string
scheduledFor
string format: date-time
allegroOfferIds
Array<string>
type
wymagane
string
renewOfferHistoryId
integer format: int64
offersCriteria
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>
object
connectionId
wymagane
string
action
wymagane
string
scheduledFor
string format: date-time
allegroOfferIds
Array<string>
type
wymagane
string
renewOfferHistoryId
integer format: int64
offersCriteria
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>
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}
