Przejdź do głównej zawartości

Podziel zamówienie

POST
/api/v3/Orders/{orderId}/Split
curl --request POST \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Orders/1/Split \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "originalPayment": { "platformId": "example", "platformName": "example", "finishedAtUtc": "2026-04-15T12:00:00Z", "paymentAmount": { "currency": "example", "amount": 1 }, "paid": true }, "originalDeliveryCost": { "currency": "example", "amount": 1 }, "originalDeliveryMethod": { "platformId": "example", "id": 1, "platformName": "example" }, "splitPayment": { "platformId": "example", "platformName": "example", "finishedAtUtc": "2026-04-15T12:00:00Z", "paymentAmount": { "currency": "example", "amount": 1 }, "paid": true }, "splitDeliveryCost": { "currency": "example", "amount": 1 }, "splitDeliveryMethod": { "platformId": "example", "id": 1, "platformName": "example" }, "splitLineItems": [ { "id": 1, "product": { "id": 1, "warehouseId": "example", "platformId": "example", "name": "example", "code": "example", "ean": "example", "bundleId": "example", "storage": "example", "imageUrl": "example", "parentName": "example", "location": "example", "variantId": "example", "additionalEans": [ { "ean": "example", "quantity": 1, "description": "example" } ] }, "quantity": 1, "quantityPicked": 1, "quantityPacked": 1, "tax": { "symbol": "example", "rate": 1 }, "price": { "currency": "example", "unitPrice": 1 } } ], "deleteSourceForCreatedOrders": true }'

Wydziela wskazane pozycje do nowego zamówienia. Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych.

orderId
wymagane
integer format: int64
Typ treściapplication/json
object
originalPayment
object
platformId
string
nullable
platformName
string
nullable
finishedAtUtc
string format: date-time
nullable
paymentAmount
object
currency
string
nullable
amount
number format: double
paid
boolean
nullable
originalDeliveryCost
object
currency
string
nullable
amount
wymagane
number format: double
originalDeliveryMethod
object
platformId
string
nullable
id
integer format: int64
nullable
platformName
string
nullable
splitPayment
object
platformId
string
nullable
platformName
string
nullable
finishedAtUtc
string format: date-time
nullable
paymentAmount
object
currency
string
nullable
amount
number format: double
paid
boolean
nullable
splitDeliveryCost
object
currency
string
nullable
amount
wymagane
number format: double
splitDeliveryMethod
object
platformId
string
nullable
id
integer format: int64
nullable
platformName
string
nullable
splitLineItems
Array<object>
nullable
object
id
integer format: int64
nullable
product
object
id
integer format: int64
nullable
warehouseId
string
nullable
platformId
string
nullable
name
string
nullable
code
string
nullable
ean
string
nullable
bundleId
string
nullable
storage
string
nullable
imageUrl
string
nullable
parentName
string
nullable
location
string
nullable
variantId
string
nullable
additionalEans
Array<object>
nullable
object
ean
string
nullable
quantity
number format: double
description
string
nullable
quantity
number format: double
nullable
quantityPicked
number format: double
nullable
quantityPacked
number format: double
nullable
tax
object
symbol
string
nullable
rate
number format: double
nullable
price
object
currency
string
nullable
unitPrice

Cena brutto

number format: double
nullable
deleteSourceForCreatedOrders
boolean
Examplegenerated
{
"originalPayment": {
"platformId": "example",
"platformName": "example",
"finishedAtUtc": "2026-04-15T12:00:00Z",
"paymentAmount": {
"currency": "example",
"amount": 1
},
"paid": true
},
"originalDeliveryCost": {
"currency": "example",
"amount": 1
},
"originalDeliveryMethod": {
"platformId": "example",
"id": 1,
"platformName": "example"
},
"splitPayment": {
"platformId": "example",
"platformName": "example",
"finishedAtUtc": "2026-04-15T12:00:00Z",
"paymentAmount": {
"currency": "example",
"amount": 1
},
"paid": true
},
"splitDeliveryCost": {
"currency": "example",
"amount": 1
},
"splitDeliveryMethod": {
"platformId": "example",
"id": 1,
"platformName": "example"
},
"splitLineItems": [
{
"id": 1,
"product": {
"id": 1,
"warehouseId": "example",
"platformId": "example",
"name": "example",
"code": "example",
"ean": "example",
"bundleId": "example",
"storage": "example",
"imageUrl": "example",
"parentName": "example",
"location": "example",
"variantId": "example",
"additionalEans": [
{
"ean": "example",
"quantity": 1,
"description": "example"
}
]
},
"quantity": 1,
"quantityPicked": 1,
"quantityPacked": 1,
"tax": {
"symbol": "example",
"rate": 1
},
"price": {
"currency": "example",
"unitPrice": 1
}
}
],
"deleteSourceForCreatedOrders": true
}

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"
}