Sprawdź stan zamówienia z platformy źródłowej
GET
/api/v6/Orders/GetOrderState
const url = 'https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v6/Orders/GetOrderState';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry zapytania
Dział zatytułowany „Parametry zapytania”connectionId
string
platformOrderId
string
sinceLastHours
integer format: int32
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Typ treściapplication/json
object
orderState
string
Example
{ "orderState": "Normal"}Bad Request
Typ treściapplication/json
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Server Error

