Przejdź do głównej zawartości

Wystaw lub zaktualizuj oferty (paczka)

POST
/api/Offers/SubmitOffersBatch
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.

connectionId
string
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
nullable
imageUrls
wymagane
Array<string>
ean
string
nullable
sku
string
nullable
weightKg
number format: double
nullable
description
string
nullable
status
string
nullable
dispatchTimeDays
integer format: int32
nullable
taxRate
string
nullable
clientRowId
string
nullable
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"
}
]
}

Accepted

object
accepted
wymagane
Array<object>
object
index
wymagane
integer format: int32
pimProductId
wymagane
integer format: int64
offerId
wymagane
integer format: int64
clientRowId
string
nullable
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
nullable