Skip to content

Order Management System REST API - Order Controller

The order/for/<owner>/<account>/<order> URI provides access to a specific Order.

GET /order/for/<owner>/<account>/<order>

Retrieves the current state of a single Order.

ParameterDescription
ownerA URL-encoded Owner Code.
accountA URL-encoded Account ID unique to the Owner.
orderA URL-encoded Order ID.
ParameterExpectedDescription
asAtOptionalAn ISO8601 date and time. The results returned will be those at the given timestamp. If omitted, returns the latest results.
CodeStatusDescription
200SuccessOrder was found.
Content is a single OrderState object.
404FailureOrder does not exist, or the authenticated identity does not have permission to see this Trading Account.

PATCH /order/for/<owner>/<account>/<order>

Replaces the state of a single Order.

Requires the Alter feature permission.

ParameterDescription
ownerA URL-encoded Owner Code.
accountA URL-encoded Account ID unique to the Owner.
orderA URL-encoded Order ID.

A single OrderState object.

CodeStatusDescription
200SuccessOrder was found.
Content is a single OrderState object.
403FailureThe authenticated identity does not have the Alter permission.
404FailureOrder does not exist, or the authenticated identity does not have permission to see this Trading Account.
422FailureA failure occurred.
Content is a JSON array of one or more error codes describing the problem.