Ponów nieudane operacje
POST
/api/Offers/RetryOffers
const url = 'https://twoja-instancja-sales-offers-erli-api.enterprise.sellrocket.pl/api/Offers/RetryOffers';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"connectionId":"example","offerIds":[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-erli-api.enterprise.sellrocket.pl/api/Offers/RetryOffers \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "connectionId": "example", "offerIds": [ 1 ] }'Ponawia wystawienie lub aktualizację ofert zakończonych błędem.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”object
connectionId
wymagane
string
offerIds
wymagane
Array<integer>
Examplegenerated
{ "connectionId": "example", "offerIds": [ 1 ]}object
connectionId
wymagane
string
offerIds
wymagane
Array<integer>
Examplegenerated
{ "connectionId": "example", "offerIds": [ 1 ]}object
connectionId
wymagane
string
offerIds
wymagane
Array<integer>
Examplegenerated
{ "connectionId": "example", "offerIds": [ 1 ]}Odpowiedzi
Dział zatytułowany „Odpowiedzi”OK
object
retriedOfferIds
wymagane
Array<integer>
rejected
wymagane
Array<object>
object
index
wymagane
integer format: int32
pimProductId
wymagane
integer format: int64
issues
wymagane
Array<object>
object
field
wymagane
string
code
wymagane
string
message
wymagane
string
clientRowId
string
object
retriedOfferIds
wymagane
Array<integer>
rejected
wymagane
Array<object>
object
index
wymagane
integer format: int32
pimProductId
wymagane
integer format: int64
issues
wymagane
Array<object>
object
field
wymagane
string
code
wymagane
string
message
wymagane
string
clientRowId
string
Examplegenerated
{ "retriedOfferIds": [ 1 ], "rejected": [ { "index": 1, "pimProductId": 1, "issues": [ { "field": "example", "code": "example", "message": "example" } ], "clientRowId": "example" } ]}object
retriedOfferIds
wymagane
Array<integer>
rejected
wymagane
Array<object>
object
index
wymagane
integer format: int32
pimProductId
wymagane
integer format: int64
issues
wymagane
Array<object>
object
field
wymagane
string
code
wymagane
string
message
wymagane
string
clientRowId
string
Examplegenerated
{ "retriedOfferIds": [ 1 ], "rejected": [ { "index": 1, "pimProductId": 1, "issues": [ { "field": "example", "code": "example", "message": "example" } ], "clientRowId": "example" } ]}
