Przejdź do głównej zawartości

Zaktualizuj zamówienie częściowo (z pozycjami)

PUT
/api/v6/Orders/Patch/{orderId}
curl --request PUT \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v6/Orders/Patch/1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "source": { "connectionId": 1, "platformAccountId": "example", "platformOrderId": "example" }, "platformDateAddedUtc": "2026-04-15T12:00:00Z", "platformDateConfirmedUtc": "2026-04-15T12:00:00Z", "asteriskMarked": true, "asteriskKindId": 1, "sellerComments": "example", "buyerComments": "example", "packState": 1, "pickState": 1, "buyer": { "email": "example", "username": "example", "fullName": "example", "companyName": "example", "rawCompanyTaxId": "example", "phone": "example", "address": { "apartmentNo": "example", "houseNo": "example", "street": "example", "city": "example", "postCode": "example", "state": "example", "countryCode": "example" } }, "payments": { "paymentName": "example", "payments": [ { "platformId": "example", "platformName": "example", "finishedAtUtc": "2026-04-15T12:00:00Z", "paymentAmount": { "currency": "example", "amount": 1 }, "paid": true } ] }, "status": { "id": 1 }, "delivery": { "recipient": { "email": "example", "username": "example", "fullName": "example", "companyName": "example", "phone": "example", "address": { "apartmentNo": "example", "houseNo": "example", "street": "example", "city": "example", "postCode": "example", "state": "example", "countryCode": "example" } }, "pickupPoint": { "code": "example", "name": "example", "description": "example", "address": { "apartmentNo": "example", "houseNo": "example", "street": "example", "city": "example", "postCode": "example", "state": "example", "countryCode": "example" } }, "cost": { "currency": "example", "amount": 1 }, "method": { "platformId": "example", "platformName": "example" }, "isCod": true, "isPacked": true, "isPicked": true }, "invoice": { "required": true, "payer": { "email": "example", "username": "example", "fullName": "example", "companyName": "example", "rawCompanyTaxId": "example", "phone": "example", "address": { "apartmentNo": "example", "houseNo": "example", "street": "example", "city": "example", "postCode": "example", "state": "example", "countryCode": "example" } } }, "lineItems": [ { "platformId": "example", "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 }, "originalCreatedAt": "2026-04-15T12:00:00Z", "additionalFields": [ { "fieldName": "example", "fieldType": "example", "fieldValue": "example", "additionalFieldDefinition": { "fieldName": "example", "fieldDisplayName": "example", "fieldType": "example", "predefinedValues": [ "example" ] } } ] } ], "summary": { "totalToPay": { "currency": "example", "amount": 1 } }, "additionalField1": "example", "additionalField2": "example", "cancellation": { "cancelledAtUtc": "2026-04-15T12:00:00Z", "reason": "example" }, "externalPaymentStatus": "example", "packStationId": 1, "return": { "returnedAtUtc": "2026-04-15T12:00:00Z", "reason": "example" }, "ksef": { "errorMessage": "example", "status": "example" }, "passThroughCommandData": { "additionalProperty": {} }, "replaceAllLineItems": true }'

Aktualizuje pola zamówienia oraz dodaje lub podmienia pozycje i płatności (dopasowanie pozycji po ID z platformy). Operacja asynchroniczna – zwraca zadanie (job), którego wynik sprawdzisz w Zadaniach asynchronicznych.

orderId
wymagane
integer format: int64
Typ treściapplication/json
object
source
object
connectionId
integer format: int64
nullable
platformAccountId
string
nullable
platformOrderId
string
nullable
platformDateAddedUtc
string format: date-time
nullable
platformDateConfirmedUtc
string format: date-time
nullable
asteriskMarked
boolean
nullable
asteriskKindId
integer format: int64
nullable
sellerComments
string
nullable
buyerComments
string
nullable
packState
integer format: int32
nullable
pickState
integer format: int32
nullable
buyer
object
email
string
nullable
username
string
nullable
fullName
string
nullable
companyName
string
nullable
rawCompanyTaxId
string
nullable
phone
string
nullable
address
object
apartmentNo
string
nullable
houseNo
string
nullable
street
string
nullable
city
string
nullable
postCode
string
nullable
state
string
nullable
countryCode
string
nullable
payments
object
paymentName
string
nullable
payments
Array<object>
nullable
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
status
object
id
wymagane
integer format: int64
delivery
object
recipient
object
email
string
nullable
username
string
nullable
fullName
string
nullable
companyName
string
nullable
phone
string
nullable
address
object
apartmentNo
string
nullable
houseNo
string
nullable
street
string
nullable
city
string
nullable
postCode
string
nullable
state
string
nullable
countryCode
string
nullable
pickupPoint
object
code
string
nullable
name
string
nullable
description
string
nullable
address
object
apartmentNo
string
nullable
houseNo
string
nullable
street
string
nullable
city
string
nullable
postCode
string
nullable
state
string
nullable
countryCode
string
nullable
cost
object
currency
string
nullable
amount
number format: double
nullable
method
object
platformId
string
nullable
platformName
string
nullable
isCod
boolean
nullable
isPacked
boolean
nullable
isPicked
boolean
nullable
invoice
object
required
boolean
nullable
payer
object
email
string
nullable
username
string
nullable
fullName
string
nullable
companyName
string
nullable
rawCompanyTaxId
string
nullable
phone
string
nullable
address
object
apartmentNo
string
nullable
houseNo
string
nullable
street
string
nullable
city
string
nullable
postCode
string
nullable
state
string
nullable
countryCode
string
nullable
lineItems
Array<object>
nullable
object
platformId
string
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
wymagane
number format: double
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
originalCreatedAt
string format: date-time
nullable
additionalFields
Array<object>
nullable
object
fieldName
string
nullable
fieldType
string
nullable
fieldValue
string
nullable
additionalFieldDefinition
object
fieldName
string
nullable
fieldDisplayName
string
nullable
fieldType
string
nullable
predefinedValues
Array<string>
nullable
summary
object
totalToPay
object
currency
string
nullable
amount
wymagane
number format: double
additionalField1
string
nullable
additionalField2
string
nullable
cancellation
object
cancelledAtUtc
string format: date-time
nullable
reason
string
nullable
externalPaymentStatus
string
nullable
packStationId
integer format: int64
nullable
return
object
returnedAtUtc
string format: date-time
nullable
reason
string
nullable
ksef
object
errorMessage
string
nullable
status
string
nullable
passThroughCommandData
object
key
additional properties
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
object recursive
root
object
object recursive
replaceAllLineItems
boolean
nullable
Examplegenerated
{
"source": {
"connectionId": 1,
"platformAccountId": "example",
"platformOrderId": "example"
},
"platformDateAddedUtc": "2026-04-15T12:00:00Z",
"platformDateConfirmedUtc": "2026-04-15T12:00:00Z",
"asteriskMarked": true,
"asteriskKindId": 1,
"sellerComments": "example",
"buyerComments": "example",
"packState": 1,
"pickState": 1,
"buyer": {
"email": "example",
"username": "example",
"fullName": "example",
"companyName": "example",
"rawCompanyTaxId": "example",
"phone": "example",
"address": {
"apartmentNo": "example",
"houseNo": "example",
"street": "example",
"city": "example",
"postCode": "example",
"state": "example",
"countryCode": "example"
}
},
"payments": {
"paymentName": "example",
"payments": [
{
"platformId": "example",
"platformName": "example",
"finishedAtUtc": "2026-04-15T12:00:00Z",
"paymentAmount": {
"currency": "example",
"amount": 1
},
"paid": true
}
]
},
"status": {
"id": 1
},
"delivery": {
"recipient": {
"email": "example",
"username": "example",
"fullName": "example",
"companyName": "example",
"phone": "example",
"address": {
"apartmentNo": "example",
"houseNo": "example",
"street": "example",
"city": "example",
"postCode": "example",
"state": "example",
"countryCode": "example"
}
},
"pickupPoint": {
"code": "example",
"name": "example",
"description": "example",
"address": {
"apartmentNo": "example",
"houseNo": "example",
"street": "example",
"city": "example",
"postCode": "example",
"state": "example",
"countryCode": "example"
}
},
"cost": {
"currency": "example",
"amount": 1
},
"method": {
"platformId": "example",
"platformName": "example"
},
"isCod": true,
"isPacked": true,
"isPicked": true
},
"invoice": {
"required": true,
"payer": {
"email": "example",
"username": "example",
"fullName": "example",
"companyName": "example",
"rawCompanyTaxId": "example",
"phone": "example",
"address": {
"apartmentNo": "example",
"houseNo": "example",
"street": "example",
"city": "example",
"postCode": "example",
"state": "example",
"countryCode": "example"
}
}
},
"lineItems": [
{
"platformId": "example",
"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
},
"originalCreatedAt": "2026-04-15T12:00:00Z",
"additionalFields": [
{
"fieldName": "example",
"fieldType": "example",
"fieldValue": "example",
"additionalFieldDefinition": {
"fieldName": "example",
"fieldDisplayName": "example",
"fieldType": "example",
"predefinedValues": [
"example"
]
}
}
]
}
],
"summary": {
"totalToPay": {
"currency": "example",
"amount": 1
}
},
"additionalField1": "example",
"additionalField2": "example",
"cancellation": {
"cancelledAtUtc": "2026-04-15T12:00:00Z",
"reason": "example"
},
"externalPaymentStatus": "example",
"packStationId": 1,
"return": {
"returnedAtUtc": "2026-04-15T12:00:00Z",
"reason": "example"
},
"ksef": {
"errorMessage": "example",
"status": "example"
},
"passThroughCommandData": {
"additionalProperty": {}
},
"replaceAllLineItems": 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"
}