Przejdź do głównej zawartości

Rozbij zestawy w zamówieniu

POST
/api/v5/Orders/{orderId}/processBundles
curl --request POST \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v5/Orders/1/processBundles \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "method": "Default", "orderConfirmationRequired": true }'

Zamienia pozycje będące zestawami (bundle) na ich składniki. Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych.

orderId
wymagane
integer format: int64
Typ treściapplication/json
object
method
string
Dozwolone wartości: Default Discount Proportional Disabled Undefined ProportionalWithNoPriceSupport
orderConfirmationRequired
boolean

Success

Typ treściapplication/json
object
id
integer format: int64
createdAt
string format: date-time
updatedAt
string format: date-time
payload
nullable
result
nullable
status
string
Dozwolone wartości: New InProgress Completed Failed
command
string
nullable
scope
string
nullable
scopeValue
string
nullable
silentMode
boolean
ajsChainId
string
nullable
ajsChainVisits
string
nullable
Example
{
"status": "New"
}