Podziel zamówienie
POST
/api/v3/Orders/{orderId}/Split
const url = 'https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Orders/1/Split';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"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}'};
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-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.
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry ścieżki
Dział zatytułowany „Parametry ścieżki”orderId
wymagane
integer format: int64
Treść żądania
Dział zatytułowany „Treść żądania”Typ treściapplication/json
object
originalPayment
object
platformId
string
platformName
string
finishedAtUtc
string format: date-time
paymentAmount
object
currency
string
amount
number format: double
paid
boolean
originalDeliveryCost
object
currency
string
amount
wymagane
number format: double
originalDeliveryMethod
object
platformId
string
id
integer format: int64
platformName
string
splitPayment
object
platformId
string
platformName
string
finishedAtUtc
string format: date-time
paymentAmount
object
currency
string
amount
number format: double
paid
boolean
splitDeliveryCost
object
currency
string
amount
wymagane
number format: double
splitDeliveryMethod
object
platformId
string
id
integer format: int64
platformName
string
splitLineItems
Array<object>
object
id
integer format: int64
product
object
id
integer format: int64
warehouseId
string
platformId
string
name
string
code
string
ean
string
bundleId
string
storage
string
imageUrl
string
parentName
string
location
string
variantId
string
additionalEans
Array<object>
object
ean
string
quantity
number format: double
description
string
quantity
number format: double
quantityPicked
number format: double
quantityPacked
number format: double
tax
object
symbol
string
rate
number format: double
price
object
currency
string
unitPrice
Cena brutto
number format: double
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}Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Typ treściapplication/json
object
id
integer format: int64
createdAt
string format: date-time
updatedAt
string format: date-time
payload
result
status
string
command
string
scope
string
scopeValue
string
silentMode
boolean
ajsChainId
string
ajsChainVisits
string
Example
{ "status": "New"}
