Skip to main content
GET
Retrieve an application

Authorizations

Authorization
string
header
required

Authorization: Bearer <key>. Sandbox keys start with mgw_test_ and live keys start with mgw_live_. Each key works only in its own environment, and a live key works only from the IP addresses or ranges registered for it.

Scopes

read

Path Parameters

id
string
required

The application's id.

Pattern: ^app_[a-z2-7]{20}$

Response

An application.

An application to open a brokerage account for your customer.

object
string
required
Allowed value: "application"
id
string
required

Unique identifier for the application. Starts with app_.

Pattern: ^app_[a-z2-7]{20}$
state
enum<string>
required

sending: being stored, while your request is in progress. If it still reads sending after its request has ended, its outcome was not recorded, and our operations team reconciles it. documents_required: we have it, and need the customer's four documents. submitted: we have its four documents, and are checking the customer's identity and opening the account. opened: account is the new account, and you can trade for it. uncertain: we couldn't read an answer from a registry, the depository or the broker, or couldn't confirm a step, or we hadn't asked the depository to open the account within 7 days of when you sent it, or another answer needs a person; reason says which. Our operations team settles it: it becomes submitted again, and opens or ends as any other application does, or it ends unplaced. One that becomes uncertain before we've asked the depository can only end unplaced. rejected: see reject_reason and param. refused: we couldn't take it, and sent nothing. unplaced: our operations team found that no account was opened for it. You can send it again under a new key. New values can be added: handle an unrecognised value with a safe default.

Available options:
sending,
documents_required,
submitted,
opened,
uncertain,
rejected,
refused,
unplaced
reference
string | null
required

Our reference for the account at the broker, once we've added the account to the broker. null until then.

account
string | null
required

The account code, once the account is opened.

reason
string | null
required

A sentence explaining the application's current state. It's for people to read, so don't use it in your logic.

reject_reason
enum<string> | null
required

Why the application was rejected. Set only when state is rejected. New values can be added: handle an unrecognised value with a safe default.

Available options:
invalid_field,
already_at_broker,
rejected_by_broker,
declined_by_broker,
identity_mismatch,
bank_account_mismatch,
identity_unverified,
declined_by_depository,
null
param
string | null
required

The field that caused the rejection, when the rejection names one. Never includes the field's value.

created_at
string<date-time>
required

When we recorded the application.

updated_at
string<date-time>
required

When the application last changed state.

client_reference
string | null
required

Your own reference, as you sent it. Null if you didn't send one.