Zaktualizuj częściowo zamówienie po ID z platformy
PUT
/api/v6/Orders/Patch/{platformConnectionId}/{platformOrderId}
const url = 'https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v6/Orders/Patch/example/example';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"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}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v6/Orders/Patch/example/example \ --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 }'Jak częściowa aktualizacja, ale zamówienie wskazujesz ID połączenia i numerem zamówienia w systemie zewnętrznym.
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry ścieżki
Dział zatytułowany „Parametry ścieżki”platformConnectionId
wymagane
string
platformOrderId
wymagane
string
Treść żądania
Dział zatytułowany „Treść żądania”Typ treściapplication/json
object
source
object
connectionId
integer format: int64
platformAccountId
string
platformOrderId
string
platformDateAddedUtc
string format: date-time
platformDateConfirmedUtc
string format: date-time
asteriskMarked
boolean
asteriskKindId
integer format: int64
sellerComments
string
buyerComments
string
packState
integer format: int32
pickState
integer format: int32
buyer
object
email
string
username
string
fullName
string
companyName
string
rawCompanyTaxId
string
phone
string
address
object
apartmentNo
string
houseNo
string
street
string
city
string
postCode
string
state
string
countryCode
string
payments
object
paymentName
string
payments
Array<object>
object
platformId
string
platformName
string
finishedAtUtc
string format: date-time
paymentAmount
object
currency
string
amount
number format: double
paid
boolean
status
object
id
wymagane
integer format: int64
delivery
object
recipient
object
email
string
username
string
fullName
string
companyName
string
phone
string
address
object
apartmentNo
string
houseNo
string
street
string
city
string
postCode
string
state
string
countryCode
string
pickupPoint
object
code
string
name
string
description
string
address
object
apartmentNo
string
houseNo
string
street
string
city
string
postCode
string
state
string
countryCode
string
cost
object
currency
string
amount
number format: double
method
object
platformId
string
platformName
string
isCod
boolean
isPacked
boolean
isPicked
boolean
invoice
object
required
boolean
payer
object
email
string
username
string
fullName
string
companyName
string
rawCompanyTaxId
string
phone
string
address
object
apartmentNo
string
houseNo
string
street
string
city
string
postCode
string
state
string
countryCode
string
lineItems
Array<object>
object
platformId
string
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
wymagane
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
originalCreatedAt
string format: date-time
additionalFields
Array<object>
object
fieldName
string
fieldType
string
fieldValue
string
additionalFieldDefinition
object
fieldName
string
fieldDisplayName
string
fieldType
string
predefinedValues
Array<string>
summary
object
totalToPay
object
currency
string
amount
wymagane
number format: double
additionalField1
string
additionalField2
string
cancellation
object
cancelledAtUtc
string format: date-time
reason
string
externalPaymentStatus
string
packStationId
integer format: int64
return
object
returnedAtUtc
string format: date-time
reason
string
ksef
object
errorMessage
string
status
string
passThroughCommandData
object
key
additional properties
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
object recursive
root
object
object recursive
replaceAllLineItems
boolean
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}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"}
