Wystaw lub zaktualizuj oferty (paczka)
POST
/api/Offers/SubmitOffersBatch
const url = 'https://twoja-instancja-sales-offers-erli-api.enterprise.sellrocket.pl/api/Offers/SubmitOffersBatch';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"offers":[{"pimProductId":1,"name":"example","price":1,"stock":1,"deliveryPriceList":"example","categoryId":1,"attributes":[{"id":1,"type":"example","values":["example"],"name":"example"}],"imageUrls":["example"],"ean":"example","sku":"example","weightKg":1,"description":"example","status":"example","dispatchTimeDays":1,"taxRate":"example","clientRowId":"example"}]}'};
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/SubmitOffersBatch \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "offers": [ { "pimProductId": 1, "name": "example", "price": 1, "stock": 1, "deliveryPriceList": "example", "categoryId": 1, "attributes": [ { "id": 1, "type": "example", "values": [ "example" ], "name": "example" } ], "imageUrls": [ "example" ], "ean": "example", "sku": "example", "weightKg": 1, "description": "example", "status": "example", "dispatchTimeDays": 1, "taxRate": "example", "clientRowId": "example" } ] }'Wystawia nowe lub aktualizuje istniejące oferty Erli dla wielu produktów naraz.
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry zapytania
Dział zatytułowany „Parametry zapytania”connectionId
string
Treść żądania
Dział zatytułowany „Treść żądania”object
offers
wymagane
Array<object>
object
pimProductId
wymagane
integer format: int64
name
wymagane
string
price
wymagane
number format: double
stock
wymagane
integer format: int32
deliveryPriceList
wymagane
string
categoryId
wymagane
integer format: int64
attributes
wymagane
Array<object>
object
id
wymagane
integer format: int64
type
wymagane
string
values
wymagane
Array<string>
name
string
imageUrls
wymagane
Array<string>
ean
string
sku
string
weightKg
number format: double
description
string
status
string
dispatchTimeDays
integer format: int32
taxRate
string
clientRowId
string
Examplegenerated
{ "offers": [ { "pimProductId": 1, "name": "example", "price": 1, "stock": 1, "deliveryPriceList": "example", "categoryId": 1, "attributes": [ { "id": 1, "type": "example", "values": [ "example" ], "name": "example" } ], "imageUrls": [ "example" ], "ean": "example", "sku": "example", "weightKg": 1, "description": "example", "status": "example", "dispatchTimeDays": 1, "taxRate": "example", "clientRowId": "example" } ]}object
offers
wymagane
Array<object>
object
pimProductId
wymagane
integer format: int64
name
wymagane
string
price
wymagane
number format: double
stock
wymagane
integer format: int32
deliveryPriceList
wymagane
string
categoryId
wymagane
integer format: int64
attributes
wymagane
Array<object>
object
id
wymagane
integer format: int64
type
wymagane
string
values
wymagane
Array<string>
name
string
imageUrls
wymagane
Array<string>
ean
string
sku
string
weightKg
number format: double
description
string
status
string
dispatchTimeDays
integer format: int32
taxRate
string
clientRowId
string
Examplegenerated
{ "offers": [ { "pimProductId": 1, "name": "example", "price": 1, "stock": 1, "deliveryPriceList": "example", "categoryId": 1, "attributes": [ { "id": 1, "type": "example", "values": [ "example" ], "name": "example" } ], "imageUrls": [ "example" ], "ean": "example", "sku": "example", "weightKg": 1, "description": "example", "status": "example", "dispatchTimeDays": 1, "taxRate": "example", "clientRowId": "example" } ]}object
offers
wymagane
Array<object>
object
pimProductId
wymagane
integer format: int64
name
wymagane
string
price
wymagane
number format: double
stock
wymagane
integer format: int32
deliveryPriceList
wymagane
string
categoryId
wymagane
integer format: int64
attributes
wymagane
Array<object>
object
id
wymagane
integer format: int64
type
wymagane
string
values
wymagane
Array<string>
name
string
imageUrls
wymagane
Array<string>
ean
string
sku
string
weightKg
number format: double
description
string
status
string
dispatchTimeDays
integer format: int32
taxRate
string
clientRowId
string
Examplegenerated
{ "offers": [ { "pimProductId": 1, "name": "example", "price": 1, "stock": 1, "deliveryPriceList": "example", "categoryId": 1, "attributes": [ { "id": 1, "type": "example", "values": [ "example" ], "name": "example" } ], "imageUrls": [ "example" ], "ean": "example", "sku": "example", "weightKg": 1, "description": "example", "status": "example", "dispatchTimeDays": 1, "taxRate": "example", "clientRowId": "example" } ]}Odpowiedzi
Dział zatytułowany „Odpowiedzi”Accepted
object
accepted
wymagane
Array<object>
object
index
wymagane
integer format: int32
pimProductId
wymagane
integer format: int64
offerId
wymagane
integer format: int64
clientRowId
string
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
accepted
wymagane
Array<object>
object
index
wymagane
integer format: int32
pimProductId
wymagane
integer format: int64
offerId
wymagane
integer format: int64
clientRowId
string
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
{ "accepted": [ { "index": 1, "pimProductId": 1, "offerId": 1, "clientRowId": "example" } ], "rejected": [ { "index": 1, "pimProductId": 1, "issues": [ { "field": "example", "code": "example", "message": "example" } ], "clientRowId": "example" } ]}object
accepted
wymagane
Array<object>
object
index
wymagane
integer format: int32
pimProductId
wymagane
integer format: int64
offerId
wymagane
integer format: int64
clientRowId
string
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
{ "accepted": [ { "index": 1, "pimProductId": 1, "offerId": 1, "clientRowId": "example" } ], "rejected": [ { "index": 1, "pimProductId": 1, "issues": [ { "field": "example", "code": "example", "message": "example" } ], "clientRowId": "example" } ]}
