Ustaw powiązanie produktu z ofertą
POST
/api/ProductAllegroOffer/SetProductAllegroOffer
const url = 'https://twoja-instancja-sales-offers-allegro-api.enterprise.sellrocket.pl/api/ProductAllegroOffer/SetProductAllegroOffer';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"connectionId":"example","productId":1,"allegroOfferId":"example","templateId":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/SetProductAllegroOffer \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "connectionId": "example", "productId": 1, "allegroOfferId": "example", "templateId": 1 }'Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”object
connectionId
wymagane
string
productId
wymagane
integer format: int64
allegroOfferId
wymagane
string
templateId
wymagane
integer format: int32
Examplegenerated
{ "connectionId": "example", "productId": 1, "allegroOfferId": "example", "templateId": 1}object
connectionId
wymagane
string
productId
wymagane
integer format: int64
allegroOfferId
wymagane
string
templateId
wymagane
integer format: int32
Examplegenerated
{ "connectionId": "example", "productId": 1, "allegroOfferId": "example", "templateId": 1}object
connectionId
wymagane
string
productId
wymagane
integer format: int64
allegroOfferId
wymagane
string
templateId
wymagane
integer format: int32
Examplegenerated
{ "connectionId": "example", "productId": 1, "allegroOfferId": "example", "templateId": 1}Odpowiedzi
Dział zatytułowany „Odpowiedzi”OK

