Rozpocznij import ofert z Erli
POST
/api/Offers/StartMarketplaceOfferImport
const url = 'https://twoja-instancja-sales-offers-erli-api.enterprise.sellrocket.pl/api/Offers/StartMarketplaceOfferImport';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"connectionId":"example","marketplaceIds":[1],"matchByEan":true,"matchBySku":true,"pimCatalogId":1,"autoRenewImported":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-erli-api.enterprise.sellrocket.pl/api/Offers/StartMarketplaceOfferImport \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "connectionId": "example", "marketplaceIds": [ 1 ], "matchByEan": true, "matchBySku": true, "pimCatalogId": 1, "autoRenewImported": true }'Importuje istniejące oferty z konta Erli i wiąże je z produktami. Przydatne przy migracji.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”object
connectionId
wymagane
string
marketplaceIds
Array<integer>
matchByEan
wymagane
boolean
matchBySku
wymagane
boolean
pimCatalogId
integer format: int64
autoRenewImported
wymagane
boolean
Examplegenerated
{ "connectionId": "example", "marketplaceIds": [ 1 ], "matchByEan": true, "matchBySku": true, "pimCatalogId": 1, "autoRenewImported": true}object
connectionId
wymagane
string
marketplaceIds
Array<integer>
matchByEan
wymagane
boolean
matchBySku
wymagane
boolean
pimCatalogId
integer format: int64
autoRenewImported
wymagane
boolean
Examplegenerated
{ "connectionId": "example", "marketplaceIds": [ 1 ], "matchByEan": true, "matchBySku": true, "pimCatalogId": 1, "autoRenewImported": true}object
connectionId
wymagane
string
marketplaceIds
Array<integer>
matchByEan
wymagane
boolean
matchBySku
wymagane
boolean
pimCatalogId
integer format: int64
autoRenewImported
wymagane
boolean
Examplegenerated
{ "connectionId": "example", "marketplaceIds": [ 1 ], "matchByEan": true, "matchBySku": true, "pimCatalogId": 1, "autoRenewImported": true}Odpowiedzi
Dział zatytułowany „Odpowiedzi”Accepted
object
importId
wymagane
integer format: int64
alreadyRunning
wymagane
boolean
object
importId
wymagane
integer format: int64
alreadyRunning
wymagane
boolean
Examplegenerated
{ "importId": 1, "alreadyRunning": true}object
importId
wymagane
integer format: int64
alreadyRunning
wymagane
boolean
Examplegenerated
{ "importId": 1, "alreadyRunning": true}
