Przejdź do głównej zawartości

Powiąż produkty z ofertami

POST
/api/ProductAllegroOffer/LinkProductsToOffers
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.

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
nullable
Examplegenerated
{
"connectionId": "example",
"catalogId": 1,
"productOffers": [
{
"offerId": "example",
"productId": 1,
"parentProductId": 1
}
]
}

OK

object
results
wymagane
Array<object>
object
offerName
wymagane
string
productId
wymagane
integer format: int64
isSuccess
wymagane
boolean
error
string
Dozwolone wartości: ProductNotFound OfferNotFoundInAllegro OfferNotFound WrongCatalog OfferArleadyMapped ProductsStateSyncerError