Powiąż produkty z ofertami
POST
/api/ProductAllegroOffer/LinkProductsToOffers
const url = 'https://twoja-instancja-sales-offers-allegro-api.enterprise.sellrocket.pl/api/ProductAllegroOffer/LinkProductsToOffers';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"connectionId":"example","catalogId":1,"productOffers":[{"offerId":"example","productId":1,"parentProductId":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/ProductAllegroOffer/LinkProductsToOffers \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "connectionId": "example", "catalogId": 1, "productOffers": [ { "offerId": "example", "productId": 1, "parentProductId": 1 } ] }'Łączy produkty z istniejącymi ofertami Allegro.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”object
connectionId
wymagane
string
catalogId
wymagane
integer format: int32
productOffers
wymagane
Array<object>
object
offerId
wymagane
string
productId
wymagane
integer format: int64
parentProductId
integer format: int64
Examplegenerated
{ "connectionId": "example", "catalogId": 1, "productOffers": [ { "offerId": "example", "productId": 1, "parentProductId": 1 } ]}object
connectionId
wymagane
string
catalogId
wymagane
integer format: int32
productOffers
wymagane
Array<object>
object
offerId
wymagane
string
productId
wymagane
integer format: int64
parentProductId
integer format: int64
Examplegenerated
{ "connectionId": "example", "catalogId": 1, "productOffers": [ { "offerId": "example", "productId": 1, "parentProductId": 1 } ]}object
connectionId
wymagane
string
catalogId
wymagane
integer format: int32
productOffers
wymagane
Array<object>
object
offerId
wymagane
string
productId
wymagane
integer format: int64
parentProductId
integer format: int64
Examplegenerated
{ "connectionId": "example", "catalogId": 1, "productOffers": [ { "offerId": "example", "productId": 1, "parentProductId": 1 } ]}Odpowiedzi
Dział zatytułowany „Odpowiedzi”OK
object
results
wymagane
Array<object>
object
offerName
wymagane
string
productId
wymagane
integer format: int64
isSuccess
wymagane
boolean
error
string
object
results
wymagane
Array<object>
object
offerName
wymagane
string
productId
wymagane
integer format: int64
isSuccess
wymagane
boolean
error
string
Example
{ "results": [ { "error": "ProductNotFound" } ]}object
results
wymagane
Array<object>
object
offerName
wymagane
string
productId
wymagane
integer format: int64
isSuccess
wymagane
boolean
error
string
Example
{ "results": [ { "error": "ProductNotFound" } ]}
