For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Instruction Request API Reference

Create Deposit Instruction Request

post

Request a Deposit Instruction

Authorizations
cdpapi-Subscription-KeystringOptional
Body
productReferencestringOptional

The reference for the Product

productIssueNumbernumberOptional

The specific issue of the product

productIssueVersionNumbernumberOptional

The specific version of the product issue

accountReferencestringOptional

The reference for the Account

amountnumberOptional

The amount of the instruction to 2dp

instructionReferencestring · uuidOptional

The generated unique reference (GUID) for the Instruction

Responses
202Success
application/json
instructionReferencestring · uuidOptional

The unique identifier (GUID) of the Instruction

statusLocationstringOptional

Endpoint used to check the Status of the instruction request

post/deposit
POST /instruction-request/deposit HTTP/1.1
Host: api.sandbox.flagstoneim.com
cdpapi-Subscription-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 186

{
  "productReference": "256",
  "productIssueNumber": "1",
  "productIssueVersionNumber": "2",
  "accountReference": "FL1456",
  "amount": 500,
  "instructionReference": "1429ddc3-987f-4bff-9f34-77d1b98fca21"
}
202Success
{
  "instructionReference": "1429ddc3-987f-4bff-9f34-77d1b98fca21",
  "statusLocation": "https://API.com/location"
}

Create Withdrawal Instruction Request

post

Create an Instruction request to withdraw from a Deposit Account

Authorizations
cdpapi-Subscription-KeystringOptional
Body
accountReferencestringOptional

The unique account reference

currencyIsoCodestringOptional

The 3 digit currency code for the portfolio (ISO-4217)

depositAccountReferencestringOptional

The unique reference for the deposit account

amountnumberOptional

The amount of the instruction to 2dp

instructionReferencestring · uuidOptional

The generated unique reference (GUID) for the Instruction

Responses
202Success
application/json
instructionReferencestring · uuidOptional

The generated unique reference (GUID) for the Instruction

statusLocationstringOptional

Reference to the get Instruction Request status endpoint

post/withdraw
POST /instruction-request/withdraw HTTP/1.1
Host: api.sandbox.flagstoneim.com
cdpapi-Subscription-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 167

{
  "accountReference": "FL12345",
  "currencyIsoCode": "GBP",
  "depositAccountReference": "123454565",
  "amount": 500,
  "instructionReference": "1429ddc3-987f-4bff-9f34-77d1b98fca21"
}
202Success
{
  "instructionReference": "1429ddc3-987f-4bff-9f34-77d1b98fca21",
  "statusLocation": "/instruction-request/status/1429ddc3-987f-4bff-9f34-77d1b98fca21"
}

Get Instruction Request Status

get

Returns the status of the instruction request with the given reference

Authorizations
cdpapi-Subscription-KeystringOptional
Path parameters
instructionReferencestring · uuidRequired

The unique identifier (GUID) of the Instruction

Example: 1429ddc3-987f-4bff-9f34-77d1b98fca21
Responses
200

Status of the request

application/json
statusstringOptional

Created | Processed | Rejected //Current instruction request status

instructionReferencestring · uuidOptional

The unique identifier (GUID) of the Instruction

statusReasonstringOptional

Reason for the status change

get/status/{instructionReference}
GET /instruction-request/status/{instructionReference} HTTP/1.1
Host: api.sandbox.flagstoneim.com
cdpapi-Subscription-Key: YOUR_API_KEY
Accept: */*
{
  "status": "Created|Processed|Rejected",
  "instructionReference": "1429ddc3-987f-4bff-9f34-77d1b98fca21",
  "statusReason": "reason"
}

Create Deposit Account Closure Instruction Request

post
Authorizations
cdpapi-Subscription-KeystringOptional
Body
accountReferencestringOptional

The unique account reference

currencyIsoCodestringOptional

The 3 digit currency code for the portfolio (ISO-4217)

depositAccountReferencestringOptional

The unique reference for the deposit account

instructionReferencestring · uuidOptional

The generated unique reference (GUID) for the Instruction

Responses
202Success
application/json
instructionReferencestring · uuidOptional

The unique identifier (GUID) of the Instruction

statusLocationstringOptional

Endpoint used to check the Status of the instruction request

post/close-account
POST /instruction-request/close-account HTTP/1.1
Host: api.sandbox.flagstoneim.com
cdpapi-Subscription-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 154

{
  "accountReference": "FL12345",
  "currencyIsoCode": "GBP",
  "depositAccountReference": "123454565",
  "instructionReference": "1429ddc3-987f-4bff-9f34-77d1b98fca21"
}
202Success
{
  "instructionReference": "1429ddc3-987f-4bff-9f34-77d1b98fca21",
  "statusLocation": "https://API.com/location"
}

Create Revert Instruction Request

post

Requests the reversal of an Instruction you previously submitted.

An Instruction can be reverted while it is still pending settlement, which means all of the following must hold:

  • The Instruction Batch it sits in (and its Notice Instruction Batch, where it has one) is still 'Open' or 'Locked'. Once a batch is 'Closed' or beyond, the Instruction can no longer be reverted.
  • The request falls inside the revert window either side of the batch lock time for the Financial Partner and currency.
  • The Deposit Account is still 'Open', unless the Instruction being reverted is the final closure Instruction for that account.
  • The Instruction was not raised by Flagstone Operations.
  • Reverting will not take the Deposit Account outside the per-account limits of its Product.

None of the above is evaluated when the request is submitted. As with every other Instruction Request a 202 only confirms that we accepted the request, so a revert that breaches any of these conditions is still accepted here and then reported as 'Rejected' by the status endpoint, with the reason in 'statusReason'. Poll the status endpoint to find out whether the reversal actually happened.

Authorizations
cdpapi-Subscription-KeystringOptional
Body
instructionReferencestring · uuidOptional

The generated unique reference (GUID) for the Instruction

instructionToRevertReferencestring · uuidOptional

The unique reference (GUID) of the Instruction to revert

Responses
202

The revert request was accepted for asynchronous processing

application/json
instructionReferencestring · uuidOptional

The unique identifier (GUID) of the Instruction

statusLocationstringOptional

Endpoint used to check the Status of the instruction request

post/revert
POST /instruction-request/revert HTTP/1.1
Host: api.sandbox.flagstoneim.com
cdpapi-Subscription-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 133

{
  "instructionReference": "1429ddc3-987f-4bff-9f34-77d1b98fca21",
  "instructionToRevertReference": "616aa3f5-3b22-445e-8d34-2b4c5f71844e"
}
{
  "instructionReference": "1429ddc3-987f-4bff-9f34-77d1b98fca21",
  "statusLocation": "/instruction-request/status/1429ddc3-987f-4bff-9f34-77d1b98fca21"
}

Last updated