Zaplanuj cykliczny import ofert
POST
/api/ScheduledImport/SetScheduledImport
const url = 'https://twoja-instancja-sales-offers-allegro-api.enterprise.sellrocket.pl/api/ScheduledImport/SetScheduledImport';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"request":{"connectionId":"example","templateId":1,"createProduct":true,"matchBySku":true,"matchByEan":true,"autoRenew":true,"offerIds":["example"],"shippingRateId":"example","pimCatalogId":1,"priceGroupId":1,"warehouseId":1,"findProducts":"example","linkProducts":true},"times":[{"day":1,"hour":1}]}'};
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/ScheduledImport/SetScheduledImport \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "request": { "connectionId": "example", "templateId": 1, "createProduct": true, "matchBySku": true, "matchByEan": true, "autoRenew": true, "offerIds": [ "example" ], "shippingRateId": "example", "pimCatalogId": 1, "priceGroupId": 1, "warehouseId": 1, "findProducts": "example", "linkProducts": true }, "times": [ { "day": 1, "hour": 1 } ] }'Ustawia cykliczny import ofert z Allegro dla konta.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”object
request
wymagane
object
connectionId
wymagane
string
templateId
wymagane
integer format: int32
createProduct
wymagane
boolean
matchBySku
wymagane
boolean
matchByEan
wymagane
boolean
autoRenew
wymagane
boolean
offerIds
Array<string>
shippingRateId
string
pimCatalogId
integer format: int64
priceGroupId
integer format: int32
warehouseId
integer format: int32
findProducts
string
linkProducts
boolean
times
wymagane
Array<object>
object
day
wymagane
integer format: int32
hour
wymagane
integer format: int32
Examplegenerated
{ "request": { "connectionId": "example", "templateId": 1, "createProduct": true, "matchBySku": true, "matchByEan": true, "autoRenew": true, "offerIds": [ "example" ], "shippingRateId": "example", "pimCatalogId": 1, "priceGroupId": 1, "warehouseId": 1, "findProducts": "example", "linkProducts": true }, "times": [ { "day": 1, "hour": 1 } ]}object
request
wymagane
object
connectionId
wymagane
string
templateId
wymagane
integer format: int32
createProduct
wymagane
boolean
matchBySku
wymagane
boolean
matchByEan
wymagane
boolean
autoRenew
wymagane
boolean
offerIds
Array<string>
shippingRateId
string
pimCatalogId
integer format: int64
priceGroupId
integer format: int32
warehouseId
integer format: int32
findProducts
string
linkProducts
boolean
times
wymagane
Array<object>
object
day
wymagane
integer format: int32
hour
wymagane
integer format: int32
Examplegenerated
{ "request": { "connectionId": "example", "templateId": 1, "createProduct": true, "matchBySku": true, "matchByEan": true, "autoRenew": true, "offerIds": [ "example" ], "shippingRateId": "example", "pimCatalogId": 1, "priceGroupId": 1, "warehouseId": 1, "findProducts": "example", "linkProducts": true }, "times": [ { "day": 1, "hour": 1 } ]}object
request
wymagane
object
connectionId
wymagane
string
templateId
wymagane
integer format: int32
createProduct
wymagane
boolean
matchBySku
wymagane
boolean
matchByEan
wymagane
boolean
autoRenew
wymagane
boolean
offerIds
Array<string>
shippingRateId
string
pimCatalogId
integer format: int64
priceGroupId
integer format: int32
warehouseId
integer format: int32
findProducts
string
linkProducts
boolean
times
wymagane
Array<object>
object
day
wymagane
integer format: int32
hour
wymagane
integer format: int32
Examplegenerated
{ "request": { "connectionId": "example", "templateId": 1, "createProduct": true, "matchBySku": true, "matchByEan": true, "autoRenew": true, "offerIds": [ "example" ], "shippingRateId": "example", "pimCatalogId": 1, "priceGroupId": 1, "warehouseId": 1, "findProducts": "example", "linkProducts": true }, "times": [ { "day": 1, "hour": 1 } ]}Odpowiedzi
Dział zatytułowany „Odpowiedzi”OK

