Depending on applicable regulations or business limitations, specific API requests may not be available for your use.

Create a Restriction

This request creates an account restriction on a brokerage account.

Request URL

Syntax POST /restapi/accounts/{accountnumber}/restrictions
Example URL https://api.uat.foliofn.com/restapi/accounts/RA1234ABCD/restrictions

Response Data Fields

Field Description
inceptionInfo Miscellaneous text information about the restriction, limited to 255 characters or less.
reason See detail in Get a Restriction endpoint document. Only restriction code is required.
type See detail in Get a Restriction endpoint document. Only restriction type code is required.

Request Example


POST /restapi/accounts/RA1234ABCD/restrictions HTTP/1.1
{
  "inceptionInfo" : "inception info",
  "reason" : {
    "code" : "021"
  },
  "type" : {
    "code" : "CR"
  }
}

Response Example


HTTP/1.1 201 Created
X-Powered-By: Servlet/2.5
Server: Sun GlassFish Enterprise Server v2.1.1
Location: https://api.uat.foliofn.com/restapi/accounts/RA1234ABCD/restrictions/11111111111
Content-Type: text/html; charset=iso-8859-1
Content-Length: 0
Date: Fri, 21 Feb 2014 18:08:56 GMT

Getting Started

REST APIs

Resources