Ustaw synchronizację stanu i ceny oferty
POST
/api/Synchronization/SetSyncProduct
const url = 'https://twoja-instancja-sales-offers-allegro-api.enterprise.sellrocket.pl/api/Synchronization/SetSyncProduct';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"connectionId":"example","productId":1,"offerId":"example","syncStockOption":"DoNothing","syncPriceOption":"DoNothing"}'};
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/Synchronization/SetSyncProduct \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "connectionId": "example", "productId": 1, "offerId": "example", "syncStockOption": "DoNothing", "syncPriceOption": "DoNothing" }'Określa, czy stan magazynowy i cena oferty Allegro mają być synchronizowane z produktem.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”object
connectionId
wymagane
string
productId
integer format: int64
offerId
wymagane
string
syncStockOption
wymagane
string
syncPriceOption
wymagane
string
object
connectionId
wymagane
string
productId
integer format: int64
offerId
wymagane
string
syncStockOption
wymagane
string
syncPriceOption
wymagane
string
object
connectionId
wymagane
string
productId
integer format: int64
offerId
wymagane
string
syncStockOption
wymagane
string
syncPriceOption
wymagane
string
Odpowiedzi
Dział zatytułowany „Odpowiedzi”OK
boolean
boolean
Examplegenerated
trueboolean
Examplegenerated
true
