Importuj oferty z Allegro
POST
/api/ProductAllegroOffer/ImportOffersFromAllegro
const url = 'https://twoja-instancja-sales-offers-allegro-api.enterprise.sellrocket.pl/api/ProductAllegroOffer/ImportOffersFromAllegro';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"connectionId":"example","templateId":1,"createProduct":true,"matchBySku":true,"matchByEan":true,"autoRenew":true,"offerIds":["example"],"shippingRateId":"example","pimCatalogId":1,"priceGroupId":1,"warehouseId":1,"findProducts":"example","complexFields":[{"name":"example","description":"example","caption":"example","type":"example","additionalFieldMapping":"example","options":["example"],"id":1,"value":"example"}],"limit":1,"offset":1,"autoImport":true,"linkProducts":true,"initiator":"example"}'};
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/ImportOffersFromAllegro \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "connectionId": "example", "templateId": 1, "createProduct": true, "matchBySku": true, "matchByEan": true, "autoRenew": true, "offerIds": [ "example" ], "shippingRateId": "example", "pimCatalogId": 1, "priceGroupId": 1, "warehouseId": 1, "findProducts": "example", "complexFields": [ { "name": "example", "description": "example", "caption": "example", "type": "example", "additionalFieldMapping": "example", "options": [ "example" ], "id": 1, "value": "example" } ], "limit": 1, "offset": 1, "autoImport": true, "linkProducts": true, "initiator": "example" }'Pobiera istniejące oferty z konta Allegro i wiąże je z produktami – przydatne przy migracji z BaseLinkera.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”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
complexFields
Array<object>
object
name
string
description
string
caption
string
type
string
additionalFieldMapping
string
options
Array<string>
id
integer format: int64
value
string
limit
integer format: int32
offset
integer format: int32
autoImport
boolean
linkProducts
boolean
initiator
string
Examplegenerated
{ "connectionId": "example", "templateId": 1, "createProduct": true, "matchBySku": true, "matchByEan": true, "autoRenew": true, "offerIds": [ "example" ], "shippingRateId": "example", "pimCatalogId": 1, "priceGroupId": 1, "warehouseId": 1, "findProducts": "example", "complexFields": [ { "name": "example", "description": "example", "caption": "example", "type": "example", "additionalFieldMapping": "example", "options": [ "example" ], "id": 1, "value": "example" } ], "limit": 1, "offset": 1, "autoImport": true, "linkProducts": true, "initiator": "example"}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
complexFields
Array<object>
object
name
string
description
string
caption
string
type
string
additionalFieldMapping
string
options
Array<string>
id
integer format: int64
value
string
limit
integer format: int32
offset
integer format: int32
autoImport
boolean
linkProducts
boolean
initiator
string
Examplegenerated
{ "connectionId": "example", "templateId": 1, "createProduct": true, "matchBySku": true, "matchByEan": true, "autoRenew": true, "offerIds": [ "example" ], "shippingRateId": "example", "pimCatalogId": 1, "priceGroupId": 1, "warehouseId": 1, "findProducts": "example", "complexFields": [ { "name": "example", "description": "example", "caption": "example", "type": "example", "additionalFieldMapping": "example", "options": [ "example" ], "id": 1, "value": "example" } ], "limit": 1, "offset": 1, "autoImport": true, "linkProducts": true, "initiator": "example"}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
complexFields
Array<object>
object
name
string
description
string
caption
string
type
string
additionalFieldMapping
string
options
Array<string>
id
integer format: int64
value
string
limit
integer format: int32
offset
integer format: int32
autoImport
boolean
linkProducts
boolean
initiator
string
Examplegenerated
{ "connectionId": "example", "templateId": 1, "createProduct": true, "matchBySku": true, "matchByEan": true, "autoRenew": true, "offerIds": [ "example" ], "shippingRateId": "example", "pimCatalogId": 1, "priceGroupId": 1, "warehouseId": 1, "findProducts": "example", "complexFields": [ { "name": "example", "description": "example", "caption": "example", "type": "example", "additionalFieldMapping": "example", "options": [ "example" ], "id": 1, "value": "example" } ], "limit": 1, "offset": 1, "autoImport": true, "linkProducts": true, "initiator": "example"}Odpowiedzi
Dział zatytułowany „Odpowiedzi”Accepted

