Orders modification
POST https://isot.okte.sk/api/v1/idm/orders/:orderId/:operation
Parameters
:orderId required |
Integer number ID of own order |
---|---|
:operation required |
Enum (activate, deactivate, cancel) Order operation |
Order deactivation example
POST https://isot.okte.sk/api/v1/idm/orders/695896/deactivate{
"correlationId": "695896-deact"
}
Request fields description
Field | Description | Format |
correlationId | Client message identifier | String or null |
Request may return HTTP status codes:
- 204 (NoContent) - request processing is finished,
- 202 (Accepted) - order processing is not finished on server side,
- 400 (Bad Request) - request validation problem (see example here),
- 429 (Too Many Requests) - request limit exceeded,
- 500 (Internal Server Error).
Order deactivation message example (WebSocket)
WS wss://isot.okte.sk/api/v1/idm/ws?topics=orders{
"type": "order-deactivate",
"payload": {
"id": 695896,
"correlationId": "695896-deact"
}
}
Request fields description
Field | Description | Format |
type | Message type for order operation | Enum (order-activate, order-deactivate, order-cancel) |
payload | Message data | OperationData object |
OperationData | ||
id | ID of own order | Integer number |
correlationId | Client message identifier | String or null |