Przejdź do głównej zawartości

Pobierz spłaszczoną historię zmian zamówienia

GET
/api/v3/Orders/{orderId}/history/flatten
curl --request GET \
--url 'https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Orders/1/history/flatten?offset=0&limit=100' \
--header 'Authorization: Bearer <token>'

Historia zmian w formie płaskiej listy zmienionych pól – wygodna do wyświetlania lub audytu.

orderId
wymagane
integer format: int64
offset
integer format: int32
0
limit
integer format: int32
default: 100

Success

Typ treściapplication/json
object
list
Array<object>
nullable
object
id
integer format: int64
nullable
objectId
string
nullable
type
string
nullable
operation
string
nullable
property
string
nullable
prevValue
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
options
object
propertyNameCaseInsensitive
boolean
parent
object recursive
root
object
options
object
propertyNameCaseInsensitive
boolean
parent
object recursive
root
object recursive
root
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
options
object
propertyNameCaseInsensitive
boolean
parent
object recursive
root
object recursive
root
object recursive
value
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
options
object
propertyNameCaseInsensitive
boolean
parent
object recursive
root
object
options
object
propertyNameCaseInsensitive
boolean
parent
object recursive
root
object recursive
root
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
options
object
propertyNameCaseInsensitive
boolean
parent
object recursive
root
object recursive
root
object recursive
createdAtUtc
string format: date-time
createdBy
string
nullable
pageNumber
integer format: int32
total
integer format: int32
Examplegenerated
{
"list": [
{
"id": 1,
"objectId": "example",
"type": "example",
"operation": "example",
"property": "example",
"prevValue": {},
"value": {},
"createdAtUtc": "2026-04-15T12:00:00Z",
"createdBy": "example"
}
],
"pageNumber": 1,
"total": 1
}

Bad Request

Typ treściapplication/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Server Error