Przejdź do głównej zawartości

Aktywuj lub zakończ oferty

PUT
/api/Offers/ActivateOrEndOffer
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ą.

object
connectionId
wymagane
string
action
wymagane
string
Dozwolone wartości: ACTIVATE END
scheduledFor
string format: date-time
nullable
allegroOfferIds
Array<string>
nullable
type
wymagane
string
Dozwolone wartości: CONTAINS_OFFERS
renewOfferHistoryId
integer format: int64
nullable
offersCriteria
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

OK

object
id
wymagane
integer format: int64