Przejdź do głównej zawartości

Sprawdź stan zamówienia z platformy źródłowej

GET
/api/v6/Orders/GetOrderState
curl --request GET \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v6/Orders/GetOrderState \
--header 'Authorization: Bearer <token>'

Sprawdza, czy zamówienie z systemu zewnętrznego zostało zaimportowane i w jakim jest stanie w ostatnich godzinach.

connectionId
string
platformOrderId
string
sinceLastHours
integer format: int32

Success

Typ treściapplication/json
object
orderState
string
Dozwolone wartości: Normal Cancelled MergedMaster MergedSlave NotExist UsedToExist
Example
{
"orderState": "Normal"
}

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