Odśwież oferty z Allegro
POST
/api/Offers/RefreshOffers
const url = 'https://twoja-instancja-sales-offers-allegro-api.enterprise.sellrocket.pl/api/Offers/RefreshOffers';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"connectionId":"example","offersIds":["example"],"includeArchived":true}'};
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/Offers/RefreshOffers \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "connectionId": "example", "offersIds": [ "example" ], "includeArchived": true }'Pobiera aktualne dane wskazanych ofert z Allegro; zakończenie sprawdzisz przez RefreshOffersCompleted.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”object
connectionId
wymagane
string
offersIds
wymagane
Array<string>
includeArchived
wymagane
boolean
Examplegenerated
{ "connectionId": "example", "offersIds": [ "example" ], "includeArchived": true}object
connectionId
wymagane
string
offersIds
wymagane
Array<string>
includeArchived
wymagane
boolean
Examplegenerated
{ "connectionId": "example", "offersIds": [ "example" ], "includeArchived": true}object
connectionId
wymagane
string
offersIds
wymagane
Array<string>
includeArchived
wymagane
boolean
Examplegenerated
{ "connectionId": "example", "offersIds": [ "example" ], "includeArchived": true}Odpowiedzi
Dział zatytułowany „Odpowiedzi”OK
string
string
Examplegenerated
examplestring
Examplegenerated
exampleBad Request
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}
